?

Log in

No account? Create an account

Previous Entry | Next Entry

Adding tags to sidebar

  • Nov. 23rd, 2006 at 2:45 PM
How to make possible using html-tags in body of custom sidebar?

And ho can I add more than 1 custom sidebar?

Comments

( 3 comments — Leave a comment )
nimoloth
Nov. 23rd, 2006 03:04 pm (UTC)
Yes, both need to be hard-coded into your custom theme/layer. To use HTML in your custom text box, put something like this in your custom theme:

function print_module_customtext(string title, string text, string titlelink_url) {
var Page p = get_page();
open_module("customtext", $title, $titlelink_url);

"""
<font color="red">This is where you can put whatever you like with HTML tags included, for example, font colour tags, but you can also of course use links or anything you like (not Javascript though).</font>
""" ;

print safe $text;

close_module();
}

Or if you're using a custom layer, find that function and insert text and HTML as required.

If you want to add more than one custom text bit to your sidebar, you can add it in here too (it will be above or below the original custom text, depending where you put it. You'd do something like:

function print_module_customtext(string title, string text, string titlelink_url) {
var Page p = get_page();
open_module("customtext", $title, $titlelink_url);

"""
<font color="red">First custom text box is this stuff here. It has the default custom text title and so on that you've specified in your GUI interface.</font>
""" ;

print safe $text;

close_module();


open_module("customtext", "2nd Custom Text Title", $titlelink_url);

"""
<font color="red">This is your second custom text box stuff. Notice I've manually input the title for this one. This will appear below the fist one.</font>
""" ;

print safe $text;

close_module();
}

emerald85
Nov. 24th, 2006 12:22 am (UTC)
Yay! I was looking for something like this to!

Thank you!
dereks
Nov. 24th, 2006 01:14 pm (UTC)
Thanks, it worked!
( 3 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars