Welcome, Guest. Please Login or Register.
May 06, 2024, 03:44:35 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  |  [Code] QuickTopic on BoardIndex « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Code] QuickTopic on BoardIndex  (Read 4593 times)
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

[Code] QuickTopic on BoardIndex
« on: March 14, 2002, 02:42:36 AM »
Reply with quote

This mod will add a small text link under each Board Moderator.  This link will allow you to start a new topic for that particular board without having to go into the board first.  It retains the functions of Guest Posting enabled/disabled and the Announcement Board feature.

Check it out on my test board: http://www.nextcelica.net/yabbse

<version>
YaBB SE 1.1.0 - 1.3.0
</version>

<mod info>Add a text link to your BoardIndex.php for users to add a new topic without first going into the board itself.  Retains Announcement Board and Guest Posting on/off functions.</mod info>

<author>
Shaun
</author>

<homepage>
http://www.nextcelica.net - [Shaun]
</homepage>


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


<search for>
         print <<<EOT
  <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>
EOT;
</search for>


<replace>
         print <<<EOT
  <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   
EOT;
if (!$isAnnouncement || $settings[7]=='Administrator' || $settings[7]=='Global Moderator') {
   print "   <font size=\"1\"><br>$menusep<a href=\"$scripturl?board=$row_board[ID_BOARD];action=post;title=$txt[464]\">[new topic]</a></font></a>";
}
print <<<EOT
      </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>
EOT;
</replace>
« Last Edit: March 20, 2002, 05:40:20 PM by Godai » Logged

This guy uses objects like women man!
PabUK
Full Member
***
Posts: 136


I eat llamas!

WWW
Re:QuickTopic on BoardIndex
« Reply #1 on: March 14, 2002, 02:46:14 AM »
Reply with quote

Nice idea. Nice template you have there too. :)
Logged


944 Topics, 15010 Posts, 180 Members as of 30th April
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:QuickTopic on BoardIndex
« Reply #2 on: March 14, 2002, 04:16:29 AM »
Reply with quote

Nice! Good job on that!
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
PostDeals
Full Member
***
Posts: 112


Checkout postdeals.net for the latest deals.

WWW
Re:QuickTopic on BoardIndex
« Reply #3 on: March 14, 2002, 04:37:02 AM »
Reply with quote

works great on my site awesome
thanks
Logged

For HotDeals, Coupons, Games Visit: www.postdeals.net

Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Code] QuickTopic on BoardIndex
« Reply #4 on: March 25, 2002, 02:11:19 AM »
Reply with quote

OOps there is another one who's link shows nothing but a broken board. Scares me out of applying his mod! Just like the other link it shows these errors when you go to preview his changes:

[qoute]
Warning: Failed opening ' /usr/local/psa/home/vhosts/nextcelica.net/httpdocs/yabbse/Sources/Subs.php' for inclusion (include_path='.:') in /usr/local/psa/home/vhosts/nextcelica.net/httpdocs/yabbse/index.php on line 37

Warning: Failed opening ' /usr/local/psa/home/vhosts/nextcelica.net/httpdocs/yabbse/Sources/Errors.php' for inclusion (include_path='.:') in /usr/local/psa/home/vhosts/nextcelica.net/httpdocs/yabbse/index.php on line 38

Warning: Failed opening ' /usr/local/psa/home/vhosts/nextcelica.net/httpdocs/yabbse/Sources/Load.php' for inclusion (include_path='.:') in /usr/local/psa/home/vhosts/nextcelica.net/httpdocs/yabbse/index.php on line 39

Warning: Failed opening ' /usr/local/psa/home/vhosts/nextcelica.net/httpdocs/yabbse/Sources/Security.php' for inclusion (include_path='.:') in /usr/local/psa/home/vhosts/nextcelica.net/httpdocs/yabbse/index.php on line 40

Fatal error: Call to undefined function: clicklog() in /usr/local/psa/home/vhosts/nextcelica.net/httpdocs/yabbse/index.php on line 52
[/qoute]



Quote from: Shaun on March 14, 2002, 02:42:36 AMThis mod will add a small text link under each Board Moderator.  This link will allow you to start a new topic for that particular board without having to go into the board first.  It retains the functions of Guest Posting enabled/disabled and the Announcement Board feature.

Check it out on my test board: http://www.nextcelica.net/yabbse
Logged

concrete
Noobie
*
Posts: 2


I love YaBB SE!

WWW
Re:[Code] QuickTopic on BoardIndex
« Reply #5 on: March 25, 2002, 04:17:01 AM »
Reply with quote

Quote from: Wiziwig on March 25, 2002, 02:11:19 AMOOps there is another one who's link shows nothing but a broken board. Scares me out of applying his mod!

I tried it on a test board today and it works just fine, although it suffers from the same problem as the original layout - the thread title isn't censored. :-\
Logged
tazthedev
Full Member
***
Posts: 161


I'm a llama!

Re:[Code] QuickTopic on BoardIndex
« Reply #6 on: March 26, 2002, 12:00:35 AM »
Reply with quote

seems they're some errors on your board...
Logged
Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:[Code] QuickTopic on BoardIndex
« Reply #7 on: March 26, 2002, 02:03:47 PM »
Reply with quote

Heh...you guys are funny.  I had to switch hosts and now I only have two mySQL databases.  One for my REAL YaBB Board and my PostNuke.  So I don't have my testing board anymore...I might look for a cheap host just for making mods later next month.
Logged

This guy uses objects like women man!
PlonkerFish
Full Member
***
Posts: 247


Chicken

plonkerfish@hotmail.com
Re:[Code] QuickTopic on BoardIndex
« Reply #8 on: March 26, 2002, 03:56:30 PM »
Reply with quote

www.lycos.fr

it is in french but it gives PHP4 and mySQL databases.
Logged

If i don't make sense, please tell me.

I stole this avatar. I wonder how long it will take before the person finds out!
concrete
Noobie
*
Posts: 2


I love YaBB SE!

WWW
Re:[Code] QuickTopic on BoardIndex
« Reply #9 on: March 26, 2002, 06:24:08 PM »
Reply with quote

Quote from: concrete on March 25, 2002, 04:17:01 AMI tried it on a test board today and it works just fine, although it suffers from the same problem as the original layout - the thread title isn't censored. :-\

Oops, I actually meant that for this one. :-[
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Code] QuickTopic on BoardIndex
« Reply #10 on: March 26, 2002, 11:54:09 PM »
Reply with quote

Quote from: Shaun on March 26, 2002, 02:03:47 PMHeh...you guys are funny.  I had to switch hosts and now I only have two mySQL databases.  One for my REAL YaBB Board and my PostNuke.  So I don't have my testing board anymore...I might look for a cheap host just for making mods later next month.


either go with CW, or i can see if i can hook you up with a mysql acct :)
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
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Code] QuickTopic on BoardIndex « 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.018 seconds with 19 queries.