Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nick Whetstone on October 19, 2008, 04:23:34 AM

Title: Off-Topic BBC Tag
Post by: Nick Whetstone on October 19, 2008, 04:23:34 AM


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)

Introduction
This adds a new BBC tag, which allow users to use [off-topic][/off-topic], to mark parts of their posts as off-topic.

Tested
Tested on fresh installations of 1.1.7 and 2.0 Beta 4.

Languages
o English
o Swedish
I welcome new translation. Post them in the mods topic.

Supported themes
o 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.

Support
If you need support, use the modification thread.


Changelog
1.1 22 February 2010
o Updated for 2.0 RC2
1.1 17 July 2009
o Edited package-infox.ml to make installation work on SMF 2.0 RC1.2.
1.1.1.1 23rd May
o Edited package-infox.ml to make installation work on SMF 2.0 RC1-1.
1.1.1 17th Mars
o Edited package-infox.ml to make installation work on SMF 2.0 RC1.
1.1 21st January
o Added support for SMF 2.0 Beta 4. (Charter members: It will work on RC1, just update package-info.xml)
1.0 11th October 2008
o Mod was submitted to the SMF Mod Site.
Title: Re: Off-Topic BBC Tag
Post by: Costa on October 19, 2008, 11:56:03 AM
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
Title: Re: Off-Topic BBC Tag
Post by: Marcus Forsberg on October 19, 2008, 12:46:57 PM
Thank's for the translation, Costa!
It will be added to the package soon.
Title: Re: Off-Topic BBC Tag
Post by: Costa on October 19, 2008, 12:49:37 PM
the funny thing: Don't change to much in the translation ,huahua

Congrats one more time
Title: Re: Off-Topic BBC Tag
Post by: The Saviour on October 19, 2008, 01:48:45 PM
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...
Title: Re: Off-Topic BBC Tag
Post by: Marcus Forsberg on October 20, 2008, 12:19:56 PM
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.
Title: Re: Off-Topic BBC Tag
Post by: The Saviour on October 20, 2008, 12:30:27 PM
Thanks for the info...
Title: Re: Off-Topic BBC Tag
Post by: Burke ♞ Knight on December 04, 2008, 10:05:51 PM
Any chance of a SMF 2.0 Beta 4 version any time soon? :)
Title: Re: Off-Topic BBC Tag
Post by: Marcus Forsberg on December 05, 2008, 12:45:59 AM
Probably.
I just have to get back in business whit my new computer :)
Title: Re: Off-Topic BBC Tag
Post by: Burke ♞ Knight on December 05, 2008, 01:00:09 AM
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
Title: Re: Off-Topic BBC Tag
Post by: villasg on December 05, 2008, 07:17:42 AM
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)
Title: Re: Off-Topic BBC Tag
Post by: Marcus Forsberg on December 05, 2008, 08:30:53 AM
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)
Title: Re: Off-Topic BBC Tag
Post by: Burke ♞ Knight on December 05, 2008, 08:42:48 AM
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. :)
Title: Re: Off-Topic BBC Tag
Post by: The Saviour on December 05, 2008, 06:57:26 PM
Here ya go...
Title: Re: Off-Topic BBC Tag
Post by: The Saviour on December 05, 2008, 07:07:19 PM
Or...
Title: Re: Off-Topic BBC Tag
Post by: Burke ♞ Knight on December 05, 2008, 07:27:00 PM
Personally, I love the first one, Saviour. :)
Title: Re: Off-Topic BBC Tag
Post by: The Saviour on December 05, 2008, 07:33:40 PM
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!
Title: Re: Off-Topic BBC Tag
Post by: villasg on December 06, 2008, 06:49:02 AM
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
Title: Re: Off-Topic BBC Tag
Post by: Burke ♞ Knight on December 06, 2008, 07:15:27 AM
What version of SMF are you running?
Title: Re: Off-Topic BBC Tag
Post by: villasg on December 06, 2008, 07:22:53 AM
Quote from: BurkeKnight on December 06, 2008, 07:15:27 AM
What version of SMF are you running?

1.1.7
Title: Re: Off-Topic BBC Tag
Post by: Burke ♞ Knight on December 06, 2008, 07:37:07 AM
Then the latest file on the downloads page should work.
I installed it without any problems.

What error are you getting?
Title: Re: Off-Topic BBC Tag
Post by: villasg on December 06, 2008, 07:40:25 AM
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
Title: Re: Off-Topic BBC Tag
Post by: Burke ♞ Knight on December 06, 2008, 07:41:52 AM
Yes, may very well be a server issue, if not allow spaces in file names.
Title: Re: Off-Topic BBC Tag
Post by: Smoky "Rider" Blue on January 21, 2009, 09:04:46 AM
hey Nascar, update for either the beta or rc?? would be nice ;)
Title: Re: Off-Topic BBC Tag
Post by: Marcus Forsberg on January 21, 2009, 09:31:03 AM
Maybe. We'll see soon ;)
Title: Re: Off-Topic BBC Tag
Post by: Smoky "Rider" Blue on January 21, 2009, 09:38:08 AM
lol.. you are a trip!!

thanks!! :P
Title: Re: Off-Topic BBC Tag
Post by: Marcus Forsberg on January 21, 2009, 10:01:50 AM
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)
Title: Re: Off-Topic BBC Tag
Post by: Smoky "Rider" Blue on January 21, 2009, 10:07:06 AM
lmao!! thanks very much!!  :)
Title: Re: Off-Topic BBC Tag
Post by: 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.
Title: Re: Off-Topic BBC Tag
Post by: 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
Title: Re: Off-Topic BBC Tag
Post by: Marcus Forsberg on May 25, 2009, 08:32:15 AM
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.
Title: Re: Off-Topic BBC Tag
Post by: 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


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 :)
Title: Re: Off-Topic BBC Tag
Post by: PlutoDelic on May 30, 2009, 09:55:55 AM
any help for the Bright Forest theme (smf 2.0 rc1-1)
Title: Re: Off-Topic BBC Tag
Post by: Electric Hermit on June 15, 2009, 10:30:19 PM
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

Code (Find) Select
// 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


Code (Replace With) Select
// 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


Code (Find) Select
'off-topic' => array('code' => 'off-topic', 'before' => '[off-topic]', 'after' => '[/off-topic]', 'description' => $txt['bbc_quote']),

Code (Replace With) Select
'off-topic' => array('code' => 'off-topic', 'before' => '[off-topic]', 'after' => '[/off-topic]', 'description' => $txt['off-topic_alt']),
Title: Re: Off-Topic BBC Tag
Post by: hypercube on June 22, 2009, 09:34:03 AM
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?
Title: Re: Off-Topic BBC Tag
Post by: mgburks on July 18, 2009, 04:11:26 PM
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.
Title: Re: Off-Topic BBC Tag
Post by: mforum on August 11, 2009, 06:16:51 PM
smf 1.1.10 - default theme

i see off-topic: , but no colored box ....  ::)
Title: Re: Off-Topic BBC Tag
Post by: Marcus Forsberg on August 12, 2009, 03:24:28 AM
Try a hard refresh. Hit F5.
Title: Re: Off-Topic BBC Tag
Post by: mforum on August 12, 2009, 01:16:24 PM
 :-[ yes , it works now
thank you  :)
Title: Re: Off-Topic BBC Tag
Post by: Marcus Forsberg on August 12, 2009, 02:31:07 PM
You're most welcome. :)
Title: Re: Off-Topic BBC Tag
Post by: Relemar on August 20, 2009, 06:29:03 PM
its just the same as typing

Off-topic, isnt it? :S
Title: Re: Off-Topic BBC Tag
Post by: @ngel on August 21, 2009, 05:36:11 AM
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,
Title: Re: Off-Topic BBC Tag
Post by: grafitus on August 21, 2009, 01:05:41 PM
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
Title: Re: Off-Topic BBC Tag
Post by: TurtleKicker on November 12, 2009, 02:24:11 PM
Any update for RC2?
Title: Re: Off-Topic BBC Tag
Post by: Nick Whetstone on February 16, 2010, 03:39:23 PM
Quote from: sremick on November 12, 2009, 02:24:11 PM
Any update for RC2?

Try this attachment.
Title: Re: Off-Topic BBC Tag
Post by: Nick Whetstone on February 22, 2010, 10:19:48 AM
Thanks to Nas for letting me take this over.

Updated for 2.0 RC2!
Title: Re: Off-Topic BBC Tag
Post by: Eclipse16V on March 15, 2010, 02:18:42 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: Off-Topic BBC Tag
Post by: PlutoDelic on March 31, 2010, 09:06:58 AM
Yes please, this mod caused me headaches cause it changed my normal quotes somehow, please, a proper version for RC3.
Title: Re: Off-Topic BBC Tag
Post by: 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.
Title: Re: Off-Topic BBC Tag
Post by: chinaren on June 22, 2010, 06:21:38 PM
Thanks for that RC3 upgrade!  Does the job!  :)
Title: Re: Off-Topic BBC Tag
Post by: vigoss on May 28, 2011, 11:24:46 AM
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 =(
Title: Re: Off-Topic BBC Tag
Post by: Gryzor on February 15, 2012, 01:49:56 AM
...or 2.0.2 :(
Title: Re: Off-Topic BBC Tag
Post by: Draffi on June 28, 2013, 06:49:19 PM
update for SMF 2.0.4, plz...
Title: Re: Off-Topic BBC Tag
Post by: TheListener on June 28, 2013, 06:56:10 PM
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
Title: Re: Off-Topic BBC Tag
Post by: Strannik64 on February 15, 2022, 12:01:34 AM
Please update to 2.1.1
Title: Re: Off-Topic BBC Tag
Post by: shadav on February 15, 2022, 03:33:58 AM
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