Log in

View Full Version : Give Warning Before Visiting Members Home Page


Smiry Kin's
06-06-2006, 10:00 PM
Simple Really.. just a simple memberinfo edit.

POSTBIT:
FIND:
<a href="$post[homepage]">
REPLACE
<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:
<a href="$post[homepage]">
REPLACE
<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:
<a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
REPLACE:
<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
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
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
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
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
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
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
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
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 :

<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
Boofo, I am quite a n00b too .. would it be correct to insert the phrase like that :

<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
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
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
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
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.