[BETA] Sexy Administration Index

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Saeru wrote: Looks very nice...

But I use my own Admin Notepad.. that has a listing for privet use, plus one that can be seen by all admin/mods ^^;;


This MOD has excactly that. A private and a Public notepad ;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
Saeru
Registered User
Posts: 622
Joined: Sun Feb 19, 2006 5:44 am
Location: Under a pile of PHP code.
Contact:

Post by Saeru »

I only see the one in the screen shots and it's not listed to be public, viewable to all admen and mods.. or if it's privet.

all the notepad mods I found were restrictive to Admin only..

I had to sort mine out to also be viewed to Moderators as well.
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Aaah, well the "public" one is visible for all admins only...
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
Saeru
Registered User
Posts: 622
Joined: Sun Feb 19, 2006 5:44 am
Location: Under a pile of PHP code.
Contact:

Post by Saeru »

eviL<3 wrote: Aaah, well the "public" one is visible for all admins only...


Thats the issue with my forum. I'm the ONLY admin..

So I had to make one that is also vewed by Mods as well. So my mods can post what they have done and reports on troublesum users, and all other mods plus myself as admin get to see it, and ad out own to it.. Plus a privet one to keep our own notes. It worked out nice, and my mods love it.
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]
User avatar
Kalipo
Registered User
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Post by Kalipo »

Very very nice!

One request though, could you add an option under users that will display the number of Trolls as well as a dropdown of their names?

If not part of the MOD itself, perhaps contrib?
kkroo
Registered User
Posts: 729
Joined: Sat Dec 03, 2005 4:49 pm
Contact:

Post by kkroo »

Here it is:

Code: Select all

################################################################################
## MOD Title: Add MOD troll to Sexy Administration Index
## MOD Author: kkroo < princeomz2004@hotmail.com > (Omar Ramadan) http://phpbb-login.sourceforge.net
## MOD Description: This MOD will add statistics from the mod MOD troll to the new index page
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: 1 Minutes
## Files To Edit:
##      admin/index.php,
##      templates/subSilver/admin/sai_index_body.tpl
## Included Files:
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
################################################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
################################################################################
## Author Notes:
##
## Requires MOD Troll and Sexy Administration Index already installed to work
##
##############################################################
## MOD History:
##
##   2006-06-15 - Version 1.0.0
##      - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

admin/index.php

#
#-----[ FIND ]------------------------------------------
#

        //START MOD troll
        $total_trolls = 0;
        $troll_names = '';
        $sql = "SELECT username
                FROM " . USERS_TABLE . "
                WHERE user_troll = 1
                        AND user_id <> " . ANONYMOUS . "
                ORDER BY username";
        if ( !($result = $db->sql_query($sql)) )
        {
                message_die(GENERAL_ERROR, "Couldn't get statistic data.", "", __LINE__, __FILE__, $sql);
        }
                while ( $row = $db->sql_fetchrow($result) )
        {
                $troll_names .= (($troll_names == '') ? '' : ', ') . $row['username'];
                $total_trolls++;
        }
        //END MOD troll

#
#-----[ REPLACE WITH ]------------------------------------------
#
        //START MOD troll modified by kkroo
        $troll_data = array();
        $sql = "SELECT username, user_id
                FROM " . USERS_TABLE . "
                WHERE user_troll = 1
                        AND user_id <> " . ANONYMOUS . "
                ORDER BY username";
        if ( !($result = $db->sql_query($sql)) )
        {
                message_die(GENERAL_ERROR, "Couldn't get statistic data.", "", __LINE__, __FILE__, $sql);
        }
                while ( $row = $db->sql_fetchrow($result) )
        {
                $troll_data[] = $row;
        }
		$sai->assign_switchs(array(
			'list_trolls' => sizeof($troll_data)
			));
			
        //END MOD troll modified by kkroo
		
#
#-----[ FIND ]------------------------------------------
#

                //START MOD troll
                "NUMBER_OF_TROLLS" => $total_trolls,
                "NAMES_OF_TROLLS" => htmlspecialchars($troll_names),
                //END MOD troll

#
#-----[ REPLACE WITH ]------------------------------------------
#

                //START MOD troll modified by kkroo
                "NUMBER_OF_TROLLS" => sizeof($troll_data),
                "NAMES_OF_TROLLS" => $sai->display_users($troll_data),
                //END MOD troll modified by kkroo
				
#
#-----[ OPEN ]------------------------------------------
#

language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#

// Troll MOD
$lang['User_troll'] = 'Make user a Troll';

$lang['Troll_info'] = 'Troll Information';
$lang['Numberof_Trolls'] = 'Number of Trolls';
$lang['Troll_users'] = 'Names of Trolls';

#
#-----[ REPLACE WITH ]------------------------------------------
#

// Troll MOD
$lang['User_troll'] = 'Make user a Troll';

$lang['Troll_info'] = 'Total Trolls';
$lang['Troll_users'] = 'List of Trolls';


#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/admin/sai_index_body.tpl

#
#-----[ FIND ]------------------------------------------
#

	<td class="row2"><b>{LIST_INACTIVE}</b></td>
  </tr>
  <tr>
  <!-- END switch_list_inactive -->

#
#-----[ REPLACE WITH ]------------------------------------------
#

  <tr>
  	<td class="row1" nowrap="nowrap">{L_TROLL_INFO}:</td>
	<td class="row2">
		<b>{NUMBER_OF_TROLLS}</b>
		<!-- BEGIN switch_list_trolls -->
		<span class="gensmall">[ <a class="gensmall" onClick="objSwitch('list_trolls')" href="#">{L_LIST}</a> ]</span>
		<!-- END switch_list_trolls -->
	</td>
  </tr>
  	<!-- BEGIN switch_list_trolls -->
  <tr id="list_trolls" style="display:none">
	<td class="row1" nowrap="nowrap">{L_NAME_TROLLS}:</td>
	<td class="row2"><b>{NAMES_OF_TROLLS}</b></td>
  </tr>
  	<!-- END switch_list_trolls --> 


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
It works with Easymod
My MODs

Need a coder?

Enjoy my Mods? - Image
User avatar
Kalipo
Registered User
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Post by Kalipo »

Sweet. Many thanks :!:
ShadowTek
Registered User
Posts: 66
Joined: Thu Jul 22, 2004 8:21 am
Contact:

Post by ShadowTek »

Very nice mod man :)

Thanks for shareing...


ST
TheFiniteMonkey
Registered User
Posts: 3
Joined: Mon Jul 26, 2004 7:56 pm

Post by TheFiniteMonkey »

Cool mod!

I especially like the quick submit section, but one field I wish it include is one for banning by IP address. If you're still developing this mod, I respectfully suggest that be added for the next version.

Thanks for the mod. :)
User avatar
ranchu
Registered User
Posts: 33
Joined: Thu Jul 31, 2003 5:30 am
Location: Mexico
Contact:

Post by ranchu »

kkroo wrote: Here it is:

Code: Select all

################################################################################
## MOD Title: Add MOD troll to Sexy Administration Index
## MOD Author: kkroo < princeomz2004@hotmail.com > (Omar Ramadan) http://phpbb-login.sourceforge.net
## MOD Description: This MOD will add statistics from the mod MOD troll to the new index page
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: 1 Minutes
## Files To Edit:
##      admin/index.php,
##      templates/subSilver/admin/sai_index_body.tpl
## Included Files:
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
################################################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
################################################################################
## Author Notes:
##
## Requires MOD Troll and Sexy Administration Index already installed to work
##
##############################################################
## MOD History:
##
##   2006-06-15 - Version 1.0.0
##      - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

admin/index.php

#
#-----[ FIND ]------------------------------------------
#

        //START MOD troll
        $total_trolls = 0;
        $troll_names = '';
        $sql = "SELECT username
                FROM " . USERS_TABLE . "
                WHERE user_troll = 1
                        AND user_id <> " . ANONYMOUS . "
                ORDER BY username";
        if ( !($result = $db->sql_query($sql)) )
        {
                message_die(GENERAL_ERROR, "Couldn't get statistic data.", "", __LINE__, __FILE__, $sql);
        }
                while ( $row = $db->sql_fetchrow($result) )
        {
                $troll_names .= (($troll_names == '') ? '' : ', ') . $row['username'];
                $total_trolls++;
        }
        //END MOD troll

#
#-----[ REPLACE WITH ]------------------------------------------
#
        //START MOD troll modified by kkroo
        $troll_data = array();
        $sql = "SELECT username, user_id
                FROM " . USERS_TABLE . "
                WHERE user_troll = 1
                        AND user_id <> " . ANONYMOUS . "
                ORDER BY username";
        if ( !($result = $db->sql_query($sql)) )
        {
                message_die(GENERAL_ERROR, "Couldn't get statistic data.", "", __LINE__, __FILE__, $sql);
        }
                while ( $row = $db->sql_fetchrow($result) )
        {
                $troll_data[] = $row;
        }
		$sai->assign_switchs(array(
			'list_trolls' => sizeof($troll_data)
			));
			
        //END MOD troll modified by kkroo
		
#
#-----[ FIND ]------------------------------------------
#

                //START MOD troll
                "NUMBER_OF_TROLLS" => $total_trolls,
                "NAMES_OF_TROLLS" => htmlspecialchars($troll_names),
                //END MOD troll

#
#-----[ REPLACE WITH ]------------------------------------------
#

                //START MOD troll modified by kkroo
                "NUMBER_OF_TROLLS" => sizeof($troll_data),
                "NAMES_OF_TROLLS" => $sai->display_users($troll_data),
                //END MOD troll modified by kkroo
				
#
#-----[ OPEN ]------------------------------------------
#

language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#

// Troll MOD
$lang['User_troll'] = 'Make user a Troll';

$lang['Troll_info'] = 'Troll Information';
$lang['Numberof_Trolls'] = 'Number of Trolls';
$lang['Troll_users'] = 'Names of Trolls';

#
#-----[ REPLACE WITH ]------------------------------------------
#

// Troll MOD
$lang['User_troll'] = 'Make user a Troll';

$lang['Troll_info'] = 'Total Trolls';
$lang['Troll_users'] = 'List of Trolls';


#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/admin/sai_index_body.tpl

#
#-----[ FIND ]------------------------------------------
#

	<td class="row2"><b>{LIST_INACTIVE}</b></td>
  </tr>
  <tr>
  <!-- END switch_list_inactive -->

#
#-----[ REPLACE WITH ]------------------------------------------
#

  <tr>
  	<td class="row1" nowrap="nowrap">{L_TROLL_INFO}:</td>
	<td class="row2">
		<b>{NUMBER_OF_TROLLS}</b>
		<!-- BEGIN switch_list_trolls -->
		<span class="gensmall">[ <a class="gensmall" onClick="objSwitch('list_trolls')" href="#">{L_LIST}</a> ]</span>
		<!-- END switch_list_trolls -->
	</td>
  </tr>
  	<!-- BEGIN switch_list_trolls -->
  <tr id="list_trolls" style="display:none">
	<td class="row1" nowrap="nowrap">{L_NAME_TROLLS}:</td>
	<td class="row2"><b>{NAMES_OF_TROLLS}</b></td>
  </tr>
  	<!-- END switch_list_trolls --> 


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
It works with Easymod


Hi!

I'm running the 2.0.21 version and it doesn't include this file:
templates/subSilver/admin/sai_index_body.tpl


is there any other way to make it work?

:)
User avatar
ranchu
Registered User
Posts: 33
Joined: Thu Jul 31, 2003 5:30 am
Location: Mexico
Contact:

Post by ranchu »

nevermind...

*edited because I meant to post this somewhere else*
User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction »

Very nice work. :)
ABDev
Registered User
Posts: 905
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Post by ABDev »

Hi kkroo :)
I meet many problems with WAMP when I go to the ACP :?
So, I'd need a cache MOD and I'd like to know if you can adapt this Ptirhiik MOD please ;)
Here is a link : http://abdev.free.fr/_TempFiles/Cache_p ... _1.0.0.zip

Thanks a lot if you can make it ;)
User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction »

ABDev wrote: Hi kkroo :)
I meet many problems with WAMP when I go to the ACP :?
So, I'd need a cache MOD and I'd like to know if you can adapt this Ptirhiik MOD please ;)
Here is a link : http://abdev.free.fr/_TempFiles/Cache_p ... _1.0.0.zip

Thanks a lot if you can make it ;)


What version of Wamp are you using?

And FYI, if you are using Wamp for a public server you should not be. IMHO, Wamp is pretty unsecure and unstable for a public server. :)
ABDev
Registered User
Posts: 905
Joined: Sun Aug 21, 2005 9:29 pm
Location: France
Name: Adrien Bonnel

Post by ABDev »

I'm using the last version, 1.6.4 :)
I'm using it only for homework, not for a server or another thing ;)
Don't quiet, I know that this software doesn't have a high security level ^^
Post Reply

Return to “[2.0.x] MODs in Development”