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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2013, 12:00 AM
mathforum mathforum is offline
 
Join Date: Nov 2005
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Recent post forum block - avatar problems

Hi everyone,

I've spent hours today up on this topic and trying to mess around with PHP a bit, but nothing has worked so I hope someone here can point me in the right direction. I have enabled a forum block that uses one of the default vB functions of recent threads organized by "new replies". It works great except for one remaining problem - the avatar thumbnails belong to the OP of the thread and don't change to the user who posted last, which is very confusing and already getting complaints from my users. I found a way to delete the thumbnails altogether but it looks empty like that so I hope there is a way to have the avatar thumbnails correspond to the user who wrote the last post.

Any ideas?
Reply With Quote
  #2  
Old 03-26-2013, 12:18 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to Maintenance > General Update Tools > Rebuild Custom Avatar Thumbnails . If that doesn't work, please let us know if there was any error during the rebuild and if there is anything in the error_logs (if you don't know where they are, ask your host).
Reply With Quote
Благодарность от:
mathforum
  #3  
Old 03-26-2013, 01:29 AM
mathforum mathforum is offline
 
Join Date: Nov 2005
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just did that but it didn't think it was necessary. From the beginning the avatars haven't updated so I thought it's just the way the code works but maybe not? Are the avatars supposed to change with the the users as new posts are made?
Reply With Quote
  #4  
Old 03-26-2013, 03:02 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The block uses avatar *thumbnails*. If you don't have the directory set to chmod 777, then you are going to get broken images.
Reply With Quote
  #5  
Old 03-26-2013, 03:38 AM
mathforum mathforum is offline
 
Join Date: Nov 2005
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
The block uses avatar *thumbnails*. If you don't have the directory set to chmod 777, then you are going to get broken images.
Hmm, I'm not conveying myself well. I have no problem with broken images right now. I can remove the code cleanly but without any thumbnail images the block looks a bit empty so I want to fix the real problem.

Let me try once more and I apologize for not making this clear from the start:

1) User X makes a new thread. It shows up in the forum block as a new thread and since it's an update it goes to the top of the queue. It also shows a thumbnail of user X's avatar.

2) User Y responds to that same thread. The forum block shows that the thread has been updated and has 1 reply from user Y but the avatar next to this information is still user X's. In fact it will never change.

On my site we know each other's avatars fairly well so this is becoming a bit frustrating because we can't trust the avatar image next to an update as coming from that user. This should be easy enough to change but I am not capable of doing it from my failed attempts today. I tried editing the template Block_threads as well as the actual .php file in the block folder but there are too many variables for me to make sense of and it's not clear which one I should replace.
Reply With Quote
  #6  
Old 03-26-2013, 05:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, I see. You would actually need to modify the code. I think this has been posted about before and it was determined you couldn't modify the actual query and that you would actually have to add one query per thread/reply to the page in order to get the avatar.
Reply With Quote
  #7  
Old 04-08-2013, 05:21 PM
Luis's Avatar
Luis Luis is offline
 
Join Date: May 2011
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Ah, I see. You would actually need to modify the code. I think this has been posted about before and it was determined you couldn't modify the actual query and that you would actually have to add one query per thread/reply to the page in order to get the avatar.
Hello Lynne, excuse me if talk u here but i cant pm u; i ask a favor; if is possible to change my username to Luis ( i have check the memberlist and the username is available)
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:36 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.04356 seconds
  • Memory Usage 2,227KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete