vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Recent post forum block - avatar problems (https://vborg.vbsupport.ru/showthread.php?t=296518)

mathforum 03-26-2013 12:00 AM

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?

Lynne 03-26-2013 12:18 AM

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).

mathforum 03-26-2013 01:29 AM

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?

Lynne 03-26-2013 03:02 AM

The block uses avatar *thumbnails*. If you don't have the directory set to chmod 777, then you are going to get broken images.

mathforum 03-26-2013 03:38 AM

Quote:

Originally Posted by Lynne (Post 2412322)
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.

Lynne 03-26-2013 05:55 PM

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.

Luis 04-08-2013 05:21 PM

Quote:

Originally Posted by Lynne (Post 2412425)
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)


All times are GMT. The time now is 07:27 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.01031 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete