PDA

View Full Version : Warning message when leaving domain


HolyKiller
06-07-2011, 01:40 PM
Hi, i'm looking for solution how to warn my users about leaving domain. Just a simple warnig message, when user click on any external links. So if the user click on some link (in post, PM, signature, ... etc), which is outside of the domain, he will get warning message about it, with autoredirect timeout and/or button to redirect immediately.

Some configurable things will be handy, for example:

Whitelist - admin can add "trusted" domain, so any whitelisted domain will not activate the warning message and the user will be directly redirected to the requested page.
Autoredirect - after XX second on the warning page, user will be redirected to the requested page
Continue button - user can click on the button on the warning page and he will be redirected, this can be combined with autoredirect time
Enable system on different places - admin can set, where the system will be active. So for example links from posts/comments/signatures will be "protected" via warning page, but links from arcticles not.
Trusted group - any usergroup can be set as "trusted" so no link from that user will activate the warning page - for example posts from admins, mods, or any custom group will be always "OK"

Something like this (click on any link it that post): https://www.flashback.org/t166537

Any suggestions?

Disasterpiece
06-07-2011, 03:28 PM
You could create a script file like outgoing.php, give the url via param ?url=http://somwhereelse
and then create a warning/redirect page around.

Then you create a vbulletin plugin, which hooks into bbcode_parse and replaces all urls from within [url] tags with your redirect script at the beginning.