Just trying to figure out how to allow people to write reviews without registering. Any ideas?
Just trying to figure out how to allow people to write reviews without registering. Any ideas?
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,Originally Posted by Frank71
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!
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