Gossamer Forum
Home : Products : Gossamer Links : Discussions :

A bug with reviews ?

Quote Reply
A bug with reviews ?
Hi everybody,

I have a problem displaying a user who reviewed links. I wonder where does it come from. Please take a look at : http://www.gruyere-info.ch/....cgi?user=grachettaz for example.

When I want to visit the link that have been reviewed, the jump.cgi?ID=## displayed does not correspond with the correct ID number of that link !

Please check clicking on "Bed & Breakfast (chambres d'hôtes) à Maules". You will be redirected to http://www.gruyere-info.ch/...links/jump.cgi?ID=66, but this is not the correct URL. The correct URL to go throught this site is http://www.gruyere-info.ch/...inks/jump.cgi?ID=313.

This is the only problem I have with Links SQL. Apart from this, I don't have any other problem with my links.

Any idea ? Thanks a lot !

Regards,

Gautier.
Quote Reply
Re: [Gautier] A bug with reviews ? In reply to
Do you have the HTML code for that template?

You might be using the wrong <%tag%> to insert the LinkID for that link.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] A bug with reviews ? In reply to
Thanks again Pugdog Smile,

Please read my html code of the template review_search_results.html. I hope it is the template you would like to see, as it is the template used to display all reviews written by one user in particular ?

Thank you very much for all your help.

<html><head>
<title><%site_title%>: Liste des Commentaires</title>
<%css%>
</head><%body_tag%>
<left>
<%include include_header.html%>
<%body_table%>
<tr>
<td align="center">
<%include include_menu.html%><br>
<%include include_search_bar.html%>
</td>
</tr>
<tr>
<td align="center">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="6" bgcolor="black">
<img src="<%build_images_url%>/default/BlackShim.gif" width="6" height="100"><br>
</td>
<td valign="top">
<table border="0" width="<%body_width%>" cellpadding="3" cellspacing="0">
<tr>
<td colspan="1" bgcolor="#003366" width="30%"><%header_font%>LISTE DES COMMENTAIRES<%/header_font%></td>
</tr>
<tr>
<td>
<%if error%>
<p>
<%error_font%><b><%error%></b>
</p>
<%else%>
<%body_font%>
<p align="left">
<%if user%>
<br><b><%user%></b> a <%Review_Count%> commentaire(s)
<%elseif ID%>
<%Links::Utils::load_link%>
<%endif%>
</p>
<%endif%>
</td>
</tr>
<%if Review_Loop%>
<!-- Next/Previous links if spanning pages. -->
<%if Review_SpeedBar%>
<tr>
<td colspan="2" align="right">
<%body_font%>
<small>Pages: <%Review_SpeedBar%></small>
<img src="<%build_images_url%>/default/ClearShim.gif" width="100%" height="10" border="0">
</td>
</tr>
<%endif%>
<%loop Review_Loop%>
<form action="<%db_cgi_url%>/review.cgi" method="get">
<tr>
<td bgcolor="#dddddd" width="100%" colspan="2">
<%body_font%>
<%Review_WasHelpful%> personnes sur <%Num%> ont trouvé utile le commentaire suivant:<br>
</td>
</tr>
<tr>
<td bgcolor="#ffffff" width="100%">
<p><%body_font%>
<img src="<%build_images_url%>/default/stars-<%Review_Rating%>.gif">
<b><%Review_Subject%></b>, <%Review_Date%>
<%if Review_IsNew%>
<font color="red"><small><sup>nouveau</sup></small></font>
<%endif%>
<br>Commenté par: <b>
<%if Review_GuestName%>
<a href='mailto:<%Review_GuestEmail%>'><%Review_GuestName%></a>
<%else%>
<a href='<%db_cgi_url%>/review.cgi?user=<%Review_Owner%>'><%Review_Owner%></a>
<%endif%>
</b>
<%if user%>
<br>Commentaire sur: <a href="<%db_cgi_url%>/jump.cgi?ID=<%LinkID%>"><%Title%></a> dans <%cat_linked%>
<br>&nbsp;
<%endif%>
</td>
</tr>
<tr>
<td width="100%" align="left" valign="top" style="border-top:1px solid #006699;">
<%if Review_ByLine%><%body_font%><b><%Review_ByLine%></b></font><br><%endif%>
<%body_font%><%Review_Contents%></font><br>
</td>
</tr>
<tr>
<td width="100%" align="left" valign="top" style="border-top:1px solid #006699;">
<input type="hidden" name="helpful" value="1">
<%if ID%>
<input type="hidden" name="ID" value=<%ID%>>
<%endif%>
<%if user%>
<input type="hidden" name="user" value=<%user%>>
<%endif%>
<%if ReviewID%>
<input type="hidden" name="ReviewID" value=<%ReviewID%>>
<%endif%>
<br>
<%if last_helpful%>
<div align="center">
<%body_font%><font color="blue">*** Merci pour les précieuses réactions que vous envoyez aux autres lecteurs et commentateurs. Votre vote sera considéré. ***</font>
</div>
<%else%>
<div align="right">
<%body_font%>Pour vous ce commentaire était-il utile?&nbsp;&nbsp;
<input type="submit" name="yes" value="Oui" style="font-family: Verdana,Arial,Helvetica; font-size: 9; background-color: rgb(253,253,253); color: rgb(0,0,102); border: 1px solid #333399">&nbsp;
<input type="submit" name="no" value="Non" style="font-family: Verdana,Arial,Helvetica; font-size: 9; background-color: rgb(253,253,253); color: rgb(0,0,102); border: 1px solid #333399">
</div>
<%endif%>
</td>
</tr>
</form>
<%endloop%>

<!-- Next/Previous links if spanning pages. -->
<%if Review_SpeedBar%>
<tr>
<td colspan="2" align="right">
<%body_font%>
<small>Pages: <%Review_SpeedBar%></small>
<img src="<%build_images_url%>/default/ClearShim.gif" width="100%" height="10" border="0">
</td>
</tr>
<%endif%>
<tr>
<td bgcolor="#E5E5E5">
<p><%body_font%><b>Commentaire Résumé</b></font></p>
<p><%include review_stats.html%></p>
<%if ID and not error%>
<p align="right"><%body_font%>
<a href="<%db_cgi_url%>/review.cgi?ID=<%ID%>;add_review=1">Ajoutez votre propre Commentaire!</a></font>
</p>
<%endif%>
</left>
</td>
</tr>
<%endif%>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<img src="<%build_images_url%>/default/BlackShim.gif" border="0" height="1" width="<%body_width%>" align="top">
<%include include_menu.html%>
</td></tr></table>
<%include include_footer.html%></left></body></html>

Do you think I am wrong somewhere ?

Regards, Gautier.
Quote Reply
Re: [Gautier] A bug with reviews ? In reply to
Hi,

I'm having trouble following the template, a bit because as Bruce Willis said in 5th Element "I only speak two languages, English and Bad English" <G> (not entirely true.... I don't even speak English that well....)

Anyway, could you add:

<%GT::Template::dump%> to the end of that template, and if your site is "live" and you don't want a lot of garbarge on the screen, give me a logon ID, something like test_user with pw test_user, and do this:

<%if Username eq 'test_user'%>
<%GT::Template::dump%>
<%endif%>

Which will only show the dump if the user test_user is logged in.

<%LinkID%> should show the ID of the link but it looks like something is getting crunched. The best way to check, is to look at all the tags, and make sure they are what you expect them to be. If not, then you need to go back and figure out why and where they went wrong.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] A bug with reviews ? In reply to
Hi Pugdog,

First, I would like to thank you for your kind help, really. It is much much appreciated.

If I can help you on anything about the French texts I will do it.

Did you test the webpage and see the problem ? Yes this is a live website, since...yesterday, I'm not lucky as you can imagine Crazy !

I did what you was speaking about, modified the template review_search_results.html to add:

<%if Username eq 'test_user'%>
<%GT::Template::dump%>
<%endif%>
...at its end, rebuilt the website, visited the webpage...but didn't find if anything has changed. Can you tell me what is a 'dump' please ? I don't have heard about it Shocked.

I compared the tags <%LinkID%> within the template but didn't find there is any problem...and I didn't changed them when customizing my templates.

Do you have an idea ? Thanks again Pugdog !!!

Best Regards from France, Gautier.
Quote Reply
Re: [Gautier] A bug with reviews ? In reply to
That tag should print out a list of avialable tags for that particular template. Are you sure there is nothing showing where you added that code?

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: [A.J.] A bug with reviews ? In reply to
Wonderful...I like you Andy and Pugdog !

Thanks to all your explanations I could solve my problem. I didn't know the tag <%GT::Template::dump%>, it is very useful...

The problem was that I had a <%ID%> instead of a <%Review_ID%>. I replaced it and everything works like a charm now ! SmileSmileSmile

I wonder why was it like this as I didn't change anything on the tags used by Links SQL...

Anyway...The most important is to say : THANK YOU Pugdog and Andy !!!!

Regards, Gautier.
Quote Reply
Re: [Gautier] A bug with reviews ? In reply to
Great....

Just make sure to remove the <%GT::Template::dump%> tag when you are done, and _always_ wrap it in some sort of <%if%> clause so that your regular users don't get hit with it. It gives out a lot of information that should really be somewhat hidden.

But, it's invaluable in debugging sometimes, especially when using globals and plugins.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.