vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Give Warning Before Visiting Members Home Page (https://vborg.vbsupport.ru/showthread.php?t=117868)

Smiry Kin's 06-06-2006 10:00 PM

Give Warning Before Visiting Members Home Page
 
Simple Really.. just a simple memberinfo edit.

POSTBIT:
FIND:
Code:

<a href="$post[homepage]">
REPLACE
Code:

<a href="$post[homepage]" onClick="confirm('The link you are trying to access is not apart of $vboptions[bbtitle]. It could direct you to something nasty! Click OK if you wish  to trust this member and visit there website anyway.')">
POSTBIT_LEGACY
FIND:
Code:

<a href="$post[homepage]">
REPLACE
Code:

<a href="$post[homepage]" onClick="confirm('The link you are trying to access is not apart of $vboptions[bbtitle]. It could direct you to something nasty! Click OK if you wish  to trust this member and visit there website anyway.')">
MEMBERINFO:
FIND:
Code:

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

<a href="$userinfo[homepage]" onClick="confirm('The link you are trying to access is not apart of $vboptions[bbtitle]. It could direct you to something nasty! Click OK if you wish  to trust this member and visit there website anyway.')" target="_blank" dir="ltr">$userinfo[homepage]</a>
Note:If anyone can get it working in memberlist. please post!

Works in FireFox - Internet Explorer - others not tested

DementedMindz 06-07-2006 04:42 AM

i personally have no use for it at this time but nice work..

Smiry Kin's 06-07-2006 04:49 AM

Quote:

Originally Posted by DementedMindz
i personally have no use for it at this time but nice work..

was just thinking about it, so i decided to added it to my forum, thought others might want it also :)

DementedMindz 06-07-2006 04:54 AM

im sure alot of members will have use for it i just cant use it right now as im redoing alot of things on my site..

Atakan KOC 06-07-2006 05:31 AM

Nice idea :) Thanks

Smiry Kin's 06-07-2006 05:34 AM

Quote:

Originally Posted by DementedMindz
im sure alot of members will have use for it i just cant use it right now as im redoing alot of things on my site..

oh, but its only a simple template edit. :P

Boofo 06-07-2006 05:58 AM

2 things: 1 - Please post the instructions in a text file and 2 - Why don't you use phrases for this so it can be translated easily?

Smiry Kin's 06-07-2006 06:05 AM

Quote:

Originally Posted by Boofo
2 things: 1 - Please post the instructions in a text file and 2 - Why don't you use phrases for this so it can be translated easily?

1 why in post file? o.0 but ok

2 cos im a noob :P but i still do what i can to contribute to vb.org

3 install it ya bum :P

Boofo 06-07-2006 06:08 AM

Quote:

Originally Posted by Smiry Kin's
1 why in post file? o.0 but ok

2 cos im a noob :P but i still do what i can to contribute to vb.org

3 install it ya bum :P

1. The text file is for those that may have to install it again after an upgrade or template re-convert so they don't have to search the org for the code later on.

2. We appreciate your contributions here, sir. ;)

3. Phrase it and put it in a text file and maybe this bum will install it. :p

Smiry Kin's 06-07-2006 06:13 AM

Quote:

Originally Posted by Boofo
1. The text file is for those that may have to install it again after an upgrade or template re-convert so they don't have to search the org for the code later on.

2. We appreciate your contributions here, sir. ;)

3. Phrase it and put it in a text file and maybe this bum will install it. :p

i dont get what ya mean pharsing.. :(

gimme a lil guide on how to do it, n i sure will :P

Boofo 06-07-2006 06:20 AM

Quote:

Originally Posted by Smiry Kin's
i dont get what ya mean pharsing.. :(

gimme a lil guide on how to do it, n i sure will :P

You know how to add a phrase, right? (i.e. $vbphrase[boofo_is_god])

Smiry Kin's 06-07-2006 06:24 AM

Quote:

Originally Posted by Boofo
You know how to add a phrase, right? (i.e. $vbphrase[boofo_is_god])

oh ye( i think) lol.. but why would that be any difference?.. o.0

Boofo 06-07-2006 06:27 AM

Quote:

Originally Posted by Smiry Kin's
oh ye( i think) lol.. but why would that be any difference?.. o.0

So it could be translated easily on other boards that don't use English as a default language or a board that has more than one language installed.

Snake 06-07-2006 11:08 AM

Nice little feature to have! ;) Thanks.

utw-Mephisto 06-07-2006 01:41 PM

Boofo, I am quite a n00b too .. would it be correct to insert the phrase like that :

Code:

<a href="$userinfo[homepage]" onClick="alert('$vbphrase[referrer_1] $vboptions[bbtitle]. $vbphrase[referrer_2]')" target="_blank" dir="ltr">$userinfo[homepage]</a>
where

$vbphrase[referrer_1] is : The link you are trying to access is not apart of

and

$vbphrase[referrer_2] is : It could direct you to something nasty! Click OK if you wish to trust this member and visit there website anyway.

??

Smiry Kin's 06-19-2006 02:06 PM

Quote:

Originally Posted by utw-Mephisto
Boofo, I am quite a n00b too .. would it be correct to insert the phrase like that :

Code:

<a href="$userinfo[homepage]" onClick="alert('$vbphrase[referrer_1] $vboptions[bbtitle]. $vbphrase[referrer_2]')" target="_blank" dir="ltr">$userinfo[homepage]</a>
where

$vbphrase[referrer_1] is : The link you are trying to access is not apart of

and

$vbphrase[referrer_2] is : It could direct you to something nasty! Click OK if you wish to trust this member and visit there website anyway.

??

Hmm im not sure if u can put a parse in a parse or it would be alot easier?...

dilbert 06-19-2006 05:19 PM

So there is a warning that the site might not be acceptable, and there is an OK button. Should there not also be a cancel button?

Top Nurse 06-19-2006 11:53 PM

Quote:

Originally Posted by dilbert
So there is a warning that the site might not be acceptable, and there is an OK button. Should there not also be a cancel button?

I think the little red X in the top right of the screen is the cancel button. :confused:

dilbert 06-20-2006 01:31 AM

Yeah I know that, but not eveyone would be able to figure it out.

Smiry Kin's 06-20-2006 02:45 AM

Quote:

Originally Posted by dilbert
So there is a warning that the site might not be acceptable, and there is an OK button. Should there not also be a cancel button?

Im sure most people would no.. infact im sure 99.99% of the people no... They no X is to cross off most things. heck why would they be on a forum is they didnt no how to close there web browser..?

dilbert 06-20-2006 11:31 AM

I had no intention of starting an argument.
I agree most people will know how.
I just remember when I sent a link to our intranet because no matter how many times I told this person where the site was, they could never remember. So I sent a very simple email with the link, again, it was a protected intranet, and said click this link.
A few days latter they told me they still couldn't get in, even though they "Googled" the link I sent them. That was about two years ago and I still can't figure out what they meant. I was too embarrassed for them to ask.
So... while most people viewing this forum, and many people viewing mine, are very savvy, I simply proposed adding a second button for the slightly more challenged folks.

Smiry Kin's 07-23-2006 03:47 AM

Quote:

Originally Posted by dilbert
I had no intention of starting an argument.
I agree most people will know how.
I just remember when I sent a link to our intranet because no matter how many times I told this person where the site was, they could never remember. So I sent a very simple email with the link, again, it was a protected intranet, and said click this link.
A few days latter they told me they still couldn't get in, even though they "Googled" the link I sent them. That was about two years ago and I still can't figure out what they meant. I was too embarrassed for them to ask.
So... while most people viewing this forum, and many people viewing mine, are very savvy, I simply proposed adding a second button for the slightly more challenged folks.

Simply add - please use the X in the top right, if you wish to not continue to the members site, otherwise press ok.

not that hard is it. :)

22 downloads 9 installs! o.0

Chicago_VLNU_4s 09-03-2006 08:36 AM

you should make a CANCEL button.. becuz this is kinda pointless seeing how clicking on "X" is the same as clicking on "OK". It both goes directly to the page

713JunctionP 06-23-2007 05:43 PM

Quote:

Originally Posted by Chicago_VLNU_4s (Post 1066771)
you should make a CANCEL button.. becuz this is kinda pointless seeing how clicking on "X" is the same as clicking on "OK". It both goes directly to the page

+1

how do you add a damn cancel button into it!? I'll try and figure this out myself if nobody wants to help.


All times are GMT. The time now is 08:07 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.01309 seconds
  • Memory Usage 1,771KB
  • 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
  • (8)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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