![]() |
Redirect Page for Every Link [NO PLUGIN] - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Resources (https://community.mybb.com/forum-8.html) +--- Forum: Tutorials (https://community.mybb.com/forum-38.html) +--- Thread: Redirect Page for Every Link [NO PLUGIN] (/thread-224179.html) |
Redirect Page for Every Link [NO PLUGIN] - YASAKA - 2019-08-07 Tutorial for redirect page to another site 1, Create a PHP file named 'redirect.php'
2, Go to Admin CP >> Templates & Style >> Templates >> Your Templates >> Add Templates 3, Set new template name: redirect_page 4, Add this in the new template;
5, Upload anon.js file to root/jscripts. 6, Go to showthread and add this; NOTE: Change sinfulsite.com with your forum URL.6.a, If you can't or won't to upload anon.js file, you can use this change this;
to this;
7, Done. Result: RE: Redirect Page for Every Link [NO PLUGIN] - Xyaena - 2019-08-11 Simpler Instructions: Apply the file redirect.php to the ROOT of your domain. For example: public_html/yoursite/redirect.php. Insert the PHP code to it and save. Select the theme you want a redirect to happen, enter it, Add Templates and set the title of the template redirect_page. Insert the HTML code to it and save. Upload anon.js to public_html/yoursite/jscripts/anon.js. Change protected_link to your site. Go to the same theme's templates, Show Thread Templates, showthread. Insert the script to the bottom above </body> and </html> (bottom area). If you chose NOT to upload anon.js, replace the top area of the script with this.
If done correctly, any link in a post or thread will give you the notification. It's possible you can move this script to other parts of your forum, such as your navigational links on your forum's header. Include the script for any sources you'd like to include with the redirect.
or
RE: Redirect Page for Every Link [NO PLUGIN] - Eldenroot - 2019-08-13 Thank you, good tutorial. Anyway, it should redirects you back to the page when you were before when you click to "Cancel" RE: Redirect Page for Every Link [NO PLUGIN] - YASAKA - 2020-01-19 Cancel button
|