FAP CUSTOMIZATION - Upload Redirect »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP CUSTOMIZATION - Upload Redirect



luckyou03 [ Sat 31 Mar, 2007 08:37 ]
Post 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


Artie [ Mon 02 Apr, 2007 00:19 ]
Post 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)


luckyou03 [ Mon 02 Apr, 2007 16:54 ]
Post 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


Artie [ Tue 03 Apr, 2007 20:55 ]
Post 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.


Artie [ Wed 04 Apr, 2007 01:24 ]
Post 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
Code: [Hide] [Select]
$message = $lang['Album_upload_successful'];

AFTER ADD
Code: [Hide] [Select]
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>");
}


OPEN language/lang_english/lang_album_main.php

FIND
Code: [Hide] [Select]
$lang['Click_return_album_index'] = 'Click %shere%s to return to the Album Index';

AFTER ADD
Code: [Hide] [Select]
$lang['Click_view_pic'] = 'Click %shere%s to view your pic';


luckyou03 [ Thu 12 Apr, 2007 05:28 ]
Post subject: Re: Upload Redirect
You are awesome! thank you


Artie [ Thu 12 Apr, 2007 20:34 ]
Post subject: Re: Upload Redirect
luckyou03 wrote: [View Post]
You are awesome! thank you

That's debatable, however you are still welcome


Mighty Gorgon [ Sun 15 Apr, 2007 20:29 ]
Post subject: Re: Upload Redirect
Artie wrote: [View Post]
luckyou03 wrote: [View Post]
You are awesome! thank you

That's debatable, however you are still welcome

Yes, but you are awesome for me as well.

...and luckyou03 continues to be welcome!


Pete_Z [ Sun 22 Apr, 2007 08:39 ]
Post 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


pepi [ Sun 22 Apr, 2007 13:24 ]
Post subject: Re: Upload Redirect
Pete_Z wrote: [View Post]
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


Hello

This is the URL it takes me to...
/album_showpage.php?pic_id=&user_id=2

Have the same problem
Pepi


Artie [ Mon 23 Apr, 2007 02:17 ]
Post subject: Re: Upload Redirect
You must have email notification on new pic enabled in ACP, otherwise pic_id will have no value.


pepi [ Mon 23 Apr, 2007 03:15 ]
Post subject: Re: Upload Redirect
Artie wrote: [View Post]
You must have email notification on new pic enabled in ACP, otherwise pic_id will have no value.


Many thanks Artie

but is there no why for email notification on new pic disabled

Pepi


Artie [ Mon 23 Apr, 2007 03:51 ]
Post 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




Powered by Icy Phoenix