The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mods can edit users
https://vborg.vbsupport.ru/showthrea...threadid=42096
i installed this hack ! but for editinng user post counts Xenon Said me "you have to add an inputfield for the postcount and edit the updating sql query if you want your mods to be able to edit users posts counts" how to do it? :dead: plz explaine me ! https://vborg.vbsupport.ru/showthrea...715#post393715 |
#2
|
||||
|
||||
Open mod/user.php:
Find: Code:
$canedit[name]=1; Code:
$canedit[postcount]=1; Code:
if($canedit[signature]) maketextareacode("Signature","signature",$user[signature],8,45); Code:
if($canedit[postcount]) makeinputcode("Number of Posts","posts",$user[posts]); Code:
if($canedit[password] and $apassword!="") { $pwsql = ",password='".addslashes(md5($apassword))."'"; } else { $pwsql = ""; } Code:
if($canedit[postcount]) { $postsql = ",posts='$posts'; } else { $postsql = ""; } Code:
$DB_site->query("UPDATE user SET userid=$userid".$pwsql.$titlesql.$optionsql.$sigsql.$namesql.$timefieldsql.$adrsql.$groupsql." WHERE userid=$userid"); Code:
$DB_site->query("UPDATE user SET userid=$userid".$pwsql.$postsql.$titlesql.$optionsql.$sigsql.$namesql.$timefieldsql.$adrsql.$groupsql." WHERE userid=$userid"); Satan |
#3
|
|||
|
|||
Parse error: parse error in /home/httpd/vhosts/localhost/httpdocs/forum/mod/user.php on line 472
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|