![]() |
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 |
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. :) |
BTW: This is not a hack since no php modification is needed. :p
|
i know, but i never did anything like this
|
Congrats on the imaginative way to use a custom profile field that you thought up. Custom profile fields are pretty powerful. ;)
|
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. |
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. |
yes id like to do that, maybe another field for borders?
|
Not a hack, but anyway, how about this for size control??
Code:
<img border="0" height="100" width="100" src="$post[field5]"> 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... |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|