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
XtraX
Hangin' Around



Joined: Nov 03, 2004
Posts: 43

PostPosted: Wed Mar 15, 2006 3:02 pm Reply with quote

I've noticed in edit users the extra info TEXT AREA isn't there to edit a users information.

I located the 2 files modifyuser.php and modifyuserconf.php..

I added this to modifyuser.php and it displays their extra info now

Code:
    echo "<tr><td bgcolor='$bgcolor2' valign='top'>"._USERSBIO." :</td><td><textarea name='chng_user_bio' rows='6' cols='45'>".$chnginfo['bio']."</textarea></td></tr>\n";


then I changed the following lines in modifyuserconfig.php to save the changes but its not working;

Code:
 $chng_user_bio = ya_fixtext($chng_bio);


Code:
   if ($stop == "") {

        if ($chng_pass != "") {
            $cpass = md5($chng_pass);
            $db->sql_query("UPDATE ".$user_prefix."_users SET username='$chng_uname', name='$chng_name', user_email='$chng_email', femail='$chng_femail', user_website='$chng_url', user_icq='$chng_user_icq', user_aim='$chng_user_aim', user_yim='$chng_user_yim', user_msnm='$chng_user_msnm', user_from='$chng_user_from', user_occ='$chng_user_occ', user_interests='$chng_user_interests', user_viewemail='$chng_user_viewemail', user_avatar='$chng_avatar', user_sig='$chng_user_sig', user_bio='$chng_bio', user_password='$cpass', newsletter='$chng_newsletter' WHERE user_id='$chng_uid'");
            if ($Version_Num > 6.9) { $db->sql_query("UPDATE ".$user_prefix."_users SET points='$chng_points' WHERE user_id='$chng_uid'"); }
        } else {
            $db->sql_query("UPDATE ".$user_prefix."_users SET username='$chng_uname', name='$chng_name', user_email='$chng_email', femail='$chng_femail', user_website='$chng_url', user_icq='$chng_user_icq', user_aim='$chng_user_aim', user_yim='$chng_user_yim', user_msnm='$chng_user_msnm', user_from='$chng_user_from', user_occ='$chng_user_occ', user_interests='$chng_user_interests', user_viewemail='$chng_user_viewemail', user_avatar='$chng_avatar', user_sig='$chng_user_sig', user_bio='$chng_bio', newsletter='$chng_newsletter' WHERE user_id='$chng_uid'");
            if ($Version_Num > 6.9) { $db->sql_query("UPDATE ".$user_prefix."_users SET points='$chng_points' WHERE user_id='$chng_uid'"); }
        }


Did i miss something or what am I doing wrong...?

We have users abusing this text are and as admin we need to be able to modify their extra info.. any help would be appreciated..

xtrax Sad
 
View user's profile Send private message
XtraX







PostPosted: Wed Mar 15, 2006 5:40 pm Reply with quote

Never mind peeps I figured it out finally all on my own,

thanks anyway

xtrax
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Mar 15, 2006 7:36 pm Reply with quote

Glad you got it working! I personally learn alot more by trying to figure things out on my own. Good job!

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Wed Mar 15, 2006 8:35 pm Reply with quote

Why not post your solution in case others have the same question? It sounds like a good idea...

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
XtraX







PostPosted: Wed Mar 15, 2006 8:54 pm Reply with quote

Oops sorry about that ,

Open up modifyuser.php in the admin folder and fine 'chng_user_signature' then on a new line add this


Code:
 echo "<tr><td bgcolor='$bgcolor2' valign='top'>"._USERSBIO." :</td><td><textarea name='chng_user_bio' rows='6' cols='45'>".$chnginfo['bio']."</textarea></td></tr>\n";


Then in modifyuserconf.php you need to find this line

Code:
if ($Version_Num > 6.9) { $db->sql_query("UPDATE ".$user_prefix."_users SET points='$chng_points' WHERE user_id='$chng_uid'"); }


On a new line add this

Code:
if ($Version_Num > 6.9) { $db->sql_query("UPDATE ".$user_prefix."_users SET bio='$chng_bio' WHERE user_id='$chng_uid'"); }


Now there is 2 lines so it wouldnt hurt to add the above line again on a new line under the $Version_Num

I hope this helps some one out, have fun!

xtrax
 
kguske







PostPosted: Wed Mar 15, 2006 8:59 pm Reply with quote

Thanks! The developer checks in here from time to time - hopefully he'll take a look at this.
 
XtraX







PostPosted: Thu Mar 16, 2006 3:01 pm Reply with quote

No problem, I'm just glad I was able to offer something back for once, but like I have said in the past its a learning curve.

xtrax Very Happy
 
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 ©