Gossamer Forum
Home : Products : Links 2.0 : Customization :

custom icons for each item?

Quote Reply
custom icons for each item?
I hope this hasn't been asked before, but I can't find it. I'm considering purchasing Links, but IndexFinger offers one feature I really need (though even their pre-sales response time stinks)... Is there any way to modify Links so that you can have a custom icon next to each item? For example, you can already have 'cool' or 'new' icons. Can I have a 'secure' (picture of a lock), 'offsite' (an arrow or something), etc? Has anyone done this? Is it too terribly difficult?
Quote Reply
Re: custom icons for each item? In reply to
Thanks, but, uh, I was more concerned about my original question (hence simply posting it in this forum)...
Quote:
So, how, exactly, do I go about doing that?

(that, of course, being how to create custom icons for each item)
Quote Reply
Re: custom icons for each item? In reply to
Really easy to do. Don't know anything about IndexFinger, but Links will allow unlimited custom icons based on field entries. For an example, take a look at my Box Score for each link at fantasysportsgamer.com. All the icons you see are driven by Link fields.
Quote Reply
Re: custom icons for each item? In reply to
Great! I'll be downloading later today. So, how, exactly, do I go about doing that? And, I see I can download Links for free (as it's for non-profit use). Other than not needing to display the "Powered By" logo, is there any advantage to paying for it? Also, if I choose to pay for it later, is the payed version any different? Would it be difficult to upgrade, or is there any upgrade at all? (i.e. do i just edit the script and wipe out the "powered by" link) Thanks very much!
Quote Reply
Re: custom icons for each item? In reply to
TechGuy,

The better forum to ask your questions is in the LINKS Discussion Forum. This forum is only for code hacks and discussion of current Mods and Mods in development.

Anyway, here are answers to your questions:

Quote:
Other than not needing to display the "Powered By" logo, is there any advantage to paying for it?

You will have priority tech support from Gossamer Threads. You can email Alex and his staff at any time and receive priority technical support.

Quote:
Also, if I choose to pay for it later, is the payed version any different?

They are EXACTLY the same.

Quote:
Would it be difficult to upgrade, or is there any upgrade at all?

Upgrading from the Standard LINKS to SQL Links is no easy task if you are not familar with SQL or MySQL.

Again, any further general questions should be posted in the LINKS Discussion Forum.

Also, all your questions have been answered in Threads in the Discussion Forum. Try using the Forum's search function.

Regards,


------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: custom icons for each item? In reply to
What you can do is use if statements in your links.html file, like the following:

Code:
<%if Field%>
<a href="link"><img src="/path/to/image.gif"></a>
<%endif%>

Replace Field with your field name that you want to have an image for.

Replace "link" with the link to whatever page that you want the image to be linked to.

Replace "/path/to/image.gif" to the path and image that you want to be printed with each link.

There are also Mods in the Resource Center that allow you to add things like Rating Images like Amazon.com and also Three New Image Mod.

My suggestion is that you first install Links, then check out the Resource Center for Mods. If you have problems with the Mods, then post your questions in this Forum.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: custom icons for each item? In reply to
You can also try the Priority Logo Links Mod in the Resource Center.
Quote Reply
Re: custom icons for each item? In reply to
Thanks everyone, and happy new year! I'll be setting it up within the next few days, so I'll be back with lots of questions.
Quote Reply
Re: custom icons for each item? In reply to
Well, I installed links and have done a few little mods, but still can't figure out how to do this... using the %if Field% as suggested, how do I set that field for each link?
Quote Reply
Re: custom icons for each item? In reply to
Your fields are defined in links.def and the <%if myField%> tag would go in your template files, like link.html and detailed.html. Consult the FAQ on adding your own custom fields. However, note that this tag only checks the existence of a value in this field, not its actual value. I would also suggest installing the Enhanced Template Mod, which enables greater flexibility in your template files, such as comparison operators (e.g. <%if myField eq "this value"%> and file inclusion.

------------------
-=-=-=-=-=-=-=-
The Immuatable Order of Modding
1. Read the FAQ, 2. Search the board, 2a. Search the board again, 3. ask the question, 4. back-up, 5. experiment, 6. rephrase question (or better yet, post solution to original question)

Quote Reply
Re: custom icons for each item? In reply to
Works like a charm! Thanks for all your help!!!