vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Show icon if user has Profile Picture (https://vborg.vbsupport.ru/showthread.php?t=63613)

TechGuy 04-07-2004 10:00 PM

Show icon if user has Profile Picture
 
What does this do?
Basically, when viewing a thread, if a user has a Profile Picture, it will show a camera icon (or whatever picture you choose) next to his/her online status icon. For example:
https://vborg.vbsupport.ru/attachmen...chmentid=17973

How to do this hack:
Download the instructions!

Updates!
July 1, 2004: I finally got around to re-writting this a bit so that you don't have a query for every post in every thread. However, after you install this, you'll notice that the first time you view a thread there will be a ton of queries. That will happen until we've essentially cached each user's "haspic" status in the user table... meaning that, in the end, this should be a lot nicer than the last version. :)

Boofo 04-08-2004 09:10 AM

Nice idea but this adds a query for every post on the page. If you have 15 posts, the page will show 15 extra queries whether the user has a profile pic or not. You might want to rework the code a bit to have it only add 1 query per page. ;)

TechGuy 04-08-2004 11:57 AM

Yeah, I know -- maybe someone around here will be smart enough to do that. ;)

Boofo 04-08-2004 11:59 AM

Put it above the loop for the postbit and declare the globals in the loop. ;)

pixelpunk 05-11-2004 07:07 PM

Quote:

Originally Posted by Boofo
Put it above the loop for the postbit and declare the globals in the loop. ;)


Will this decrease the queries? If so please show us where, I'd love to use this hack!

Alien 06-05-2004 11:39 PM

Anyone get this to work right, with just 1 query per page? I'd appreciate the instructions too...

FutureDEV 06-08-2004 01:47 PM

Anyone? Pretty please?? ;)

Alien 06-12-2004 10:52 PM

I hope someone updates this, as it's an excellent little add-on...

Polo 06-17-2004 09:19 PM

I agree.

if 1 query per page = I install

lol

Dean C 06-17-2004 10:35 PM

It'd probably be easier to add a field to the user table for this :) That way no extra queries other than when updating the profile picture :)


All times are GMT. The time now is 10:59 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.01074 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete