PDA

View Full Version : Avatars link instead of database!


Marcel tha Mast
11-22-2002, 08:29 PM
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??


<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 (http://www.vbulletin.com/members/forums.php) 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.

Dribbles
12-23-2002, 10:10 AM
sorry double post :(

Dribbles
12-23-2002, 10:12 AM
Originally posted by VeoMorphine
and then if no ava is selected have a defalt image put in.

How would one do that?

Warlord
12-27-2002, 10:07 PM
Damn good idea, I'd like to see someone make this into a bonified hack with all the bells and whistles!;)

BrAinZ
05-06-2003, 07:32 PM
12-23-02 at 01:12 PM Dribbles said this in Post #12 (https://vborg.vbsupport.ru/showthread.php?postid=334049#post334049)
How would one do that? I have done this by removing the option to add this at registration and adding a hidden input field pointing to a single blank space graphic.

Erwin
05-07-2003, 02:25 AM
This is not a hack - moving to Template Mods.