Gossamer Forum
Home : Products : Links 2.0 : Customization :

Rate-it not working on old links..

Quote Reply
Rate-it not working on old links..
Hi,

After upgrading to links 2.0, none of the links on the site, seem to have the 'rate it' icon next to it.

I am still using the old site_html.pl as 'CSS 'confuses me, but i pasted all the code as per the readme.txt.

I also used upgrade.pl and set up the new fields, removed the null field from category.db and rebuilt the pages,yet this problem persists.

I tried adding a new field too & rebuilding, even the newly added links do not have the rate-it feature.

I manually tried giving 10 points to a link and that appeared in the ratings page.

Please help.

Thanks in advance,

Joe
Quote Reply
Re: Rate-it not working on old links.. In reply to
There is no Rate It icon, but you should have a link. According to site_html.pl in the sub site_html_link routine:

Quote:
$output .= qq~ <small class="date">(Added: $rec{'Date'} Hits: $rec{'Hits'} Rating: $rec{'Rating'} Votes: $rec{'Votes'}) <a href="$build_rate_url?ID=$rec{'ID'}">Rate It</a></small>

I hope this helps.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
Quote Reply
Re: Rate-it not working on old links.. In reply to
 
Thanks Bobsie!

1). I copied the entire sub site_html_link routine from the new site_html.pl and pasted it over the old routine, and the rate-it link appeared! Is this the right way to go about it?
================
2). Bobsie, I have one more query..The new site_html.pl has a extra search feature that queries other search engines.

Since i have retained the old (links 1.1) site_html.pl on (links 2.0), could you show me what code I have to insert (and where)to get the same feature?

======================
3). Am i missing out on any other features, because I have retained the old site-html.pl?
======================

Thanks,
Joe
Quote Reply
Re: Rate-it not working on old links.. In reply to
   
Quote:
1). I copied the entire sub site_html_link routine from the new site_html.pl and pasted it over the old routine, and the rate-it link appeared! Is this the right way to go about it?

Actually, the way I would do is is just the opposite. I would take what I want from the v1.1 site_html.pl and incorporate it in the v2.0 site_html.pl, integrating it with any new features that v2.0 offers.

Quote:
2). Bobsie, I have one more query..The new site_html.pl has a extra search feature that queries other search engines.

Since i have retained the old (links 1.1) site_html.pl on (links 2.0), could you show me what code I have to insert (and where)to get the same feature?

Your best bet to do this is upgrade completely to v2.0. The search.cgi script has changed and is what the new site_html.pl is based upon. If you are using v2.0, then you really should use all the scripts for it. Take your search code from your old site_html.pl and incorporate it into the new site_html.pl. The new search feature is included in those routines (site_html_search_success and site_html_search_failure).

Quote:
3). Am i missing out on any other features, because I have retained the old site-html.pl?

Well, that is difficult to say since I don't know what features you are using now. However, two other new things in links v2.0 are the newsletter and the detailed view. To me, the most important aspect of links v2.0 is the templates. You can do amazing things with them and, despite what anyone thinks, you do not need to use style sheets to use templates.

I hope this answers your questions.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/


[This message has been edited by Bobsie (edited February 19, 1999).]
Quote Reply
Re: Rate-it not working on old links.. In reply to
Hi Bobsie,

I just switched over to templates. I also removed the reference to css between the <head> </head> tags, and found it easier to modify the appearance. (I did see the links.css file)

Now the home page looks okay, except for the $category sections.

Instead of the verdana font, it now displays 'Times New Roman'.

I'd like to change the category font back to verdana, I'd also like to align the "sub-categories" to the left like this-->
FROM
=====================
category1
_______Subcategory1,subcategory2,3, etc
===========================
TO
============================
category1
Subcategory1,subcategory2,3, etc
============================

Could you please tell me how to change the appearance of the "$category", now that I have removed the CSS portion on the <head> tags...


[This message has been edited by Joe Louis (edited February 20, 1999).]