Customizing SMF > Modifications and Packages

SMF Gallery 3.6 (May 4) with SMF 2.0/SMF 1.1.x Support!

<< < (624/659) > >>

sunilimon:
Thanks for your answer! :D

Liam_michael:
I find that after uploading an image, it doesn't return back to the uploaded image, but returns to the main gallery category selection. How do I configure it to return to the image that was just uploaded?

SMFHacks.com Team:
You would change the redirectexit call in the addpicture2 function to point back to picture id action=gallery;sa=view;id=###

Liam_michael:

--- Quote from: SMFHacks.com Team on May 24, 2012, 08:31:08 PM ---You would change the redirectexit call in the addpicture2 function to point back to picture id action=gallery;sa=view;id=###

--- End quote ---

Could you elaborate, here's what I found:


--- Code: ---if (isset($_REQUEST['copyimage']))
  {
  redirectexit('action=gallery;sa=copyimage;id=' . $gallery_pic_id);
  }
  else if (isset($_SESSION['last_gallery_url']))
  {
  redirectexit($_SESSION['last_gallery_url']);
  }
  else
  {
// Redirect to the users image page.
if ($ID_MEMBER != 0)
redirectexit('action=gallery;sa=myimages;u=' . $ID_MEMBER);
else
redirectexit('action=gallery;cat=' . $cat);
  }
--- End code ---

SMFHacks.com Team:
That's it modifiy

--- Code: --- // Redirect to the users image page.
if ($ID_MEMBER != 0)
redirectexit('action=gallery;sa=myimages;u=' . $ID_MEMBER);
else
redirectexit('action=gallery;cat=' . $cat);

--- End code ---
To
redirectexit('action=gallery;sa=view;id=' . $gallery_pic_id);

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version