Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Products & Extensions

Reply
 
Thread Tools
Yilmaz - Thread Starter vB5 Details »»
Yilmaz - Thread Starter vB5
Version: 1.0.1, by yilmaz yilmaz is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 5.5.5 Rating:
Released: 01-06-2021 Last Update: 02-21-2021 Installs: 33
Supported Auto-Templates
 

Description:
========================================
This addon will add an indicator on the thread starters replies in their own thread. This can help identify the person who started the thread easily.

========================================
Installation:
========================================
Download the product product_yilmazthreadauthor.xmland import it through the 'Manage Products' page in the AdminCP.

that's all it.
enjoy..

---------
Version 1.0.1 has been improved
---------
========================================
If you installed this mod and/or you want get support, please "Mark as Installed".
-----
========================================
How to uninstall:
========================================
Go to "Manage Products" in the admincp and delete the product named "Yilmaz - Thread Starter vB5"

Download Now

File Type: xml product_yilmazthreadauthor.xml (2.7 KB, 81 views)

Screenshots

File Type: png screenshot-www.vbyilmaz.com-2021.02.19-02_06_24.png (33.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Chicoynano, puertoblack2003, Razta

Comments
  #12  
Old 01-10-2021, 11:10 AM
milforum milforum is offline
 
Join Date: Nov 2019
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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="{vbhrase guest_avatar}" title="{vbhrase 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 />{vbhrase 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, {vbhp 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>{vbhrase join_date}:</label> <span>{vb:date {vb:raw userInfo.joindate}, 'registered'}</span></li>
<li class="b-userinfo__additional-info"><label>{vbhrase 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>{vbhrase 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>{vbhrase {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>
Reply With Quote
  #13  
Old 01-10-2021, 11:13 AM
milforum milforum is offline
 
Join Date: Nov 2019
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 01-10-2021, 12:57 PM
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Posts: 751
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by milforum View Post
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.
you-site/admincp/options.php?do=options&dogroup=plugin

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"
Reply With Quote
  #15  
Old 01-10-2021, 04:39 PM
milforum milforum is offline
 
Join Date: Nov 2019
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 01-10-2021, 05:30 PM
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Posts: 751
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by milforum View Post
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.

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']">
{vb:cssExtra yilmazthreadauthor.css}
<div class="baslatan">{vb:phrase yilmaz_thread_author}</div>
</vb:if>
Note: The new editors are very sensitive, you should be careful that they affect unwanted places when copying / pasting.
Reply With Quote
  #17  
Old 01-10-2021, 06:52 PM
milforum milforum is offline
 
Join Date: Nov 2019
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There! Works like a charm! Thanks a lot for your help. Donations will be coming your way.
Reply With Quote
  #18  
Old 01-31-2021, 06:56 PM
DamasGate DamasGate is offline
 
Join Date: Aug 2003
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: jpg 1-31-2021 10-49-48 PM.jpg (19.9 KB, 0 views)
Reply With Quote
  #19  
Old 01-31-2021, 08:46 PM
DamasGate DamasGate is offline
 
Join Date: Aug 2003
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working now.


In yilmazthreadauthor.css


Changed



Code:
left: -10px;

to


Code:
{vb:stylevar left}: -10px;

Thank you very much.
Reply With Quote
  #20  
Old 02-01-2021, 07:09 AM
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Posts: 751
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DamasGate View Post
Working now.
In yilmazthreadauthor.css
Changed
Code:
left: -10px;
to
Code:
{vb:stylevar left}: -10px;
Thank you very much.
Great, I will always consider it from now on.
It will work very well.
Thanks @DamasGate :up:
Reply With Quote
Благодарность от:
DamasGate
  #21  
Old 02-18-2021, 11:07 PM
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Posts: 751
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.0.1 has been improved
Reply With Quote
Reply

Thread Tools

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 12:06 AM.


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.08315 seconds
  • Memory Usage 2,360KB
  • Queries Executed 28 (?)
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
  • (5)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete