Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
Sebek
New Member
New Member



Joined: Aug 11, 2004
Posts: 3

PostPosted: Fri Dec 17, 2004 7:59 pm Reply with quote

hello
i'm using cnbya 4.4.0 b2....
i would like to erase the REAL NAME option in registration form....

how can i do this??

thanks
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sat Dec 18, 2004 10:33 am Reply with quote

The easiest way would be to remove the field from the form and pass it as a null value in a hidden form field rather then edit every file where userinfo is saved.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
Sebek







PostPosted: Sat Dec 18, 2004 1:56 pm Reply with quote

i'm new in phpnuke...so if you could be more specific what to do?

i think i have to erase a line in user_new1(2)(3).php ...??

the reg. form does not show up real name field....but the users can't reg. because i need to erase this filed for db too?
where is it?

thanks
 
sixonetonoffun







PostPosted: Sun Dec 19, 2004 11:10 am Reply with quote

Its in new_finish1(2)(3).php but that is why just editing the form to send it as a null value would be easier then editting all those insert statements.
In those same files you'll see:
echo "<input type='hidden' name='ya_realname' value=\"$ya_realname\">\n";
Change it to:
echo "<input type='hidden' name='ya_realname' value=\"NULL\">\n";

Then in public/userinfo.php find:
echo "<tr>\n<td width='40%' bgcolor='$bgcolor1'>"._REALNAME."</td>\n<td width='70%' bgcolor='$bgcolor1'><b>$usrinfo[name]</b></td>\n</tr>\n";

and comment it out or change it to
if( $usrinfo['name'] !== 'NULL') { echo "<tr>\n<td width='40%' bgcolor='$bgcolor1'>"._REALNAME."</td>\n<td width='70%' bgcolor='$bgcolor1'><b>$usrinfo[name]</b></td>\n</tr>\n";}
 
Sebek







PostPosted: Sun Dec 19, 2004 3:30 pm Reply with quote

thanks very much
 
menelaos61
Worker
Worker



Joined: Nov 10, 2004
Posts: 110

PostPosted: Tue Dec 21, 2004 6:40 am Reply with quote

Hi Sebek,
I agree with you that it should be possible to ommit the realname field in the user registration. We'll include it in the admin config panel of our next release.

Cheers,
Richard
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©