Off-Topic BBC Tag v1.1.2
Orgininally by Nas, now developed by Ha2
(For SMF 1.1.x and SMF 2.0 RC1+)
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1458) | Comment On This Mod (http://www.simplemachines.org/community/index.php?topic=269027.0)
IntroductionThis adds a new BBC tag, which allow users to use [off-topic][/off-topic], to mark parts of their posts as off-topic.
TestedTested on fresh installations of 1.1.7 and 2.0 Beta 4.
Languageso English
o Swedish
I welcome new translation. Post them in the mods topic.
Supported themeso Default
If you want support for other themes, write in the mods topic.
Your theme will only need to be edited if it uses a custom Post.template.php.
SupportIf you need support, use the modification thread.
Changelog1.1 22 February 2010o Updated for 2.0 RC2
1.1 17 July 2009o Edited package-infox.ml to make installation work on SMF 2.0 RC1.2.
1.1.1.1 23rd Mayo Edited package-infox.ml to make installation work on SMF 2.0 RC1-1.
1.1.1 17th Marso Edited package-infox.ml to make installation work on SMF 2.0 RC1.
1.1 21st Januaryo Added support for SMF 2.0 Beta 4. (
Charter members: It will work on RC1, just update package-info.xml)
1.0 11th October 2008o Mod was submitted to the SMF Mod Site.
Thanks for the mod
but... in brazilian...
// Start Off-Topic BBC by Nascar
$txt['off-topic'] = 'Off-Topic:';
$txt['off-topic_desc'] = 'Tag BBC Off-Topic';
// End Off-Topic BBC by Nascar
hehe, congrats for the mod
Farewell
Thank's for the translation, Costa!
It will be added to the package soon.
the funny thing: Don't change to much in the translation ,huahua
Congrats one more time
This would be even more nice, if you can get it to display just like the Modbreak tag...
Oh...one more thing...
You have to refresh the page after using this BBCode in order for the background highlight to work.
Just a heads up...
Thanks for the comment.
You should olny have to refresh it the first time you use the BBC, just to notify the broswer about the CSS update.
Thanks for the info...
Any chance of a SMF 2.0 Beta 4 version any time soon? :)
Probably.
I just have to get back in business whit my new computer :)
New computer!!!!
You lucky devil!
I'm stuck with a computer that has an attitude. I think it's trying to shop for a less busy owner...LOL
Thanks .
i think need a little better icon like (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg178.imageshack.us%2Fimg178%2F4152%2Fofftag9343042cf4.gif&hash=110b6e5a274659fd6f8e9897537c66c944e3e660) (http://imageshack.us)
I agree. I just made a simple icon fast.
Did you create that off-smiley? If so, may I use it for the mod? (Creds to you, ofcourse)
Nascar, I believe that is a free smiley available just about all over the net.
I've seen it on a lot of forums, including a web host's support forum I'm staff at. :)
Here ya go...
Or...
Personally, I love the first one, Saviour. :)
Thanks...but I can't take credit for the images...only the text...and I believe the font is owned by Microsoft.
Emoticons are courtesy of vbimageworks.com (http://www.vbimageworks.com).
Anyone looking for some f-a-n-t-a-s-t-i-c forum images...should give them a look.
Tell shelley, Saviour sent ya!
Thanks but problem in install with pakage manager
The name is Off-Topic BBC Tag 1.0.zip
and need to make like some Off_Topic_BBC_Tag_1.0.zip
What version of SMF are you running?
Then the latest file on the downloads page should work.
I installed it without any problems.
What error are you getting?
Dont have erors .
Simply dont make anything ( dont install anything )
After change the name all ok
I think the problem is from settings on my server
Run in safe mode .
And maybe have some restrictions
Yes, may very well be a server issue, if not allow spaces in file names.
hey Nascar, update for either the beta or rc?? would be nice ;)
Maybe. We'll see soon ;)
lol.. you are a trip!!
thanks!! :P
Update
Now supporting SMF 2.0 Beta 4.
Charter members
This should work on SMF 2.0 RC1, just open package-info.xml and find:
<install for="2.0 Beta 4">
Change it to:
<install for="2.0 RC1">
(I guess)
Then, find
<uninstall for="2.0 Beta 4">
Change it to:
<uninstall for="2.0 RC1">
(I guess)
lmao!! thanks very much!! :)
Thanks Works great! ..... Only thing I might want to change the BBC Tag Icon at some point.
I've installed and the tag icon when you hover over it displays "Insert Quote" instead of I'm presuming "Off topic" - Where would I fix this :) thanks
Quote from: Chit-Chat ChatterBox Boss on May 15, 2009, 11:53:45 PM
Thanks Works great! ..... Only thing I might want to change the BBC Tag Icon at some point.
./Themes/defailt/images/bbc
Quote from: SteveW on May 25, 2009, 03:25:56 AM
I've installed and the tag icon when you hover over it displays "Insert Quote" instead of I'm presuming "Off topic" - Where would I fix this :) thanks
Hmm.. Can't tell without a look at Subs.php, Post.template.php (If you are on 1.1.x) and Modifcations.english.php.
I'm using 2.0rc1
This is in Modifcations.english.php
// Post History END// Start Off-Topic BBC by Nascar
$txt['off-topic'] = 'Off-Topic:';
$txt['off-topic_desc'] = 'Off-Topic BBC Tag';
// End Off-Topic BBC by Nascar
This is the section of Subs.php it has altered:
array(
'tag' => 'quote',
'before' => '<div class="quoteheader">' . $txt['quote'] . '</div><blockquote>',
'after' => '</blockquote>',
'block_level' => true,
),
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '(.{1,192}?)', 'quoted' => true),
),
'before' => '<div class="quoteheader">' . $txt['quote_from'] . ': {author}</div><blockquote>',
'after' => '</blockquote>',
'block_level' => true,
),
array(
'tag' => 'quote',
'type' => 'unparsed_equals',
'before' => '<div class="quoteheader">' . $txt['quote_from'] . ': $1</div><blockquote>',
'after' => '</blockquote>',
'quoted' => 'optional',
'block_level' => true,
),
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '([^<>]{1,192}?)'),
'link' => array('match' => '(?:board=\d+;)?((?:topic|threadid)=[\dmsg#\./]{1,40}(?:;start=[\dmsg#\./]{1,40})?|action=profile;u=\d+)'),
'date' => array('match' => '(\d+)', 'validate' => 'timeformat'),
),
'before' => '<div class="quoteheader"><a href="' . $scripturl . '?{link}">' . $txt['quote_from'] . ': {author} ' . $txt['search_on'] . ' {date}</a></div><blockquote>',
'after' => '</blockquote>',
'block_level' => true,
),
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '(.{1,192}?)'),
),
'before' => '<div class="quoteheader">' . $txt['quote_from'] . ': {author}</div><blockquote>',
'after' => '</blockquote>',
'block_level' => true,
),
array(
'tag' => 'off-topic',
'before' => '<div class="off-topicheader">' . $txt['off-topic'] . '</div><div class="off-topic">',
'after' => '</div>',
'block_level' => true,
),
array(
'tag' => 'off-topic',
'type' => 'parsed_equals',
'before' => '<div class="off-topicheader">' . $txt['off-topic'] . ' $1</div><div class="off-topic">',
'after' => '</div>',
'quoted' => 'optional',
'block_level' => true,
),
array(
'tag' => 'right',
'before' => '<div style="text-align: right;">',
'after' => '</div>',
'block_level' => true,
),
Thanks :)
any help for the Bright Forest theme (smf 2.0 rc1-1)
Quote from: SteveW on May 25, 2009, 10:11:33 AM
I'm using 2.0rc1
This is in Modifcations.english.php
// Post History END// Start Off-Topic BBC by Nascar
$txt['off-topic'] = 'Off-Topic:';
$txt['off-topic_desc'] = 'Off-Topic BBC Tag';
// End Off-Topic BBC by Nascar
Thanks :)
./Themes/default/languages/Modifications.english.php
// Post History END// Start Off-Topic BBC by Nascar
$txt['off-topic'] = 'Off-Topic:';
$txt['off-topic_desc'] = 'Off-Topic BBC Tag';
// End Off-Topic BBC by Nascar
// Post History END// Start Off-Topic BBC by Nascar
$txt['off-topic'] = 'Off-Topic:';
$txt['off-topic_alt'] = 'Off-Topic';
$txt['off-topic_desc'] = 'Off-Topic BBC Tag';
// End Off-Topic BBC by Nascar
./Sources/Subs-Editor.php
'off-topic' => array('code' => 'off-topic', 'before' => '[off-topic]', 'after' => '[/off-topic]', 'description' => $txt['bbc_quote']),
'off-topic' => array('code' => 'off-topic', 'before' => '[off-topic]', 'after' => '[/off-topic]', 'description' => $txt['off-topic_alt']),
Hi can someone help me? I first had trouble installing this mod but finally it worked. But now I f**ked some things up and quotes are showing like this now:
Quote from: Me link=topic=411.msg14296#msg14296 date=1245672069
So it's not a clickable link anymore. I think it's something in subs.php.. Anybody know what could've happened?
Using version 1.1.10 this package installs fine, and I see the BBC code, it inserts the code into the post but when the post is submitted there is no change in the post. It just looks normal. I'm using the default theme BTW.
smf 1.1.10 - default theme
i see off-topic: , but no colored box .... ::)
Try a hard refresh. Hit F5.
:-[ yes , it works now
thank you :)
You're most welcome. :)
its just the same as typing
Off-topic, isnt it? :S
French Translation :
$txt['off-topic'] = 'Message Hors-Sujet :';
$txt['off-topic_desc'] = 'BBC Tag Message Hors-Sujet';
and a correction for 2.0 RC1.2 :
<add><![CDATA[ 'off-topic' => array('code' => 'off-topic', 'before' => '[off-topic]', 'after' => '[/off-topic]', 'description' => $txt['bbc_quote']),]]></add>
must be ('bbc_quote' replaced by 'off-topic_desc')
<add><![CDATA[ 'off-topic' => array('code' => 'off-topic', 'before' => '[off-topic]', 'after' => '[/off-topic]', 'description' => $txt['off-topic_desc']),]]></add>
Regards,
Thanks Nas. And Turkish Translate:
// Start Off-Topic BBC by Nas
$txt['off-topic'] = 'Konu Dışı:';
$txt['off-topic_desc'] = 'Konu Dışı';
// End Off-Topic BBC by Nas
Any update for RC2?
Thanks to Nas for letting me take this over.
Updated for 2.0 RC2!
Nice Mod
Please update it for SMF 2.0RC3 ;)
Thanks
Yes please, this mod caused me headaches cause it changed my normal quotes somehow, please, a proper version for RC3.
I upgraded the plugin to version RC3 with curve theme, Fixed a bug in the bbcode button and tweaked the css:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F2wgvpyd.jpg&hash=3da5b8184fa90bf81daf215f834d1eb694da6c4f)
The bug was to use the string of the quote button ($txt['bbc_quote']) instead of the button off topic ($txt['off-topic_desc']).
old
array(
'code' => 'off-topic',
'image' => 'off-topic',
'before' => '[off-topic]',
'after' => '[/off-topic]',
'description' => $txt['bbc_quote']
),
new
array(
'code' => 'off-topic',
'image' => 'off-topic',
'before' => '[off-topic]',
'after' => '[/off-topic]',
'description' => $txt['off-topic_desc']
All credit goes to the plugin author.
Thanks for that RC3 upgrade! Does the job! :)
Quote from: JD82 on April 19, 2010, 03:01:32 PM
I upgraded the plugin to version RC3 with curve theme, Fixed a bug in the bbcode button and tweaked the css:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F2wgvpyd.jpg&hash=3da5b8184fa90bf81daf215f834d1eb694da6c4f)
The bug was to use the string of the quote button ($txt['bbc_quote']) instead of the button off topic ($txt['off-topic_desc']).
old
array(
'code' => 'off-topic',
'image' => 'off-topic',
'before' => '[off-topic]',
'after' => '[/off-topic]',
'description' => $txt['bbc_quote']
),
new
array(
'code' => 'off-topic',
'image' => 'off-topic',
'before' => '[off-topic]',
'after' => '[/off-topic]',
'description' => $txt['off-topic_desc']
All credit goes to the plugin author.
This version doesnt want to setup on smf rc5 =(
...or 2.0.2 :(
update for SMF 2.0.4, plz...
Quote from: Draffi on June 28, 2013, 06:49:19 PM
update for SMF 2.0.4, plz...
Have a read of the Mod Emulate link in my signature.
The Mod has not been updated since 2.0 RC2
Please update to 2.1.1
Quote from: Strannik64 on February 15, 2022, 12:01:34 AMPlease update to 2.1.1
seeing as this mod was last updated 2010
the last post in the thread was 2013
you're better off using a different mod that has been updated (and most likely will be updated to 2.1.1 somewhat soon, it's been updated to work with 2.1 rc2 so it may work with 2.1.1 already)
https://custom.simplemachines.org/index.php?mod=4166