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)
-   -   Show Icon if User has a Profile Picture (https://vborg.vbsupport.ru/showthread.php?t=95916)

Andreas 09-08-2005 10:00 PM

Show Icon if User has a Profile Picture
 
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

Vizionz 09-09-2005 07:30 AM

whats the icon ? *note nevermind i see it now* and no file yet so u must be updating this the little camera thingy is the icon :)

Andreas 09-09-2005 07:52 AM

File is there now.
I noticed that there was a Problem with the Uninstall Code, so I temporarily removed it.

Vizionz 09-09-2005 08:20 AM

works perfect - note pic needs to go in misc folder :) just something simple

Andreas 09-09-2005 08:25 AM

Right. ZIP updated, thank you.

FleaBag 09-09-2005 11:50 AM

Ya know Kirby, it's like someone asked me about all the things I'd like added to my forum - and then they went and made you code them all lol.

Thanks once more! :)

Bad Bunny 09-09-2005 02:30 PM

Quote:

Originally Posted by FleaBag
Ya know Kirby, it's like someone asked me about all the things I'd like added to my forum - and then they went and made you code them all lol.

Thanks once more! :)

Yeah, Fleabag. I know what you mean. Kirby's plugins seem to be either something we want, or something I like but don't need just yet. lol

This is something great, but I want to implement it slightly differently. I am not quote sure how yet...but I will brainstorm and share any templating I do in case someone else likes it.

mikexxx 09-09-2005 03:58 PM

I have upload the files, import the XML and edit the template "postbit"

PHP Code:

<if condition="$post['hasprofilepic']"><img src="$stylevar[imgdir_misc]/photo.png" alt="<phrase 1="$post[username]">$vbphrase[x_has_profilepic]</phrase>" /></if> 

If i use this code (no 'if' command) i see the icon (but on al users):

PHP Code:

<img src="$stylevar[imgdir_misc]/photo.png" alt="<phrase 1="$post[username]">$vbphrase[x_has_profilepic]</phrase>" /> 

Wat is going wrong? wy the if commando isn't working fine?

Andreas 09-09-2005 04:06 PM

@mikexxx
Do the Users have Profile Pictures?

@Bad Bunny
In 3.0 I implemented it differently, but that required cahanging a lot of queires and invloved lot of JOINs.
The way it is implemented now does not cause any overhead (except when a User cahnges teh Pic).

mikexxx 09-09-2005 04:17 PM

Quote:

Originally Posted by KirbyDE
@mikexxx
Do the Users have Profile Pictures?

I'm not that stupid :rolleyes: :laugh:, yes the have profile pictures.


All times are GMT. The time now is 01:47 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.01223 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (2)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