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
Show Icon if User has a Profile Picture Details »»
Show Icon if User has a Profile Picture
Version: 1.0.1, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 09-08-2005 Last Update: 10-13-2005 Installs: 70
DB Changes Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

Show Icon is User has a Profile Picture

Description
This Hack shows an Icon if the User has a Profile Picture.

Currently supported Templates:
  • postbit/postbit_legacy
  • memberlist_resultsbit

Details
1 Product XML (4 Plugins, 1 Phrase)
1 Bitfield XML
1 Icon Image

History
1.0.0
Initial Version

1.0.1
(Hopefully) fixed Problem with Icon also showing up when user uploaded an avatar

Show Your Support

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

Comments
  #32  
Old 10-15-2005, 03:44 PM
folkish folkish is offline
 
Join Date: Nov 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm still trying to get a feel for the new plug in system, and my general knowledge of code is miniscule at best, so I was wondering....

I've tried to install this hack, but I am having a problem.

I've already imported the product (product-profpic.xml) and uploaded the image to the images/misc folder, via FTP, but I'm not sure what to do with this bitfield .xml file. Is that a plug in? I tried uploading it as one and it tells me "invalid file specified." Is this supposed to be uploaded via FTP, and if so, where?

Thanks for your patience.
Reply With Quote
  #33  
Old 10-15-2005, 04:19 PM
Rabbitoh Warren's Avatar
Rabbitoh Warren Rabbitoh Warren is offline
 
Join Date: Sep 2003
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by folkish
but I'm not sure what to do with this bitfield .xml file.
Upload it to your root -> includes -> xml directory.
Reply With Quote
  #34  
Old 10-15-2005, 04:39 PM
folkish folkish is offline
 
Join Date: Nov 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Common sense finally prevailed. I thank you!

Edit: Almost forgot... /me clicks install!
Reply With Quote
  #35  
Old 10-20-2005, 08:03 PM
Pitman's Avatar
Pitman Pitman is offline
 
Join Date: Dec 2001
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How much would it take to display the icon to only members who actually have permission to see profile pictures?
Reply With Quote
  #36  
Old 10-20-2005, 09:29 PM
Razasharp's Avatar
Razasharp Razasharp is offline
 
Join Date: Feb 2005
Location: UK
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

easy, just enclose the bit that displays the graphic inside another IF command that is for the specified usergroup only
Reply With Quote
  #37  
Old 11-18-2005, 02:13 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This Hack requires mySQL > 4.0.4.
Which mySQL Version do you have?
Reply With Quote
  #38  
Old 11-19-2005, 08:21 AM
DrHUS DrHUS is offline
 
Join Date: Feb 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mikexxx
Im running the forum on a Cobalt Raq550 there is MySql version 3.23.56 on it.
is it run query or slow down the forums?
Reply With Quote
  #39  
Old 11-19-2005, 09:52 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works just fine, except that it won't show Icons for pictures that are already present - only for new ones.
Honestly, mySQL 3 is damn old and you really should upgrade (Query Cache, Fulltext Search, etc.)
Reply With Quote
  #40  
Old 11-19-2005, 09:55 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DrHUS
is it run query or slow down the forums?
I don't really understand that question.
But if you mean if it does add overhead: No.
It only executes 1 query when a User updates his profile picture.
Reply With Quote
  #41  
Old 11-20-2005, 01:28 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works just fine with mySQL 3- except for the install code.
And mySQL 4.0 is stable ... the current stable release is 5.0!
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 10:54 AM.


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.06276 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
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
  • (3)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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