PDA

View Full Version : Show Thread Enhancements - Highlight Threadstarter's Posts/Replies in Thread


sockwater
09-05-2008, 10:00 PM
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
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.

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

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:
<if condition="$post['is_thread_starter']"><div style="border:5px solid black;"></if>
At the very bottom of postbit_legacy:
<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:

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


With:

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