• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

SOS BB Codes 2.1.0

No permission to download

mistypants

Well-known member
#1
mistypants submitted a new resource:

SOS BB Codes - BB Code for warning, success, information, and error boxes.

Requested here, this BB Code offers a four different ways to display information to your users: Warning, Success, Information, and Error.

The BB Code works using options, like so:
Code:
[sos="warning"]Your warning text here.[/sos]
[sos="success"]Your success text here.[/sos]
[sos="information"]Your information text here.[/sos]
[sos="error"]Your error text here.[/sos]
View attachment 69060

All the...
Read more about this resource...
 

tajhay

Well-known member
#2
installed as addon, activated.
added following font awesome to page_container template
Code:
[/LEFT]
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
[LEFT]
added the code
Code:
<xen:include template="sos_bbcode.css" />
to extras.css

copied and pasted the bbcode in the example and nothing changed. everything displayed as plain text.

Is this working for anyone else?
 

mistypants

Well-known member
#3
installed as addon, activated.
added following font awesome to page_container template
Code:
[/LEFT]
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
[LEFT]
added the code
Code:
<xen:include template="sos_bbcode.css" />
to extras.css

copied and pasted the bbcode in the example and nothing changed. everything displayed as plain text.

Is this working for anyone else?
My bad, it's sos_bbcodes.CSS, I forgot the s in my install instructions. Fixed now. :)
 

mistypants

Well-known member
#8
where is that in admin panel??
Log into your ACP and go to the Appearance tab. Go to the Templates of your style and search for the PAGE_CONTAINER template. Somewhere before the closing </head> tag, add the following code:
Code:
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
 

Lexy

Active member
#12
maybe need rewrite this code to not use Font Awesome, just PNG like icons very usefull for admins.Also option to add it like button in editor.
 

Slind

Active member
#13
@mistypants Can you make it possible to have a individual titles, please? For example: [sos=warning|The new Title]The warning text[/sos] and if no title is set then use the text from the phrase.
 

mistypants

Well-known member
#14
@mistypants Can you make it possible to have a individual titles, please? For example: [sos=warning|The new Title]The warning text[/sos] and if no title is set then use the text from the phrase.
The add-on uses phrases, so you can easily change them to your liking.

I can look into adding more options (like a custom title) as well as using images instead of Font Awesome but no promises on time, got a few papers to write. ;)
 

Slind

Active member
#15
The add-on uses phrases, so you can easily change them to your liking.

I can look into adding more options (like a custom title) as well as using images instead of Font Awesome but no promises on time, got a few papers to write. ;)
I know but the phrase is global. I want a other title for the warning on thread 10 as on thread 12.
 
#16
Hello,
Translating the title of the box does not work for me as it is still showing Warning, Information ... etc

Is there anyway to get around this and display the translation?
 

Amaury

Well-known member
#17
Hello,
Translating the title of the box does not work for me as it is still showing Warning, Information ... etc

Is there anyway to get around this and display the translation?
Which phrases are you editing? You may be editing the phrases used in profile tabs, which, of course, wouldn't change that.
 

Amaury

Well-known member
#19
for instance sos_error
with the original phrase being Error
Okay, so you are editing the phrases that came with the add-on. Good.

It's possible it's a cache issue, which sometimes happens. If you clear your cache, do the phrases update? If not, then I'd just wait for Misty to assist you further. I wouldn't know where to begin troubleshooting.
 

mistypants

Well-known member
#20
Hello,
Translating the title of the box does not work for me as it is still showing Warning, Information ... etc

Is there anyway to get around this and display the translation?
Do you have the correct language selected to display? That's about all I can think of. Have you successfully translated other phrases?

If you want to, you can go into sos_bbcodes.css and edit the xen phrases to your translations.