Ok. I am about to smash my computer in utter frustration. I have read and re-read all of your posts. I have verified all information is correct na dproperly inserted in the right place.
Except it is not working...
I have tried changing the
Use Templates = 0/1 in the
links.cfg to 0 to ignore templates and everything displays properly there. But when the setting is at
1, nothing will appear. Not even broken images links, I have viewed source, nothing is there and the
POP & NEW isn't even displaying.
I am ready to be blasted but seriously, really do not know where I am going wrong.
Before I changed the link.html to the image calls, I had letters set-up (without the proper coding in the sub site_html_link in my site_html_templates.pl - so they would always display) and they displayed then. This is what I have:
in links.def: Code:
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes'],
isEmail => [14, 'alpha', 0, 5, 0, 'No', ''],
isWebSite => [15, 'alpha', 0, 5, 0, 'No', ''],
isSelect => [16, 'alpha', 0, 5, 0, 'No', '']
in the sub site_html_link in my site_html_templates.pl file: Code:
# Set new and pop to either 1 or 0 for templates.
($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});
($rec{'isPopular'} eq 'Yes') ? ($rec{'isPopular'} = 1) : (delete $rec{'isPopular'});
($rec{'isSelect'} eq 'Yes') ? ($rec{'isSelect'} = 1) : (delete $rec{'isSelect'});
($rec{'isWebSite'} eq 'Yes') ? ($rec{'isWebSite'} = 1) : (delete $rec{'isWebSite'});
($rec{'isEmail'} eq 'Yes') ? ($rec{'isEmail'} = 1) : (delete $rec{'isEmail'});
and in my link.html file I have: Code:
<%if isSelect%><img src="http://www.mysite.com/links/images/select.gif" alt="Email" WIDTH="15" HEIGHT="15"><%endif%>
<%if isWebSite%><img src="http://www.mysite.com/links/images/website.gif" alt="Web Site" WIDTH="15" HEIGHT="15"><%endif%>
<%if isEmail%><img src="http://www.mysite.com/links/images/email.gif" alt="Email" WIDTH="15" HEIGHT="15"><%endif%>
<%if isNew%><img src="http://www.mysite.com/links/images/select.gif" alt="Select Member" WIDTH="15" HEIGHT="15"><%endif%>
<%if isPopular%><img src="http://www.mysite.com/links/images/popular.gif" alt="Popular" WIDTH="15" HEIGHT="15"><%endif%>
[This message has been edited by kenya (edited February 08, 2000).]