News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom BBCode

Started by Sarke, March 03, 2007, 02:40:26 PM

Previous topic - Next topic

dirtymind

eg.:

Match<br />
<b>{content1}</b> - <b>{content2}</b><br />
<b>Yellow Cards: </b>{content3}<br />
<b>Red Cards: </b>{content4}

dirtymind


dirtymind

#222
nothing?

Sakae

It would be nice to see this for SMF 2.0 RC3.
http://www.tigrelog.com.br
l: simple p: machines

drhamza


Arantor

It needs a total rewrite for the 2.0 series anyway, and if you're going to do that... you might as well enhance it in the process.

I have some related code bubbling away but THAT DOES NOT MEAN IT WILL BE PUBLISHED. It's very early, may not get finished.
Holder of controversial views, all of which my own.


dmacleo

I would really love to see something for rc3 for this.
the few times its needed it makes it so easy, I miss this function that phpbb3 had built in.
one of the very few things I miss about it though :)

mookytime

#227
hi there, I'm using SMF 1.1.11, the mod works fine, however my only problem was that when i tried to use BBC in the "option" tag it did not parse, BBC only worked in "content" tag so i did a little bit of research and found a file extend for the mod that allows BBC inside "option" tag, the file name was "CustomBBCQuoteExtend100.zip" and it actually DID make BBC work, however the only thing that doesn't work is when i try to use the [color] tag around any text, the lines look completely messed up and does not follow the HTML code i wrote for it. that only happens within the [option] tag, if i use [color] within [content] tag it works fine.

Any ideas how to fix the color tag within that mod? I'll attach the mod extend file in this post.
I want to be able to use the [color] tag as well in the [option] tag not just the [content] tag.

Any help is greatly appreciated.

dirtymind

#228
Quote from: ディン1031 on December 25, 2007, 02:25:24 PM
So i add to this post a fix for this bug, because the author did not answer to the pm. (CustomBBCDeleteBug100.zip)

which are the modifies and the files where this fix works on?

dirtymind

Quote from: Sheree on April 18, 2008, 08:13:26 PM
one of my moderator forgot to fill up some of the fields and added it now after the bbc was added why site won't load and is showing

Fatal error: Call to undefined function tp_loadtheme() in /home/ourcrib/public_html/Sources/Load.php on line 1133

and

Fatal error: Maximum execution time of 30 seconds exceeded in /home/ourcrib/public_html/Sources/Subs.php on line 168

I had the same problem and I found the exact field that generates the problem. the field is TAG NAME.
so, my question is: is there a a FIX for this problem?

Thanks

codevarun

Quote from: dmacleo on May 07, 2010, 04:24:14 PM
I would really love to see something for rc3 for this.
the few times its needed it makes it so easy, I miss this function that phpbb3 had built in.
one of the very few things I miss about it though :)
I also need for smf rc3 I have been crying alot for last 3 days :( :(
Join: http://www.helponrelation.com/forum/

LETS HELP OTHERS

dirtymind

Quote from: dirtymind on May 15, 2010, 01:12:11 PM
Quote from: Sheree on April 18, 2008, 08:13:26 PM
one of my moderator forgot to fill up some of the fields and added it now after the bbc was added why site won't load and is showing

Fatal error: Call to undefined function tp_loadtheme() in /home/ourcrib/public_html/Sources/Load.php on line 1133

and

Fatal error: Maximum execution time of 30 seconds exceeded in /home/ourcrib/public_html/Sources/Subs.php on line 168

I had the same problem and I found the exact field that generates the problem. the field is TAG NAME.
so, my question is: is there a a FIX for this problem?

Thanks

Up  :)

CodeMonkey76

Can anyone help me on this? 

I've got the mod installed based on the parse changes for version 1.1.11.  It installs fine, but when I go to the 'Features and Options' page, it's not listed in the menu bar.  I look at the source code and the link is there, but there is no text.  I go to the link page and sure enough, it's working, but there are no labels on the form fields.  I figure this has to do with the Modifications.english.php file where you put the label text fields.  I've got that file changed correctly, but it's not reading the changes for some reason.  I don't have any caching enabled on the server.  Is there something else I can check?


<?php
// Version: 1.1; Modifications

$txt['are_you_human'] = 'Are You Human?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_no'] = 'No';
$txt['are_you_human_yes'] = 'Yes';
$txt['are_you_human_unsure'] = 'Unsure';
$txt['are_you_bot_unsure'] = 'Please confirm that you are human in order to proceed with registration';
$txt['are_you_bot_yes'] = 'Bots are not allowed to register. Please confirm that you are human in order to register';

// Custom BBCode
$txt['customBBCode_tabtitle'] = 'Custom BBC';
$txt['customBBCode_tag'] = 'Tag name';
$txt['customBBCode_description'] = 'Description';
$txt['customBBCode_enable'] = 'Enable tag';
$txt['customBBCode_type'] = 'Tag type';
$txt['customBBCode_type_options'] = '[tag]content[tag]|[tag=option]content[tag]|[tag]';
$txt['customBBCode_trim'] = 'Trim whitespace';
$txt['customBBCode_trim_options'] = '(no trim)|inside|outside|both';
$txt['customBBCode_block_level'] = 'Block level';
$txt['customBBCode_button'] = 'Add button';
$txt['customBBCode_parse'] = 'Parse enclosed BBCode';
$txt['customBBCode_parse_options'] = '(no parsing)|content only|content and option';
$txt['customBBCode_text'] = 'The HTML used for the tag<div class="smalltext">&lt;tag&gt;{content}&lt;/tag&gt;</div><div class="smalltext">&lt;tag alt={option}&gt;{content}&lt;/tag&gt;</div>';

?>

CodeMonkey76

Ok, I figured this out.  The comment "//Custom BBCode" is the problem.  For some reason, the file didn't save the end lines and it viewed everything I added as inside a comment.

CodeMonkey76

Does anyone know if it's possible to use just *part* of what someone puts as the content between the tags?

Basically, I want them to be able to put it in their posts like this:

[customtag]http://www.somewebsite.com/stuff_I_want_to_use[/customtag]

and then I want to HTML it uses to look like this:

<html_tag>stuff_I_want_to_use</html_tag>


I've seen the custom BBCode stuff for phpBB that lets me specify tags like that by putting them in as

[customtag]http://www.somewebsite.com/{content}[/customtag]

and then then the HTML as

<html_tag>{content}</html_tag>


Anyone know if this is possible in SMF forums, through this or another mod?

Chen Zhen

#235
For SMF 2.0 RC3

Just some minor edits to make it look and function properly.
I briefly tested this and it functions properly and is SMF error free.


Note:
Your bb code icons must be stored in  ...  /Themes/YOUR_THEME/images/bbc/  ... of every theme.
Name them the same as the tag name, they should be approx. 23 x 23 and in gif format with preferably a transparent background.


Settings Menu

\\Edit Aug. 13/2010 - I fixed/created a proper settings display template .

UD

My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

dirtymind

Quote from: dirtymind on May 22, 2010, 07:05:37 PM
Quote from: dirtymind on May 15, 2010, 01:12:11 PM
Quote from: Sheree on April 18, 2008, 08:13:26 PM
one of my moderator forgot to fill up some of the fields and added it now after the bbc was added why site won't load and is showing

Fatal error: Call to undefined function tp_loadtheme() in /home/ourcrib/public_html/Sources/Load.php on line 1133

and

Fatal error: Maximum execution time of 30 seconds exceeded in /home/ourcrib/public_html/Sources/Subs.php on line 168

I had the same problem and I found the exact field that generates the problem. the field is TAG NAME.
so, my question is: is there a a FIX for this problem?

Thanks

Up  :)

Up

codevarun

Quote from: 01_Underdog on May 28, 2010, 09:54:19 PM
For SMF 2.0 RC3

Just some minor edits to make it look and function properly.

The BrowseCustomTags() function should be re-written.. perhaps when I have more time.

I briefly tested this and it functions properly and is SMF error free.


Note:
Your bb code icons must be stored in  ...  /Themes/YOUR_THEME/images/bbc/  ... of every theme.
Name them the same as the tag name, they should be approx. 23 x 23 and in gif format with preferably a transparent background.


UD
Thanks a millions..
Join: http://www.helponrelation.com/forum/

LETS HELP OTHERS

Chen Zhen

#238
Quote from: codevarun on May 29, 2010, 08:38:30 AM
Thanks a millions..

You're welcome.  I use it myself so I edited the RC1.2 version to work for people using RC3.
Like I said.. it needs more editing though... the info fed into the array for the db settings (and the settings display itself) needs to be re-written properly.

However,  it works, displays and is smf error free.


UD


My SMF Mods & Plug-Ins

WebDev

SMF support staff should be shaping a positive community experience & not provoking an argument or emotional reaction.

snyperthugs

I installed this but no new tab shows up in Features and Options
www.4mydjs.com - Get Your Music Heard!

Advertisement: