vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Kill Attachments in Signatures (https://vborg.vbsupport.ru/showthread.php?t=67806)

b4ne 08-20-2004 05:28 AM

I may install this if I cannot find a hack that let's me restrict teh signatur wide and high and size ...

anyboy knows of a hack like that ?

teksigns 08-20-2004 12:43 PM

how would i change that line to show the message for any signature
with any [img] tags .....?

we do not allow images at all in signatures

Sean335 08-21-2004 09:16 PM

Quote:

Originally Posted by b4ne
I may install this if I cannot find a hack that let's me restrict teh signatur wide and high and size ...

anyboy knows of a hack like that ?

you could try something like
PHP Code:

$post['signature'] = preg_replace("/\<img src=\"(.*?)\"\>/i""<img onload=\"if(this.width > 500 || this.height > 200) {this.src='http://www.mysite.com/badimage.gif';}\" src=\"$1\">"$post['signature']); 

after line 518 of functions_showthread.php

(line 518 should be
PHP Code:

$post['signature'] = parse_bbcode($post['signature'], 'nonforum'$vboptions['allowsmilies']); 

). This will only work on javascript enabled browsers, though.

Sean335 08-21-2004 09:18 PM

Quote:

Originally Posted by teksigns
how would i change that line to show the message for any signature
with any [img] tags .....?

we do not allow images at all in signatures

that option is built into your admincp as 'Allow [IMG] Code in Signatures' under User Profile Options.


All times are GMT. The time now is 01:20 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.01046 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete