Results 1 to 8 of 8

Thread: write a review without registering

  1. #1
    Join Date
    Sep 2001
    Posts
    170

    Default write a review without registering

    I have been trying to enable visitors to write reviews without registering and have finally found a way.

    It has turned out to be rather simple! (almost to simple)

    You need to hack the code in review.php

    Remove the code from line 141 to 145

    and that's it - I have tested it and the review I wrote (without registering) was waiting for me to be approved in the admin section and once approved showed up in the detail page - as it should

    I would be interested if any one else gives it a go

  2. #2
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Thumbs up

    I'll have to try this hack.. I sure hope it works

    cause it would be a great hack...

    brb.. with my reviews..

    man, now we can call you a hacker. woo hooo

  3. #3
    Join Date
    Feb 2002
    Posts
    9

    Default copy code lines

    Could you copy and paste the code lines you mean, just to be exact?

    Thanks

  4. #4
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default

    There's a problem.

    I'm nost sure people know which version you are talking about.

    3.0.2 or 3.0.3

    There's a slight difference although, I figured it out..

    I'm not sure why my reviews aren't showing up thou..

  5. #5
    Join Date
    Feb 2002
    Posts
    7

    Default

    couldn't get this to work, can you be more specific.

  6. #6
    Join Date
    Sep 2001
    Posts
    170

    Default

    Here is the review.php with the changes made

    I have removed the following section:

    if (empty($COOKIE_USERNAME)) {
    $url = urlencode('http://'.$HTTP_ENV_VARS["HTTP_HOST"].$HTTP_ENV_VARS["REQUEST_URI"]);
    header("Location: login.php?b=$url&f=1");
    }

    You can up load the attached review.txt which is a copy of what I am using. You will need to rename it "review.php" (but back up a copy of your exixting review.php - in case it does not work)

    I have only removed the section which tells the script what do do if there is no username located in the cookie, so rather than it taking you to the login page it should take you straight to the review.php page

    Let me know how you get on

    Cheers

    PS: I am using V3.02
    Attached Files Attached Files
    Last edited by Shophere; 02-25-2002 at 02:51 AM.

  7. #7
    Join Date
    Sep 2001
    Posts
    170

    Default

    Just had a quick look at V3.03 and the line numbers are different

    the equivalent lines are 147 to 151- (these are the lines to be removed)

    Sorry can't test it as i am still running V3.02

  8. #8
    Join Date
    Feb 2002
    Posts
    3

    Talking It's Working

    Hi,
    It's working on V3.03
    Thanks for the hack
    Ges

Similar Threads

  1. Promoting Reviews
    By Hart_House in forum Tutorials, Hints & Tips
    Replies: 7
    Last Post: 03-23-2003, 03:31 PM
  2. My visitors can't write a review...?
    By Hart_House in forum v5.x
    Replies: 0
    Last Post: 02-13-2002, 03:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •