FAP CUSTOMIZATION - Upload Redirect
Subject: FAP CUSTOMIZATION - Upload Redirect
I see that once you upload a pic you have two options, go to the index page or go to the category page. So once you uploaded thepic you have to hunt through the page and find there uploaded pic. Is there a way to redirect the user to the uploaded mid size pic page of the pic they just uploaded? thanks
Subject: Re: Upload Redirect
Is it not good enough that you can redirect to the category, if you have the sort order to DESC it should be the first thumbnail in the first row.
I will agree with you that redirecting to the mid thumb would be nice, but that would require at the very least another sql query to get the pic_id...and then there is the issue of --- if you have pic_approval set to ON (which is an issue in either case)
I will agree with you that redirecting to the mid thumb would be nice, but that would require at the very least another sql query to get the pic_id...and then there is the issue of --- if you have pic_approval set to ON (which is an issue in either case)
Subject: Re: Upload Redirect
What if you redirected the user after upload to their domain_com/album.php?user_id=X&mode=list
If you upload as a guest then you'd be directed to domain_com/album_cat.php?cat_id=X
I'm not using personal galleries at all, no pic approval.
thanks for your time
If you upload as a guest then you'd be directed to domain_com/album_cat.php?cat_id=X
I'm not using personal galleries at all, no pic approval.
thanks for your time
Subject: Re: Upload Redirect
IMO: Best case would be redirect to mid-thumb, but seeing as this would require another sql next best would be as it is now.
I don't see the point in redirecting to domain_com/album.php?user_id=X&mode=list in place of the current setup
.... but it should be no problem to modify for this.
I don't see the point in redirecting to domain_com/album.php?user_id=X&mode=list in place of the current setup
.... but it should be no problem to modify for this.
Subject: Re: Upload Redirect
I got to lookin at album_upload a little closer an saw that the pic_id is already retrieved for email notification.
This should give you a link to view the pic, but only if approval is off and it is not a multi-pic upload
OPEN album_upload.php
FIND
AFTER ADD
OPEN language/lang_english/lang_album_main.php
FIND
AFTER ADD
This should give you a link to view the pic, but only if approval is off and it is not a multi-pic upload
OPEN album_upload.php
FIND
AFTER ADD
if ($pic_count == 1)
{
$pic_id = $new_pic_id['pic_id'];
$message .= "<br /><br />" . sprintf($lang['Click_view_pic'], "<a href="" . append_sid(album_append_uid("album_showpage.$phpEx?pic_id=$pic_id")) . "">", "</a>");
}
{
$pic_id = $new_pic_id['pic_id'];
$message .= "<br /><br />" . sprintf($lang['Click_view_pic'], "<a href="" . append_sid(album_append_uid("album_showpage.$phpEx?pic_id=$pic_id")) . "">", "</a>");
}
OPEN language/lang_english/lang_album_main.php
FIND
$lang['Click_return_album_index'] = 'Click %shere%s to return to the Album Index';
AFTER ADD
Subject: Re: Upload Redirect
That's debatable, however you are still welcome :icy_lol_flag:
luckyou03 wrote: [View Post]
That's debatable, however you are still welcome :icy_lol_flag:
Subject: Re: Upload Redirect
Yes, but you are awesome for me as well. :wink:
...and luckyou03 continues to be welcome! :mri:
Artie wrote: [View Post]
Yes, but you are awesome for me as well. :wink:
...and luckyou03 continues to be welcome! :mri:
Subject: Re: Upload Redirect
Good idea, However I get "This pic does not exist"
This is the URL it takes me to...
/album_showpage.php?pic_id=&user_id=298
This is the URL it takes me to...
/album_showpage.php?pic_id=&user_id=298
Subject: Re: Upload Redirect
Hello
This is the URL it takes me to...
/album_showpage.php?pic_id=&user_id=2
Have the same problem
Pepi
Pete_Z wrote: [View Post]
Hello
This is the URL it takes me to...
/album_showpage.php?pic_id=&user_id=2
Have the same problem
Pepi
Subject: Re: Upload Redirect
You must have email notification on new pic enabled in ACP, otherwise pic_id will have no value.
Subject: Re: Upload Redirect
Many thanks Artie
but is there no why for email notification on new pic disabled
Pepi
Artie wrote: [View Post]
Many thanks Artie
but is there no why for email notification on new pic disabled
Pepi
Subject: Re: Upload Redirect
pepi, it should be possible.
One would have to move the sql that get's the new_pic_id outside of the check for email notification.
I don't have time right now...it's bedtime and I have an early wakeup :oops:
One would have to move the sql that get's the new_pic_id outside of the check for email notification.
I don't have time right now...it's bedtime and I have an early wakeup :oops:
Page 1 of 1
You cannot post new topicsYou 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
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.3753s (PHP: 6% SQL: 94%)
SQL queries: 11 - Debug Off - GZIP Enabled