vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Default profile pic/ Show user's profile pic anywhere (https://vborg.vbsupport.ru/showthread.php?t=95956)

Gio~Logist 09-09-2005 10:00 PM

Default profile pic/ Show user's profile pic anywhere
 
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

Quote:

Originally Posted by rjerina
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
Code:

$vbulletin->userinfo
With:
Code:

$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

Quote:

Originally Posted by Mathiau
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!!!


All times are GMT. The time now is 04:46 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.02161 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete