View Full Version : The coolest hack EVER
filburt1
06-12-2002, 09:38 PM
If an admin sticks a thread, then only another admin can unstick it. Or if a smod sticks a thread, then only an admin or another smod can unstick it. If a mod sticks a thread then any other mod of that forum, smod, or admin can unstick it.
Get it?
its not that cool but it would be ok
filburt1
06-12-2002, 09:57 PM
Well it's too hard for Chen anyway so I might as well forget it...
Xenon
06-13-2002, 11:29 AM
i think its possible and not as hard as you mean, but you have to create an extra dbfield just to remember who has stuk the thread, and i don't think it's worth to do...
just say your people, not to unstuck thread stucked by others ;)
filburt1
06-13-2002, 12:22 PM
My supermods can be a bit confrontational ;)
Xenon
06-13-2002, 12:38 PM
you're the admin, so you're the chief :)
but if you need it, i'll try to code it :)
Chris M
06-15-2002, 11:55 AM
Yes please...
This would be good!
Satan
Xenon
06-16-2002, 05:15 PM
ok, add a ne field to your thread table called acclevel, should be a small integer default 0
then edit postings.php:
section stick/unstick threads:
find
if (!ismoderator($threadinfo[forumid],"canmanagethreads")) {
show_nopermission();
}
below add:
if($threadinfo[acclevel]==2 && $bbuserinfo[usergroupid]!=6) {
show_nopermission();
}
if($threadinfo[acclevel]==1 && ($bbuserinfo[usergroupid]!=6 && $bbuserinfo[usergroupid]!=5)) {
show_nopermission();
}
switch($bbuserinfo[usergroupid]) {
case 5: $acclevel=1;
break;
case 6: $acclevel=2;
break;
default: $acclevel=0;
}
then replace
$DB_site->query("UPDATE thread SET sticky=$threadinfo[sticky],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'");
with
[php]
$DB_site->query("UPDATE thread SET acclevel=$acclevel,sticky=$threadinfo[sticky],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'");
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.