Gossamer Forum
Home : Products : Gossamer Links : Discussions :

No reviews page

Quote Reply
No reviews page
This is a request for the next version.

Please could Review.pm have something like this

# Return if no results.
$review_hits or do {
print $IN->header();
my $return = {
error => Links::language('REVIEW_NORESULTS'),
%$rec,
};
print Links::SiteHTML::display ('review_search_results', $return);
return;
};

This makes it possible to have a page which says that there are no reviews yet but also allows you to link to the detail page, ask for a review to be written, etc. - good if you have to delete reviews after the page has been indexed by search engines.

Thanks, Laura.
The UK High Street
Quote Reply
Re: [afinlr] No reviews page In reply to
Also, why is the Username tag set to be the review owner when you are looking at their reviews?

$rec = { noLink => 1 , Username => $args->{user} };

As far as I can see, this is unneccessary and just causes problems - it appears that you are logged in as the owner of the reviews.

Laura.
The UK High Street
Quote Reply
Re: [afinlr] No reviews page In reply to
Hi Laura,

This is used just in case we need to search reviews by a user, so that it will display all reviews belong to that user when we click on his/her username.

Cheers,
Jean
Gossamer Threads Inc.

In Reply To:
Also, why is the Username tag set to be the review owner when you are looking at their reviews?

$rec = { noLink => 1 , Username => $args->{user} };

As far as I can see, this is unneccessary and just causes problems - it appears that you are logged in as the owner of the reviews.

Laura.
Quote Reply
Re: [jean] No reviews page In reply to
Maybe I'm misunderstanding but I don't think that this does what you think.

I have removed the part in red and my site works. I can view all the links written by a user.

However, before I removed it, if I was not logged on and viewed the reviews written by Jane, I would get a Logout button on my toolbar instead of a Login button. This was actually more complicated on my site as I have a few personalisations such as profiles pages, mylinks pages etc. As it was, these all linked to the pages for Jane whether I was logged in as admin or not logged in at all.

Laura.
The UK High Street