View Full Version : Little X's in sigs drive me nuts, so I got an idea...
Mijae
01-24-2004, 02:13 AM
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
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
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
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
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:
<!-- prevent 404 images -->
<script type="text/javascript">
<!--
function ImageLoadFailed() {
window.event.srcElement.style.display = "None";
}
// -->
</script>
In includes/functions_bbcodeparse.php find:
return '<img src="' . $link . '" border="0" alt="" />';
Replace with:
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?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.