vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Little X's in sigs drive me nuts, so I got an idea... (https://vborg.vbsupport.ru/showthread.php?t=60652)

Mijae 01-24-2004 02:13 AM

Little X's in sigs drive me nuts, so I got an idea...
 
Would anyone be willing to write a hack to allow users to upload an image to my domain and link to it.

Maybe make it an option in the profile, if user XXX has more then X posts, he/she will have the option to upload his/her signature to domain.com/forum/signatures and link to it. And as an addon, maybe limit users to Xkb space, and only allow domain.com to link to images stored in /forum/signatures to avoid bandwidth stealing, or users linking to their sigs hosted on your site from other forums.

All the red X's are driving me insane :D

xxskullxx 01-24-2004 04:51 AM

i would love to have this option as well.

assassingod 01-24-2004 08:01 AM

Quote:

Originally Posted by Mijae
Would anyone be willing to write a hack to allow users to upload an image to my domain and link to it.

Maybe make it an option in the profile, if user XXX has more then X posts, he/she will have the option to upload his/her signature to domain.com/forum/signatures and link to it. And as an addon, maybe limit users to Xkb space, and only allow domain.com to link to images stored in /forum/signatures to avoid bandwidth stealing, or users linking to their sigs hosted on your site from other forums.

All the red X's are driving me insane :D

This was done for vB2 (By hellsatan, I believe). I'm not sure if he is porting it for vB3 though, you may to wait until he does.

Mijae 01-25-2004 12:46 AM

Quote:

Originally Posted by assassingod
This was done for vB2 (By hellsatan, I believe). I'm not sure if he is porting it for vB3 though, you may to wait until he does.

Oh, then I hope he does port it over :D

Zachery 01-25-2004 01:13 AM

Quote:

Originally Posted by Mijae
Oh, then I hope he does port it over :D

i hate the lil x in your sig too

Mijae 01-25-2004 01:16 AM

Quote:

Originally Posted by Faranth
i hate the lil x in your sig too

Its ironic isnt it?

NTLDR 01-25-2004 04:40 PM

Preventing the 404 can be done with a micro hack ;)

In the headinclude template add:

HTML Code:

<!-- prevent 404 images -->
<script type="text/javascript">
<!--
function ImageLoadFailed() {
        window.event.srcElement.style.display = "None";
}
// -->

</script>

In includes/functions_bbcodeparse.php find:

PHP Code:

return '<img src="' .  $link '" border="0" alt="" />'

Replace with:

PHP Code:

return '<img src="' .  $link '" border="0" alt="" onerror="ImageLoadFailed()" />'

This then hides all images that 404 anywhere in vB that use the [img] tag :) The minor downside is that it does break XHTML Validity as onerror isn't a recoginsed attribute, however it works in both Firebird and IE fine.

As to the port of the hack hopefully either myself or hellsatan will be porting it to vB3 :)

xxskullxx 01-25-2004 08:15 PM

Cool, I'll be looking forward to it. I'll try out the code you posted in the meantime. Many thanks NTLDR!

MogKnight 03-13-2004 02:33 AM

so this works for [img] but not an html image? anyway it could be done for html sigs?


All times are GMT. The time now is 10:22 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.01543 seconds
  • Memory Usage 1,730KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (4)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