vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - Pop-Up Warning Before Visiting Member's Homepage (https://vborg.vbsupport.ru/showthread.php?t=150471)

713JunctionP 06-22-2007 10:00 PM

Pop-Up Warning Before Visiting Member's Homepage
 
This mod will more than likely work in other versions of vB but was only coded and tested on vBulletin 3.6.4 and 3.6.7

If you're concerned about liability and want to make it known that you do not take responsibility for a user visiting another member's website on your forums, you can perform this simple little template modification. It's a nice little add-on and can really help you in the long run. :)

Installation:

1) Open your MEMBERINFO template and...

FIND THIS CODE:
Code:

<a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>

REPLACE WITH:
Code:

<!-- Pop-Up Warning Before Visiting Member's Homepage by 713JunctionP -->
<a href="$userinfo[homepage]" onClick="return confirm('The link you are trying to access may not be a part of the $vboptions[bbtitle] network.  Click OK if you wish  to trust this member and visit their website anyway.  Otherwise, click CANCEL to halt visitng this members website.')" target="_blank" dir="ltr">$userinfo[homepage]</a>
<!-- / Pop-Up Warning Before Visiting Member's Homepage by 713JunctionP -->

*NOTE: If anyone can get this working in the postbit, postbit_legacy and memberlist templates, please post up.
I will add it to this mod and give credit where credit is due. Thanks!


This mod works in Firefox and Internet Explorer. Others have not yet been tested.

You are free to use this mod however you'd like, but please keep the copyright/credit phrase intact in the code. That's all I ask. :up:

PLEASE REMEMBER TO CLICK INSTALLED IF YOU USE THIS MOD!

713JunctionP 06-23-2007 06:59 PM

First Post Reserved!

rjmjr69 06-23-2007 11:50 PM

Sweet Idea. Has been done a few times but I like this one short code

rasp187 06-24-2007 12:40 AM

Nice idea. Installed.

PoetJA-1975 06-24-2007 03:29 AM

Wow - shortcode looks very nice - Thanx for the sharing.

Jacquii.

713JunctionP 06-24-2007 06:09 PM

Quote:

Originally Posted by rjmjr69 (Post 1274984)
Sweet Idea. Has been done a few times but I like this one short code

Yeah, and the reason why I released this version of it was because the "other" warning system hack did not give you a "Cancel" option. This, on the other hand, does. Plus, it needed to sound a wee bit more professional. :up:

Quote:

Originally Posted by PoetJA-1975 (Post 1275084)
Wow - shortcode looks very nice - Thanx for the sharing.

Jacquii.


thank you. you guys should click "installed." :D

Triky 06-25-2007 04:24 PM

Nice idea!

713JunctionP 07-04-2007 02:37 PM

yeah, it really does kinda relieve some of the "stress" and "liability" from users trying to blame the site admins/owner of forums (depending on how big a website is, it could happen).

JadedSouls 10-21-2007 07:23 PM

I installed but for some reason the pop-up doesn't work for me..

bazzup 10-21-2007 09:35 PM

really good i may have a use for this as we get busier

Andyucs 10-22-2007 12:33 PM

Shame that could not be done for all external links

TheInsaneManiac 02-03-2008 08:13 AM

OF ALL the cool modifications in the template section I have chosen yours that is located on the 10th page lol. I have 8 templates and I don't just choose a modification I like, I think of stuff the members need. I have installed your modification on ALL 8 of my styles. This is the first template modification I have used. My members have been crazy lately and clicking other members links and blaming me for the content their links hold and some of them have just clicked the links without even looking at them. Now they can be reminded that not all of the links are safe. Thanks.


Quote:

Originally Posted by JadedSouls (Post 1365344)
I installed but for some reason the pop-up doesn't work for me..

My guess is javascript isn't enabled.


Quote:

Originally Posted by Andyucs (Post 1365854)
Shame that could not be done for all external links

It can. Just code the bbc to use that html

Thelonius Beck 05-17-2008 05:02 PM

OK, I thought it might be good to make this work for 3.7 as well (because it didn't).

Here is how to do it:

In the template 'memberinfo_block_contactinfo'

FIND THIS CODE:

PHP Code:

<a href="$prepared[homepage]target="_blank">$prepared[homepage]</a


REPLACE WITH:

PHP Code:

<!-- Pop-Up Warning Before Visiting Member's Homepage by 713JunctionP -->
<a href="$prepared[homepage]" onClick="return confirm('
The link you are trying to access may not be a part of the $vboptions[bbtitlenetwork.  Click OK if you wish  to trust this member and visit their website anyway.  Otherwiseclick CANCEL to halt visitng this members website.')" target="_blank" dir="ltr">$prepared[homepage]</a>
<!-- / Pop-Up Warning Before Visiting Member'
s Homepage by 713JunctionP --> 

Great Mod BTW 713JunctionP, :D

TheInsaneManiac 06-24-2008 04:36 PM

Is there anyway to get this to work with the threads "Visit Users Homepage" from the drop down that appears when you click the users name in a post?

Thelonius Beck 06-24-2008 08:57 PM

Quote:

Originally Posted by TheInsaneManiac (Post 1557886)
Is there anyway to get this to work with the threads "Visit Users Homepage" from the drop down that appears when you click the users name in a post?

I've been working on that. It appears that there is a conflict with the two Javascripts being used together. :(


All times are GMT. The time now is 02:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01067 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete