News:

SMF 2.1.3 has been released! Take it for a spin! Read more.

Main Menu

Custom BBCode

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

Previous topic - Next topic

Resident Geek

Were you able to reinstall the themes afterwards? Removing my theme permanently is not an option.
Get your life organized with a Total, Relaxed, Organization system.
www.priacta.com

vnunited

I think the problem is with permission, try to chmod 0777 on the files/folders the package trying to modified. It seems to work for me.
hxxp:www.vnunited.com [nonactive]

Resident Geek

Get your life organized with a Total, Relaxed, Organization system.
www.priacta.com

Resident Geek

Hurray! That did it.
I'd create some sort of fix for that Sarke.
Just out of curiousity... Do those that have been having this problem happen to run on a windows server?
Get your life organized with a Total, Relaxed, Organization system.
www.priacta.com

nitsua

umm... i think i use a windows server.

Resident Geek

It may be that this mod just doesn't like windows servers for some reason. Maybe some special security thing with Windows servers? I don't know. I'm just glad that I have it working now.
Get your life organized with a Total, Relaxed, Organization system.
www.priacta.com

hvyhitter

how would one use this for youtube? is there some manual to this that I am missing?

Resident Geek

The way it works is, you put in a bunch of HTML code with {content} inside of it for where you want the user input to go in the code.
When they use the BBC tag, whatever is inside of the tag, replaces the {content} part of your HTML code, and it executes it.
For example:
To create a highlight tag, your HTML would look like this:

<span style="background-color: #FFFFFF">{content}</span>

This would highlight the text inside of the tags white.

Hope this helps.
Get your life organized with a Total, Relaxed, Organization system.
www.priacta.com

Farmacija

#28
error after install this mod
QuoteFatal error: Cannot redeclare modifycustombbcodesettings() (previously declared in /home/farmaceu/public_html/forum/Sources/ModSettings.php:693) in /home/farmaceu/public_html/forum/Sources/ModSettings.php on line 703
I persume that problem is with simple blog mod that i have installed too  .
there is my modsettings.php in attachment
www.farmaceuti.com
www.farmaceuti.com/tekstovi

TrueSatan

The fatal error shows that you're trying to install the same mod twice over...you need to do a manual install fixing the files so that the mod is installed but only once...see a previous posting where Sarke has been good enough to point a user to the package parser.

Quote
Try installing it manually using: http://modparser.dev.dansoftaustralia.net/

Farmacija

oh my god, you are right!  :-[
thanx
www.farmaceuti.com
www.farmaceuti.com/tekstovi

sk8dork

just like to say that i have been looking for this mod and it works great. here's what i did with it so far:

<tag><strong>SPOILER:</strong><span style="background-color: #FFFFFF; color: #FFFFFF;">{content}</span></tag>

this is my spoiler tag. when someone is posting plot information about a movie or show they can use the spoiler tag to hide the spoiler text. if you can't tell how it works from the html code, it makes the {content} text white on a white background, making it unreadable, and puts the word SPOILER: in bold before the text. you just select the text manually by click dragging your mouse over the text. now people are safe to read reviews or whatever without having the whole thing spoiled for them, or they can read it if they want.

ltdeta

The  following Code shoud into a tag called "new"

[B][color=blue]N [/color][/B]
the result is:  N


how can i do this with Custom BBCode?

TrueSatan

Quote from: ltdeta on May 28, 2007, 10:07:40 AM
The  following Code shoud into a tag called "new"

[B][color=blue]N [/color][/B]
the result is:  N


how can i do this with Custom BBCode?


If I understood what you wanted I might be able to help...please rephrase your request. Do you want the text in the new tags to be turned blue...if so you don't need a custom tag as the colour can be selected in the normal posting system.

ltdeta

yes, but is it possible ?

it is only an example , because no BBCode is parsed into the tag

TrueSatan

#35
Quote from: ltdeta on May 28, 2007, 03:07:21 PM
yes, but is it possible ?

it is only an example , because no BBCode is parsed into the tag

Possible but pointless...use...

<span style="color: #0000FF">{content}</span>

Call the tag "new"...thus if you post [new]{content}[/new] you will, indeed, get the content in the tags to be displayed in blue. If you want to put it in bold as well then...

[b][new]{content}[/new][/b]

*edited to show bold as an option each time you use the tag or use Sarke's version in the next post for it to be in bold every time the tag is used

Sarke

What TrueSatan said, but if you want to do blue and bold, use this for the HTML:

<span style="color: #0000FF; font-weight: bold;">{content}</span>

My MODs          Please don't PM me for support, post in the appropriate topic.

TrueSatan

 I've used this mod (an excellent mod BTW and thank you for producing it) to add quite a number of custom BBC items to my forums and have worked off of an old mod to display them hard coded in Post.template.php (the old mod is TagMenu by AzaToth...the mod is now obsolete but the code in it can still be of use...to me anyhow.)

I've been thinking about modding your mod such that the new tags made using it appear in Post.template.php as a drop down automatically without having to hard code them in to the array one by one...I haven't begun work on this yet but thought I'm share the idea with you and see what your thoughts on it might be.

Sarke

Quote from: TrueSatan on May 29, 2007, 05:51:30 AM
I've used this mod (an excellent mod BTW and thank you for producing it) to add quite a number of custom BBC items to my forums and have worked off of an old mod to display them hard coded in Post.template.php (the old mod is TagMenu by AzaToth...the mod is now obsolete but the code in it can still be of use...to me anyhow.)

I've been thinking about modding your mod such that the new tags made using it appear in Post.template.php as a drop down automatically without having to hard code them in to the array one by one...I haven't begun work on this yet but thought I'm share the idea with you and see what your thoughts on it might be.

Thanks.

I'm not quite sure what you mean though, are you talking about replacing the buttons for the BBCode with a dropdown list?

My MODs          Please don't PM me for support, post in the appropriate topic.

TrueSatan

No...only having in the drop down those tags that don't have a button. Your mod is just too useful and I've got rather a lot of tags as a result and so I don't show all of them with buttons...it would hit page load speeds and be rather overwhelming if I did.

The old mod I mentioned did something similar...it had a drop down titled "more tags" and hard coded the array for it. I'd much prefer to avoid hard coding each tag into an array and rather than that would prefer it if the mod were to pick those tags that don't have a button and put them in the drop down. Having all tags in a drop down wouldn't be a major hardship but a division between those with a button displayed as normal and those without one in the drop down would be better.

Advertisement: