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

Reply
 
Thread Tools
Profile Picture in Postbit Details »»
Profile Picture in Postbit
Version: 1.1.0, by ndahiya ndahiya is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.x Rating:
Released: 12-31-2009 Last Update: 01-12-2010 Installs: 16
Uses Plugins
Re-useable Code Translations  
No support by the author.

This mod shows the user profile picture in the postbit template for all posters.

Ver 1.1 : Fix for profile pics stored in database. Just reimport the product.
Ver 1.0 : Original Release.

--
Installation: Just add the attached product xml file.
Uninstallation: Just remove the product.

Please Note:
If the pictures are stored in the filesystem, this mod checks that an profile picture exists by checking the user table's profilepicrevision field (>0 implies a pic exists (or at least existed)). Sometimes it will result in file not found error (no problem on the rendered page, but still an invalid image pull) if the user deletes their pic, but that can be updated by running this sql query periodically.
Code:
update user set profilepicrevision = 0 where user.userid not in (select userid from customprofilepic);


..
ndahiya

Download Now

File Type: xml product-profile_pic_in_postbit.xml (1.5 KB, 122 views)

Show Your Support

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

Comments
  #2  
Old 01-01-2010, 06:47 PM
elwachiman's Avatar
elwachiman elwachiman is offline
 
Join Date: Nov 2009
Location: Venezuela
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Demo Please...tnks
Reply With Quote
  #3  
Old 01-01-2010, 06:54 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On my site, only logged in members can view the picture/details, so can't really demo it from that. You can install it and see. It does not change anything in your system, so can uninstall it just as easily.
Reply With Quote
  #4  
Old 01-05-2010, 02:34 PM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't get it?? I've installed it but nothing has changed.. Where is this meant to show up?
Reply With Quote
  #5  
Old 01-05-2010, 05:06 PM
Snug Snug is offline
 
Join Date: Aug 2009
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot?
Reply With Quote
  #6  
Old 01-05-2010, 11:35 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by garretbyrne View Post
I don't get it?? I've installed it but nothing has changed.. Where is this meant to show up?
hmm, can you try and change avatar storage type to filesystem and them check (you can revert back thereafter, it will work for sure)? i think i know where the problem might be, but just want to be sure before updating the code.
Reply With Quote
  #7  
Old 01-06-2010, 05:37 AM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ndahiya View Post
hmm, can you try and change avatar storage type to filesystem and them check (you can revert back thereafter, it will work for sure)? i think i know where the problem might be, but just want to be sure before updating the code.
Sorry man but how do i do that...? lol
Reply With Quote
  #8  
Old 01-06-2010, 09:16 AM
kersti kersti is offline
 
Join Date: Dec 2005
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why would I bother when there is custom avatars?
Reply With Quote
  #9  
Old 01-06-2010, 10:49 AM
garretbyrne garretbyrne is offline
 
Join Date: Nov 2009
Location: Ireland
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I'll leave this... Thanks anyway but I don't see a need at the moment for my site..

Thanks
Reply With Quote
  #10  
Old 01-06-2010, 09:45 PM
ndahiya ndahiya is offline
 
Join Date: Aug 2004
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by garretbyrne View Post
Quote:
hmm, can you try and change avatar storage type to filesystem and them check (you can revert back thereafter, it will work for sure)? i think i know where the problem might be, but just want to be sure before updating the code.
Sorry man but how do i do that...? lol
AdminCP --> Avatars --> User Picture Storage Type to toggle the storage from db to filesystem


Quote:
Why would I bother when there is custom avatars?
Because some people (like my site) do not use avatars but actual member pictures.
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 03:46 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.04390 seconds
  • Memory Usage 2,321KB
  • Queries Executed 24 (?)
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_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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
  • (1)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete