Xenforo 2 - Advanced Redirect Page with XenVn add-on

Xenforo 2 - Advanced Redirect Page with XenVn add-on

  • Thread starter Thread starter xenvn
  • Start date Start date
Advanced redirect page for Xenforo 2.webp


Xenforo 2 - Advanced Redirect Page for attachments and external link. Compatible with XenForo Resource Manager.

Features:

  • Force click to get
  • Verify captcha
  • Countdown time
  • Pause the countdown if the user leaves the page
  • AD top & bottom
  • Smart AD Block detect
  • Similar threads & attachment
  • Youtube videos view
This is a feature part of XenVn addon, see details here:
https://xenvn.com/threads/xenvn-all-in-one-tools-for-xenforo-2.516/


Advanced-redirect-page-for-Xenforo-2-1.webp


Advanced-redirect-page-for-Xenforo-2-2.webp


Advanced-redirect-page-for-Xenforo-2-4.webp
 
Last edited:
Is there any error message log in Admin?
no, after reinstall xenvn 2.5.2 and enable it, all thread can access to them but the home page ******.com/VB can't access to it, err 500
 
Fatal error: Access level to XV\Pub\Controller\Forum::setupThreadCreate() must be public (as in class QuestionThreads\XF\Pub\Controller\Forum) in /home/*******/public_html/vb/src/addons/XV/Pub/Controller/Forum.php on line 244
this line is:
protected function setupThreadCreate(\XF\Entity\Forum $__)
result of test

Unexpected Content: 1
src/addons/XV/addon.json
Unknown Content: 8
src/addons/XV/Service/Definitions/download.php
src/addons/XV/Service/Definitions/image.php
src/addons/XV/Service/Definitions/patterns_func.txt
src/addons/XV/Service/Definitions/patterns_raw.txt
src/addons/XV/Service/Definitions/patterns_re.txt
src/addons/XV/Repository/Search.php
src/addons/XV/Job/ConvertImage.php
src/addons/XV/Job/DailyCleanUp.php
Total Files: 135

Version Comparison
Current Version: 2.5.3
Newest: 2.5.2


for:
Unexpected Content: 1
src/addons/XV/addon.json
i have change it to downgrade to 2.3.6 (change in addon version 2.5.3) to accept the downgrade to 2.3.6, butnow i back to 2.5.2 but the addon json i change it to 2.5.3 to accep the upgarde to 2.5.2
 
Last edited:
@farid34000
Disable addon: QuestionThreads

Or open file: src\addons\QuestionThreads\XF\Pub\Controller\Forum.php
Find: public function setupThreadCreate(
Change to:
protected function setupThreadCreate(
 
Disable addon: QuestionThreads (not exist)

Or open file: src\addons\QuestionThreads\XF\Pub\Controller\Forum.php (the true directory is: src\addons\QuestionThreads\XV\Pub\Controller\Forum.php)
Find: public function setupThreadCreate(
Change to:
protected function setupThreadCreate(

the true program is protected function, i change it to public function

after this change the home page of forum back to work, please solve this problem in the next version of plugin
thank you so much
 
Disable addon: QuestionThreads (not exist)

Or open file: src\addons\QuestionThreads\XF\Pub\Controller\Forum.php (the true directory is: src\addons\QuestionThreads\XV\Pub\Controller\Forum.php)
Find: public function setupThreadCreate(
Change to:
protected function setupThreadCreate(

the true program is protected function, i change it to public function

after this change the home page of forum back to work, please solve this problem in the next version of plugin
thank you so much
also like, reply ...not working i have change public_html/vb/src/addons/XV/Pub/Controller/Post.php from protected function to public function, same problem with xvn last version, what is problem???
 
@farid34000
The issue isn't changing protected functions to public functions in the PHP files of the XenVn addon.

For example, the file: src/addons/XV/Pub/Controller/Post.php is created to inherit from the Xenforo file: src\XF\Pub\Controller\PostController.php.

Whether a protected or public function follows the structure of the parent file: src\XF\Pub\Controller\PostController.php

If you have multiple addons that inherit from the same parent file (parent class) of Xenforo, they must all follow the structure of the parent file.
 
@farid34000
Le problème ne réside pas dans la transformation de fonctions protégées en fonctions publiques dans les fichiers PHP de l'extension XenVn.

Par exemple, le fichier : src/addons/XV/Pub/Controller/Post.php est créé pour hériter du fichier Xenforo : src\XF\Pub\Controller\PostController.php .

La structure d' une fonction, qu'elle soit protégée ou publique, suit celle du fichier parent : src\XF\Pub\Controller\PostController.php

Si vous avez plusieurs modules complémentaires qui héritent du même fichier parent (classe parente) de Xenforo, ils doivent tous suivre la structure du fichier parent.
je disabled many addons and keep xenvn work, same problem???!!!
 
@farid34000
You can check the error logs in Xenforo Admin. You'll find the addons that are conflicting with each other.
 
this is all problems detected by menu: file check
Standard Library
src/addons/SV/StandardLib/addon.json Unexpected Content
User Activity
src/addons/SV/UserActivity/addon.json Unexpected Content
XenForo
install/index.php Missing
install/install.css Missing
install/oc-upgrader.php Missing
index.php Unexpected Content
src/XF.php Unexpected Content
XenVn
src/addons/XV/Pub/Controller/Forum.php Unexpected Content
src/addons/XV/Pub/Controller/Post.php Unexpected Content
[Andrew] Moderator Panel
src/addons/Andrew/ModeratorPanel/Setup.php Unexpected Content
[BR] Credits
src/addons/MJ/Credits/addon.json Unexpected Content
[tl] XenResource Support Large File
src/addons/Truonglv/XFRMSupportLargeFile/addon.json Unexpected Content
[Xen-Soluce] Hide BB Code
js/XenSoluce/Hide/check-hide.js Missing
js/XenSoluce/Hide/check-hideResource.js Missing
js/XenSoluce/Hide/editor.js Missing
js/XenSoluce/Hide/message.js Missing
[XFA] Forum Sales
src/addons/XFA/ForumSales/addon.json Unexpected Content
[XFA] RM Marketplace
src/addons/XFA/RMMarketplace/addon.json Unexpected Content
Best Answer
src/addons/xenarabia/BestAnswer/XF/Widget/BaStat.php Unexpected Content
 
Back
Top Bottom