Welcome, Guest. Please Login or Register.
May 14, 2025, 02:31:27 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  |  Mod Ideas and Creation  |  OffTopic mod for Se? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: OffTopic mod for Se?  (Read 1269 times)
Abominator
Noobie
*
Posts: 15


WWW
OffTopic mod for Se?
« on: July 22, 2003, 04:19:40 PM »
Reply with quote

Hi, I've just upgraded my YaBB to SE, and installed SuperMOD, but I still lack one feature that everyone loved on my old board, the [offtopic]MESSAGE[/offtopic] tag, with the smiley (or in my site's case, a MegaMan) holding up the offtopic message on a placard...

I've found the old SP version of it, and I was wondering if anyone could work a little magic on it to make it work on my SE?

<id>
OFFTOPIC POST
</id>

<version>
1.0
</version>

<mod info>
1.0
-add a little funny offtopic poster-smilie to your text
</mod info>

<author>
yetzt & tweb
</author>

<homepage>
http://www.yetzt.org & http://www.planet-webster.de
</homepage>

<edit file>
Sources/yabbc.pl
</edit file>

<search for>
   $message =~ s~\[quote\]\n*(.+?)\n*\[/quote\]~&simplequotemsg($1)~eisg;
</search for>

<add after>
   $message =~ s~\[offtopic\](.+?)\[/offtopic\]~<table border="0" bordercolor="#ffffff" cellspacing="0" cellpadding="0"><tr><td align="center"><img src="$imagesdir\/offtopic_oben.gif\" border="0"></td></tr><tr><td><table border="0" cellspacing="0" cellpadding="1" bgcolor="#9C5231"><tr><td><table border="0" cellspacing="0" cellpadding="3" bgcolor="#000000"><tr><td><u>offtopic of the day:</u><br><ul>$1</ul></td></tr></table></td></tr></table></td></tr><tr><td align="center"><img src="$imagesdir\/offtopic_unten.gif\" border="0"></td></tr></table>~isg;
</add after>


I know next to nothing about php, so I don't know how tricky it'd be, but it's not the biggest mod ever, so I'd make an educated guess that it's not too hard. I'll forever appreciate any help you guys can give me  ;D
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:OffTopic mod for Se?
« Reply #1 on: July 22, 2003, 05:07:50 PM »
Reply with quote

open Subs.php, search for:         '/\[url\](.+?)\[\/url\]/is',, add before:         '/\[offtopic\](.+?)\[\/offtopic\]/is',

search for:         '<a href="\\1" target="_blank">\1</a>',add before:         "<table border=\"0\" bordercolor=\"#ffffff\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\"><img src=\"$imagesdir/offtopic_oben.gif\" border=\"0\"></td></tr><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#9C5231\"><tr><td><table border="0" cellspacing=\"0\" cellpadding=\"3\" bgcolor=\"#000000\"><tr><td><u>offtopic of the day:</u><br><ul>\\1</ul></td></tr></table></td></tr></table></td></tr><tr><td align=\"center\"><img src=\"$imagesdir/offtopic_unten.gif\" border=\"0\"></td></tr></table>",

hope i dont miss any \ up there...
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
sparkiegeek
Noobie
*
Posts: 29


Re:OffTopic mod for Se?
« Reply #2 on: July 22, 2003, 09:23:34 PM »
Reply with quote

Quotehope i dont miss any \ up there...

D'oh you missed one pair (as far as I can see) ;)

add before should be
        "<table border=\"0\" bordercolor=\"#ffffff\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\"><img src=\"$imagesdir/offtopic_oben.gif\" border=\"0\"></td></tr><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#9C5231\"><tr><td><table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" bgcolor=\"#000000\"><tr><td><u>offtopic of the day:</u><br><ul>\\1</ul></td></tr></table></td></tr></table></td></tr><tr><td align=\"center\"><img src=\"$imagesdir/offtopic_unten.gif\" border=\"0\"></td></tr></table>",
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  OffTopic mod for Se? « 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.013 seconds with 16 queries.