The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 97 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Sun Aug 03, 2008 4:39 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Sun Apr 29, 2007 4:23 am
Posts: 91
Hello,
I have a problem? I download the file call UserMeta 1.5.2.zip and also the file call add_to_user.xml. When I load UserMeta to Joomla 1.5.3 I set all the setting for UserMeta to "Yes" which I though was the right thing. So then I edit the file call user.xml with the instructions that told me to add parameter to user.xml which I did but only add the parameters but I didn't add the Creat table "jos_usermeta" because I was not to sure how to do this? but the instruction had said "You may use either one or both together" so I though I will go with the second one. Well here goes my problem, everything seem to be looking fine so I decide to create a user though the Admin backend. Everything seem to be going fine and when I click on "Save" it took me back to User Manager but I didn't see the User I created! so I went back to the plugin call UserMeta and I click on "No" for the data table and I save this once I was done. So I went back to the User Manager and I created another user which works! and I seen the user under "User Manager" So I think my problem was that I didn't create the table call "jos_usermeta" but now what I wanted to do is Delete the User I created that didn't show up! How can I do this? and will I still be having problems if I don't setup the table call "jos_usermeta"?
I have put some information on another posting but no one answer it at all, here goes the link: http://forum.joomla.org/viewtopic.php?f=431&t=312527 Could someone help me delete the user and tell me if I am going to have problems?
Thank You

_________________
Go forwards and not backwards
http://www.moneyhelpsout.com
http://www.bamdingo.com


Top
 Profile  
 
PostPosted: Wed Aug 13, 2008 5:32 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Feb 01, 2007 8:32 pm
Posts: 70
Location: Chicago
i would like to download and try this, but joomlacode says permission denied

do i need permission to download UserMeta??


Top
 Profile  
 
PostPosted: Wed Sep 10, 2008 7:34 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Sep 08, 2008 2:52 pm
Posts: 3
Hey!
I'm new to Joomla! and I need smth kinda urgent (i think).
I've modified the user.php and default.php like here viewtopic.php?f=431&t=320643, almost.
Now I want to insert in more then one table when I click submit... I've created the table but still can't find out how to modify the user.php to do that, do I need to create another component? Can I do that in one form?

Thanks in advance.


Top
 Profile  
 
PostPosted: Fri Dec 12, 2008 6:36 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Nov 28, 2005 7:16 pm
Posts: 5
Location: Denver CO
mwbaseball wrote:
i would like to download and try this, but joomlacode says permission denied

do i need permission to download UserMeta??


Ditto. It seems the project is "mostly dead".


Top
 Profile  
 
PostPosted: Thu Dec 18, 2008 5:31 pm 
Joomla! Guru
Joomla! Guru

Joined: Thu Aug 18, 2005 9:12 pm
Posts: 980
Location: UK
Here's where you download it:

http://joomlacode.org/gf/project/userme ... se_id=9043


Top
 Profile  
 
PostPosted: Thu Jan 08, 2009 5:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Mar 13, 2008 11:07 am
Posts: 28
Just wanted to re-quote bennyv's post, as I think this is a very sensible way to get new fields added to the user registration. And it isn't difficult if you know your way round a bit. Others may favour using a plugin. I personally take the approach that if it is a simple fix (core or not) then it can often be worth doing it that way, rather than installing / adding more extensions. But that's just my approach.

bennyv wrote:
This is actually really simple.

open your joomla database in your db manager. I generally do this in "PHPMYADMIN".
From there open the table "jos_users" and then add your additional fields that you require.

Then you go into libraries/joomla/database/table/user.php and declare you variables. So if you added a country field then you declair the varible like so:

var $Country = null;

The next step in the process is editing the actual registration form. This is done by going to components/com_user/views/register/tmpl/default.php.

I don't recomend copying and pasting the current form fields I have ran into issues when i have done that. Also note that everything you edit is case sensitive.

Feel free to PM me if you require additional assistance.

_________________
What would we do without Joomla?


Top
 Profile  
 
PostPosted: Thu Jan 08, 2009 8:38 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Mar 02, 2008 10:55 pm
Posts: 228
UserMeta works great and is still being supported by the author.

It appears that Joomla 1.6 is going to have many of these capabilities by itself so the author is reluctant to do too much, but it works great as it is now if all you need is to add a few fields to the registration.

They are also automatically available in the meta data for all applications, so accessing them from any custom Joomla apps is trivial.

-t


Top
 Profile  
 
PostPosted: Tue Jan 13, 2009 1:35 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 24, 2008 3:25 am
Posts: 25
Hey guys, I used bennyv's example with great success in adding fields to the registration and being able to store the entries in the database. However, I am having problems adding this information to the automated email that the admin receives once a new user has registered.

Can anybody point me in the right direction on how to edit the email that is sent to the admin?


Top
 Profile  
 
PostPosted: Tue Jan 13, 2009 4:01 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Wed Dec 21, 2005 1:56 pm
Posts: 935
Location: Fortaleza-CE
decepticon wrote:
Hey guys, I used bennyv's example with great success in adding fields to the registration and being able to store the entries in the database. However, I am having problems adding this information to the automated email that the admin receives once a new user has registered.

Can anybody point me in the right direction on how to edit the email that is sent to the admin?


Do you like modify a email format or only text?

_________________
overrideMVC - Override Components and Modules for Joomla! http://extensions.joomla.org/extensions/style-a-design/templating/15611


Top
 Profile  
 
PostPosted: Tue Jan 13, 2009 4:07 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 24, 2008 3:25 am
Posts: 25
I have managed to add what I wanted to the email now by editing the \language\en-GB\en-GB.com_user.ini file

the line to edit was SEND_MSG_ADMIN


Top
 Profile  
 
PostPosted: Mon Jan 19, 2009 12:19 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jan 01, 2009 2:28 am
Posts: 40
Location: Brisbane, Australia
Just in case there is anyone still not clear on how to do this without extensions there is a three step process (two files to edit, and one sql command) to add a new field to the registration and JFactory::getUser() object.

I have just finished writing it up, because I would rather not chase this down in forums later on. =)

http://jwarlock.com/tutorials/joomla-tu ... -page.html


Top
 Profile  
 
PostPosted: Wed Feb 04, 2009 12:31 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 03, 2009 10:05 pm
Posts: 5
killer one : )
http://jwarlock.com/tutorials/6-joomla- ... inued.html


Top
 Profile  
 
PostPosted: Wed Feb 04, 2009 12:34 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 03, 2009 10:05 pm
Posts: 5
erdemgerekli wrote:



thanks jwarlock

and also
should we do any arrangements for the search module to make the searches properly with the new field crated.?

appreciate if you tell it


Top
 Profile  
 
PostPosted: Wed Feb 04, 2009 4:30 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jan 01, 2009 2:28 am
Posts: 40
Location: Brisbane, Australia
I overlooked the search module. I'll take a look at it tonight and do a write up on this one too (consider it a part 3 continued).


Top
 Profile  
 
PostPosted: Wed Feb 04, 2009 10:38 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jan 01, 2009 2:28 am
Posts: 40
Location: Brisbane, Australia
Ok for the search function in the administration section:

Open /administrator/components/com_users/views/users/view.html.php (Line 52)

Now if you have added a field called website_url to the database and registration system... add the following to the end of line 52 (but before the ; at the end)

Code:
 OR a.website_url LIKE '.$searchEscaped


So line 52 would something like this:

Code:
$where[] = 'a.username LIKE '.$searchEscaped.' OR a.email LIKE '.$searchEscaped.' OR a.name LIKE '.$searchEscaped." OR a.website_url LIKE '.$searchEscaped;


I haven't tested it yet, but it is a very simple modification of the search fields (just make sure the column in the jos_users table exists otherwise search will fail with MySQL errors)


EDITED::: Please make sure you have an `OR` in the new LIKE search


Last edited by jWarlock on Thu Feb 05, 2009 3:48 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Feb 05, 2009 2:13 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 03, 2009 10:05 pm
Posts: 5
tnx man

ill take a look and let you know the progress master


tnx again.


Top
 Profile  
 
PostPosted: Thu Feb 05, 2009 2:48 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
jWarlock wrote:
Ok for the search function in the administration section:

Open /administrator/components/com_users/views/users/view.html.php (Line 52)

Now if you have added a field called website_url to the database and registration system... add the following to the end of line 52 (but before the ; at the end)

Code:
 OR a.website_url LIKE '.$searchEscaped


So line 52 would something like this:

Code:
$where[] = 'a.username LIKE '.$searchEscaped.' OR a.email LIKE '.$searchEscaped.' OR a.name LIKE '.$searchEscaped." OR a.website_url LIKE '.$searchEscaped;


I haven't tested it yet, but it is a very simple modification of the search fields (just make sure the column in the jos_users table exists otherwise search will fail with MySQL errors)


EDITED::: Please make sure you have an `OR` in the new LIKE search


I would make sure you inform your users that their personal information will be searchable, as well...

Ian


Top
 Profile  
 
PostPosted: Thu Feb 05, 2009 4:25 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 03, 2009 10:05 pm
Posts: 5
hi
what ya mean by "personal information"..exactly?
other then id, user id, email and the new field website_url, ?


thnx.


Top
 Profile  
 
PostPosted: Thu Feb 05, 2009 7:30 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
erdemgerekli wrote:
hi
what ya mean by "personal information"..exactly?
other then id, user id, email and the new field website_url, ?


thnx.

Just saying - think before adding fields to a user search plugin - would users want this information searchable?

Ian


Top
 Profile  
 
PostPosted: Sat Feb 07, 2009 1:50 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jan 01, 2009 2:28 am
Posts: 40
Location: Brisbane, Australia
the search function i posted the modification for is for the administrator section only. I don't think this allows an end user to search for another end user's information.


Top
 Profile  
 
PostPosted: Sat Feb 07, 2009 7:06 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
jWarlock wrote:
the search function i posted the modification for is for the administrator section only. I don't think this allows an end user to search for another end user's information.


Fair enough.

Ian


Top
 Profile  
 
PostPosted: Sat Feb 07, 2009 11:14 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 03, 2009 10:05 pm
Posts: 5
now i c ianmac..
yes agree..
i think you'r absoulutely wright.
------

so
what more modifications should we do to allow an end user to search for another end user's information.?


Top
 Profile  
 
PostPosted: Wed Jun 17, 2009 11:46 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 10, 2009 5:56 pm
Posts: 3
Hi,

I've managed to add a custom field. Thanks to everyone here.

However, I need to add some additional checks to this newly added field. Where can I do it?

For example:
- I added a field called "class_id"
- And created a new table to store a list of valid "class_id"s
- Now, I need to check during registration if this is a valid class_id.

Please help... Thanks.


Top
 Profile  
 
PostPosted: Tue Jun 23, 2009 4:41 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Dec 01, 2008 8:40 pm
Posts: 23
Hi bennyv. I followed your steps and it worked fine. But I stumbled into editing the USER DETAILS under user management. I managed to add another field say "website url" in the registration form in the front end and in the db but I couldnt get it to show on the user details.

I already added a field on components/com_user/views/user/tmpl/form.php but still wont show my added field. Any advice?

***** Manual signatures are NOT allowed *****
bennyv wrote:
This is actually really simple.

open your joomla database in your db manager. I generally do this in "PHPMYADMIN".
From there open the table "jos_users" and then add your additional fields that you require.

Then you go into libraries/joomla/database/table/user.php and declare you variables. So if you added a country field then you declair the varible like so:

var $Country = null;

The next step in the process is editing the actual registration form. This is done by going to components/com_user/views/register/tmpl/default.php.

I don't recomend copying and pasting the current form fields I have ran into issues when i have done that. Also note that everything you edit is case sensitive.

Feel free to PM me if you require additional assistance.


Top
 Profile  
 
PostPosted: Tue Jun 30, 2009 5:17 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Jun 30, 2009 5:07 pm
Posts: 1
Try This,

http://www.dart-creations.com/joomla/jo ... -page.html


Top
 Profile  
 
PostPosted: Wed Jul 22, 2009 11:00 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Apr 16, 2009 4:50 pm
Posts: 11
Location: India
bennyv wrote:
This is actually really simple.

open your joomla database in your db manager. I generally do this in "PHPMYADMIN".
From there open the table "jos_users" and then add your additional fields that you require.

Then you go into libraries/joomla/database/table/user.php and declare you variables. So if you added a country field then you declair the varible like so:

var $Country = null;

The next step in the process is editing the actual registration form. This is done by going to components/com_user/views/register/tmpl/default.php.

I don't recomend copying and pasting the current form fields I have ran into issues when i have done that. Also note that everything you edit is case sensitive.

Feel free to PM me if you require additional assistance.




tnx man!!!! worked for me


Top
 Profile  
 
PostPosted: Sat Aug 15, 2009 11:38 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Mar 27, 2009 9:36 pm
Posts: 10
Hi all,

Thanks for the great info in this post. I've used bennyv's solution and it worked perfectly using a textbox. However, I need to add a number of checkboxes so that users can opt in to various methods of communication. I added the code below to the user registration form
/public_html/components/com_user/views/register/tmpl/default.php

and the user detail form
/components/com_user/views/user/tmpl/form.php

Code:
<tr>
   <td>
      <label id="namemsg" for="commPost">
         <?php echo 'Post'; ?>:
      </label>
   </td>
     <td>
        <input type="checkbox" name="commPost" id="commPost" value="1" <?php if($this->user->get( 'commPost' ) == 1){ echo "checked";} ?> /> *
     </td>
</tr>


The registration works perfectly with the results of all checkboxes stored correctly. In the user detail form though, if the user unchecks checkboxes that were previously checked they are not updated – they stay checked forever (checking unchecked boxes works).

I think the problem is that checkbox values are submitted with the form but if a checkbox is unchecked nothing is submitted for that checkbox and so nothing is updated. I suspect that I need to make some change to the 'store' function in /libraries/joomla/database/table/user.php but I don't know what– can someone help please.


Top
 Profile  
 
PostPosted: Fri Sep 25, 2009 1:28 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Sep 14, 2009 7:32 am
Posts: 3
bennyv wrote:
This is actually really simple.

open your joomla database in your db manager. I generally do this in "PHPMYADMIN".
From there open the table "jos_users" and then add your additional fields that you require.

Then you go into libraries/joomla/database/table/user.php and declare you variables. So if you added a country field then you declair the varible like so:

var $Country = null;

The next step in the process is editing the actual registration form. This is done by going to components/com_user/views/register/tmpl/default.php.

I don't recomend copying and pasting the current form fields I have ran into issues when i have done that. Also note that everything you edit is case sensitive.

Feel free to PM me if you require additional assistance.




I have tried the above to add fields to my user registration, but it doesn't seem to show up on the user registration page...... what else is there to do to make it show up......


Top
 Profile  
 
PostPosted: Wed Sep 30, 2009 2:46 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 29, 2007 3:26 am
Posts: 16
I would love to try this out but all i get is "Permission Denied" if someone can post a reliable link to download i would be grateful.


Top
 Profile  
 
PostPosted: Fri Nov 06, 2009 7:49 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Nov 06, 2009 7:44 am
Posts: 1
Location: hong kong
kudos to bennyv's solution, worked great!

I had to edit 2 other files for the extra fields to be view/editable in the back-end user management:
/administrator/components/com_users/views/user/tmpl/form.php - for individual user edit and
/administrator/components/com_users/views/users/tmpl/default.php - for the list of users

Thanks a bunch!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 97 posts ]  Go to page Previous  1, 2, 3, 4  Next



Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group