Welcome, Guest. Please Login or Register.
March 28, 2024, 06:36:10 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.4] Quick Admin « previous next »
Pages: [1] 2 3 4 Reply Ignore Print
Author Topic: [Done 1.5.4] Quick Admin  (Read 20204 times)
Scorpion
Noobie
*
Posts: 33


WWW
[Done 1.5.4] Quick Admin
« on: August 24, 2003, 08:17:35 PM »
Reply with quote

The code from this mod was takin from yapp, I only made a few changes for the delete function to work.

Download board mod file here

Edit File: MessageIndex.php

Find:
   global $curposlinks, $cgi, $yytitle, $settings, $start, $modSettings, $viewResults, $ID_MEMBER, $db_prefix;

Replace With:
   global $curposlinks, $cgi, $yytitle, $settings, $start, $modSettings, $viewResults, $ID_MEMBER, $db_prefix, $qatxt, $qaimg, $sc;

      echo '

         <script language="JavaScript1.2" type="text/javascript">
         function DoConfirm(message, url)
         {
            if (confirm(message))
               location.href = url;
         }
      </script>';


Find:
               <td class="titlebg" bgcolor="' . $color['titlebg'] . '" width="27%">
                  <font size="2" class="text1" color="' . $color['titletext'] . '"><b>' . $txt[111] . '</b></font>
               </td>
            </tr>';


Replace With:
               <td class="titlebg" bgcolor="' . $color['titlebg'] . '" width="27%">
                  <font size="2" class="text1" color="' . $color['titletext'] . '"><b>' . $txt[111] . '</b></font>
               </td>';
                     if (($settings[7] == "Administrator") || ($settings[7] == "Global Moderator")) {
   print "<td class=\"titlebg\" bgcolor=\"$color[titlebg]\"><font size=\"2\" class=\"text1\" color=\"$color[titletext]\"><b>$qatxt[1]</b></font></td>";
                     }
print <<<EOT
            </tr>
EOT;


Find:
               <td class="windowbg2" valign="middle" width="27%" bgcolor="' . $color['windowbg2'] . '">
                  <font size="1">' . $mydate . '<br />' . $txt[525] . ' ' . $lastposter . '</font></td>
            </tr>';
      }
   }


Replace With:
               <td class="windowbg2" valign="middle" width="27%" bgcolor="' . $color['windowbg2'] . '">
                  <font size="1">' . $mydate . '<br />' . $txt[525] . ' ' . $lastposter . '</font></td>';
if (($settings[7] == "Administrator") || ($settings[7] == "Global Moderator")) {
   print "<td class=\"windowbg\" valign=\"middle\" bgcolor=\"$color[windowbg2]\"><a href=\"$cgi;action=sticky;threadid=$mnum;sticky=$isSticky;q=1\">$qaimg[1]</a> <a href=\"$cgi;action=lock;threadid=$mnum;q=1\">$qaimg[2]</a> <a href=\"$cgi;action=movethread;threadid=$mnum;q=1\">$qaimg[3]</a> <a href=\"javascript:DoConfirm('$txt[162]','$cgi;action=removethread2;threadid=$mnum;sesc=$sc');\">$qaimg[4]</a></td>";
   }
print <<<EOT
</tr>
EOT;
      }
   }


Edit File: English.lng

Find:
$txt[1005] = 'Close window';

Add After:
$qaimg[1] = "<img src=\"$imagesdir/sticky.gif\" border=\"0\" alt=\"Sticky this topic\">";
$qaimg[2] = "<img src=\"$imagesdir/locked.gif\" border=\"0\" alt=\"Lock/unlock this topic\">";
$qaimg[3] = "<img src=\"$imagesdir/moved.gif\" border=\"0\" alt=\"Move this topic\">";
$qaimg[4] = "<img src=\"$imagesdir/rem.gif\" border=\"0\" alt=\"Remove this topic\">";
$qatxt[1] = "Admin";


You will need this image (save it to your YaBBImages folder):


Picture of mod 'in action':


« Last Edit: October 08, 2003, 12:46:34 AM by Scorpion » Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #1 on: August 24, 2003, 08:56:21 PM »
Reply with quote

Looks good! ;D I was contemplating updating this to 1.5.4 myself, but I never had the time. I'll test it out in a little bit and see how it works.

You might wanna consider making this a .mod file and including the image in a .zip file :D Would make it a little easier to use. It's not that hard. If you want, I can create it for you
Logged
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #2 on: August 24, 2003, 09:00:46 PM »
Reply with quote

I know how, I'm just lazy. I'll do it soon.
Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #3 on: August 24, 2003, 09:03:48 PM »
Reply with quote

Lazy? That sounds oddly famaliar..  :P
Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #4 on: August 24, 2003, 09:10:46 PM »
Reply with quote

Quote

Find:
               <td class="windowbg2" valign="middle" width="27%" bgcolor="' . $color['windowbg2'] . '">
                  <font size="1">' . $mydate . '<br />' . $txt[525] . ' ' . $lastposter . '</font></td>
            </tr>';
      }
   }


Replace With:
               <td class="windowbg2" valign="middle" width="27%" bgcolor="' . $color['windowbg2'] . '">
                  <font size="1">' . $mydate . '<br />' . $txt[525] . ' ' . $lastposter . '</font></td>';
if (($settings[7] == "Administrator") || ($settings[7] == "Global Moderator")) {
   print "<td class=\"windowbg\" valign=\"middle\" bgcolor=\"$color[windowbg2]\"><a href=\"$cgi;action=sticky;threadid=$mnum;sticky=$isSticky;q=1\">$qaimg[1]</a> <a href=\"$cgi;action=lock;threadid=$mnum;q=1\">$qaimg[2]</a> <a href=\"$cgi;action=movethread;threadid=$mnum;q=1\">$qaimg[3]</a> <a href=\"javascript:DoConfirm('$txt[162]','$cgi;action=removethread2;threadid=$mnum;sesc=$sc');\">$qaimg[4]</a></td>";
   }
print <<<EOT
</tr>
EOT;
      }
   }

   echo '

Just an FYI, with that echo ' on the end, it's not necessary, I believe. There's two echo '  's right next to each other. Only need one.. ;D
« Last Edit: August 24, 2003, 09:11:39 PM by 1979Z28 » Logged
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #5 on: August 24, 2003, 09:17:31 PM »
Reply with quote

Prefect timing, I just put it into a .mod file and I noticed it was giving me errors. So I removed the extra echo. I'll have the .mod file soon.
Logged
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #6 on: August 24, 2003, 09:19:53 PM »
Reply with quote

Board Mod File: http://www.shadow-clanz.com/mods/Quick%20Admin.zip
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.4] Quick Admin
« Reply #7 on: August 24, 2003, 10:38:43 PM »
Reply with quote

I already finished putting this into SMF two days ago.... but, I did the four icons all side by side - I like the look of the icons like that better.

Mind if I "steal" the idea of putting them 2 then 2?

Thanks,
-[Unknown]
Logged
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #8 on: August 24, 2003, 10:56:46 PM »
Reply with quote

Quote from: [Unknown] on August 24, 2003, 10:38:43 PM
I already finished putting this into SMF two days ago.... but, I did the four icons all side by side - I like the look of the icons like that better.

Mind if I "steal" the idea of putting them 2 then 2?

Thanks,
-[Unknown]

Nope, I stole it from YaPP anyway. :P
Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #9 on: August 25, 2003, 01:22:17 AM »
Reply with quote

I went ahead and installed this, removing that extra echo ' from the first place, and it works perfectly.

I'd suggest editing your first post with that link, for anybody who doesn't notice it later on down the page
Logged
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #10 on: August 25, 2003, 02:03:48 AM »
Reply with quote

I already fixed it. 8) btw, I had that extra echo there because I accidently copy pasted too much of the code. :-X
« Last Edit: August 25, 2003, 02:05:13 AM by Scorpion » Logged
Walhalla
Noobie
*
Posts: 24


I'm a llama!

Re:[Done 1.5.4] Quick Admin
« Reply #11 on: September 15, 2003, 07:34:22 PM »
Reply with quote

Installed it.. but it doesn't work.. getting no errors or something.. I just don't see the quick admin or must I apply some changes in the admin panel?  
Logged
Scorpion
Noobie
*
Posts: 33


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #12 on: September 15, 2003, 07:57:59 PM »
Reply with quote

are you sure you installed it correctly? it should work...
Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.5.4] Quick Admin
« Reply #13 on: September 16, 2003, 01:38:01 AM »
Reply with quote

If you edited the files correctly, and uploaded them to the right places, it should work. Maybe refresh the page? If those don't work/aren't the problems, I'm clueless
Logged
videoed
Noobie
*
Posts: 19


http://www.videoedicion.org

Re:[Done 1.5.4] Quick Admin
« Reply #14 on: October 04, 2003, 02:27:08 AM »
Reply with quote

Just some short BIG THANKS
Logged

**************************
[email protected]
http://www.videoedicion.org
#videoedicion en el IRC-Hispano
**************************
Pages: [1] 2 3 4 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.4] Quick Admin « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.035 seconds with 19 queries.