PhotoPost 8.0 URL Redirect Script

PhotoPost 8.0 URL Redirect Script 1

没有下载权限
XF 兼容性
  1. 2.2.x
摘要
Install photopost_redirect.php in XF root to redirect PhotoPost requests to XFMG, simplifying photo handling and navigation. Add .htaccess rules for seamless integration.
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
作者
axtona
浏览
569
扩展类型
zip
文件大小
861 字节
首次发布
上次更新
评分 0.00 星 0 个评分
链接失效了吗? 发送消息 给 NP 团队,我们会尽快为您处理!
支持开发者 如果您对测试满意或项目已成功盈利,可点击「更多信息」按钮,通过购买来支持开发者!

来自 axtona 的更多资源

Persona - 个性化你的论坛身份 A
Persona为论坛上的每一个成员提供了工具,让他们能够打造自己的存在感。
XenForo媒体图库/XFMG A
XenForo媒体图库是官方的XenForo扩展程序,允许您为您的XF2添加一个相册
Relevio.ai A
Relevio.ai 1.0.0
这是一个针对XenForo的Relevio插件,它是一个独特的上下文感知、规则驱动的内容管理引擎

相似的资源

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
浏览
500
已更新
返回
顶部