[BETA][Add-On] Redirect Link Page Addon

Download and support for PhpBB3 Error Pages
User avatar
doktornotor
BBCoder IV
BBCoder IV
Posts: 167
Joined: 14 Sep 2011, 21:20
BBCodes: 30
Favourite MOD: Thanks for Posts

[BETA][Add-On] Redirect Link Page Addon

Post by doktornotor » 23 Nov 2011, 11:54

Modification Name: Error Pages - Redirect Link Page Addon
Author: doktornotor

Modification Description: A simple external link redirect page addon for you forum like the one being used here, just a tad bit smarter.

Modification Version: [BETA] 0.2.0

Requirements:
  • Error Pages MOD by Stoker (duh!)
  • PHP >= 5.2.0 - this mod uses filter_var(); for URL validation.
  • Optional (but highly recommended): Prime Links MOD. Instead of specifying the URLs manually, you can use this automagically for all external links on your forum with Prime Links MOD installed. See the DYI instructions for setup.
Limitations:
  • Kindly note that referrer checks cannot ever be fool proof as the referrer is passed by the browser. The checks are only done in order to prevent your site being (ab)used as a sort of an open anonym.to service linking to malware domains etc.
  • Any bugs regarding incomplete validation checks in FILTER_VALIDATE_URL go to PHP upstream, NOT to me!
Features:
  • Provides a simple redirect page for your forum, using your style, personalized with avatar and username for registered users.
  • Usage can be automated with Prime Links
  • Basic sanity checking, including:
    • prevent redirect loops (redirect to forum index on failure)
    • try to check URL validity (Status Code 400 on failure)
    • check for referrer and only perform the redirect when the request comes from our domain (Status Code 403 on failure).
  • Styles supported: Pretty much any; prosilver, subsilver2 and DVGFX2 included.
Screenshots: (DVGFX2 style)
Normal Redirect Screen
Referrer Check Failed Screen
URL Validation Failed Screen

Demo URL:
Normal redirect: Go to my forum's About Us Page and click of the external links in there (hint: they have a small icon next to them)
URL validation failed: click here
Redirect Loop Prevention/Fallback to Forum Index: N/A here (due to referrer check, but it works)
Referrer Check: click here

ChangeLog:

0.2.0
  • Add javascript countdown on redirect (credits: Arnevb)
  • Get rid of hardcoded language strings
  • Use simple_footer.html in prosilver as well for consistency
  • Redirect time can now be configured by editing S_REDIRECT_TIME in go.php
0.1.0
  • Initial revision
Modification Download: 0.2.0 (or see attachment)

Update instructions:
No instructions included, simply overwrite all files with the updated copy from root/ folder of the ZIP (or uninstall and reinstall the new version.)


The above is beta-quality code, if it crashes your forum and drinks all the beer in your fridge, your own damn fault for using it!

:P
You do not have the required permissions to view the files attached to this post.
Last edited by doktornotor on 15 Dec 2011, 00:49, edited 6 times in total.
Support requests via PM go straight to /dev/null!


User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 764
Joined: 25 Jul 2011, 11:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!

[ALPHA][Add-On] Redirect Link Page Addon

Post by martin123456 » 23 Nov 2011, 12:05

Nice :thumb:

:thumb: crashes your forum and drinks all the beer in your fridge, your own damn fault for using it!

??? did't crash mine but it did take the fridge

you left your themes file in there some might get confused by it :D DVGFX2 in styles

User avatar
doktornotor
BBCoder IV
BBCoder IV
Posts: 167
Joined: 14 Sep 2011, 21:20
BBCodes: 30
Favourite MOD: Thanks for Posts

[ALPHA][Add-On] Redirect Link Page Addon

Post by doktornotor » 23 Nov 2011, 12:14

martin123456 wrote: you left your themes file in there some might get confused by it :D DVGFX2 in styles
This should do no harm and is not forbidden anywhere even by the phpBB.com specs, AFAICT. It simply will not get installed if that style is not available/active on your forum. (You might receive some stupid warning by AutoMOD though, bug the mod tools guys for that.)

BTW, attached here as well, since the webhosting tends to suck sometimes.

P.S. Wrt the beer, that was me, but pssssssst... :lol:
Support requests via PM go straight to /dev/null!

User avatar
Stoker
Site Admin
Site Admin
Posts: 3526
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

[ALPHA][Add-On] Redirect Link Page Addon

Post by Stoker » 23 Nov 2011, 12:32

Love the idea and looking great :thumb:
Board rules! No PM support
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear

User avatar
Vox Populi
BBCoder III
BBCoder III
Posts: 135
Joined: 27 Jul 2011, 13:44
BBCodes: 51
Favourite BBCode: YouTube
Favourite MOD: mChat, Welcome on Index
Location: Index,WA

[ALPHA][Add-On] Redirect Link Page Addon

Post by Vox Populi » 23 Nov 2011, 13:19

Have not tested but thanks for the efforts. Looks unique. Will do a local with it.
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss


User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 764
Joined: 25 Jul 2011, 11:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!

[ALPHA][Add-On] Redirect Link Page Addon

Post by martin123456 » 23 Nov 2011, 13:27

Tested and works 100%

User avatar
doktornotor
BBCoder IV
BBCoder IV
Posts: 167
Joined: 14 Sep 2011, 21:20
BBCodes: 30
Favourite MOD: Thanks for Posts

[ALPHA][Add-On] Redirect Link Page Addon

Post by doktornotor » 23 Nov 2011, 15:03

martin123456 wrote:Tested and works 100%
Thanks, sounds good for a first release. :D
Support requests via PM go straight to /dev/null!

User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 764
Joined: 25 Jul 2011, 11:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!

[ALPHA][Add-On] Redirect Link Page Addon

Post by martin123456 » 23 Nov 2011, 15:32

doktornotor wrote:
martin123456 wrote:Tested and works 100%
Thanks, sounds good for a first release. :D
Have i said thanx ?? if not thanx any way

User avatar
doktornotor
BBCoder IV
BBCoder IV
Posts: 167
Joined: 14 Sep 2011, 21:20
BBCodes: 30
Favourite MOD: Thanks for Posts

[BETA][Add-On] Redirect Link Page Addon

Post by doktornotor » 15 Dec 2011, 00:24

Updated to 0.2.0. This can be fully localized now, simply translate language/en/mods/go.php. ;)
Support requests via PM go straight to /dev/null!

genez
BBCoder I
BBCoder I
Posts: 1
Joined: 15 Mar 2012, 00:25
BBCodes: 5

[BETA][Add-On] Redirect Link Page Addon

Post by genez » 15 Mar 2012, 00:26

ty