![]() |
I'm no big expert on this, but what I find by searching in templates is that conversation_userinfo hasn't been changed in any of the styles. So it's default, which is like this:
{vb:set schemaAuthor.itemprop, author} {vb:set schemaAuthor.itemscope, 1} {vb:set schemaAuthor.itemtype, http://schema.org/Person} <div class="userinfo b-userinfo b-post__hide-when-deleted" {vb:schema {vb:raw schemaAuthor}}> <vb:if condition="$user['showavatars']"> {vb:set avatarbase, ''} <vb:if condition="empty($conversation['avatar']['isfullurl'])"> {vb:set avatarbase, {vb:raw baseurl_corecdn}} {vb:strcat {vb:raw avatarbase}, "/"} </vb:if> <vb:if condition="!$conversation['userid'] AND $conversation['avatar']['avatarpath'] AND $conversation['avatar']['hascustom']"> <span class="b-avatar b-avatar--m b-avatar--thread h-margin-bottom-l"><img src="{vb:raw avatarbase}{vb:raw conversation.avatar.avatarpath}" alt="{vb:raw conversation.authorname}" title="{vb:raw conversation.authorname}" /></span> <vb:elseif condition="!$conversation['userid']" /> <span class="b-avatar b-avatar--m b-avatar--thread h-margin-bottom-l"><img src="{vb:raw avatarbase}images/default/default_avatar_medium.png" width="64" height="64" alt="{vb:phrase guest_avatar}" title="{vb:phrase guest_avatar}" /></span> <vb:elseif condition="!empty($conversation['senderAvatar']) AND !empty($conversation['senderAvatar']['avatarpath']) AND !empty($conversation['senderAvatar']['hascustom'])" /> <a href="{vb:url 'profile', {vb:raw conversation}}" class="b-avatar b-avatar--m b-avatar--thread h-margin-bottom-l"><img src="{vb:raw avatarbase}{vb:raw conversation.senderAvatar.avatarpath}" alt="{vb:raw conversation.authorname}" title="{vb:raw conversation.authorname}" /></a> <vb:elseif condition="$conversation['avatar'] AND $conversation['avatar']['avatarpath'] AND $conversation['avatar']['hascustom']" /> <a href="{vb:url 'profile', {vb:raw conversation}}" class="b-avatar b-avatar--m b-avatar--thread h-margin-bottom-l"><img src="{vb:raw avatarbase}{vb:raw conversation.avatar.avatarpath}" alt="{vb:raw conversation.authorname}" title="{vb:raw conversation.authorname}" /></a> <vb:else /> <a href="{vb:url 'profile', {vb:raw conversation}}" class="b-avatar b-avatar--m b-avatar--thread h-margin-bottom-l"><img src="{vb:raw avatarbase}images/default/default_avatar_medium.png" width="64" height="64" alt="{vb:raw conversation.authorname}" title="{vb:raw conversation.authorname}" /></a> </vb:if> </vb:if> <!-- responsive alteration: Added userinfo-details wrapper in order to support left floated avatar with all other information on the right. --> {vb:set userInfo, {vb:raw conversation.userinfo}} <div class="b-userinfo__details"> {vb:set schemaAuthor.itemprop, name} <div class="author h-text-size--14"> <strong><vb:if condition="$conversation['userid'] > 0"><a href="{vb:url 'profile', {vb:raw conversation}}" {vb:schema schemaAuthor}></vb:if><vb:if condition="isset($conversation['musername'])">{vb:raw conversation.musername}<vb:elseif condition="isset($conversation['authorname'])" />{vb:raw conversation.authorname}<vb:else />{vb:phrase guest}</vb:if><vb:if condition="$conversation['userid'] > 0"></a></vb:if></strong> {vb:template pmchat_userinfo_link, conversation={vb:raw conversation}} </div> {vb:hook 'conversation_above_usertitle'} <vb:if condition="!empty($userInfo['usertitle'])"> <vb:comment>usertitle is already html escaped in the userInfo array, if it's required</vb:comment> <div class="usertitle">{vb:raw userInfo.usertitle}</div> </vb:if> {vb:set reputationimglevel {vb:raw conversation.reputationimg.level}} <div class="b-meter h-margin-top-m {vb:raw conversation.reputationimg.type}" title="{vb:rawphrase {vb:raw reputationimglevel}}"> {vb:set counter, {vb:php range, 1,5}} <vb:each from="counter" value="nr"> <div class="b-meter__bar<vb:if condition="$conversation['reputationimg']['bars'] >= $nr"> b-meter__bar--selected</vb:if>"></div> <div class="b-meter__bar<vb:if condition="$conversation['reputationimg']['bars'] >= $nr"> b-meter__bar--selected</vb:if>"></div> </vb:each> </div> <div class="b-userinfo__rank h-margin-top-s{vb:if "empty($userInfo['rank'])", ' h-hide'}">{vb:raw userInfo.rank}</div> <ul class="b-userinfo__additional-info-block h-margin-top-xl"> <vb:if condition="$conversation['userid'] > 0"> <li class="b-userinfo__additional-info"><label>{vb:phrase join_date}:</label> <span>{vb:date {vb:raw userInfo.joindate}, 'registered'}</span></li> <li class="b-userinfo__additional-info"><label>{vb:phrase posts}:</label> <span>{vb:raw userInfo.posts}</span></li> <vb:if condition="isset($conversation['postelements']) AND $conversation['postelements'] == 4"> <li class="b-userinfo__additional-info"><label>{vb:phrase infractions}:</phrase><span>{vb:raw conversation.warnings}/{vb:raw conversation.infractions} ({vb:raw conversation.ipoints})</span></li> </vb:if> </vb:if> <vb:each from="userInfo.userfield" key="categoryname" value="category"> <vb:each from="category" key="fieldname" value="field"> <vb:if condition="$field['showonpost']"> <li class="b-userinfo__additional-info"><label>{vb:phrase {vb:raw fieldname}}:</label> <span>{vb:raw field.val}</span></li> </vb:if> </vb:each> </vb:each> {vb:hook 'conversation_userstats'} </ul> <ul class="b-userinfo__icons h-margin-none"> <vb:if condition="$conversation['online'] == 'online'"> {vb:set olstatus, ' online'} <vb:else /> {vb:set olstatus, ' offline'} </vb:if> <li class="b-userinfo__icon h-left" title="<vb:if condition="$olstatus == ' online'">{vb:rawphrase x_is_online_now, {vb:raw conversation.authorname}}<vb:else />{vb:rawphrase x_is_offline, {vb:raw conversation.authorname}}</vb:if>"><span class="b-icon b-icon__status--<vb:if condition="$conversation['online']=='online'">green<vb:else />gray</vb:if>"></span></li> {vb:template conversation_signature, type=collapsed, conversation={vb:raw conversation}, collapsedClass="b-userinfo__icon h-left"} </ul> </div> </div> |
Furthermore, when looking into Products & hooks in AdminCP, I find your module listed as active with hook location ---conversation_userstats and hook arguments: conversation=conversation .
I'm not sure if this helps. |
Quote:
Enable Hook System "Yes"? Are plugs from config.php disabled? Argument "conversation" is required to define the users ID You must have a template called "yilmazthreadauthor" |
I feel bad about stealing time from you, @yilmaz, but I'm not very skilled in the inner workings of vBulletin.
However, I found that Hook System is enabled. config.php (residing in /core/includes) was updated when I updated to 5.6.4 in November 2020. As far as I can see, the only changes I've made is to set username/password etc for the database. Specifically, there is a line in the default setup for disabling hooks, but that's commented out: // define("DISABLE_HOOKS", true); And, lastly, I find the module template yilmazthreadauthor in all styles. |
Quote:
Then let's do it manual. Conversation_userinfo template should be on line 5 Search for this in templates Code:
<div class="userinfo b-userinfo b-post__hide-when-deleted" {vb:schema {vb:raw schemaAuthor}}> and add this code right above HTML Code:
<vb:if condition="$conversation['userid'] == $conversation['starteruserid']"> |
There! Works like a charm! Thanks a lot for your help. Donations will be coming your way. :)
|
1 Attachment(s)
Thank you brother Yilmaz,
It need fix to support RTL style. I am not expert enough to modify css template Any help please ? Thank you again. |
Working now.
In yilmazthreadauthor.css Changed Code:
left: -10px; to Code:
{vb:stylevar left}: -10px; Thank you very much. |
Quote:
It will work very well. Thanks @DamasGate :up: |
Version 1.0.1 has been improved
|
All times are GMT. The time now is 12:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|