Welcome, Guest. Please Login or Register.
April 27, 2025, 12:15:11 AM
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.3.0][Code] Moderator Column « previous next »
Pages: 1 2 [3] Reply Ignore Print
Author Topic: [Done 1.3.0][Code] Moderator Column  (Read 6179 times)
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:[Done 1.3.0][Code] Moderator Column
« Reply #30 on: August 20, 2002, 12:28:43 AM »
Reply with quote

"Thanks for sharing" means that you made it work on your board but don't bother telling anyone else how to make it work.  If all modders did things this way, then how would we all get mods besides making them all on our own?


Poo.
Logged

This guy uses objects like women man!
Mr.Blananar
Noobie
*
Posts: 6


Whee!

WWW
Re:[Done 1.3.0][Code] Moderator Column
« Reply #31 on: August 20, 2002, 12:38:51 AM »
Reply with quote

I'm sorry, but I can't find the portions of code that I'm supposed to modify. I'm a n00b, and I don't really know how to do this. It's because I got a new template, and that erased the code that I'm supposed to modify. I was just asking for help. Can't you at least link me to a place to get the default YaBBSE template? :'(
Logged
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[Done 1.3.0][Code] Moderator Column
« Reply #32 on: August 20, 2002, 03:16:43 PM »
Reply with quote

Ah... Well I'm not a mod-type-person, and don't plan on being one for a llllloonnnnnggg time, :p. All I did to get it to work, was follow your instructions on what to code, in your original post, perfectly. Did it on a clean board with no mods done to it at the time. :p

And I don't think you're supposed to edit the template.. only the Boardindex.php. Where it says

<open file>
BoardIndex.php
</open file>

That tells you what file you're supposed to edit, hence the 'open file' :p. In the 'Search For', that's what you're supposed to look for in the code, and with the stuff in the 'replace' lines, you need to replace the stuff you 'searched for', with the stuff in the 'replace'. It's all as easy as that. Simply open the 'open file' stuff in a text editor, like wordpad, and go from there.


That enough info for how I did it and got it to work? :p Coulda sworn that 'Actually I went ahead and did all the above code on my 1.4.1 system and it works, perfectly ;D' would be enough of an explanation. Oh well, Silly me ;D

If anybody has problems doing it that way...When we upgraded our board, it was from 1.3.0, up to 1.4.1. I wonder if that would have anything to do with it.. *blink*
« Last Edit: August 20, 2002, 03:21:28 PM by 1979Z28 » Logged
Mr.Blananar
Noobie
*
Posts: 6


Whee!

WWW
Re:[Done 1.3.0][Code] Moderator Column
« Reply #33 on: August 20, 2002, 11:14:53 PM »
Reply with quote

Oh. Stupid me.  ;D I guess it's onto FTP!
Logged
JohnnyBoy
Noobie
*
Posts: 36


OldGP3freak

WWW
Re:[Done 1.3.0][Code] Moderator Column
« Reply #34 on: February 03, 2003, 08:34:09 PM »
Reply with quote

is this also working on version 1.5.x???????
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.3.0][Code] Moderator Column
« Reply #35 on: February 08, 2003, 01:58:52 PM »
Reply with quote

Yes.

I had to alter a few things, but it works.

I didn't write it down the moment I was doing it, but afterwards I came to this (please check if this is correct) :


<open file>
BoardIndex.php
</open file>


<search for>
                  <td class="titlebg" width="22%" align="center"><b>' . $txt[22] . '</b></td>
</search for>


<add after>
                       <td class="titlebg" width="7%" align="center"><b>Moderator</b></td>
</add after>



<search for>
         $curcat=$row_board['ID_CAT'];

         echo "<tr> <td colspan=\"5\" class=\"catbg\" height=\"18\">\n";

         echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";

</search for>


<replace>
         $curcat=$row_board['ID_CAT'];

         echo "<tr> <td colspan=\"6\" class=\"catbg\" height=\"18\">\n";

         echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";

</replace>


<search for>
               $showmods = "<br /><font size=\"1\"><i>$txt[299]: $showmods</i></font>";

            else

               $showmods = "<br /><font size=\"1\"><i>$txt[298]: $showmods</i></font>";

</search for>


<replace>
               $showmods = "<br /><font size=\"1\"><i>$showmods</i></font>";

            else

               $showmods = "<br /><font size=\"1\"><i>$showmods</i></font>";

</replace>


<search for>
                  <td class="windowbg2" valign="middle" width="22%">

                     <font size="1">

                        ' . $latestPostTime . '<br />

                        ' . $txt['yse88'] . ' ' . $latestPostSubject . '<br />

                        ' . $txt[525] . ' ' . $latestPostName . '

                     </font>

                  </td>

               </tr>';

      }

   }

   // load the number of users online right now

</search for>


<replace>
                  <td class="windowbg2" valign="middle" width="22%">

                     <font size="1">

                        ' . $latestPostTime . '<br />

                        ' . $txt['yse88'] . ' ' . $latestPostSubject . '<br />

                        ' . $txt[525] . ' ' . $latestPostName . '

                     </font>

                  </td>
<td class="windowbg" align="center" valign="middle" width="14%" height="100%">' . $showmods . '</td>
               </tr>';

      }

   }

   // load the number of users online right now

</replace>

Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
buster
Jr. Member
**
Posts: 74


Caught a lama YESSSSSSSSS

Re:[Done 1.3.0][Code] Moderator Column
« Reply #36 on: March 10, 2003, 12:00:39 AM »
Reply with quote

Well i changed it a little this is mine:
It's tested on 1.5.1RC1B43

<open file>
BoardIndex.php
</open file>

<search for>
         <table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td>
            <table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
               <tr>
                  <td class="titlebg" colspan="2"><b>' . $txt[20] . '</b></td>
                  <td class="titlebg" width="6%" align="center"><b>' . $txt[330] . '</b></td>
                  <td class="titlebg" width="6%" align="center"><b>' . $txt[21] . '</b></td>
                  <td class="titlebg" width="22%" align="center"><b>' . $txt[22] . '</b></td>
</search for>

<add after>
                  <td class="titlebg" width="7%" align="center"><b>' . $txt[12] . '</b></td>
</add after>

<search for>
         $curcat=$row_board['ID_CAT'];
         echo "<tr> <td colspan=\"5\" class=\"catbg\" height=\"18\">\n";
         echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";

</search for>


<replace>
         $curcat=$row_board['ID_CAT'];
         echo "<tr> <td colspan=\"6\" class=\"catbg\" height=\"18\">\n";
         echo "<a name=\"$row_board[ID_CAT]\"><b>$row_board[catName]</b></a></td>\n</tr>\n";

</replace>

<search for>
                  <td class="windowbg2" valign="middle" width="22%">
                     <font size="1">
                        ' . $latestPostTime . '<br />
                        ' . $txt['yse88'] . ' ' . $latestPostSubject . '<br />
                        ' . $txt[525] . ' ' . $latestPostName . '
                     </font>
                  </td>
</search for>

<add after>
                  <td class="windowbg2" valign="middle" align="center" width="7%">
                     <font size="2">
                        ' . $showmods . '
                     </font>
                  </td>
<add after>

<search for>
                     <font size="2"><b><a href="' . $scripturl . '?board=' . $row_board['ID_BOARD'] . '">' . $row_board['boardName'] . '</a></b><br />
                     ' . $row_board['description'] . '</font>' . $showmods . '
</search for>

<replace>
                     <font size="2"><b><a href="' . $scripturl . '?board=' . $row_board['ID_BOARD'] . '">' . $row_board['boardName'] . '</a></b><br />
                     ' . $row_board['description'] . '</font>' . '
</replace>

<search for>
              $showmods = "<br /><font size=\"1\"><i>$txt[299]: $showmods</i></font>";
           else
              $showmods = "<br /><font size=\"1\"><i>$txt[298]: $showmods</i></font>";

</search for>

<replace>
              $showmods = "<br /><font size=\"1\"><i>$showmods</i></font>";
           else
              $showmods = "<br /><font size=\"1\"><i>$showmods</i></font>";

</replace>


The only thing i changed in this part is that the moderator info in the catagory is removed.
« Last Edit: March 10, 2003, 02:02:50 AM by buster » Logged

If practice makes perfect and nobody is perfect why practice?
buster
Jr. Member
**
Posts: 74


Caught a lama YESSSSSSSSS

Re:[Done 1.3.0][Code] Moderator Column
« Reply #37 on: March 10, 2003, 12:17:18 AM »
Reply with quote

I figured out that this mod isn't compatible with different cat icons, it's possible  that causes my earlier problem.
« Last Edit: March 10, 2003, 02:03:40 AM by buster » Logged

If practice makes perfect and nobody is perfect why practice?
Pages: 1 2 [3] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.3.0][Code] Moderator Column « 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 2.133 seconds with 16 queries.