News:

Wondering if this will always be free?  See why free is better.

Main Menu

Line Prefix BBC

Started by Nathaniel, July 09, 2008, 10:34:51 PM

Previous topic - Next topic

Nathaniel

Link to Mod

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. 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 provided by DeviDarkL.

v1.0 - 08 July 2008
Original Mod release.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

synicfan

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

Nathaniel

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.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

DeviDarkL

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>


Nathaniel

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. :)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Advertisement: