Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Highlight Threadstarter's Posts/Replies in Thread Details »»
Highlight Threadstarter's Posts/Replies in Thread
Version: 1.0, by sockwater sockwater is offline
Developer Last Online: Jan 2018 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 09-05-2008 Last Update: 09-05-2008 Installs: 26
Uses Plugins Auto-Templates
 
No support by the author.

This modification allows you to easily highlight the replies made by the thread starter.

Features:
  • Enable/disable modification
  • Auto add a class name to the post table element, allowing you to style the opening poster's replies as you want.
  • Auto-add CSS to style the thread starter's replies
  • Can optionally style the first post (instead of only replies) as well.
  • If you don't want to do the auto-class or auto-css, you can use the $post[is_thread_starter] variable in the postbit template to do your own styling.
Installation:
Import the product XML via the Product Manager and visit the Options group (Highlight Threadstarter's Posts Options).

The screenshot shows the OP's reply with a wider border, but you can highlight their replies any way you want with CSS. If the opening poster replies via the quick reply, their post won't be highlighted for them until they reload the page.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-06-2008, 10:28 PM
ShiZoPhreN ShiZoPhreN is offline
 
Join Date: Apr 2008
Location: Germany/Hamburg
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Installed and Reserved*

Thanks for this Add-On =)
Reply With Quote
  #3  
Old 09-07-2008, 03:01 AM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow.. interesting hack, might be useful

Thanks a bunch!
Reply With Quote
  #4  
Old 09-07-2008, 04:52 AM
D.Ilyin D.Ilyin is offline
 
Join Date: Oct 2005
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Interesting, but need some improvements
1. Forums included that future and exluded (like in Post Thanks Hack)
2. Exluded User groups

what do you think?
Reply With Quote
  #5  
Old 09-07-2008, 06:03 AM
abrecher abrecher is offline
 
Join Date: Jan 2004
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't seem to work on my forum. Does it matter that I'm using a custom skin ?
Reply With Quote
  #6  
Old 09-08-2008, 01:50 AM
sockwater's Avatar
sockwater sockwater is offline
 
Join Date: Apr 2008
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by D.Ilyin View Post
Thanks! Interesting, but need some improvements
1. Forums included that future and exluded (like in Post Thanks Hack)
2. Exluded User groups

what do you think?
Hmmm, that's a possibility.

Quote:
Originally Posted by abrecher View Post
Doesn't seem to work on my forum. Does it matter that I'm using a custom skin ?
Yes. Use the $post[is_thread_starter] variable in your postbit template to change the style.
Reply With Quote
  #7  
Old 09-08-2008, 03:01 AM
abrecher abrecher is offline
 
Join Date: Jan 2004
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sockwater View Post
Hmmm, that's a possibility.


Yes. Use the $post[is_thread_starter] variable in your postbit template to change the style.

Where exacty would I out "$post[is_thread_starter]" if I use postbit_legacy please ?
Reply With Quote
  #8  
Old 09-08-2008, 04:25 PM
sockwater's Avatar
sockwater sockwater is offline
 
Join Date: Apr 2008
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abrecher View Post
Where exacty would I out "$post[is_thread_starter]" if I use postbit_legacy please ?
$post[is_thread_starter] would be either true or false to let you know if the current post that is being displayed was posted by the thread starter. So you could do something like this: (find the class="tborder" in the first table in postbit_legacy and change it to this)
Code:
class="tborder<if condition="$post['is_thread_starter']"> threadstarter</if>"
What this will do is add the 'threadstarter' class to the table. Then you can style it as you wish with CSS.

If you're not comfortable with CSS, try this to see if things are working:

At the very top of postbit_legacy:
Code:
<if condition="$post['is_thread_starter']"><div style="border:5px solid black;"></if>
At the very bottom of postbit_legacy:
Code:
<if condition="$post['is_thread_starter']"></div></if>
That should give you a black border around all the threadstarter's posts.
Reply With Quote
  #9  
Old 09-11-2008, 08:18 AM
yamahapaul's Avatar
yamahapaul yamahapaul is offline
 
Join Date: Aug 2008
Location: UK
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this mod a lot, its a nice and simple idea to highlight a new thread and the submitters replys but when I tried it (both having the 1st post highlighted and disabled) it seemed to randomly highlight other users posts in the same thread and it didn't work on all threads and submitters replies etc any ideas but without me having to alter code, templates etc which i am loathe to do??
Reply With Quote
  #10  
Old 11-12-2008, 03:12 AM
Mikkito Mikkito is offline
 
Join Date: Aug 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It highlights the top poster's posts, even on the second and further pages... This isn't good because I may be the page's top poster, but not the original threadstarter. :P
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 10:50 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.10884 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete