Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

Links.html

Quote Reply
Links.html
Hi there

I have a small problem,
I am trying to replace the cool word beside the link with an image.
I tried the following in link.hrml:
I replaced:
<%if isCool%>
<font face="arial size="2" COLOR="#ff0000"><sup class="cool">Cool</sup></font>
<%endif%>

With:

<%if isCool%>
<IMG SRC="urlto/cool.gif" WIDTH="15" HEIGHT="30"><%endif%>

Then I build the site and nothing will come up?
I have about 45 sites in my cool sites page.
than i tried the regular code (text statement )

<%if isCool%>
<font face="arial size="2" COLOR="#ff0000"><sup class="cool">Cool</sup></font>
<%endif%>
rebuild and still nothing comes up beside the cool link?

Any ideas?
Regards
christa


Quote Reply
Re: Links.html In reply to
You need to use <%if isPopular%> NOT <%if isCool%>.

Regards,

Eliot Lee
Quote Reply
Re: Links.html In reply to
So Eliot what is the point of having:

<%if isCool%>
<font face="arial size="2" COLOR="#ff0000"><sup class="cool">Cool</sup></font>
<%endif%>

in the link.html?

Regards
Christa

Quote Reply
Re: Links.html In reply to
None...that is NOT a field in the Links table and it looks like you have hacked the link.html file.

Because the default codes for printing pop next to links is:

Code:

<%if isPopular%>
pop
<%endif%>


Compare your hacked link.html with the ORIGINAL link.html.

Now, if you have added a field called Cool or replaced isPopular with Cool, then you need to replace isPopular with Cool in the sub site_html_link routine in the HTML_Templates.pm module and also in the subroutines in the nph-build.cgi.

Regards,

Eliot Lee