Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Guest On FAP, Only Thumbnail Please 
 
From: 22 Dec, 2006

middiu wrote: 
hi,
I want the guests only to see the thumbnails without the possibility to enlarge the pics

how can i do it?

thanks!


Artie wrote: 
For your Mid/Full pics on register only. Try the code below.
I only tested this briefly, but seems to work ..... though, will not work if you have View full pic as a popup set to Yes in ACP

Code: [Download] [Hide]
  1. #  
  2. ##------------------- [ OPEN ] ------------------------------------------------  
  3. #  
  4.  
  5. album_showpage.php  
  6.  
  7. #  
  8. ##----------------- [ FIND ] ----------------------------------------------------  
  9. #  
  10.  
  11. // ------------------------------------  
  12. // TEMPLATE ASSIGNEMENT  
  13. // ------------------------------------  
  14.  
  15. #  
  16. ##--------------- [ BEFORE ADD ] -----------------------------------------------------------  
  17. #  
  18.  
  19. if (!$userdata['session_logged_in'])  
  20.     {  
  21.         redirect(append_sid(album_append_uid(LOGIN_MG . "?redirect=album_showpage.$phpEx&pic_id=$pic_id")));  
  22.     }  
  23. #  
  24. ## --------- [ SAVE FILE ] ---------------------------------------------  
  25. #EoM  
  26.  

 



 
Artie - View user's profileSend private messageView user's personal gallery 
Back to topPage bottom
Thanks for the useful Topic Artie:
buldo (09 January) 
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Guest On FAP, Only Thumbnail Please 
 
Great,

maybe there should be a switch in ACP for this.
 



 
TheSteffen - View user's profileSend private message 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guest On FAP, Only Thumbnail Please 
 
Good suggestion... when I have some free time I'll do it...

The same modification should be applied to album_otf.php, album_picm.php and album_pic.php otherwise someone may access directly to the pic...

Remember that BBCode posted pictures in full mode may be affected as well.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty Gorgon - View user's profileSend private messageVisit poster's websiteView user's personal gallery 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guest On FAP, Only Thumbnail Please 
 
Mighty Gorgon wrote: [View Post]
Remember that BBCode posted pictures in full mode may be affected as well.


No there's something I never would have have thought of.

I now know why you make the big bucks.  
 



 
Artie - View user's profileSend private messageView user's personal gallery 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guest On FAP, Only Thumbnail Please 
 
Artie wrote: [View Post]
No there's something I never would have have thought of.

I now know why you make the big bucks.  

Ha ha ha... Usually there is even something I forgot... just wait that someone will read this and found what I missed...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty Gorgon - View user's profileSend private messageVisit poster's websiteView user's personal gallery 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guest On FAP, Only Thumbnail Please 
 
I want use it for view profile. How can i do?




EDITED:
I have used this:
Code: [Download] [Hide] [Select]
if (!$userdata['session_logged_in'])  
   {  
       append_sid('LOGIN_MG. "?redirect=profile.' . $phpEx . '?mode=viewprofile&u=' . $user_id );
   }  


it seems to work...
 



 
Last edited by Gianni PB on Mon 24 Dec, 2007 18:41; edited 3 times in total 
Gianni PB - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guest On FAP, Only Thumbnail Please 
 
in 1.1.9.24 it doesn't work in profile.php  

why?
 



 
Gianni PB - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events