Log in

View Full Version : Disabling purge menu in modcp


swehack
01-04-2006, 05:57 PM
i'd like to disable the last menu in the modcp, the one where you can purge multiple threads at once, if possible i'd like to disable the functions completly with a php code modification but i think it's enough to just disable the menu

Zachery
01-04-2006, 06:11 PM
edit the modcp index.php file and remove the link.

swehack
01-07-2006, 02:03 PM
actually i was thinking of a solution that would not require rebuilding each upgrade, i found time out of my day to take a look at vBulletin and found something called BITFIELDS that are used to define permissions, i also find mysterious numbers in the moderator table of the database that could be definitions for permissions using these bitfields, i found the xml file includes/xml/bitfield_vbulletin.xml which defines the two bitfields i want to change, on lines 130 and 131

<bitfield name="canmassmove">256</bitfield>
<bitfield name="canmassprune">512</bitfield>

these are really the only permissions i want to remove from my moderators but i'm afraid i don't have time to go through vbulletin code and figure out how the bitfields are calculated so thats why i thought i'd ask here where there obviously are a few vbulletin hackers with the experience i need

edit: i have read the information on this link http://www.vbulletin.com/docs/html/main/bitfield_xml but it does not mention how the bitfields are calculated or how i can recalculate them in order to change the bitfield permissions in the database

Zachery
01-09-2006, 06:30 AM
actually i was thinking of a solution that would not require rebuilding each upgrade, i found time out of my day to take a look at vBulletin and found something called BITFIELDS that are used to define permissions, i also find mysterious numbers in the moderator table of the database that could be definitions for permissions using these bitfields, i found the xml file includes/xml/bitfield_vbulletin.xml which defines the two bitfields i want to change, on lines 130 and 131

<bitfield name="canmassmove">256</bitfield>
<bitfield name="canmassprune">512</bitfield>

these are really the only permissions i want to remove from my moderators but i'm afraid i don't have time to go through vbulletin code and figure out how the bitfields are calculated so thats why i thought i'd ask here where there obviously are a few vbulletin hackers with the experience i need

edit: i have read the information on this link http://www.vbulletin.com/docs/html/main/bitfield_xml but it does not mention how the bitfields are calculated or how i can recalculate them in order to change the bitfield permissions in the database

a 2 second hack here gets the job done, modcp files are rarely updated.

Also believe that the permissions for these go hand and hand with deleting in the forums.