PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   ReviewPost 'Post a Review' Question (http://www.photopost.com/forum/photopost-pro-how-do-i/116122-reviewpost-post-review-question.html)

WB October 11th, 2005 09:06 AM

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.

Chuck S October 11th, 2005 09:58 AM

remove the code in bold in showproduct.php

Code:

Content visible to verified customers only.

WB October 11th, 2005 10:19 AM

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?

Chuck S October 11th, 2005 10:45 AM

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

WB October 11th, 2005 12:54 PM

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.

Chuck S October 11th, 2005 01:26 PM

Instead of the diewell try placing a forward there ;)

WB October 11th, 2005 01:29 PM

Thanks.

I think I found an example in member.php to serve as a template for the forward.

Chuck S October 11th, 2005 03:12 PM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97