https://www.icyphoenix.com/viewtopic.php?f=26&t=808
-----------------------------------
Artie
Mon 08 Jan, 2007 23:08

FAP CUSTOMIZATION - Guest On FAP, Only Thumbnail Please
-----------------------------------
From: 22 Dec, 2006

[quote user="middiu"]hi, 
I want the guests only to see the thumbnails without the possibility to enlarge the pics

how can i do it?

thanks![/quote]

[quote user="Artie"]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 [b]View full pic as a popup[/b] set to [b]Yes[/b] in ACP

[code]
#
##------------------- [ OPEN ] ------------------------------------------------
#
 
album_showpage.php

#
##----------------- [ FIND ] ----------------------------------------------------
#

// ------------------------------------
// TEMPLATE ASSIGNEMENT
// ------------------------------------

#
##--------------- [ BEFORE ADD ] -----------------------------------------------------------
#

if (!$userdata['session_logged_in'])
	{
		redirect(append_sid(album_append_uid(LOGIN_MG . "?redirect=album_showpage.$phpEx&pic_id=$pic_id")));
	}
#
## --------- [ SAVE FILE ] ---------------------------------------------
#EoM
[/code][/quote]


-----------------------------------
TheSteffen
Mon 08 Jan, 2007 23:52

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

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 [b]album_otf.php[/b], [b]album_picm.php[/b] and [b]album_pic.php[/b] otherwise someone may access directly to the pic... :wink:

Remember that BBCode posted pictures in full mode may be affected as well. :wink:


-----------------------------------
Artie
Tue 09 Jan, 2007 22:44

Re: Guest On FAP, Only Thumbnail Please
-----------------------------------
[quote user="Mighty Gorgon" post="6724"]Remember that BBCode posted pictures in full mode may be affected as well. :wink:[/quote]

No there's something I never would have have thought of. 

I now know why you make the big bucks.  :wink:


-----------------------------------
Mighty Gorgon
Wed 10 Jan, 2007 00:20

Re: Guest On FAP, Only Thumbnail Please
-----------------------------------
[quote user="Artie" post="6751"]No there's something I never would have have thought of. 

I now know why you make the big bucks.  :wink:[/quote]
Ha ha ha... Usually there is even something I forgot... just wait that someone will read this and found what I missed... :wink:


-----------------------------------
Gianni PB
Mon 24 Dec, 2007 18:17

Re: Guest On FAP, Only Thumbnail Please
-----------------------------------
I want use it for view profile. How can i do?




EDITED:
I have used this:
[code linenumbers=false]if (!$userdata['session_logged_in'])  
   {  
       append_sid('LOGIN_MG. "?redirect=profile.' . $phpEx . '?mode=viewprofile&u=' . $user_id );
   }  [/code]

it seems to work...


-----------------------------------
Gianni PB
Tue 25 Dec, 2007 11:36

Re: Guest On FAP, Only Thumbnail Please
-----------------------------------
in 1.1.9.24 it doesn't work in profile.php  :( 

why?


