The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

New Custom bbCode button with simple function

3 posters

Go down

Solved New Custom bbCode button with simple function

Post by Codi September 27th 2012, 2:36 am

I'd like to add a new button, so that whenever one clicks on it, it shows the following code:


Code:
[center][size=1][spoiler=<img src="IMAGEM" />]<font size="2">

And when one clicks on it again (closing the tag) it shows as follows:

Code:
</font>[/spoiler][/size][/center]

I'd also like to know if there is a way that I can choose the group of colors that will show at the presets in the bbcode formatting bar. My forum is an RPG, an there are four "clans" that have four different colors (hexadecimal) that are very frequently used throughout the forum and that'd be really cool if we could just have them one click away.

Obrigado! Thanks!


Last edited by Codi on October 5th 2012, 9:14 am; edited 1 time in total
avatar
Codi
Forumember

Male Posts : 30
Reputation : 2
Language : English
Location : Manaus, Brazil

Back to top Go down

Solved Re: New Custom bbCode button with simple function

Post by SLGray September 27th 2012, 2:41 am



New Custom bbCode button with simple function Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51453
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: New Custom bbCode button with simple function

Post by Codi October 4th 2012, 8:31 am

It's helpful, but it's now exactally what I was looking for... it doesn't add the button, and the drop down list won't be together with the other buttons in the editing box, as I see.
avatar
Codi
Forumember

Male Posts : 30
Reputation : 2
Language : English
Location : Manaus, Brazil

Back to top Go down

Solved Re: New Custom bbCode button with simple function

Post by Codi October 5th 2012, 9:03 am

That's right, I'm sorry. So, Solved it is! Wink
avatar
Codi
Forumember

Male Posts : 30
Reputation : 2
Language : English
Location : Manaus, Brazil

Back to top Go down

Solved Re: New Custom bbCode button with simple function

Post by Sanket October 5th 2012, 9:19 am

Topic Solved & Locked
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum