SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2012, 04:25:48 am

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 58
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 56
Total: 56
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Page after "Add Picture"  (Read 2649 times)
Harald
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 12


View Profile WWW
« on: March 02, 2007, 11:20:02 am »

Ok there is another thing i miss :-)

Where you are in a category and upload a picture, you always get to "MyImages" afterwards. Is it possible to get to same page where i started the upload? It's a little bit confusing, that you suddenly aren't anymore on that page where you started the upload...

Thanks

Harald
Logged
Harald
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 12


View Profile WWW
« Reply #1 on: March 02, 2007, 11:38:43 am »

I think i got this one already. I changed in the procedure AddPicture2
the line
redirectexit('action=gallery;sa=myimages;u=' . $ID_MEMBER);
to
redirectexit('action=gallery;su=user;cat=' . $cat . ';u=' . $ID_MEMBER);

Is this a correct way?

Thanks Harald
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #2 on: March 02, 2007, 11:56:56 am »

That's the correct way if you are using only user gallery pictures. But would cause some problems if you use the main gallery it will try to redirect to a users gallery and nothing will be found.
Logged
Harald
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 12


View Profile WWW
« Reply #3 on: March 02, 2007, 12:00:43 pm »

of course you are right!

i changed it to
            if ($userid) {
               redirectexit('action=gallery;su=user;cat=' . $cat . ';u=' . $userid);
            }
            else {
               redirectexit('action=gallery;cat=' . $cat);
            }
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #4 on: March 02, 2007, 01:00:16 pm »

Hmm. Do you like the redirect to the category by default better?

The reason I did redirection to MyImages was to show all images in case they have not been approved. So the user can see their images.
Logged
Harald
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 12


View Profile WWW
« Reply #5 on: March 02, 2007, 05:05:44 pm »

Hmm, I think that's a question of taste. For me it seems more logical, to be on the same page after an upload than before the upload. And it's the same for deleteing end editing images.
Propably the best solution would be to make it an option, so everybody can decide himself :-)
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 24, 2012, 08:02:50 am]

[May 24, 2012, 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.493 seconds with 19 queries.