Results 1 to 4 of 4

Thread: Write Review by visitor

  1. #1
    Join Date
    Jul 2005
    Posts
    87

    Default Write Review by visitor

    Just trying to figure out how to allow people to write reviews without registering. Any ideas?

  2. #2
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default

    review.php disable the following code by adding // infront of each line.


    // if (!($users_obj->GetUserAuthentication(0) == 0 || $users_obj->GetUserAuthentication() == 0)) {
    // $url = urlencode('http://' . $HTTP_SERVER_VARS["HTTP_HOST"] . $HTTP_SERVER_VARS["REQUEST_URI"]);
    //
    // if (substr($_SERVER["SERVER_SOFTWARE"], 0, 6) == "Apache") {
    // header ("Location: login.php?b=$url&f=1");
    // }
    // else {
    // echo "<META HTTP-EQUIV='refresh' CONTENT='0;URL=login.php?b=$url&f=1'>";
    // }
    // }

    Don't forget to change username variable.

    Frank

  3. #3
    Join Date
    Jul 2005
    Posts
    87

    Default

    Quote Originally Posted by Frank71
    review.php disable the following code by adding // infront of each line.


    // if (!($users_obj->GetUserAuthentication(0) == 0 || $users_obj->GetUserAuthentication() == 0)) {
    // $url = urlencode('http://' . $HTTP_SERVER_VARS["HTTP_HOST"] . $HTTP_SERVER_VARS["REQUEST_URI"]);
    //
    // if (substr($_SERVER["SERVER_SOFTWARE"], 0, 6) == "Apache") {
    // header ("Location: login.php?b=$url&f=1");
    // }
    // else {
    // echo "<META HTTP-EQUIV='refresh' CONTENT='0;URL=login.php?b=$url&f=1'>";
    // }
    // }

    Don't forget to change username variable.

    Frank
    Hi Frank,

    I found the other lines in register.php by my register.php does not have the first line you posted:

    // if (!($users_obj->GetUserAuthentication(0) == 0 || $users_obj->GetUserAuthentication() == 0)) {

    Also, I was unsure what you ment by "Don't forget to change username variable"

    any help appreciated!

  4. #4
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default

    Why in register.php - search in review.php !!!
    The code I sent was from v3.3, but I'm nearly sure it must work also in 3.2 / 3.1 and you can also find it here in the forum.

    About username variable - in the template you show the username variable to show who wrote the review, but if there is no user you must change that field (if you show it).

    regards
    Frank

Similar Threads

  1. write a review without registering
    By Shophere in forum Tutorials, Hints & Tips
    Replies: 7
    Last Post: 02-26-2002, 07:33 AM
  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
  •