Customizing SMF > Graphics and Templates
How to format the translated strings of Mods?
Marcus Forsberg:
--- Quote from: Vahid Damanafshan on June 07, 2012, 04:44:06 PM ---I've already tried it. When I use these code, the result is like the following. In other words, the code itself is displayed in the output, too.
--- Code: ---$txt['some_text'] = '[b]bla bla bla bla[/b]';
--- End code ---
--- End quote ---
Those are BBC tags you're using there. In the language strings you have to use actual HTML for it to work, so to make it bold you'd use <strong>bla bla bla bla</strong>, for example. :)
Vahid Damanafshan:
--- Quote from: Marcus Forsberg on June 14, 2012, 01:29:20 PM ---Those are BBC tags you're using there. In the language strings you have to use actual HTML for it to work, so to make it bold you'd use <strong>bla bla bla bla</strong>, for example. :)
--- End quote ---
Thanks for your reply.
How to change the color and/or put a link in the strings?
Marcus Forsberg:
For colour, use <span style="color: red;">text</span> and for a link use <a href="http://www.site.com/">text</a>. You can find some basic HTML tags here: http://www.w3schools.com/html/html_basic.asp
Vahid Damanafshan:
--- Quote from: Marcus Forsberg on June 14, 2012, 03:43:45 PM ---For colour, use <span style="color: red;">text</span> and for a link use <a href="http://www.site.com/">text</a>. You can find some basic HTML tags here: http://www.w3schools.com/html/html_basic.asp
--- End quote ---
It's really great. one more thing:
Am i allowed to use something like #00FFFF instead of "red" in the code above?
Marcus Forsberg:
You sure are! :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version