Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2004, 02:13 AM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 01-24-2004, 04:51 AM
xxskullxx xxskullxx is offline
 
Join Date: Jun 2002
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i would love to have this option as well.
Reply With Quote
  #3  
Old 01-24-2004, 08:01 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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.
Reply With Quote
  #4  
Old 01-25-2004, 12:46 AM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 01-25-2004, 01:13 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mijae
Oh, then I hope he does port it over
i hate the lil x in your sig too
Reply With Quote
  #6  
Old 01-25-2004, 01:16 AM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Faranth
i hate the lil x in your sig too
Its ironic isnt it?
Reply With Quote
  #7  
Old 01-25-2004, 04:40 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 01-25-2004, 08:15 PM
xxskullxx xxskullxx is offline
 
Join Date: Jun 2002
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, I'll be looking forward to it. I'll try out the code you posted in the meantime. Many thanks NTLDR!
Reply With Quote
  #9  
Old 03-13-2004, 02:33 AM
MogKnight MogKnight is offline
 
Join Date: Aug 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:55 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.09572 seconds
  • Memory Usage 2,247KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete