Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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
 



 
luckyou03Send private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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)
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
luckyou03Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [Hide] [Select]
$message = $lang['Album_upload_successful'];

AFTER ADD
Code: [Download] [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: [Download] [Hide] [Select]
$lang['Click_return_album_index'] = 'Click %shere%s to return to the Album Index';

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

 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Upload Redirect 
 
You are awesome! thank you
 



 
luckyou03Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Upload Redirect 
 
luckyou03 wrote: [View Post]
You are awesome! thank you

That's debatable, however you are still welcome
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
Pete_ZSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Upload Redirect 
 
You must have email notification on new pic enabled in ACP, otherwise pic_id will have no value.
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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  
 



 
ArtieSend private message  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You 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