 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
May 15th, 2006, 01:31 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Nov 2005
Posts: 45
| Unregistered can View Recent Comments
How Can I hide the Recent Comments Pal from non registered users or non logged in users? I was able to edit the undercat template to hide the stats, top poster etc, but where would I edit to hide the Recent comments? As it is now, someone ( a nonmember) could go through and see all of the thumbs and comments for the over 800 pics that I have at my site simply by clicking on the "more" link in the Recent Comments Pal. Thanx, Stu
|
| |
May 15th, 2006, 08:52 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
If you where able to edit the undercats template to hide the other stuff then you could do the same thing to the include for the commentspal.tmpl
|
| |
May 15th, 2006, 09:20 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Feb 2006 Location: Germany
Posts: 131
| Quote: |
Originally Posted by Stumeister2 How Can I hide the Recent Comments Pal from non registered users or non logged in users? I was able to edit the undercat template to hide the stats, top poster etc, but where would I edit to hide the Recent comments? As it is now, someone ( a nonmember) could go through and see all of the thumbs and comments for the over 800 pics that I have at my site simply by clicking on the "more" link in the Recent Comments Pal. Thanx, Stu | Hi Stu,
could you please post the mod for hide this stuff for non logged users? thx
ps: do you speak german?
|
| |
May 15th, 2006, 10:01 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Nov 2005
Posts: 45
|
OK, the include in the undercat template looks like this:
include( "{$Globals['PP_PATH']}/{$Global ['TMPL_PATH']}/commentspal.tmpl" );
echo "<br />";
I tried to make it look like the others, but got an error message (not sure what exactly I did now). My statspal edit was as follows:
From this:
if ( $Globals['statspal'] == "yes" ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/statspal.tmpl" );
To this:
if ( $Globals['statspal'] == "yes" && $User['userid'] > 0 ) {
include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/statspal.tmpl" );
What and where do I edit the comments include??
Please advise, Thanx, Stu
|
| |
May 15th, 2006, 10:04 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
Stu place an if statement around the commentspal include Code: Content visible to verified customers only.
|
| |
May 15th, 2006, 11:58 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Nov 2005
Posts: 45
|
Fantastic! Thanx much. Stu
|
| |
May 17th, 2006, 05:44 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Feb 2006 Location: Germany
Posts: 131
| Quote: |
Originally Posted by Stumeister2 | thanks, stu...
|
| |
May 17th, 2006, 06:18 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Feb 2006 Location: Germany
Posts: 131
|
ok, recent comments are clear, but how can i hide the regular comments (comshow.php) for unregistered?
Maybe there is an switch on the settings whitch i have not seen... my picture are closed for unregistered and it would be great when the comments are closed for unregistered, too.
thanks
|
| |
May 20th, 2006, 06:58 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Feb 2006 Location: Germany
Posts: 131
|
gentel bump for my question above... how can i hide the regular comments (comshow.php) for unregistered?
|
| |
May 20th, 2006, 08:06 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
You would need to alter or modify your code for such things. The code above shows how to hide the comments pal.
|
| |
May 20th, 2006, 08:18 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Feb 2006 Location: Germany
Posts: 131
| Quote: |
Originally Posted by Chuck S You would need to alter or modify your code for such things. The code above shows how to hide the comments pal. | jepp, chuck... now i know that the string Code: Content visible to verified customers only.
is the rigth thing... but i donŽt know whereŽs the rigth place for hiding the regular comments (comshow.php) for unregistered? it would be great if you could give me a tip.
|
| |
May 30th, 2006, 12:09 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Feb 2006 Location: Germany
Posts: 131
|
iŽam glad to find it by myself...
No more comments showing for unregistered:
after Code: Content visible to verified customers only.
add Code: Content visible to verified customers only.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 08:04 PM. | |