Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2011, 11:07 PM
kinhell kinhell is offline
 
Join Date: Mar 2011
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vbCMS comments displaying profile picture not the avatar

Anyone know how I can change this so it displays the users avatar not their profile picture please?
Reply With Quote
  #2  
Old 04-16-2011, 02:53 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The comments show the avatar, not the profile picture. So, do you mean you want to switch it to show the profile picture instead? What version vB are you running?
Reply With Quote
  #3  
Old 04-16-2011, 12:29 PM
kinhell kinhell is offline
 
Join Date: Mar 2011
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne thanks for the reply

On our site the comments show the profile picture (tried in default style and our current style)

Id like it to show the avatar as intended

Version is 4.1.3

Not sure how this has happened?
Reply With Quote
  #4  
Old 04-16-2011, 04:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It only shows the profile picture if the user doesn't have an avatar. If the user has an avatar, then it should show the avatar.

If you want to change the code for this, edit packages/vbcms/comments.php around line 644
Reply With Quote
  #5  
Old 04-16-2011, 05:58 PM
kinhell kinhell is offline
 
Join Date: Mar 2011
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange as we all have avatars but it still shows the profile picture, Ill look at the code.

--------------- Added [DATE]1302981101[/DATE] at [TIME]1302981101[/TIME] ---------------

What would I need to change?

PHP Code:
if (!$post['hascustomavatar']) 
            { 
                if (
$post['profilepic']) 
                { 
                    
$post['hascustomavatar'] = 1
                    
$post['avatarid'] = true
                    
$post['avatarpath'] = "image.php?"  vB::$vbulletin->session->vars['sessionurl'] . "u=" $post['userid']  . "&dateline=" $post['profilepicdateline'] . "&type=profile"
                    
$post['avwidth'] = $post['ppwidth']; 
                    
$post['avheight'] = $post['ppheight']; 
                } 
                else 
                { 
                    
$post['hascustomavatar'] = 1
                    
$post['avatarid'] = true
                    
// explicity setting avatarurl to allow guests comments to show unknown avatar 
                    
$post['avatarurl'] = $post['avatarpath'] = vB_Template_Runtime::fetchStyleVar('imgdir_misc') . '/unknown.gif'
                    
$post['avwidth'] = 60
                    
$post['avheight'] = 60
                } 
            } 
Reply With Quote
  #6  
Old 04-16-2011, 06:20 PM
Shuurajou Shuurajou is offline
 
Join Date: Mar 2011
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worth noting that when you view the comments forum the posts have avatars showing, just on the CMS page it's showing the profile pics.
Reply With Quote
  #7  
Old 04-16-2011, 07:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disable all Products except the vBulletin Blog and vBulletin CMS (Admin CP -> Plugins & Products -> Manage Products -> Disable) AND uncheck all the plugins except those related to the vBulletin Blog and vBulletin CMS by (Admin CP -> Plugins & Products -> Plugin Manager). You must do BOTH of those steps in order to disable all non vBulletin Modifications. Then see if the profile image is still showing instead of the avatars (you will need to do a force refesh to check).
Reply With Quote
  #8  
Old 04-16-2011, 10:45 PM
kinhell kinhell is offline
 
Join Date: Mar 2011
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done what you said above, but it had no effect. The comments still showed the profile picture and not the avatar. If I copy the profile image URL on the comments page it links to http://www.mysite.com/image.php?u=15...7&type=profile for example.
Reply With Quote
  #9  
Old 04-16-2011, 11:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And you have the usergroups set to be allowed to upload their own custom avatars?

Have you modified that template at all?
Reply With Quote
  #10  
Old 04-16-2011, 11:53 PM
kinhell kinhell is offline
 
Join Date: Mar 2011
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Usergroups are currently set to not be able to upload custom avatars, avatars are chosen from a list of preuploaded ones

Does that make a difference?

Not modified the template.
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 02:06 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.04326 seconds
  • Memory Usage 2,254KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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_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