vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - Highlight Threadstarter's Posts/Replies in Thread (https://vborg.vbsupport.ru/showthread.php?t=190210)

sockwater 09-05-2008 10:00 PM

Highlight Threadstarter's Posts/Replies in Thread
 
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.

ShiZoPhreN 09-06-2008 10:28 PM

*Installed and Reserved*

Thanks for this Add-On =)

FreshFroot 09-07-2008 03:01 AM

wow.. interesting hack, might be useful

Thanks a bunch!

D.Ilyin 09-07-2008 04:52 AM

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?

abrecher 09-07-2008 06:03 AM

Doesn't seem to work on my forum. Does it matter that I'm using a custom skin ?

sockwater 09-08-2008 01:50 AM

Quote:

Originally Posted by D.Ilyin (Post 1616357)
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 (Post 1616388)
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.

abrecher 09-08-2008 03:01 AM

Quote:

Originally Posted by sockwater (Post 1617057)
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 ?

sockwater 09-08-2008 04:25 PM

Quote:

Originally Posted by abrecher (Post 1617078)
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.

yamahapaul 09-11-2008 08:18 AM

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??

Mikkito 11-12-2008 03:12 AM

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

Wired1 03-15-2009 12:04 AM

Replace:
Code:

        if ($post['isfirstshown'])
        {
                $GLOBALS['threadstarteruserid'] = $post['userid'];       
        }
        if ($GLOBALS['threadstarteruserid'] == $post['userid'])

With:
Code:

        if ($this->thread['postuserid'] == $this->post['userid'])

Teknologist 04-02-2009 06:58 PM

This is not showing up.

Using postbit_legacy.

vBulletin® Version 3.7.2

I've tried the above.

Any thoughts?

psychonikeo 12-03-2009 07:22 AM

will this work for 3.8?

yahooooh 12-13-2009 12:10 AM

does it work for 3.8?

Manoel J?nior 04-29-2010 03:18 PM

Does not working vb4.x


All times are GMT. The time now is 04:59 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.01228 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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