FAP CUSTOMIZATION - Guest On FAP, Only Thumbnail Please »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP CUSTOMIZATION - Guest On FAP, Only Thumbnail Please



Artie [ Mon 08 Jan, 2007 23:08 ]
Post subject: FAP CUSTOMIZATION - 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: [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.  


TheSteffen [ Mon 08 Jan, 2007 23:52 ]
Post subject: Re: Guest On FAP, Only Thumbnail Please
Great,

maybe there should be a switch in ACP for this.


Mighty Gorgon [ Tue 09 Jan, 2007 22:03 ]
Post subject: 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.


Artie [ Tue 09 Jan, 2007 22:44 ]
Post subject: 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.


Mighty Gorgon [ Wed 10 Jan, 2007 00:20 ]
Post subject: 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...


Gianni PB [ Mon 24 Dec, 2007 18:17 ]
Post subject: Re: Guest On FAP, Only Thumbnail Please
I want use it for view profile. How can i do?




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


it seems to work...


Gianni PB [ Tue 25 Dec, 2007 11:36 ]
Post subject: Re: Guest On FAP, Only Thumbnail Please
in 1.1.9.24 it doesn't work in profile.php

why?




Powered by Icy Phoenix