vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   No External Links In Signature - Please Read For Explanation (https://vborg.vbsupport.ru/showthread.php?t=58633)

rishel 11-16-2003 02:10 PM

No External Links In Signature - Please Read For Explanation
 
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

Quote:

Originally Posted by rishel
Bump

seems kinda complicated, why not just disallow urls in sigs all together >.>

Neo 11-19-2003 09:35 PM

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
PHP Code:

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 :)
PHP Code:

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

Quote:

Originally Posted by sabret00the
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


All times are GMT. The time now is 05:02 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.01144 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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