PhotoPost 8.0 URL Redirect Script

PhotoPost 8.0 URL Redirect Script 1

Inscrivez-vous ou connectez-vous pour téléchargement gratuit
Compatibilité XF
  1. 2.2.x
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:
# Rewrite PhotoPost URLs
RewriteCond %{QUERY_STRING} photo=(\d+)
RewriteRule ^gallery/showphoto.php photopost_redirect.php?s=detail&id=%1 [NC,L]
RewriteRule ^gallery/data/(\d+)/((medium|thumbs|mini)/)?([a-z0-9\-_\.]+) photopost_redirect.php?c=$1&s=$3&f=$4 [NC,L]

And that's it
Auteur
axtona
Vues
585
Type d’extension
zip
Taille du fichier
861 octets
Première publication
Dernière mise à jour
Évaluations 0.00 étoile(s) 0 évaluations
Plus de ressources de axtona
Sorcier Pro
Sorcier Pro
Insérer du code PHP et tout type de code HTML, CSS et JavaScript dans votre contenu !
Tous Video Share Pro
Tous Video Share Pro
Les fonctionnalités qui font de All Video Share le plus puissant et le plus facile d'utilisation pour Joomla
Balbooa Forms Builder Pro
Balbooa Forms Builder Pro
Créez des formulaires de contact joliment designés avec Balbooa Forms.

Ressources similaires

Redirection Scripts for Invision IP Forums and Gallery A
All that is required is that you unzip these files and place them in the directory in which your IPB
Retour
Haut