vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Avatars link instead of database! (https://vborg.vbsupport.ru/showthread.php?t=46004)

Marcel tha Mast 11-22-2002 08:29 PM

Avatars link instead of database!
 
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

SWFans.net 11-22-2002 08:33 PM

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. :)

SWFans.net 11-22-2002 08:38 PM

BTW: This is not a hack since no php modification is needed. :p

Marcel tha Mast 11-22-2002 08:45 PM

i know, but i never did anything like this

SWFans.net 11-22-2002 08:50 PM

Congrats on the imaginative way to use a custom profile field that you thought up. Custom profile fields are pretty powerful. ;)

Takara 11-23-2002 04:27 AM

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.

VeoMorphine 11-23-2002 03:28 PM

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.

Marcel tha Mast 11-24-2002 07:39 PM

yes id like to do that, maybe another field for borders?

kmfdm_kid2000 11-25-2002 01:29 PM

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...

Erwin 11-25-2002 08:00 PM

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.


All times are GMT. The time now is 08:48 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.01016 seconds
  • Memory Usage 1,729KB
  • 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_code_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
  • (10)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