I have just one guestion.
Artie has helped me already with the code so that only registered users can see full images.
#
##------------------- [ OPEN ] ------------------------------------------------
#
album_showpage.php
#
##----------------- [ FIND ] ----------------------------------------------------
#
// ------------------------------------
// TEMPLATE ASSIGNEMENT
// ------------------------------------
#
##--------------- [ BEFORE ADD ] -----------------------------------------------------------
#
if ((!$userdata['session_logged_in']) && ($full_size_param == '&full=true'))
{
redirect(append_sid(album_append_uid(LOGIN_MG . "?redirect=album_showpage.$phpEx&pic_id=$pic_id&full=true")));
}
#
## --------- [ SAVE FILE ] ---------------------------------------------
#EoM
##------------------- [ OPEN ] ------------------------------------------------
#
album_showpage.php
#
##----------------- [ FIND ] ----------------------------------------------------
#
// ------------------------------------
// TEMPLATE ASSIGNEMENT
// ------------------------------------
#
##--------------- [ BEFORE ADD ] -----------------------------------------------------------
#
if ((!$userdata['session_logged_in']) && ($full_size_param == '&full=true'))
{
redirect(append_sid(album_append_uid(LOGIN_MG . "?redirect=album_showpage.$phpEx&pic_id=$pic_id&full=true")));
}
#
## --------- [ SAVE FILE ] ---------------------------------------------
#EoM
Now im using hide links mod (http://www.phpbbhacks.com/download/4543),
and i would like that only registered users with more than 10 post can see full images,
and all other`s can see thumbnails and medium images.
I already done this in my wap upload script,but i just can`t get it to work in FAP.
This is what i done in my wap script and it`s working.
if( $userdata['session_logged_in'] & $userdata['user_posts'] >= 10 )
{
=======some php comes here======
}
elseif ( $userdata['user_posts'] >= 10 )
{
header("location:===login location===");
}
else
{
header("location:===location for users that have less than 10 posts===");
}
{
=======some php comes here======
}
elseif ( $userdata['user_posts'] >= 10 )
{
header("location:===login location===");
}
else
{
header("location:===location for users that have less than 10 posts===");
}
Like i said in my wap script is working but in FAP can`t get it to work.
Is there any solution?
Sorry for my english i`m from slovenia :wink:
Please help.