Welcome, Guest. Please Login or Register.
April 26, 2025, 11:24:42 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

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 6177 times)
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

[Done 1.3.0][Code] Moderator Column
« on: March 22, 2002, 02:38:23 AM »
Reply with quote

This will move your moderator display to the far right column of your BoardIndex table.  This look is used by most other board software.

View the attached image of the new look.

<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>
    <td colspan="5" class="catbg" height="18"><a name="$row_cat[ID_CAT]"><b>$row_cat[name]</b></a></td>
</search for>


<replace>
    <td colspan="6" class="catbg" height="18"><a name="$row_cat[ID_CAT]"><b>$row_cat[name]</b></a></td>
</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 = "<font size=\"1\">$showmods</font>";
                 else
                  $showmods = "<font size=\"1\">$showmods</font>";
</replace>


<search for>
  <tr>
    <td class="windowbg" width="6%" align="center" valign="top">$new</td>
    <td class="windowbg2" align="left" width="60%">
    <a name="$curboard"></a>
    <font size="2"><b><a href="$scripturl?board=$row_board[ID_BOARD]">$row_board[name]</a></b>
    <br>$row_board[description]</font>$showmods</td>
    <td class="windowbg" valign="middle" align="center" width="6%">$row_board[numTopics]</td>
    <td class="windowbg" valign="middle" align="center" width="6%">$row_board[numPosts]</td>
    <td class="windowbg2" valign="middle" width="22%"><font size="1">$latestPostTime<br />$txt[yse88] <a href="$scripturl?board=$row_board[ID_BOARD];action=display;threadid=$topicID;start=$startPage;boardseen=1">$subject</a><br> $txt[525] $latestPostName</font></td>
  </tr>
</search for>


<replace>
  <tr>
    <td class="windowbg" width="6%" align="center" valign="top">$new</td>
    <td class="windowbg2" align="left" width="60%">
    <a name="$curboard"></a>
    <font size="2"><b><a href="$scripturl?board=$row_board[ID_BOARD]">$row_board[name]</a></b>
    <br>$row_board[description]</font></td>
    <td class="windowbg" valign="middle" align="center" width="6%">$row_board[numTopics]</td>
    <td class="windowbg" valign="middle" align="center" width="6%">$row_board[numPosts]</td>
    <td class="windowbg2" valign="middle" width="22%"><font size="1">$latestPostTime<br />$txt[yse88] <a href="$scripturl?board=$row_board[ID_BOARD];action=display;threadid=$topicID;start=$startPage;boardseen=1">$subject</a><br> $txt[525] $latestPostName</font></td>
<td class="windowbg" align="center" valign="middle" width="7%" height="100%">$showmods</td>
  </tr>
</replace>

« Last Edit: August 19, 2002, 04:55:49 AM by Nemesis » Logged

This guy uses objects like women man!
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:[Code] Moderator Column
« Reply #1 on: March 23, 2002, 11:52:06 PM »
Reply with quote

* maddness likes!

I've got a very n0ob question for you or anyone...

I've noticed in your posts the snips of code...I went through my php files (and I'm a php n0ob too btw) and didn't find the source that you're referencing above...(in other words, where to put your modifications)

my question is, is this a new file I'm supposed to create and call for elsewhere, or am I missing where this should go?  

If someone doesn't mind, I'd really appreciate a little help!  I'm only vaguely familiar with php!   :-[
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Code] Moderator Column
« Reply #2 on: March 24, 2002, 12:27:00 AM »
Reply with quote

for this mod you are supposed to open boardindex.php and edit that file.  It depends on each mod and how the author created it
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:[Code] Moderator Column
« Reply #3 on: March 24, 2002, 12:32:00 AM »
Reply with quote

I am an idiot...   ;D

I thought that code WAS the file, not INSTRUCTIONS on editing the file...doh!

(shows my lack of php knowledge)

anyways...thx, i think i've realized my mistake

<update>  Thanks Shaun...that was too easy, once i figured our you were giving instructions, not code!  
« Last Edit: March 24, 2002, 12:55:09 AM by maddness » Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Code] Moderator Column
« Reply #4 on: March 24, 2002, 08:18:19 AM »
Reply with quote

shaun, if you have no moderators it creates an empy column that looks really dumb
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:[Code] Moderator Column
« Reply #5 on: March 24, 2002, 06:05:01 PM »
Reply with quote

Eh?  Why did you use this mod then if you have no moderators?
Logged

This guy uses objects like women man!
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Code] Moderator Column
« Reply #6 on: March 24, 2002, 08:14:38 PM »
Reply with quote

i was just testing it :)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Big P
Mod Team
YaBB God
*****
Posts: 1462


"Back in '68, I don't like you, The End."

ICQ - 76064555pierceward@hotmail.com WWW
Re:[Code] Moderator Column
« Reply #7 on: March 25, 2002, 12:04:24 AM »
Reply with quote

This is a cool mod. dOCda S made it for Y1g and I use it on my perl board. Tis very good. Shouild actually be in the YaBB package!  ;)
Logged

PHPNews has been released!!! Download it now!!!
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Code] Moderator Column
« Reply #8 on: March 28, 2002, 07:58:39 PM »
Reply with quote

Shuan, will you make this so it can be turned on and off from the admin control panel?
Logged

TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:[Code] Moderator Column
« Reply #9 on: March 28, 2002, 08:30:33 PM »
Reply with quote

... whats the point? if you want it, follow what he said, if you dont, dont, lol.
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Code] Moderator Column
« Reply #10 on: March 28, 2002, 09:19:13 PM »
Reply with quote

Still, I think mods should be made so they can be turned on or off.  It is for a project I am workin on and need it so it can be enabled or disabled from the admin center.
Logged

Brolly
Noobie
*
Posts: 7


I'm a llama!

Re:[Code] Moderator Column
« Reply #11 on: March 29, 2002, 10:45:52 PM »
Reply with quote

If possible, could it be made so the moderator has a drop-box like in the newest version of the vB?

That would look so cool, lol
Logged
kickflip_god
Noobie
*
Posts: 26


I love YaBB SE!

Re:[Code] Moderator Column
« Reply #12 on: April 01, 2002, 09:50:51 AM »
Reply with quote

nah, i find that a bit pants abit............
Logged
kickflip_god
Noobie
*
Posts: 26


I love YaBB SE!

Re:[Code] Moderator Column
« Reply #13 on: April 01, 2002, 10:06:17 AM »
Reply with quote

it dosentwork for me, as i get.........

Parse error: parse error in /usr/local/psa/home/vhosts/kickflipguy.34SP.com/httpdocs/forums/Sources/BoardIndex.php on line 193

Fatal error: Call to undefined function: boardindex() in /usr/local/psa/home/vhosts/kickflipguy.34SP.com/httpdocs/forums/index.php on line 247

when i did everything right........ :(, can someone edit for me  or does it not work on version 1.0.0
Logged
PHX
Noobie
*
Posts: 47


Bad Ass Mothercrappity smacker!

ICQ - 63918674Phyrexia@hotmail.com WWW
Re:[Code] Moderator Column (1.3)
« Reply #14 on: April 06, 2002, 01:04:05 AM »
Reply with quote

Done ! Works Great :)
Logged

. : : Phyrexia : : .
Jedi Master

ICQ#: 63918674
MSN: [email protected]

Email: [email protected]
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 0.016 seconds with 16 queries.