Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Pop-Up Warning Before Visiting Member's Homepage Details »»
Pop-Up Warning Before Visiting Member's Homepage
Version: 1.00, by 713JunctionP 713JunctionP is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.x Rating:
Released: 06-22-2007 Last Update: Never Installs: 14
Template Edits
Code Changes  
No support by the author.

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!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-22-2007, 12:33 PM
Andyucs's Avatar
Andyucs Andyucs is offline
 
Join Date: Nov 2006
Location: Okcular, Turkey
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shame that could not be done for all external links
Reply With Quote
  #13  
Old 02-03-2008, 08:13 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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 View Post
Shame that could not be done for all external links
It can. Just code the bbc to use that html
Reply With Quote
  #14  
Old 05-17-2008, 05:02 PM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #15  
Old 06-24-2008, 04:36 PM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #16  
Old 06-24-2008, 08:57 PM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheInsaneManiac View Post
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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:39 PM.


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.06258 seconds
  • Memory Usage 2,261KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete