The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Style / Template / Replacement Hack For Moderators Details »» | |||||||||||||||||||||||||||
Style / Template / Replacement Hack For Moderators
Developer Last Online: Jun 2006
Alright, I've finally finished working on this darn thing and ready for a beta release!
This hack impliments the Style, Template, and Replacement hack into one hack since it was the best way to work on it and easy to setup. Please read the readme file before you install it. For the style part, view this thread for screenshots For the template part, view this thread for screenshots For the replacement part, view this thread for screenshots Also remember: It's a beta. There will probably be bugs I haven't found. -------------------------- SECURITY FIX IF YOU USE XENON'S "MODS CAN EDIT USERS" (https://vborg.vbsupport.ru/showthrea...threadid=42096) Security fix by me, thanks to Xenon for pointing out where to edit the code -------------------------- 1. Open user.php in your forums/mod/ folder 2. Find the following: -------------------------- Code:
if($canedit[profilefields]) { maketableheader("Custom Profile Fields"); $userfield=$DB_site->query_first("SELECT * FROM userfield WHERE userid=$userid"); $profilefields=$DB_site->query("SELECT profilefieldid,title FROM profilefield"); while ($profilefield=$DB_site->fetch_array($profilefields)) { $varname="field$profilefield[profilefieldid]"; makeinputcode($profilefield[title],"field".$profilefield[profilefieldid],$userfield[$varname]); } } Replace it with: --------------------------- Code:
if($canedit[profilefields]) { maketableheader("Custom Profile Fields"); $userfield=$DB_site->query_first("SELECT * FROM userfield WHERE userid=$userid"); $profilefields=$DB_site->query("SELECT profilefieldid,title FROM profilefield"); while ($profilefield=$DB_site->fetch_array($profilefields)) { $varname="field$profilefield[profilefieldid]"; if ($varname != "field999") if ($varname != "field998") if ($varname != "field997") makeinputcode($profilefield[title],"field".$profilefield[profilefieldid],$userfield[$varname]); } } Find: --------------------------- Code:
if($canedit[profilefields]) { $profilefields=$DB_site->query("SELECT profilefieldid,title FROM profilefield"); while ($profilefield=$DB_site->fetch_array($profilefields)) { $varname="field$profilefield[profilefieldid]"; $sql.=",field$profilefield[profilefieldid]='".addslashes($$varname)."'"; } $DB_site->query("UPDATE userfield SET userid=$userid$sql WHERE userid=$userid"); } Replace it with: Code:
if($canedit[profilefields]) { $profilefields=$DB_site->query("SELECT profilefieldid,title FROM profilefield"); while ($profilefield=$DB_site->fetch_array($profilefields)) { $varname="field$profilefield[profilefieldid]"; if ($varname != "field999") if ($varname != "field998") if ($varname != "field997") $sql.=",field$profilefield[profilefieldid]='".addslashes($$varname)."'"; } $DB_site->query("UPDATE userfield SET userid=$userid$sql WHERE userid=$userid"); } That's it, your forums are now secure from moderators breaking your security! ----------------------------- Now...onto the download... Oh, and if you use it, please click install! Show Your Support
|
Comments |
#2
|
||||
|
||||
nice to see these coming together... good work
You have a PM from me btw - miSt |
#3
|
||||
|
||||
Thanks
And I replied to your PM |
#4
|
|||
|
|||
I posted a link to this thread in all the others, just in case they go to those instead of this one
|
#5
|
||||
|
||||
heh, I had already posted an edit in those threads about this one
|
#6
|
|||
|
|||
Darn =(
|
#7
|
||||
|
||||
rofl, very very useless for me, but nice for some ppl, if i wanted mods to edit templates, why wouldn't I make them admins? lol
|
#8
|
||||
|
||||
Because you wouldn't want them to be able to mass delete parts of your database or let them edit forums and users - obviously. Before you try belittling the hard work of a hacker, try rubbing those two brain cells together and think for a moment. Great work on this hack, this is exactly what my hosted forums on GamerForums need.
|
#9
|
||||
|
||||
OK, first bug... Once installed, clicking "Edit Forum Style" causes the browser to attempt to connect to a secure area of stardust-one.net.
|
#10
|
||||
|
||||
haha crap sorry about that, I forgot to change the redirect crap
*goes to update* |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|