Gutspiller
10-19-2001, 03:16 AM
So that if somebody wants to change their name they can have one of my mods help them, and not bother me. They can see all the settings, they just need a submit button to save the changes they make. Does anybody know if there is a hack out there like this, or could somebody make one? It would really lower admin loads. :(
Thanks for any help you can provide.
Xenon
10-19-2001, 04:03 PM
i have made this, for my mods too.
also now they can edit sigs and userhps.
but i'm not allowed to post full files, so i have tu search my changes in the files ;)
Xenon
10-19-2001, 04:11 PM
ok, here it is, but im taking no garantee if i have forgotten a piece of code ;)
open mod/user.php
search
$user=$DB_site->query_first("SELECT userid,usergroupid,username,password,email,parente mail,coppauser,homepage,icq,aim,yahoo,signature,ad minemail,showemail,invisible,usertitle,customtitle ,FROM_UNIXTIME(joindate) AS joindate,cookieuser,daysprune,FROM_UNIXTIME(lastvi sit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,posts,timezoneoffset,emailnotification,em ailonpm,receivepm,ipaddress FROM user WHERE userid=$userid");
doformheader("user","");
after Start viewuser
replace it with
$user=$DB_site->query_first("SELECT userid,usergroupid,username,password,email,parente mail,coppauser,homepage,icq,aim,yahoo,signature,ad minemail,showemail,invisible,usertitle,customtitle ,FROM_UNIXTIME(joindate) AS joindate,cookieuser,daysprune,FROM_UNIXTIME(lastvi sit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,posts,timezoneoffset,emailnotification,em ailonpm,receivepm,ipaddress FROM user WHERE userid=$userid");
if ($user[usergroupid]!=2) {
echo "<p>You do not have permission to do this!</p>";
exit;
}
doformheader("user","doupdate");
makehiddencode("userid","$userid");
then goto this two lines:
echo "</table></td></tr></table></form>\n";
}
and replace them with
doformfooter("Save Changes");
//echo "</table></td></tr></table></form>\n";
}
// ###################### Start do update Hack by Xenon#######################
if ($HTTP_POST_VARS['action']=="doupdate") {
$DB_site->query("UPDATE user SET username='".addslashes(htmlspecialchars($ausername))."'$pwdinclude,homepage='".addslashes(htmlspecialchars($homepage))."',signature='".addslashes($signature)."' WHERE userid=$userid");
echo "<p>Record updated!</p>";
}
in doupdate you could allow more changes if you want to.
hope i could help :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.