Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add default avatar picture on ministats block Details »»
Add default avatar picture on ministats block
Version: 1.00, by macc macc is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.1 Rating:
Released: 03-05-2009 Last Update: Never Installs: 10
Template Edits
Re-useable Code Code Changes  
No support by the author.

Hello! With this modification you can add default avatar picture to users mini statistics block for those who did not select avatars!

Open memberinfo template - found memberinfo_block_ministats templete and find this code
PHP Code:
<if condition="$prepared['avatarurl']">
  <
td><img src="$prepared[avatarurl]alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /> 
and after this add this code below

PHP Code:
<else />
<if 
condition="$bbuserinfo[showavatars]">
 <
td class="alt2"><a href="profile.php?$session[sessionurl]do=editavatar"><img src="$stylevar[imgdir_misc]/noavatar.gif" $post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a><br /><a href="profile.php?$session[sessionurl]do=editavatar"><b>Set Avatar</b></a></td>
</if> 
Done!

Upload novatar.gif in "your template"/images/misc folder.

Want to see this in action? Welcome - http://libar-libar.com

Regards,

macc

Show Your Support

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

Comments
  #2  
Old 03-06-2009, 03:55 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, well done Macc
Reply With Quote
  #3  
Old 03-06-2009, 06:18 PM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UKBusinessLive View Post
Excellent, well done Macc
Thanks UK!

regards

macc
Reply With Quote
  #4  
Old 03-06-2009, 11:08 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Site timed out loading
________
Creampie bbw
Reply With Quote
  #5  
Old 03-06-2009, 11:45 PM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sweeks View Post
Site timed out loading
yes - that was problem with hostage - (server upgrade) - but now works fine!


regards

macc
Reply With Quote
  #6  
Old 03-07-2009, 10:33 AM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sweeks View Post
Site timed out loading
Internet Explorer cannot display the webpage
Reply With Quote
  #7  
Old 03-07-2009, 11:36 AM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jasem View Post
Internet Explorer cannot display the webpage
site works fine now and i myself use IE and no problems ...


reg

macc
Reply With Quote
  #8  
Old 03-08-2009, 01:05 PM
Dr. Bantham's Avatar
Dr. Bantham Dr. Bantham is offline
 
Join Date: Feb 2007
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this concept, but I am experiencing the following issues:
  • The rollover text does not display the username ('s avatar).
  • Cilicking on the avatar creates the following link and corresponding error message:
    http://www.xxxxxxx.xxx/member.php?u=
    This user has not registered and therefore does not have a profile to view.
  • The "Set Avatar" link appears to everyone, which implies that you can select an avatar for the user, but instead takes you to perform your own avatar selection.

I believe it would be ideal if the "Set Avatar" link were removed and the avatar link was only active if the user is viewing their own profile, whereby the link would take them to:
http://www.xxxxxxx.xxx/profile.php?do=editavatar
Reply With Quote
  #9  
Old 03-08-2009, 01:52 PM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr. Bantham View Post
I like this concept, but I am experiencing the following issues:
  • The rollover text does not display the username ('s avatar).
  • Cilicking on the avatar creates the following link and corresponding error message:
    http://www.xxxxxxx.xxx/member.php?u=
    This user has not registered and therefore does not have a profile to view.
  • The "Set Avatar" link appears to everyone, which implies that you can select an avatar for the user, but instead takes you to perform your own avatar selection.
I believe it would be ideal if the "Set Avatar" link were removed and the avatar link was only active if the user is viewing their own profile, whereby the link would take them to:
http://www.xxxxxxx.xxx/profile.php?do=editavatar
YES - you can make like this and that is point that one user can not change avatar for another user!

PHP Code:
<td class="alt2"><a href="profile.php?$session[sessionurl]do=editavatar"><img src="$stylevar[imgdir_misc]/noavatar.gif" $post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a><br /><a href="profile.php?$session[sessionurl]do=editavatar"><b>Set Avatar</b></a></td
regards

macc

updated first post!
Reply With Quote
  #10  
Old 08-03-2009, 03:33 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed...

Thank you...working fine on vB 3.8.3.
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:57 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.04892 seconds
  • Memory Usage 2,329KB
  • Queries Executed 26 (?)
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_php
  • (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
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete