#1 (permalink)  
Old 10-11-2005, 06:57 AM
Registered User
 
Join Date: Jul 2005
Posts: 87
vittle is on a distinguished road
Default Write Review by visitor

Just trying to figure out how to allow people to write reviews without registering. Any ideas?
  #2 (permalink)  
Old 10-11-2005, 02:36 PM
Active Member
 
Join Date: Aug 2002
Location: Germany
Posts: 1,186
Frank71 is on a distinguished road
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 (permalink)  
Old 10-14-2005, 06:06 AM
Registered User
 
Join Date: Jul 2005
Posts: 87
vittle is on a distinguished road
Default

Code:
Content visible to License Owner only.
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 (permalink)  
Old 10-14-2005, 09:02 AM
Active Member
 
Join Date: Aug 2002
Location: Germany
Posts: 1,186
Frank71 is on a distinguished road
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
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
write a review without registering Shophere Tutorials, Hints & Tips 7 02-26-2002 08:33 AM
My visitors can't write a review...? Hart_House v5.x 0 02-13-2002 04:54 AM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 02:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate