PDA

View Full Version : Custom User Icon


Heijin
07-07-2002, 10:00 PM
Basically what this hack does is it lets your users enter a URL to an icon or sprite of some sort in their profile. And depending if they want one or not. Display it in the postbit wherever you desire.

Installation Time: 5 minutes or less
Very Easy to install.

Template Edits: 1
File Edits: 1
Other things: 1 profile field to be made.

Screenshot: https://vborg.vbsupport.ru/attachment.php?s=&postid=399832
In Action: http://www.fated-circle.com/vbulletin

zajako
07-08-2002, 07:21 AM
good job :P

g-force2k2
07-08-2002, 08:16 AM
heh... well its something...

couple of things... first off i'd suggest you put some kind of limitations on to what they can place in that field... im sure that you don't want a member putting an icon thats a wallpaper :p just my thoughts...

Also the requirements are kinda shady... maybe an input type would be better? a yes/no code or at least a drop down :p but like i said just my opinions... on how i would approach the situation...

g-force2k2

Xenon
07-08-2002, 12:53 PM
where is the difference to a normal avatar?
ok, no s.o can choose two avatars...

Heijin
07-08-2002, 12:58 PM
I'm pretty new at this so I don't really know quite how to approach those things. I'd be delighted if you'd help me.

FleaBag
07-08-2002, 02:02 PM
It's good work yes, but like Xenon said, is there a difference to the regular avatar?

Heijin
07-08-2002, 02:17 PM
There's not really a difference. But I feel that sometimes, the avatar isn't enough. It's maybe another way to express yourselves. plus avatars are usually faces. When this is like a character. something like this for example: http://www.therpgia.com/sprites/Bl/Heroes/toulouse.gif to be displayed there.

FleaBag
07-08-2002, 02:39 PM
It's a good idea and the more I think about it the cooler ideas I have. I'm thinking about making a part of the postbit template, perhaps the background or a part of the table the actual custom user icon.

Heijin
07-08-2002, 02:42 PM
hey, that's a sweet idea. having the left postbit (where the user info is) have a background of their choice. mind if I make it?

Heijin
07-08-2002, 02:58 PM
Well i've completed it. Quite simple..

FleaBag
07-08-2002, 04:44 PM
LOL I just saw you made it in another thread, I was just about to do it myself. ;) How about a little mention for the inspiration eh? :D

Heijin
07-08-2002, 05:04 PM
Sounds like a plan. You could probably do better though.

Velocd
07-08-2002, 08:17 PM
Looks good, I had thought about doing this awhile back but let the user upload the icon instead. Some limitations on the size would defiantly be nice. (ie. choosing a max size to be 15x15 px)

FleaBag
07-08-2002, 10:40 PM
I might have a fiddle with some things today as I'm only at work for 4 hours. ;)

thedude2000
12-03-2002, 02:09 AM
*sighs* i'm only doing this for the better of man kind...


If (isset($post[field#]) && $post[field#] != "")
{
$post[customicon] = '<img src="'.$post[field#].'">';
}
else
{
$post[customicon] = '';
}


There, that will make it so that they don't have to type anything like "yes". it will automatically look for if something is entered in. also, all the "#"s should be replaced with the number of the profile where the link is. Just trying to make the world a better place... *blinks out*

Erwin
12-03-2002, 02:19 AM
I'm using something like this on my site... :) Uses minimal queries, and allow users to upload an icon... there's a similar hack in the Beta Forum, which I modified extensively.

Heijin
05-25-2003, 01:08 PM
New updated screenshot. I put my icon in the main posts so it appears before all the posts.