phpNuke does provide something like that, though it may not be obvious
The field in Your_Account
Code:
Real Name:
It can be used as the displayed name. Unfortunately it isn't used too much. Most of phpNuke would use the username, you would have to find the all the code that references the username and replace it with data from the Real Name field
I believe we're all guilty of that from time to time. =)
Back to topic:
I took some baby steps and managed to get the realname to display in the $theuser within the header! I'm rather proud of myself =) But as the saying goes, "Give me a foot and I'll want a yard.".
I think I'll want to keep the real name field intact and continue to try and call from a new field within the _user tables so I'm going to try playing with it some more. I'll post back if I get stuck somewhere.
Ok added the field and gotten it to display inside the your_account index. Got a question though. I plan to make it and the realname to only be editiable via initial registration and admin. So i did them like the username under the edituser()
I ran into a snag when tring to add the fields to the new_user()
I'm pretty sure I added everything right to the index.php file for the your_account module, which obviously I didn't. Anyways with the custom fields added I get "module file not found error" when clicking new user.
I don't know what I screwed up. If anyone wouldn't mind checking it and offer some pointers as to what I did wrong, I'd be appreciative.
displayname for quick referrence.
Only registered users can see links on this board! Get registered or login to the forums!
Joined: Sep 23, 2003 Posts: 460 Location: Somewhere out there...
Posted:
Fri May 09, 2008 7:55 am
Input type defines the type of input in your form - if it is 'hidden', it means that it isn't seen in the form vs. if it is 'text' where it is a text box entry.
If you have the input type defined already above the submit as a text field, you can populate the text field with a default value from the database by adding a value clause.
I usually use hidden when I want to pass things that the user ordinarily would not see, such as the user id, or in some instances username (if they are not actually changing that).
There are some good examples of other input variable types at
Only registered users can see links on this board! Get registered or login to the forums!
Joined: Sep 23, 2003 Posts: 460 Location: Somewhere out there...
Posted:
Fri May 09, 2008 8:00 am
What does the submission string look like? In looking at your text file, I notice one thing that might cause an issue - though I haven't tested it out on my end.
When using the case statement, you have a case 'new user' - I would suggest NOT using spaces in your cases - make it something like case 'new_user' as I am not sure how that submit string sends the submit value for a space. (This may not be an issue at all if the browser interprets a submission like new%20user and the code handles it.)
EDIT - just noticed there is already a new_user in there. . . lol so this is probably not where your issue is. . .
Line 1116
.'<tr><td bgcolor="'.$bgcolor2.'"><b>'._USRDISPNAME.'</b>:</td><td bgcolor="'.$bgcolor3.'"><b>'.$userinfo['displayname'].'</b></td></tr>'
.'<tr><td bgcolor="'.$bgcolor2.'"><b>'._UREALNAME.'</b>:</td><td bgcolor="'.$bgcolor3.'"><b>'.$userinfo['name'].'</b></td></tr>'
Theres 3 more lines I edited but they're only display names for the comments, submissions, & membership so I didn't add them to the list. As for anything outside of those mention, its the standard rn2.10 index.php.
View next topic View previous topic
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 vote in polls in this forum