HOWTO: Changing the Entry Linkbar to a Button Toolbar

Jun 30, 2007 12:59

As requested here by harmoniatrix, this code will change the linkbars on entries to something like the "3 Column" style. You will have to find/make your own button images; however, LiveJournal does have a few default images that will be used if you don't supply your own. The default image size is 22px wide by 20px tall, but any size button could be used, ( Read more... )

how to:instructions, entries:linkbar, s2:theme layer, !tutorial, advanced

Leave a comment

Comments 17

harmonatrix June 30 2007, 17:24:16 UTC
It worked!!! Thank you...I will edit my entry as resolved and link it to this. Thank you so much. :)

Reply


sally_maria July 1 2007, 21:05:36 UTC
This is great - very easy to follow, as usual.

I'd prefer to have text for the comment links and graphics for the others. I managed to get that to work by only using the first section, but it does look slightly odd with the text and then the graphics.

Is it possible to change the code to right align the graphics, so I can have the comment links on the left and all the others on the right?

Thank you very much.

Reply

av8rmike July 2 2007, 02:04:47 UTC
Right now, the linkbar is printed as a single
    , with the CSS controlling the display style. To do what you describe, you'd have to split them into two separate lists. I tinkered around with it for a little bit, but ran into problems because the CSS wants to make the bar span the whole width of the entry. Unfortunately, I'm going away for most of the week and couldn't spend a lot of time right now on it. =(

Reply

sally_maria July 2 2007, 17:44:03 UTC
Thank you for taking the time to look at it, anyway. If it's going to make a lot of work for you, then I'll just try and make up my mind whether I really want all graphics or not.

I hope you have a productive/enjoyable time away.

Reply


(The comment has been removed)

av8rmike April 11 2008, 18:33:43 UTC
Just before the CommentInfo::print_readlink() function, add these lines:
set text_read_comments = "#";
set text_read_comments_friends = "#";

Reply


sleepingchild April 25 2008, 04:00:00 UTC
Ressurrecting an old post, but I have the code working - it's linking to images, but there is a border link around them! I can't seem to get it removed, do you know what I should add?

Reply

av8rmike April 25 2008, 19:23:39 UTC
Which journal?

Reply

sleepingchild April 25 2008, 19:35:59 UTC
This one, sleepingchild. I took down the code because I couldn't get rid of the border, but I used the exact code above.

Reply

av8rmike April 25 2008, 19:53:07 UTC
The default stylesheets remove borders on images, but you're using a customized sheet. You'll need to put the code back in so I can see what needs to be changed.

Reply


Leave a comment

Up