I want to customize profile edit with some additional fields on database(users table) in Joomla 2.5 - joomla

I tried to override profile.xml file along with edit.php (view file) by placing them within templates/template_name/html/com_users/profile folder, and also made sure the edit.php file know about new profile.xml ($this->form->loadFile( dirname(__FILE__) . DS . "profile.xml");) but i cant seem to make it work while updating custom fields from profile editing page at the front end. Also i can see that custom fields are not in order as it should be with respect to profile.xml. Please somebody help me...

You can't override an Joomla xml file. You need to create a user plugin to install separately for the form fields to appear. There is a profile plugin that comes with the default Joomla installation. Further details on this can be found here.

Related

joomla add custom tab and custom fields to article

first i show image: http://www.upload.ee/image/4675395/Untitled.png , to understand my idea better
I am using joomla 2.5.14 and I want to add another menu option for Extra Fields (It would have 10 fields - ID, Picture URL, Video URL, etc).
The new menu would be saved as vod_items table. The menu would be added where are the Publishing Options, Configure Edit Screen, etc.
That option should be available in every article.
Is there a simple way to add that option to Joomla or is there any kind of a code or plugin to do that?
Kind regards,
Aimar.
You can create a custom plugin to add more custom fields on Article manager or any other core component of Joomla.
You can follow following link for creating a plugin for adding custom fields to Article manager.
Reference : Adding custom fields to core components using a plugin
Note : Don't edit the core component as all changes will be lost in future update of Joomla.

how do i remove registration link in joomla 3.2 - login module

i need to remove the registration link inside the login view http://bartenders4hire.net/index.php/login without completely disabling the registration functionality.
We are using js Jobs on the site and the regular registration is not providing all fields, therefore i need to find the code where i simply can delete the registration link.
I looked inside the modules and plugins, but couldn't find it
Anyone has an idea where i can find that code?
You'll find the registration-link in /components/com_users/views/login/tmpl/default_login.php on the bottom of the file. You can override this file in your own template by copying it to /templates/yourtemplate/html/com_users/login/default_login.php. Then you can remove the registration-line from the file in your template,
regards Jonas

Adding new fields in joomla 2.5 article component

Anybody know how to add custom fields, new fields to enter some values with joomla 2.5 articles in backend.
I want to add some values when i create an article and want to get these values in frontend.
Is there any way i can do this??
Any help will be appreciated.
Thanks in Advance
Tibin Mathew
I think Joomla team predicted that in some way:
Joomla step by step
you would have to
Modify the _content database table
_content is the suffix name of the table that contains all the articles. If you want to add new fields you have to modify this database table to reflect those new fields.
com_content files
com_content is the component in control of articles in both the frontend and backend. It can be found under the components folder under the main directory, and in the administrator/components folder under the main directory. The files in com_content control how the articles are displayed how the form is displayed how actions like save unpublish etc work. So these files will have to be edited to work with your new fields
xml files in the models/forms models/fields
There are XML files under these folders within the com_content folder that tell how the edit form of articles are supposed to be viewed, what type of fields are used, etc. These will have to be modified to reflect your new fields
then you have to do it all again
Each update has updates to the core files (com_content is a core component so all its files are core files). If you go about editing the files in com_content and then do an update these files are more then likely will be overwritten by the update basically losing your modifications. So you would have to redo the modifications.
It is better to make your own component

Understanding the Joomla Component File Structure / from URL

I'm new to joomla and have got a problem with a website.
I need to modify a view and I've been told it is in
http://www.example.com/index.php?option=com_user&view=register&Itemid=68
It has a registration form and i need to modify its field. I've access to FTP only. I need to know where are these files to modify the registration form. If one can describe the meaning of this url structure then it would be very helpful.
You will find the template files in /components/com_user/views/register/tmpl.
However, you should create an html/com_user folder in your template directory with a copy of those files and use a template override ("never" edit core files).
Here are a couple resources that will point you in the right direction:
http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Introduction
http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core
com_user means use the user component register view.
Itemid 68 refers to the id of the menu item it is linked from.
You don't want to directly modify any joomla files.
If you want to add a field to registration activate the user plugin or create your own user plugin along the same design but with the fields you want.
It is advisable not to modify the core files directly, they will get overridden whenever the Joomla is updated.
However what you are looking for is available at components\com_users\models\forms\registration.xml file. you can change the default fields of the registration form in this file.
If you would like to add additional fields to registration form, there is a better way:
http://docs.joomla.org/Creating_a_profile_plugin

File location of phtml file of backend admin page

I installed an extension to add custom fields to customer registration form.I want to add some option value in dropdown menu box of input validation in backend admin page..could you plz tell me the path of the folder where can I find the phtml file which is responsible for that part ?
-Thanks.
The files you are looking for are in:
app/design/adminhtml/default/default/template
But just changing the .phtml file won't do the job. The customer model itself should be extended to provide for your extra field. Therefore i highly recommend you to write a module for this instead of altering Magento core code. This to make sure that you can still use updates in the future.
Writing such an module requires more in depth knowledge of Magento. For more information on custom adminhtml see here.
For information on extending the core functionality look here.
If you don't feel like programming this all yourself take a look at customer attribute modules on Magento Connect.

Resources