UBB.Dev
Posted By: smilesforu Beta-[6.4] Mod powers - 11/28/2003 1:36 PM
Mod Name / Version: Mod powers

Description: This mod uses some of the previous modificationss like IP search and mail user passwords. I wanted to give my mods more power to help but with out giving them the ability to mess with the forum setups or personal spying.
Simple to do but previous hacks are really nice features to give your mods to help track down trolls. This is my first go at one of these and can see my documenting skills are suspect.

I have heavily hacked my board so hope this makes some sense, but it is just using some of the tools we have already in a different loops and renaming code.

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites: Showip and mail password and private moderation

Author(s): Smilesforu

Date: 11/28/03

Credits: astran for ip hack, rick baker for threads, Josh for private moderation ,Lisa P for the extended edit format, Chuck and gang for all the help stumbling along with my others hack installs.

Files Altered: admin/menu.php,doshowpostip.php,selectoption.php,selectusers.php,showpostip.php,showusers.php ,moderatuser.php, unmoderatuser.php

New Files: doshowpostipmod.php, selectoptionmod.php, selectusersmod.php, showpostipmod.php, showusersmod.php

Database Altered: no

Info/Instructions: This basically copies previous files, renames them and uses a separate loop to redirect mods to their own set of search and help tools page.

In the menu you will need a link for the mods to search users so we need to add a link.

### in admin/menu find
EOF;
if ($config['modedit']) {
echo <<<EOF
<a href="{$config['phpurl']}/admin/selectusers.php?Cat=$Cat" target="mainFrame">
{$ubbt_lang['SHOWUSERS']}
</a>
<br>
EOF;
}
echo <<<EOF


#####After it put

<a href="{$config['phpurl']}/admin/selectusersmod.php?Cat=$Cat" target="mainFrame">
{$ubbt_lang['SHOWUSERS']}
</a>
<br>
<a href='{$config['phpurl']}/admin/showpostipmod.php?Cat=$Cat' target='mainFrame'>Search post IPs</a>
<br>

I added a zip of the files I modified and a copy of my menu which has some other mods but should work.


Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
100661-modpowers.zip  (31 downloads)
Posted By: smilesforu Re: Beta-[6.4] Mod powers - 11/28/2003 1:37 PM
Here is astran ip search mod you will need for this.

https://www.ubbdev.com/forum/showflat...5/o/all/fpart/1
Posted By: smilesforu Re: Beta-[6.4] Mod powers - 12/06/2003 5:47 PM
deleted
Posted By: smilesforu Re: Beta-[6.4] Mod powers - 12/09/2003 2:33 PM
This is the code I used to swap the powers so mods could use some of the tools.
## edit.. this shouldn't be needed since I uploaded the files in the zip##

// ---------------------------------
// Make sure they are should be here
if ( ($user['U_Status'] != 'Administrator') && ($user['U_Status'] != "Moderator") ) {
$html -> not_right ("You must be logged in, and be a valid administrator or moderator to access this.",$Cat);
}

this is the code needed to allow mods to use private moderation.. I still need to integrate and test. But this should do it.
Posted By: smilesforu Re: Beta-[6.4] Mod powers - 12/09/2003 3:51 PM
Okie dokie I got this working properly in 6.4 so my moderators can stop spammers when I am away and help users of the site with out being able to mess with forums setups and groups.

Posted By: smilesforu Re: Beta-[6.4] Mod powers - 12/13/2003 1:29 PM
zip uploaded of the new files. Hope you can use it, sure has helped my mods with the needed stuff.
Posted By: smilesforu Re: Beta-[6.4] Mod powers - 12/17/2003 10:02 PM
Anybody else put this to the test so I can move it to finished mode? Its working great on my site.
Posted By: Gardener Re: Beta-[6.4] Mod powers - 12/18/2003 1:24 AM
Sorry, haven't had time to check it. Anyone else?
© UBB.Developers