Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Avatars link instead of database! Details »»
Avatars link instead of database!
Version: , by Marcel tha Mast Marcel tha Mast is offline
Developer Last Online: Jan 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-22-2002 Last Update: Never Installs: 0
 
No support by the author.

add a custom profile field called avatar.
check the number, like field5 or higher

now in admin cp edit postbit template.
change "$post[avatar]" to <*img src="$post[field5]">
without the *

it allows all users custom avatars though

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-22-2002, 08:33 PM
SWFans.net's Avatar
SWFans.net SWFans.net is offline
 
Join Date: Oct 2001
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The biggest problem with doing it like that is there would be no way to restrict size in height width or filesize when doing it that way. Someone could set themselves up with an avatar that is 2000 pixels wide and 1 MB in size with no trouble at all and tear your threads to shreds. :speechless:

And people that didn't choose an avatar via your method would suffer red X syndrome in IE in their posts where the avatar is unless you set the field with a default value via a DB query.
Reply With Quote
  #3  
Old 11-22-2002, 08:38 PM
SWFans.net's Avatar
SWFans.net SWFans.net is offline
 
Join Date: Oct 2001
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW: This is not a hack since no php modification is needed.
Reply With Quote
  #4  
Old 11-22-2002, 08:45 PM
Marcel tha Mast Marcel tha Mast is offline
 
Join Date: Oct 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i know, but i never did anything like this
Reply With Quote
  #5  
Old 11-22-2002, 08:50 PM
SWFans.net's Avatar
SWFans.net SWFans.net is offline
 
Join Date: Oct 2001
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Congrats on the imaginative way to use a custom profile field that you thought up. Custom profile fields are pretty powerful.
Reply With Quote
  #6  
Old 11-23-2002, 04:27 AM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aswell the avatar won't show up in PMs, in your Profile or other places. The right way to do this would be simply to change the uploading of the image and plop the url into the sql table.

geforce created a hack aswell to fix it up a bit. It used a custom profile feild. I spent about an hour on my board fixing everything to check if the image was valid, image sizes and dimensions - make it work in PMs and announcements, in the profile etc. But I'm sure there's another good one out there somewhere.
Reply With Quote
  #7  
Old 11-23-2002, 03:28 PM
VeoMorphine VeoMorphine is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great job for a first timer but, this isnt a Hack. This is good for the starting bases of a hack though. With a bit of php and database intregration you can really make one hell of a hack.

I would make 2 extra feilds and have the user input his hight and width of the ava, then put a limit on both of thoughs fields. and then if no ava is selected have a defalt image put in.
Reply With Quote
  #8  
Old 11-24-2002, 07:39 PM
Marcel tha Mast Marcel tha Mast is offline
 
Join Date: Oct 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes id like to do that, maybe another field for borders?
Reply With Quote
  #9  
Old 11-25-2002, 01:29 PM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not a hack, but anyway, how about this for size control??

Code:
<img border="0" height="100" width="100" src="$post[field5]">
At least it solves the size issue ^ ^; Plus you can set height and width to whatever you wanted...

Anyway, what's so wrong with Custom Avatars and/or titles?? I like when people personify themselves I see a lot of forums out there that do not allow either...
Reply With Quote
  #10  
Old 11-25-2002, 08:00 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Marcel tha Mast,

Thanks for the hack. You're appearing to be unlicensed to our system.

To download hacks and receive support here you will need to go to this page and enter your email address, to show you are licensed. (you will need to use your customer number and password to access that page)

Thank you.
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 10:40 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.04633 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete