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 |
#12
|
||||
|
||||
Ok if you already have it installed, open up style.php in your mod folder and find:
Code:
location.replace(\"http://www.stardust-one.net/forums/mod/style.php?s=$session[sessionhash]&action=styles&dostyleid=$bbuserinfo[field998]\"); Code:
location.replace(\"style.php?s=$session[sessionhash]&action=styles&dostyleid=$bbuserinfo[field998]\"); Code:
alert(\"You are not authorized to view this area\") location.replace(\"http://www.stardust-one.net/forums/mod/\"); Code:
alert(\"You are not authorized to view this area\") location.replace(\"index.php?s=&action=home\"); Code:
alert(\"You are not authorized to view this area\") location.replace(\"http://www.stardust-one.net/forums/mod/index.php?s=&action=home\"); Code:
alert(\"You are not authorized to view this area\") location.replace(\"index.php?s=&action=home\"); |
#13
|
||||
|
||||
Zip file updated. Removed vbHacker file because that takes a little longer to update
|
#14
|
||||
|
||||
I found another flaw. If you use Xenon's "Mods Can Edit Users" hack and then use my fix above, when a Mod edits his or her profile through the system, it erases the information in the fields that were hidden. I guess Xenon was correct about the fix and I think he posted his ideas in another thread so I'll go look and see what I can do.
If you don't use that hack, then no changes for you. |
#15
|
||||
|
||||
Flaw fixed, main post updated. Thanks Xenon for pointing out what code should be edited.
|
#16
|
||||
|
||||
Good work dude, I can't see any other problems in the hack so far!
|
#17
|
||||
|
||||
Well I found a security flaw, so I need to go in and fix it. It's a really really small flaw but might as well fix it.
|
#18
|
|||
|
|||
Of course you need to fix it =P
|
#19
|
||||
|
||||
Go away little man litte Tyro Hacker
|
#20
|
||||
|
||||
Have you fixed the flaw? I'd like to update my install.
|
#21
|
|||
|
|||
That's it. I'm going to release a hack just to spite you.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|