Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Add static image field for links

Quote Reply
Add static image field for links
I'm still on version 2.1.0 (waiting to get my license information from GT as our email changed)...

I want to add a field where I can designate a link with a certain graphic (like a warning graphic) for certain sites. This way, when someone views my directory, they'll see the graphic so they know what type of content it would be.

How would I do this?
Quote Reply
Re: [Me2Be] Add static image field for links In reply to
Do you want a generic image, or different one for each link?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Add static image field for links In reply to
Hi Andy,

It will be the same image for all links if they qualify for this status (though their listing order won't change because of this)
Quote Reply
Re: [Me2Be] Add static image field for links In reply to
Add a new field, something like 'ShowAdvise' ... ENUM, yes/no.. and then when you setup a link, set this to 'yes' if it needs the image shown.

Then, in your link.html template, put something like;

<%if ShowAdvice eq 'yes'%>
<img src="bla bla">
<%endif%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Add static image field for links In reply to
Can you walk me through setting up a new field? I assume it's through:
Database->Links->Properties and click on "Add New Column"?
Quote Reply
Re: [Me2Be] Add static image field for links In reply to
Have a look on the forums. Afraid I don't have time to do a full description of how to do it. Its quarter past 11 (pm) here.. and I just wanna get home...LOL

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Add static image field for links In reply to
You must be on the other side of the world! :) Have a good night and thanks!

I was able to make a new field, however, it still doesn't seem to be working, nothing is coming up when I edit a link and change the field to 'yes'. Here is what I have (see attach):

And in the link template field I have:
<%if SoundAdvise eq yes%>
<img src="http://www.....sound.gif" alt="Sound">
<%endif%>

So what did I do wrong? LOL
Quote Reply
Re: [Me2Be] Add static image field for links In reply to
Still here... yeah, I'm in Spain at the moment :)

You need to change;

<%if SoundAdvise eq yes%>

to

<%if SoundAdvise eq 'Yes'%>

Its needs quotes around it, and its also case sensative :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Add static image field for links In reply to
YOU ARE AWESOME!!!!!! Thank you Andy (from Southern California) :)
Quote Reply
Re: [Me2Be] Add static image field for links In reply to
Glad to hear it :)


.... and you even learned how to add a new field Cool

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!