The organization I work for needed to post a disclaimer before any external links were followed. I modified this module slightly to add three new administrative items
Disclaimer On/Off (checkbox)
# of seconds to wait (0 for indefinite, select box)
Text to display as a disclaimer with variables for the URL and the # of seconds to wait.

When the disclaimer is checked "on" anytime a user clicks on a "GO" link (i.e. http://yoursite.com/go/externalsite) a disclaimer is displayed as a full page (not a popup.. because I hate popups), a meta-refresh is used to automatically move them to the selected page.

It is working great for us currently, although we haven't gone live with it yet. You can check it out at
http://beta.mnn.org/viewers/schedule (click on any non-email link)

Code needs review... I'm probably missing a few steps.

CommentFileSizeAuthor
gotwo.patch2.32 KBjredding

Comments

davemybes’s picture

Status: Needs review » Reviewed & tested by the community

This patch works perfectly - I don't think you missed anything :) The code looks good too (although I'm not yet a programmer). You seem to be using the Forms API nicely, etc. I'm setting this as ready to be committed seeing as I have seen no issues with it and its a nice feature to have.

jredding’s picture

Awesome, I do have a few minor changes that I've made since I posted the patch. If you commit the patch I'll download it, merge my latest changes and repost a new patch.

Thanks for the original code, sometimes people don't say that enough. You saved me a LOT of time!

summit’s picture

Hi,
Is the version no downloadable including the patch?

greetings,
Martijn

jredding’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Patch should be included in the downloadable release within the next week or so.