PDA

View Full Version : Default profile pic/ Show user's profile pic anywhere


Gio~Logist
09-09-2005, 10:00 PM
Default Profile Picture/Show Profile Picture Anywhere
by gio~logist


PHP Edits: 1
Template Edits: *Depends on where you want this to show*
Files Added: 0
Templates Added: 0
Queries: 0

This is a fairly simple hack that allows you to show a user's profile picture anywhere (i used it to welcome the user to the UserCP). If user does not have a profile picture, it shows any picture that you upload into the Misc. folder named "profiledef.gif".

Note: I am customizing my vb fully to function with a system similar to myspace, therefore, my usercp is different. However, i'm sure you get the idea.

Also, i have not tested this on vb3.5 but i'm 99% sure this works because it does not effect any major codes.

Andreas
09-10-2005, 03:38 AM
Erm ... that won't work at all in vBulletin 3.5 as $bbuserinfo doesn't exist; also you are not taking care of the storage method so it will just display a broken Image if Profile Pictures are stored in the Filesystem.

Furthermore, it can be done without Code Edits (Hook global_start), it could even be done without an additional Query at all (Hook fetch_userinfo_query).

Gio~Logist
09-10-2005, 03:41 AM
What would i have to change $bbuserinfo to?

Andreas
09-10-2005, 04:10 AM
$vbulletin->userinfo

Furthermore, image.php? only works when Profile Pictures are stored in the Database.
Take a look at how member.php does it to get the idea.

Gio~Logist
09-10-2005, 04:11 AM
Text has been updated

Andreas
09-10-2005, 04:56 AM
That won't work, as you can't use $this->whatever within an evaluated String.
You must break out of it or use {}.

And it still doesn't work if Profile Pictures are stored as Files.
If you want, I can post corrected Code.

Gio~Logist
09-10-2005, 05:01 AM
Feel free to do so...

I need to stop trying to do vb3.5 hacks without even having one lmao

WE NEED A BETA FORUM!

rjerina
09-10-2005, 01:57 PM
you can run your own beta forum if it is not available to the public...

releasing 3.5 hacks without even trying them on 3.5 first is kind of no offense, stupid.

Gio~Logist
09-10-2005, 03:23 PM
you can run your own beta forum if it is not available to the public...

releasing 3.5 hacks without even trying them on 3.5 first is kind of no offense, stupid.


I agree lol.... however, i do not have a test board to try it out on.

Kirby has been helping me, and i think i've been doing ok considering the circumstances. Once i get my hand on a 3.5 board, i will be able to do alot more.

juanchi
09-13-2005, 10:24 PM
Your mod will work with vbulletin 3.0.X, right? I need to put that picture on another page, when I first find myself with the need to do something like this my first thought was that this have to be something someone already done.

Gio~Logist
09-14-2005, 06:53 PM
Yes, this will work with 3.0.x

Just replace all signs of

$vbulletin->userinfo


With:

$bbuserinfo

Mathiau
09-14-2005, 09:39 PM
Can you not setup a web serv locally on your PC to test, or you just dont have a VB license?
i would love to do this, once properly tested on a 3.5*

Gio~Logist
09-15-2005, 06:25 PM
Can you not setup a web serv locally on your PC to test, or you just dont have a VB license?
i would love to do this, once properly tested on a 3.5*

I wouldn't be able to post hacks if i didn't have a license...

I will test it ASAP, however, maybe if you install it and tell me how it goes, that would help :-D

MissKalunji
02-22-2006, 05:18 AM
does this work?

just77me
07-19-2008, 10:27 AM
how does this work with vbulletin 3.7? any idea to get the image code thank you!

Spank
07-27-2008, 01:47 PM
I need this to work with 3.7 too. Anyone any ideas?

just77me
08-03-2008, 11:35 AM
it must me possible in 3.7 so please anyone there to help us out? thank you!!!