vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How to stop cross linking of attachments within forum? (https://vborg.vbsupport.ru/showthread.php?t=47836)

Sweet Cheeks 01-18-2003 04:36 PM

How to stop cross linking of attachments within forum?
 
I searched around the hacks dbase and could only find hacks that prevented hotlinking from outside the site. Perhaps I missed one, but what I am looking for is a hack to prevent cross linking from within the forums?

My problem is users are posting a "test" thread in our tech forum, then linking to that attachment and using it in their sigs :paranoid: Any ideas on how to take care of this?

Thanks for your help :D

Neo 01-18-2003 05:30 PM

I will look into it, I am sure it is a very small hack. I have seen it done on a few other sites.

Sweet Cheeks 01-18-2003 07:37 PM

Cool Neo, thank you :D

sabret00the 01-20-2003 11:36 PM

any update on this?

WetWired 01-21-2003 11:57 AM

There is an option in the vB options to prevent the img tag being used with ? , when set to prevent this, these sigs will no longer work, and most likely they will stop trying.

Sweet Cheeks 01-21-2003 04:23 PM

Quote:

Originally posted by WetWired
There is an option in the vB options to prevent the img tag being used with ? , when set to prevent this, these sigs will no longer work, and most likely they will stop trying.
Hmmm I will see if I can find this, thanks :cool:

sabret00the 03-08-2003 07:31 PM

but say if you wanna be ale to use images with dynamic urls but don't want ppl using attachments as sigs

Erwin 03-09-2003 01:09 AM

In members.php

Find:

PHP Code:

  $signature=htmlspecialchars($bbuserinfo[signature]); 

Above it, add:

PHP Code:

    if (strstr($signature,'attachment.php')) {
      eval(
"standarderror(\"".gettemplate("error_noattachmentallowed")."\");");
      exit;
    } 

Then ADD a NEW template called "error_noattachmentallowed" with the contents:

Code:

No attachments allowed in signature.
Not tested, but should work...

sabret00the 03-10-2003 09:59 AM

thanks irwin, i'll try it out (Y)


All times are GMT. The time now is 08:57 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.01119 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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