Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nathaniel on July 09, 2008, 10:34:51 PM

Title: Line Prefix BBC
Post by: Nathaniel on July 09, 2008, 10:34:51 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1287)

Line Prefix BBC 1.1 by Nathaniel
Overview

This BBC is used by the tags [lineprefix="{prefix}"][/lineprefix], where {prefix} will be added to the beginning of every new line that is inclosed by the [lineprefix="{prefix}"][/lineprefix] tags. If the prefix is not included then the tags will be ignored, and will be shown as normal text. If you want to put BBC in the prefix then you must use quotes ("") around it, for example [lineprefix="[BBC]SMF ROCKS!!![/BBC]"'].

For SMF 1.1.x and SMF 2 RC4 (or higher) use the 'LinePrefixBBC_1.2.tar.gz' package.
For SMF 2 RC2 use the 'LinePrefixBBC_v1.1.tar.gz' package.
For any versions of SMF 2 below RC2 use the 'LinePrefixBBC.zip' package.

Donate
If this mod has helped you, then feel free to support the developer by Donating (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=VCFQ7MJNVXLLA&lc=AU&item_name=Donation&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted). Any amount of money is welcome.

Version Changes
v1.2 - 5 November 2010
Updated for SMF 2 RC4 Compatibility.

v1.1 - 19 November 2009
Fixed a bug where the first line of the text inside the BBC was ignored.
Added the button code, button image and portuguese translation (http://www.simplemachines.org/community/index.php?topic=248874.msg1991241#msg1991241) provided by DeviDarkL (http://www.simplemachines.org/community/index.php?action=profile;u=181017).

v1.0 - 08 July 2008
Original Mod release.
Title: Re: Line Prefix BBC
Post by: synicfan on July 10, 2008, 10:12:57 AM
For the Noobz...(me!)..

So, this is a way to "tag" a post?
in other words, it helps your search engine results when someone searches for the "tag"...
am I understanding this correctly?

Thanks
Title: Re: Line Prefix BBC
Post by: Nathaniel on July 10, 2008, 08:11:21 PM
Quote from: synicfan on July 10, 2008, 10:12:57 AM
For the Noobz...(me!)..

So, this is a way to "tag" a post?
in other words, it helps your search engine results when someone searches for the "tag"...
am I understanding this correctly?

Thanks

It might, I am not sure, but that isn't the purpose of this BBC. Its purpose is to add the prefix to every new line inbetween the tags...

If it does improve the search engines results then thats just an added bonus, but I think that it probably would have effect, because the word/phrase would be on your page more times, giving you a higher ranking for that word.
Title: Re: Line Prefix BBC
Post by: DeviDarkL on March 25, 2009, 09:33:38 PM
It's a great mod ;)

I added a bottom for it. If someone wants it just modify modifications.xml and add:
<file name="$sourcedir/Subs-Editor.php">
<operation>
<search position="after"><![CDATA[
'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt['list']),]]></search>
<add><![CDATA[
'lineprefix' => array('code' => 'lineprefix', 'before' => '[lineprefix]', 'after' => '[/lineprefix]', 'description' => $txt['bbc_lineprefix']),]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[
// LINEPREFIX BBCode
$txt['bbc_lineprefix'] = 'Insert Prefix';]]></add>
</operation>
</file>


And put the icon attached in "yourwebsite/themes/yourtheme/images/bbc"

Glad if I helped someone :)

Portuguese translation for it:
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// LINEPREFIX BBCode
$txt['bbc_lineprefix'] = 'Inserir Prefixos';]]></add>
</operation>
</file>

Title: Re: Line Prefix BBC
Post by: Nathaniel on November 18, 2009, 10:14:41 PM
v1.1
Fixed a bug where the first line of the text inside the BBC was ignored.
Added the button code, button image and portuguese translation provided by DeviDarkL.

@DeviDarkL,
I have added the button to the mod. Thank you for the translation as well. :)