View Full Version : No External Links In Signature - Please Read For Explanation
rishel
11-16-2003, 02:10 PM
Not sure if this has been done.
I am wanting to know if someone has made or could make a script, that disallows links to work in a signature file on a forum, if they lead anywhere else other than the site the forum is on.
For example:
If John Doe was at www.abc.com and he had a signature file in his posts that had a link to www.xyz.com the link would not work.
But if John Doe was at www.abc.com and he had a signature file in his posts that had a link to something else on www.abc.com it would work.
This is to prevent spamming of other sites in the sig file in posts, they can print it out, but not have a link.
Any feedback would be greatly appreciated.
rishel
11-17-2003, 10:58 PM
Bump
Zachery
11-18-2003, 02:37 AM
Bump
seems kinda complicated, why not just disallow urls in sigs all together >.>
its not really complicated, you just need to have a good grasp of reg expressions.
Zachery
11-19-2003, 09:37 PM
omg neos back!
sabret00the
11-19-2003, 09:52 PM
couldn't you just just hack the sig submission box with an if/else statement
i.e. with a
if (strlen $_POST['signature'] = '%abc.com%') {
echo ("$_POST['signature']") } else {
echo ("signature suspended") } //end conditional
or (this is the one i've placed my faith in :)
if ("isset($_POST['signature'] = '%abc.com%')") {
echo ("$_POST['signature']") } else {
echo ("signature suspended") }; //end conditional
not sure if either will work but i was trying to show you my idea/hunch.
Erwin
11-20-2003, 12:48 AM
I've done this with my chatbox, and also with members with less than 15 posts when they post... I will be coding this for my signature as well this weekend... not hard.
sabret00the
11-20-2003, 12:52 AM
was i that far off then erwin?
Zachery
11-20-2003, 01:35 AM
was i that far off then erwin?
lol i guess i forgot about a using an if to check for a url, but then wouldnt a few varitions that youd have to check first? then allow the sig
sabret00the
11-20-2003, 08:34 AM
dunno i think 2 if's could do it, one to check it the sig contains http:// if so then check to see if it's an on-site url, else do nothing, but guesses alround for me.
Erwin
11-28-2003, 11:41 PM
Okay, I just implemented my "no links and no email addresses in sig" rule, and automated it so that it is inbuilt in the sig editor for vB3. It's a simple hack.
If anyone wants this, just PM me when vB3 RC is released and I will post it up. :)
rishel
11-29-2003, 12:53 PM
Ah, no 2X version? Oh Ive been betrayed by Erwin, hook a brother up :)
Elvis
01-11-2004, 03:18 PM
I'd love to see this as well.... for vb2
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.