Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Default profile pic/ Show user's profile pic anywhere Details »»
Default profile pic/ Show user's profile pic anywhere
Version: 1.00, by Gio~Logist Gio~Logist is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-09-2005 Last Update: Never Installs: 5
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-10-2005, 03:38 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #3  
Old 09-10-2005, 03:41 AM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would i have to change $bbuserinfo to?
Reply With Quote
  #4  
Old 09-10-2005, 04:10 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$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.
Reply With Quote
  #5  
Old 09-10-2005, 04:11 AM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Text has been updated
Reply With Quote
  #6  
Old 09-10-2005, 04:56 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-10-2005, 05:01 AM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 09-10-2005, 01:57 PM
rjerina rjerina is offline
 
Join Date: Jan 2004
Location: Cleveland, OH
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 09-10-2005, 03:23 PM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 09-13-2005, 10:24 PM
juanchi juanchi is offline
 
Join Date: Apr 2004
Location: Panama
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04296 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete