PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Display "contact seller" only to logged in users? (http://www.photopost.com/forum/classifieds-how-do-i/128266-display-contact-seller-only-logged-users.html)

openfire October 27th, 2006 03:08 AM

Display "contact seller" only to logged in users?
 
I would like to hide the "contact seller" link when a user is not logged in.

Basically, I would like only users who are logged in to see the "contact seller" link.

If this is not possible, I would like to remove the link all together.

Any help would be appreciated.

Thanks.

(BTW, I'm aware that only logged in users can use this feature)

Chuck S October 27th, 2006 06:51 AM

Try surrounding your $postreview line with this

Code:

Content visible to verified customers only.

openfire November 5th, 2006 04:53 AM

Chuck, that didn't work... I got:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/*/*/*/*******/html/templates/vb3enhanced/showproduct.tmpl on line 86

Chuck S November 5th, 2006 02:09 PM

Code:

Content visible to verified customers only.
I dont understand how you can have a parse error if you edit the correct file ;) It is showproduct.php

openfire November 6th, 2006 06:36 AM

Thanks Chuck! That worked.

Silly me, I was editing the template, not the .php! :o


All times are GMT -5. The time now is 04:28 AM.

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