Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Project U-232 (http://www.bvlist.com/forumdisplay.php?f=80)
-   -   New StaffPanel Layout (http://www.bvlist.com/showthread.php?t=9355)

BamBam0077 30th July 2013 08:38

New StaffPanel Layout
 
2 Attachment(s)
Hey BravoList members,

( I created this on June 19th 2013 )
Quote:

I have spent the last 3 days designing you a new staffpanel http://forum.u-232.com/Smileys/default/smiley.gif , I have been informed something like this was created back for tbdev08-09 source but I never new so meh anyway here is this following instructions.

ScreenShots -


1. backup staffpanel.php.
2. replace with the staffpanel.php I have created. ( also remember to replace .txt to .php http://forum.u-232.com/Smileys/default/smiley.gif )
3. place staffpanel image folder into var/www/pic.
4. edit the following lines to suit your staff tools.
PHP Code:

#BamBam - New Staff Tool Layout (c)2013 

$HTMLOUT.="<table align='center' width='48%'>
<tr>
 <td>
  <center>Your Moderator Staff Tool - 
{$CURUSER['username']}</center>
 </td>
</tr>      </table>"
;

if (
$CURUSER['class'] >= UC_MODERATOR) { 
$HTMLOUT.= "
                    
<table width='48%'>


<!-- Row 1 -->    
    
    <tr>
    <td class='admin2'>
    <a href=staffpanel.php?tool=findnotconnectable><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border=0>
    Connectable
    </a>
    </td>
    </tr>
    
    
    <tr>
    <td class='admin'>
    <a href=staffpanel.php?tool=failedlogins><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border=0>
    Failed Login
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin9'>
    <a href='staffpanel.php?tool=reports'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/report.png' title='Added By Programmer' border=''>
     Reports
    </a>
    </td>
    </tr>

    <tr>
    <td class='admin10'>
    <a href='staffpanel.php?tool=inactive'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border='0'>
    Inactive
    </a>
    </td>
    </tr>    
    
    <tr>
    <td class='admin11'>
    <a href='staffpanel.php?tool=cheaters'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/cheats.png' title='Added By Programmer' border='0'>
    Possible Cheat
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin12'>
    <a href='staffpanel.php?tool=nameblacklist'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/censor.png' title='Added By Programmer' border='0'>
     Censor Names
    </a>
    </td>
    </tr>    
    
    <tr>
    <td class='admin6'>
    <a href='staffpanel.php?tool=warn&mode=warn'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/warnedaccounts.png' title='Added By Programmer'  border='0'>
    Warned
    </a>
    </td>
    </tr>

<!-- End 1st Row -->    
<!-- 2nd Row -->    

    <tr>
    <td class='admin4'>    
    <a href='staffpanel.php?tool=polls_manager'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/polls.png' title='Added By Programmer'  border=0>
    Poll Manager
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin8'>
    <a href='staffpanel.php?tool=bans'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/users.png' title='Added By Programer' border=''>
    Banned
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin7'>
    <a href='staffpanel.php?tool=uploadapps&action=app'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/upload.png' title='Added By Programmer' border='0'>
    Uploader App
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin3'>
    <a href='staffpanel.php?tool=hnrwarn'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border=0>
    H&R Warn
    </a>
    </td>
    </tr>    
    
    <tr>
    <td class='admin13'>
    <a href='staffpanel.php?tool=view_peers'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/peers.png' title='Added By Programmer' border='0'>
    View Peers
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin14'>
    <a href='staffpanel.php?tool=leechwarn'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border='0'>
     Leech Warn
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin5'>
    <a href='lottery.php'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border='0'>
    Lottery Conf
    </a>
    </td>
    </tr>
</table>
    "
;
}        
# BamBam - New Staff Tool Layout (c)2013 

$HTMLOUT.="<table align='center' width='48%'>
<tr>
 <td>
  <center>Your Administator Staff Tool - 
{$CURUSER['username']}</center>
 </td>
</tr>      </table>"
;

if (
$CURUSER['class'] >= UC_ADMINISTRATOR) {
$HTMLOUT.= "
                    
<table width='48%'>


<!-- Row 1 -->    
    
    <tr>
    <td class='admin2'>
    <a href=staffpanel.php?tool=bonusmanage><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border=0>
    Bonus Manager
    </a>
    </td>
    </tr>
    
    
    <tr>
    <td class='admin'>
    <a href=staffpanel.php?tool=shistory><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border=0>
    Shout History
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin9'>
    <a href='staffpanel.php?tool=reports'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border=''>
     Reports
    </a>
    </td>
    </tr>

    <tr>
    <td class='admin10'>
    <a href='staffpanel.php?tool=usersearch'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border='0'>
    User Search
    </a>
    </td>
    </tr>    
    
    <tr>
    <td class='admin11'>
    <a href='staffpanel.php?tool=freeusers'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/free.png' title='Added By Programmer' border='0'>
    Freeleech User
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin12'>
    <a href='staffpanel.php?tool=freeleech'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/free.png' title='Added By Programmer' border='0'>
    Freeleech
    </a>
    </td>
    </tr>    
    
    <tr>
    <td class='admin6'>
    <a href='staffpanel.php?tool=snatched_torrents'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer'  border='0'>
    Snatched
    </a>
    </td>
    </tr>

<!-- End 1st Row -->    
<!-- 2nd Row -->    

    <tr>
    <td class='admin4'>    
    <a href='staffpanel.php?tool=ipcheck'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/ipchecker.png' title='Added By Programmer'  border=0>
    IP Check
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin8'>
    <a href='lottery.php'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programer' border=''>
    Lottery Conf
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin7'>
    <a href='staffpanel.php?tool=grouppm'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/masspm.png' title='Added By Programmer' border='0'>
    Group PM
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin3'>
    <a href='staffpanel.php?tool=mass_bonus_for_members'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border=0>
    Mass Bonus
    </a>
    </td>
    </tr>    
    
    <tr>
    <td class='admin13'>
    <a href='staffpanel.php?tool=staff_shistory'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border='0'>
    Staff History
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin14'>
    <a href='promo.php'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/server.png' title='Added By Programmer' border='0'>
    Promo Links
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin5'>
    <a href='staffpanel.php?tool=floodlimit'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border='0'>
    Flood Limit
    </a>
    </td>
    </tr>
</table>
    "
;
}
# BamBam - New Staff Tool Layout (c)2013

$HTMLOUT.="<table align='center' width='48%'>
<tr>
 <td>
  <center>Your SysOp Staff Tool - 
{$CURUSER['username']}</center>
 </td>
</tr>      </table>"
;

if (
$CURUSER['class'] == UC_SYSOP) {
$HTMLOUT.= "
                    
<table width='48%'>


<!-- Row 1 -->    
    
    <tr>
    <td class='admin2'>
    <a href=staffpanel.php?tool=adduser><img src='
{$INSTALLER09['pic_base_url']}staffpanel/adduser.png' title='Added By Programmer' border=0>
    Add User
    </a>
    </td>
    </tr>
    
    
    <tr>
    <td class='admin'>
    <a href=staffpanel.php?tool=themes><img src='
{$INSTALLER09['pic_base_url']}staffpanel/templates.png' title='Added By Programmer' border=0>
    
    <center>
    Templates
    </center>
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin9'>
    <a href='staffpanel.php?tool=forum_config'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border=''>
    Forum Conf
    </a>
    </td>
    </tr>

    <tr>
    <td class='admin10'>
    <a href='staffpanel.php?tool=pmview'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/spy.png' title='Added By Programmer' border='0'>
     Pm Spy
    </a>
    </td>
    </tr>    
    
    <tr>
    <td class='admin11'>
    <a href='staffpanel.php?tool=namechanger'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border='0'>
    Name Changer
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin12'>
    <a href='staffpanel.php?tool=over_forums'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border='0'>
    Over Forums
    </a>
    </td>
    </tr>    
    
    <tr>
    <td class='admin6'>
    <a href='staffpanel.php?tool=forum_manage'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer'  border='0'>
    Forum Manage
    </a>
    </td>
    </tr>

<!-- End 1st Row -->    
<!-- 2nd Row -->    

    <tr>
    <td class='admin4'>    
    <a href='staffpanel.php?tool=hit_and_run'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer'  border=0>
    Hit & Run
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin8'>
    <a href='staffpanel.php?tool=paypal_manual_confrim'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programer' border=''>
    Manual VIP 
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin7'>
    <a href='staffpanel.php?tool=backup'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/backup.png' title='Added By Programmer' border='0'>
    Back Up
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin3'>
    <a href=''><img src='
{$INSTALLER09['pic_base_url']}staffpanel/blocks.png' title='Added By Programmer' border=0>
    Block Manager
    </a>
    </td>
    </tr>    
    
    <tr>
    <td class='admin13'>
    <a href='staffpanel.php?tool=staff_config'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/faq.png' title='Added By Programmer' border='0'>
    Staff Config
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin14'>
    <a href='staffpanel.php?tool=mysql_stats'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/server.png' title='Added By Programmer' border='0'>
     MySQL Stats
    </a>
    </td>
    </tr>
    
    <tr>
    <td class='admin5'>
    <a href='staffpanel.php?tool=categories'><img src='
{$INSTALLER09['pic_base_url']}staffpanel/category.png' title='Added By Programmer' border='0'>
    Categories
    </a>
    </td>
    </tr>
</table>
    "
;


5. tools not added as you may want them for different classes -

PHP Code:

staffpanel.php?tool=events
staffpanel
.php?tool=log
staffpanel
.php?tool=stats_extra
staffpanel
.php?tool=stats
staffpanel
.php?tool=reset
staffpanel
.php?tool=repution_ad
staffpanel
.php?tool=reputation_settings
staffpanel
.php?tool=donations
staffpanel
.php?tool=delacct
staffpanel
.php?tool=system_view
staffpanel
.php?tool=datarest
staffpanel
.php?tool=allagents
staffpanel
.php?tool=sysoplog
staffpanel
.php?tool=load
staffpanel
.php?tool=acpmange
staffpanel
.php?tool=mega_search
staffpanel
.php?tool=uploader_info
staffpanel
.php?tool=paypal_settings
staffpanel
.php?tool=apc
staffpanel
.php?tool=memcache
staffpanel
.php?tool=edit_moods
staffpanel
.php?tool=cloudview
staffpanel
.php?tool=cleanup_manager 

6. You will have to manually code in everything as I am not that skilled to make it auto paste into each slot.

7. last part you will need to add is the css ( you can paste anywhere in your css file top middle or bottom )
HTML Code:

.admin {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
margin-right: 155px;
width: 77px;
margin-top: -190px;
}
.admin2 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
padding:3px;
text-align:center;
float:left;
margin-top: -190px;
width: 77px;
}
.admin3 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
width: 77px;
margin-right: -75px;
margin-top: -99px;
}
.admin4 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
padding:3px;
text-align:center;
float:left;
margin-top: -92px;
width: 77px;
}
.admin5 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
margin-right: -400px;
width: 77px;
margin-top: -99px;
}
.admin6 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
margin-right: -400px;
width: 77px;
margin-top: -200px;
}
.admin7 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
padding:3px;
text-align:center;
float:right;
margin-top: -97px;
width: 77px;
margin-right: 40px;
}
.admin8{
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
padding:3px;
text-align:center;
float:right;
margin-top: -95px;
width: 77px;
margin-right: 155px;
}
.admin9{
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
margin-right: 40px;
width: 77px;
margin-top: -195px;
}
.admin10 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
margin-right: -75px;
width: 77px;
margin-top: -195px;
}
.admin11{
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
margin-right: -187px;
width: 77px;
margin-top: -197px;
}
.admin12 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
margin-right: -293px;
width: 77px;
margin-top: -199px;
}
.admin13 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
margin-right: -187px;
width: 77px;
margin-top: -99px;
}
.admin14 {
background:#E0E0E0;
border-right: #707070 1px solid;
border-top: #FFFFFF 1px solid;
border-bottom: #707070 1px solid;
border-left: #FFFFFF 1px solid;
float:right;
padding:3px;
vertical-align:top;
text-align:center;
margin-right: -293px;
width: 77px;
margin-top: -99px;
}

Thanks for your time,

BamBam.

x360zone 30th July 2013 09:33

hi
 
thanx for the share:ok:

BamBam0077 30th July 2013 09:39

Anytime Pal :ok:
I hope to over look this mod of mine & upgrade it alot better & make it alot cleaner.
Just abit busy working on a theme for u-232 v3 & then once i reach the back-end I'll upgrade it.
Quote:

Originally Posted by x360zone (Post 41969)
thanx for the share:ok:


wMan 30th July 2013 11:22

example

Code:



Joe 30th July 2013 13:27

Nice job bambam, there was indeed a mod like this done for tbdev, the only problem with this is you loose the ability to edit/move tools to different classes easily plus if you are not very graphicaly inclined, its harder to add new.

fireknight 30th July 2013 14:29

Freaky Nuts did the code for the 08 and 09 TBDev.
Having said that, very nice work Bam Bam.
Looking really sharp :ok:

EDIT

I modified the code for FreeTSP.
With all the add, edit and delete staff tool options.
You can find the code in the RC3 staff tools mods section.
You should be able to update it, to work with your code.

BamBam0077 30th July 2013 16:36

Reply @ TrinitY-RG
I use 3 alt usernames Programmer,BamBam0077,BamBam so I have mixed all names within my own designs :chch:

Reply @ Joe
I will be working on it abit more to make it cleaner & have the option to
add/edit if my brain can think more outside the box :chch: ...

Reply @ fireknight
Thanks for giving me the original coders name :ok:
Glad you can mix it within your own source of code!.

Enjoy Guys!

BamBam

Krypto 31st July 2013 02:06

Fireknight did a good job of converting the original mod made by Freaky Nuts to work with FreeTSP.

@BamBam Good job on making it available for U232 too :) You can find the post here http://www.freetsp.info/topic/1511-staff-panel/

Joe 31st July 2013 06:48

Krypto its available to u-232 as kid did a simpler one.. Plus if you look threw the list of mods you will find it there ..

I tryed it and it dose not work like it should like freakynutz did .. But if you find the one dorkvile redid it works perfect..

BamBam0077 31st July 2013 07:13

Will have a look over code & see if I can convert that add/edit option into this code work of mine :ok:

I will be brining over a new donation layout soonish and another version of forums layout also in the near future. all these new layouts are only available due to me doing a whole do over with my source copy. I will also share my theme once she is completed for all u-232 coders/owners to test it. she have a new way to access staff panel via dropdown menu which will extend into about 2-4 menu panels depends on your class level & with some javascript:popUp() help to keep the staff member on the page they may be browsing I will of course leave on last page a link to direct staffpanel.php via
Access 2 Panel
so if staff member doesnt like it they can convert over to the original panel they prefer. here is a screen shot done so far I would have more done but been very busy organizing my weekend camp trip. :ok:

she is a bit off sided with the navi under way but forgive me on that one :chch:



Quote:

Originally Posted by Krypto (Post 41989)
Fireknight did a good job of converting the original mod made by Freaky Nuts to work with FreeTSP.

@BamBam Good job on making it available for U232 too :) You can find the post here http://www.freetsp.info/topic/1511-staff-panel/



All times are GMT +2. The time now is 01:51.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.