News:

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

Main Menu

Custom BBCode

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

Previous topic - Next topic

58tbird

Quote from: perplexed on March 28, 2008, 10:49:01 AM
is it possible to make a hyperlink tag with this mod?

I want to make a bbc version of this to make it easier for members to post hyperlinks with bbc as they confused when trying to do this [url=http://www.google.com]google[/url]  google

I've been playing with

<a href=></a> 

but I can't get it to work

thanks


I'd like that too perplexed.  How about <url={option}>{content}</url>

perplexed

That was one of the options I tried and then I smacked myself on the head and remembered we already have a button that does that - duh 

the world image!  between the image button and the email button lol
* perplexed has moments of forgetfulness  :-[

58tbird

#122
If I'm not mistaken, I think the button you're referring to only inserts the opening and closing hyperlink code (the effect is no different than simply typing the url into the post).  I'm still new at this, but I don't really see the need for this button.

What I'm looking to create (and I thought you were after as well) is one that sets it up to insert the url and the text you want displayed instead of displaying the url itself (which is unattractive, and can often be quite long).  I think these are referred to as Descriptive Links.

I can't be sure if the suggestion I gave you works because I don't know how to go about getting a button (I'm searching for that right now), and although I've enabled my new custom code, I can't find any way to use it without a button.

perplexed

#123
that's correct, but on my site, using post preview, when I click on that little world button it posts the url tags as

[url=]  [/url ]

I never noticed as I always use quick reply, and I have 'enchanced quick reply mod' installed.  On quick reply the little world button posts the url tags as

[url ][/url ]



which is why I was looking for custom code to do it, but have only noticed that it's doing it anyway but only on post reply.

In another thread here, someone has asked a similar question and been directed to this mod url popup   which I have just installed on a test site.

That might solve the problem for you as it asks you to insert url and then text :)


edited again as codes keep disappearing!

58tbird

#124
Oh, that's interesting!  I've never used quick reply.  Thanks for the tip on the url popup - I'll go have a look at that right now  ;)

Wow!  Just what I needed - thanks again for passing that on, perplexed :D  The url popup works great!


antj87

where do i upload the files to?

antj87




Sheree

hi there i need help here is the scenario

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


so what i did is re- installed a fresh copy of the files in the sources folder and i manage to un-install the mod but my problem is everytime i re install this mod the error occurs again, my question is how can i install this without the error that my moderator made.

here is what my moderator did:

Tag name:Blank
Description: Blank
Tag type: [tag=option]content[/tag]
Parse enclosed BBCode: (no parsing)
Trim whitespace: (no trim)   
Block level: Unchecked
The HTML used for the tag: <embed src="http://i82.photobucket.com/albums/j268/enchantedglitters/mediaplayer.swf" width="200" height="20" allowfullscreen="true" flashvars="&file={content}&height=20&width=200&showeq=true&autostart=true&repeat=true&shuffle=false&volume=100"></embed>

Sheree

bump

anybody? sorry i really needed help

cellax

@Sheree   try to remove the custom bbcode from DB


about me I have one question, I removed this from CustomBBcode.php and Post.template.phpasort($tags);

becouse I do not like the alphabetical sorting, now all seems to work fine, the Custom BBcode are showed on post template with the creation order.

but is my "mod" safe?

thx

ディン1031

Quote from: cellax on April 22, 2008, 05:53:01 AM
@Sheree   try to remove the custom bbcode from DB


about me I have one question, I removed this from CustomBBcode.php and Post.template.phpasort($tags);

becouse I do not like the alphabetical sorting, now all seems to work fine, the Custom BBcode are showed on post template with the creation order.

but is my "mod" safe?

thx
Do you mean with safe secure?
Than i would say it'S secure, because as i see the admin can only change these things. (But he can do some things wrong and it did nor work).

If you mean by safe, is it bug free?
Than defently not ;). I found 3 bugs on my first trys... the delete fix mod that i created should fix some of them, but i'm sure there are more bugs.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

cellax

#134
oh thx, I am fixing with your patch


EDIT: about your    Custom BBC Extension Option Preparse Content

it seems to be like the embedded option to parse BBcode inside the Content, what's the difference?

and "Custom BBC Extension Option Quotes" all work during installation and on CP, but isn't working on post template, it is showed alway as [tag][/tag], but it shoud be [tag=""][/tag], am I wrong?

ディン1031

#135
Ah you mean it insert the other way? It's normal because smf handle it like that, because the quoted information are only for some extra infomations, it must not be filled that it work ;). So i thought, and it was only a idea what else can be added to the mod. To make it more usefull ;). (It's not my mod, but i think it has potential).

And yes it is possible to do this somehow, but i programmed it fast and so i think it could be many things that could be done better. But like i said before this are only ideas to make the mode more attractive ;). (Hope the Mod Author will update it sometimes).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

cellax


Sheree

Quote from: cellax on April 22, 2008, 05:53:01 AM
@Sheree   try to remove the custom bbcode from DB


about me I have one question, I removed this from CustomBBcode.php and Post.template.phpasort($tags);

becouse I do not like the alphabetical sorting, now all seems to work fine, the Custom BBcode are showed on post template with the creation order.

but is my "mod" safe?

thx
Hi thanks for the answer but what is the database name?  I don't see custom bbcode on my database

MissyNL

Hello,

i want to add a custom BB Code that the members van use to change the background in a image of color in the profile boxes. I use Ultimate profile..   Does anybody know what code that is?

Thanks!
Sorry for my poor English, but i think it's probably better then your Dutch :)

cellax

#139
Quote from: Sheree on April 23, 2008, 12:52:28 PM
Hi thanks for the answer but what is the database name?  I don't see custom bbcode on my database

well, enter on Table {prefix}settings, sort on Alphabetical order the Variables and look for "CustomBBcode", you should see all your custom bbcode on forum, you have to remove the wrong one and to reduce the BBcode counter by one. Do before a DB backup or better, try it on local server.

look mine for example, I have 2 custom bbcode, I opened an older SQL backup file:('customBBCode_tag_1', 'ancora'),
('customBBCode_description_1', 'Crea un ancora nei messaggi'),
('customBBCode_type_1', '1'),
('customBBCode_parse_1', '1'),
('customBBCode_count', '2'),
('customBBCode_before_1', '<a name=$1></a>'),
('customBBCode_enable_1', '1'),
('customBBCode_after_1', ''),
('customBBCode_tag_2', 'ed2k'),
('customBBCode_description_2', 'Link eD2k'),
('customBBCode_type_2', '1'),
('customBBCode_parse_2', '1'),
('customBBCode_before_2', '<a href=$1>'),
('customBBCode_after_2', '</a>'),
('customBBCode_enable_2', '1'),
('customBBCode_button_2', '1'),
('customBBCode_text_2', '<a href=$2>$1</a>'),

there are 2 tag, and the counter say 2:('customBBCode_count', '2') If you want to erase all, you have to put the counter on Zero, "0"

Advertisement: