![]() |
ReviewPost 'Post a Review' Question Currently we have ReviewPost set up to only allow registered users to post reviews. We are also using the Customer Service template set. When a person is unregistered and/or not logged in, the 'post a review' link doesn't appear and the 'post a reply' link if there is a preexisting review goes to a message about not having permissions to post. We'd like for the 'post a review' link to show up when folks aren't logged in and when clicked on take them to the login page to login or register (and something similar for the 'post a reply' link). Is there an admin switch to show the link regardless of if the user is logged in? If not, is there an edit we can do that would accomplish the above? If so, where should we look and in what file? Thanks. |
remove the code in bold in showproduct.php Code: Content visible to verified customers only. |
Thanks. The link is now showing for unregistered users but when I click on it I get: You don't have permission to post reviews for products in this category. since unregisteed users can't post. We'd rather it go to the login page. Is there a way to make it go to the login page so a user has to login or register? |
You would need to modify your reviews.php file and modify the diewell message and possibly replace it with a forward to the login page |
Thanks. Is there an example some place in the code so that I can see what a forward/redirect might look like? I think I see the diewell message that needs to be edited: if ( $CatPerms['ugpost'][$thiscat] == 1 || $userreview == 0 ) { diewell( "{$Globals['pp_lang']['nopost']}" ); but not quite following what the syntax for the forward to the login page would be so if there's an example that would help. Thanks. |
Instead of the diewell try placing a forward there ;) |
Thanks. I think I found an example in member.php to serve as a template for the forward. |
Yep forward examples all over ;) |
| All times are GMT -5. The time now is 05:57 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0