Gossamer Forum
Home : Products : Links 2.0 : Customization :

Review.cgi (2)

(Page 1 of 3)
> >
Quote Reply
Review.cgi (2)
How about using this to continue, the other board just gettting toooooo big :-)

I was wondering, can we adapt the external rate it and review it mod to work for this one? then you could probably convert your data over to it?

I would love a rate it mod for this one and also a way of showing how many reviews there are for that resource when the link is displayed. Any ideas?

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Review.cgi (2) In reply to
you should delete all your rating stuff.. hehe

cause i already impltememented external ratings..

i will start on the link review thing in a sec..

jerry
Quote Reply
Re: Review.cgi (2) In reply to
How do we do external ratings then?

Thanks for doing the number of reviews thing, you are a star :-)
Quote Reply
Re: Review.cgi (2) In reply to
external is done by simply making a form.. you can copy mine at:

http://www.widgetz.com/external.html

just change the form's location..

it's pretty self explainatory.. there is a hidden field called LinkID.. and that is what you change to change which link it adds it to..

jerry
Quote Reply
Re: Review.cgi (2) In reply to
Thanks Jerry

so when is alex offering you a job? :-)
Quote Reply
Re: Review.cgi (2) In reply to
uh hehe.. yea right.. never.. hehe Smile

alex has done most of this himself.. i think.. just the help of managing us nitpicky people is done with they help of the moderators.. actually.. i'm still not sure who that Patrick guy that has something to do with Fileman is.. but anyways.. school starts in 2 weeks.. NO WAY i will have time..

jerry
Quote Reply
Re: Review.cgi (2) In reply to
got the number of reviews thing to work, thanks a lot jerry :-)

have you had any thought on that modify link thing (not at all related to review script :-) )
Quote Reply
Re: Review.cgi (2) In reply to
what are you talking about 8>D

jerry
Quote Reply
Re: Review.cgi (2) In reply to
It was on icq :-)

I was wondering if i could somehow adapt modify.cgi so that i could have a link to it on each link in the database. That way, when someone clicked on the modify link they would not have to type the url in (which often has problems) and instead the program would automatically know.

ie have a link www.freeontheweb.com/cgi-bin/modify.cgi?ID=<45> par example

thanks

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Review.cgi (2) In reply to
that's simple.. just make a few mods to the sub main.. *hint*.. use sub get_record
Quote Reply
Re: Review.cgi (2) In reply to
How do I stop the validation email from being sent out when I manually validate the reviews? Review.cgi keeps sending the email-add.html template out when I manually validate the reviews.

Thanks in advance.

------------------
James L. Murray
VirtueTech, Inc.
www.virtuetech.com


Quote Reply
Re: Review.cgi (2) In reply to
Hi!
I just installed review.cgi and it works fine! I use it in the "review-only-version". Now I want to add mod 1, the mod that allows me to show how many reviews are added on each link! But I didn't find where to make the modifications widgetz postet.

Bye and thanks
Tiggr

------------------
visit [ulr]http://larp-welt.de/[/url]
the resource for german live roleplaying


Quote Reply
Re: Review.cgi (2) In reply to
uh.. just make it in the area after the

Code:
if (exists $votes{$id}) {
(blah blah blah blah)...
}

jerry
Quote Reply
Re: Review.cgi (2) In reply to
oh yea.. i never actually used the review only mod.. so i forgot about the display reviews thing.... hehe

anyway.. your way is now correct..

jerry
Quote Reply
Re: Review.cgi (2) In reply to
error with install.cgi??
Existance check... File Exists.
Checking for zero size... File size is OK.
Checking permissions... File is executable.
Checking for ASCII format... File is an ascii file.
Checking Syntax...
Syntax Errors were found in your file!
Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at //www/cgi-bin/admin/install.cgi line 69.
BEGIN failed--compilation aborted at //www/cgi-bin/admin/install.cgi line 69.


Quote Reply
Re: Review.cgi (2) In reply to
rdmille wrote:

Quote:
Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at //www/cgi-bin/admin/install.cgi line 69.
BEGIN failed--compilation aborted at //www/cgi-bin/admin/install.cgi line 69.

You do not have LWP installed on your server. Check with your ISP if they can install it. Otherwise you have to upload it yourself and make some changes to the script.

See the Links readme for the location where to download it.

Jeroen.




------------------
Free 4U2: a searchable directory of free stuff
http://www.free4u2.com

When something does not function properly, hit it hard.....
.....When it breaks it had to be replaced anyway.


Quote Reply
Re: Review.cgi (2) In reply to
Hi Widgetz!
I didn't get the mod to show the number of reviews for each file to work with your mod. I think it's because I did an review-only installation. So I did it this way:

In nph-build I just put into build_update_ratings (just befor "# Update the links database."):

Code:
# Count the Reviews
open (REVIEW,"$db_review_name") or &cgierr ("unable to open review database: $db_review_name. Reason: $!");
LINE: while (<REVIEW> ) {
/^#/ and print OUT and next LINE; # Skip comment Lines.
/^\s*$/ and next LINE; # Skip blank lines.
chomp; # Remove trailing new line.
@values = split /\Q$db_delim\E/;
$id = $values[1];

$review{$id}++;
}
close REVIEW;

and after

Code:
if (exists $votes{$id}) {
$values[$db_rating] = (($values[$db_rating] * $values[$db_votes]) + $rating{$id}) /
($values[$db_votes] + $votes{$id});
$values[$db_rating] = sprintf ("%.2f", $values[$db_rating]);
$values[$db_votes] = $values[$db_votes] + $votes{$id};
print "\tUpdating rating to $values[$db_rating] for link id $id\n";
}

i put in (yes, thats your code!!!):

Code:
if ($values[$db_reviews] != $review{$id}) {
print "\tUpdating reviews to $review{$id} for link id $id\n";
$values[$db_reviews] = $review{$id};
}

(and added the new field to links.db)

Hope this will help other with similar problems!

Thank you for the review-mod!

bye
Tiggr

------------------
visit [ulr]http://larp-welt.de/[/url]
the resource for german live roleplaying


Quote Reply
Re: Review.cgi (2) In reply to
Widgetz,

If we already have people who have the external rate it script on their pages so people can vote on their sites, will that still work with your mod?

If not, will people just get an error when they try to vote, or what?

------------------

--Sanguinarius
The Real Vampire Directory
www.sanguinarius.org/cgi-bin/links/pages/
Quote Reply
Re: Review.cgi (2) In reply to
nope.. won't work
Quote Reply
Re: Review.cgi (2) In reply to
The mod works great thanks widgetz, but..

Whenever I try to do anything such as change file attributes with any file related to the mod such as review.html, review_error.html or site_html_temlplates.

I get this error message with my ftp program:
[review.html]
COMMAND:> SITE CHMOD 666 review.html
550 review.html: Operation not permitted.

You do not have permission to perform this action.

I can't do anything anymore and it worked fine before the mod. Any clue why?
Shane


Nevermind: My webhost said I had a bad ownership file and fixed it. That happens whenever I use a script that installs itself for some reason.


[This message has been edited by shane1800 (edited September 02, 1999).]

[This message has been edited by shane1800 (edited September 02, 1999).]
Quote Reply
Re: Review.cgi (2) In reply to
yea... when files are created over the web.. through a browser.. it uses the permissions..

nobody...

so.. your ftp can't "modify" it unless you download it.. delete it.. and upload it again..

jerry
Quote Reply
Re: Review.cgi (2) In reply to
I installed the Review Mod successfully yesterday and then added the multiple category mod, 3 new images mod, image for ratings mod and priority image mod. Now of course the Review Mod doesn't fully work and everything else does. I just started getting into the code and was wondering if someone could give me a hint as to where to find my mistake.

Here's an example: http://www.marketuplinks.com/cgi-bin/review.cgi?ID=7

The images are pointing to rate0.gif when it should be rate16.gif I think. My images are in the right directory and work everywhere else except in the review part.

Thanks alot
Shane
Quote Reply
Re: Review.cgi (2) In reply to
Hi,

I've tried to find whether this has already been asked, but I couldn't, so:

Is there a way to implement the external rating system *without* requiring the name/email?

I'd like it so people would only need to enter their name/email if they were writing an actual review.

Hope you can help! Thanks Smile

Mark
Quote Reply
Re: Review.cgi (2) In reply to
something you did messed up get_reviews..

cause all the ratings were chaged to zero.

btw.. instead of installing the rating image mod.. you should have used mine... (the one included with review.cgi) it's much easier.. in site_html_link just add

rate_img => &get_rating_image ($rec{'Rating'}),

and then <%rate_img%> is now the rating image...

i don't think any of those mods will mess it up... i think you accidentally deleted something.. maybe you didn't download all the required files after you used install.cgi

jerry
Quote Reply
Re: Review.cgi (2) In reply to
Found the problem:

In the midst of adding all the mods I changed the $db_delim = '|'; to use commas in links.def and category.def but not in review.def. I guess it caused the values to not be read correctly . I found it after reinstalling links 2 and adding all the mods again, then I tried to change the |'s like I unknowingly did last time and nothing worked, I had a fun five hours this morning Smile


Thanks widgetz for the great mod!
Shane
> >