Add extra fields to Joomla registration forms - joomla1.5

I need to add some extra field to Joomla registration form without using any extension. Please does anyone know how I can go about. I have created the extra fields in the db and added the html for the textfields but I don't know what to do next.

Some articles here that describe how to add extra fields:
http://joomla-and-more.com/2010/02/05/how-to-velden-toevoegen-bij-de-joomla-registration-form/
http://blog.manchumahara.com/2010/03/18/how-to-add-extra-fields-in-joomla-registration/
http://www.youtube.com/watch?v=dk_86nHu3AM

Related

Dynamic show fields Symfony2

I trying to add some fields to form depending of checkbox. But I have no idea how can I do that. I think Ajax can be useful, but I dont work with Ajax in Symfony2 yet, and if my form build up not in the controller what value I need specify in url: option of Ajax?
That's quite a broad question, but essentially: the Symfony way is to add them to the Form in the Controller by reacting to FormEvents.
Symfony Docs on Form Events
One way to achieve what you're after is to submit the form twice - the first time code will react to the checked checkbox and arrange the rest of the form as required, the second time the form will be valid and you can take action. Details on the above link. AJAX might help with this, allowing a form submission as soon as you've checked the checkbox.
Although you can create HTML form fields using AJAX, when you submit the form those fields need to exist in the Form object. You can add them just in time, in the controller, before Symfony tries to bind them.

Advice on way to add information to a MS CRM form for a related entity

I want do display information for the associated Account record on an invoice form.
The fields are read only and are for information to be shown for the user who is creating or editing the invoice.
From looking at this it seems to be more involved than I though.
1) To display other html on a CRM form I need to use an iframe - I can't just add a text box with an id to then populate using javascript.
2) Then to get the information from the related account record I need to do another lookup, return the field and display it.
To do the query I will do an ODATA call.
Am I on the right track ? Or am I over complicating this and is there a simpler more straighforward method.
No, as far as I know, you're unfortumately not over-complicating.
If you wish to avoid an iframe (which I would), I can suggest a little dirty trick (or hack, if you will)-
Add a text property new_dummy to the invoice entity, and add it to the invoice form.
This field will not be read or written by the invoice entity, but will just give you a placeholder to populate with the account data, which you will retrieve with JS.
(yes, this is quite ugly, I know :))

How show comments approved by custom form Orchard CMS

Here my question : How can I show, on a page, all the comments I received from a custom form throught Orchard CMS ?
If your not sure to understand my question, here an example of what I want :
Create a Guestbook with a new Content Type named "Gestbook". Add two fields (the name and the comment). Once add it on Forms tab, add comments into the new guestbook page into your website. After that, how can I show them after approved it throught dashboard ?
Thank you very much,
David
Click on "submissions" on the right of the form in the Forms section of the admin to see what got added by users. You can also trigger additional actions from the Rules module.

Multiple Contact Forms on Magento

I'm looking to create a new contact form for enquiries on Magento. Creating a module from scratch for this seems like a bit of a waste of time. Does anyone know the most sensible and quickest way for this to happen?
Thanks!
In CMS>Manage Pages create and enable a new page (or you could use a static block) e.g. call the page My Contact Form with a url ID of my-contact-form and a layout that matches your theme. For the content of the new page add
{{block type='core/template' template='contacts/mycontactform.phtml'}}
Now in your template folder (app/design/frontend/default/default/template/contacts for default theme in Magento 1.3.x) copy the existing form.phtml file, rename it to mycontactform.phtml and copy it back to the contacts folder. Edit the new mycontactform.phtml code and html as you wish to create your new contact form.
Load the new form by going to http://www.example.com/my-contact-form
Hope that helps...
In adendum to paj answer: You also have to edit the email template to include whatever new fields you just added.
Keep in mind that both your new contact form and Magento original contact form (an whatever future contact forms you may add in the future with in this way) will all use the same email template.
So in order to have meaningful emails sent, you need to "program" the template using the {{depend}} directive

Problem in Saving a custom registration fields in Magento 1.4.2.0 DB

I want to add some custom fields in the registration form and I tried to do that following the Magento Custom Account/Registration Fields and the Fontis Adding Custom Signup Attributes but no success yet. After searching the net, it seems that something has been changed in magento new version 1.4.2.0 as these tutorials were okay in the previous versions, even 1.4.2.0 beta.
Now the actual problem is that the input data from the registration form, edit form cannot be saved into the database. It cannot be retrieved from the database. Also, the custom fields cannot appear in admin backend.
Please let us know how to get it worked successfully by adding the custom fields in magento.
I greatly appreciated it. Thanks.
~Shaman
Make sure you delete the code at the point #5 from the tutorial after accessing it if you placed it in /template/customer/form/register.phtml.
The custom field won't appear in the Mangento admin, that's not covered in the tutorial.
Go into your database and check the last page of the eav_attribute table to see if your attribute was inserted correctly.
Detailed information on setting up a custom attribute using the form eav model can be found here: http://dev.turboweb.co.nz/2011/03/03/changes-to-customer-attributes
Make sure you have added the attribute_id for the customer_account_create in the customer_form_attribute