Jon W
Well-known member
You've got Chris Deeming's add-on manager for that.Very cool stuff. Hopefully eventually you can upgrade via URL kind of like Drupal modules or automatically like Wordpress.
You've got Chris Deeming's add-on manager for that.Very cool stuff. Hopefully eventually you can upgrade via URL kind of like Drupal modules or automatically like Wordpress.
In the file library/Waindigo/LastPostAvatar/Listener/TemplatePostRender.php, you need to change the number on lines 37, 44 and 51:Hi,
After upgrading to the new version my character limit changed back to the default length setting and I'm not sure how to change the character limit for the latest title now.
In this post below you can see I changed the default character limit in this template: waindigo_node_category_avatar_last_post_avatar
How to increase character limit for latest thread in forum
http://xenforo.com/community/thread...cter-limit-for-latest-thread-in-forums.42345/
Any ideas are welcome, Thank You.
$title = XenForo_Helper_String::wholeWordTrim($node['lastPost']['title'], 25);
$title = XenForo_Helper_String::wholeWordTrim($node['lastArticlePage']['title'], 25);
In the file library/Waindigo/LastPostAvatar/Listener/TemplatePostRender.php, you need to change the number on lines 37, 44 and 51:
Rich (BB code):$title = XenForo_Helper_String::wholeWordTrim($node['lastPost']['title'], 25);
Rich (BB code):$title = XenForo_Helper_String::wholeWordTrim($node['lastArticlePage']['title'], 25);
I will make this an option in the next update.
How would you rather it be displayed? Losing part of the username (this is how XenForo currently deals with it if the add-on is disabled and username is too long)? Or username obscured by the image?
The maximum characters allowed for a username is 50 by default. That's quite a lot larger than it is currently set to.Could you not set the width for the username container to correspond with the maximum characters allowed for the username?
Looks like I've forgotten to check for redirected threads.Why is this happening on the default style?
We have the most update version of this addon but we get those multiple avatars.
if ($viewParams['thread']['discussion_state'] != 'deleted') {
if ($viewParams['thread']['discussion_state'] != 'deleted' && $viewParams['thread']['discussion_type'] != 'redirect') {
The maximum characters allowed for a username is 50 by default. That's quite a lot larger than it is currently set to.
Add the following to your EXTRA.css template:
.lastPostInfo a.avatar img {
margin-left: -30px;
}
.discussionListItem .lastPostInfo {
margin-left: 30px;
}
Looks like I've forgotten to check for redirected threads.
In library/Waindigo/LastPostAvatar/Listener/TemplateHook.php replace line 42:
with:PHP:if ($viewParams['thread']['discussion_state'] != 'deleted') {
PHP:if ($viewParams['thread']['discussion_state'] != 'deleted' && $viewParams['thread']['discussion_type'] != 'redirect') {
Lol. Do you have another add-on installed that messes with avatars?
I think itsLol. Do you have another add-on installed that messes with avatars?
How would you rather it be displayed? Losing part of the username (this is how XenForo currently deals with it if the add-on is disabled and username is too long)? Or username obscured by the image?
Personally, although it's not particularly pretty, I think the current "pushed down" option is the most elegant.
Did you try the above CSS?Personally I'd like to truncate the username
Bug fixes:
- Fixes issue with Thread Thumbnails by Waindigo add-on showing full sized thumbnails in thread list.
- Fixes issue that username drops to next line in thread list if it is longer than the available column width.
- Added an option to change the maximum characters for a title to fix incompatibility with some styles.
- Fixes issue that multiple avatars appear if any thread...
We use essential cookies to make this site work, and optional cookies to enhance your experience.