sidebar link images

Creating and modifying plugins.
Post Reply
zach
Posts: 2
Joined: Tue Jun 12, 2007 8:01 am

sidebar link images

Post by zach »

Hello all,

I recently installed the Link List sidebar plugin and I really like it. However, I'm not very good with XML and wanted to know if anyone knew a way that I could have little JPG/PNG icons instead of text links? If I need to, I can use a different plugin.

Basically, if anyone can point me in the right direction, that would be appreciated. :)

Thanks preemptively,
Zach
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: sidebar link images

Post by garvinhicking »

Hi!

Sadly the linklist plugin is meant for text links only. If you want to use JPG/PNG icons to link, there's no plugin you could easily use.

Usually people install a "HTML sidebar nugget" for that. There you can dump easy html code like this:

Code: Select all

<a href="http://www.google.de/"><img src="http://www.google.de/icon.gif" /></a>
Maybe that helps you to do that?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Garvin is right that the LinkList plugin was only designed for text links, but you might actually get it to work anyway.

I actually got it to use an image relatively easily by just replacing the name of the link with an image tag, without any quotes.

If you are using the link management page (and not entering xml directly) you can just put the image tag in the name spot. Just don't use quotes anywhere (which I believe is poor html and won't be able to do alt tags, but it works).

If you are entering xml manually you can do something like:

Code: Select all

<link name="<img src=http://webserver/uploads/image.gif/>" link="http://pictures.theledge.net" />
Basically, you use an encoded greater/less than.

If you have anything specific you would like feel free to post and I can take a look at it.
zach
Posts: 2
Joined: Tue Jun 12, 2007 8:01 am

Post by zach »

Thanks for both of the suggestions. When I get back from my appointments today, I will try the HTML nugget one, and then the XML one. I really appreciate the information. :)
Post Reply