XenForo PhotoPost 8.0 URL Redirect Script

CR LEAKS

CR LEAKS

Administrative
Joined
Mar 25, 2022
Messages
1,272
Reaction score
5,191
Points
113
Credits
19,896
Simple redirect script that catches any requests to sendphoto.php or directly to your old PhotoPost data folder and redirects to the new XFMG location.

showphoto.php redirects will go to the media overview page, direct data folder links it will go to the full image or thumbnail.

Installing

Put the attached photopost_redirect.php file in your XF root, then add the following entries to your .htaccess file above the "# Here is the Xenforo stuff" part (changing the data file path accordingly, mine was in the /gallery folder)


Code:
Please, Log in or Register to view codes content!

Copy the pp_photos table from your photopost/vbulletin database into the XenForo one (if you want to save space, you can remove all the the columns except for id, cat and bigimage).

This is needed so that direct data folder links will work, as there is no id in the PP filenames.

And that's it :)
 
  • Like
Reactions: DynamicX
4,485Threads
10,412Messages
39,631Members
mika67Latest member
Top