• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Highlighted threads

ge66

Active member
#1
When a thread is important we can make it sticky.
I am wondering if it wouldn't be a good idea to have a second level of this, highlighted threads. Meaning important thread that will have a different background colour, making it easier to spot in the threadlist.

Please like this post if you like the idea!
 

ge66

Active member
#4
I think you two might have missunderstood a little. I want this permissionsbased so that you could let users of the right group set this on a thread, maybe after paying to be a member of that group. Another use for this is when using a forum for classifieds. Or moderators could use it to show threads that are extra good but shouldn't be stickied.
If there are any other addons that does something like this please tell me.
I know it can be done by hand a thread at the time in EXTRA.css but I would like others to do it, and more easily.
 

Grover

Well-known member
#7
When a thread is important we can make it sticky.
I am wondering if it wouldn't be a good idea to have a second level of this, highlighted threads. Meaning important thread that will have a different background colour, making it easier to spot in the threadlist.

Please like this post if you like the idea!
I <like> your idea, since I am more or less looking for something similar: http://xenforo.com/community/threads/custom-thread-fields.1267/page-3#post-763362

I still run vBulletin (since I still can not migrate to Xenforo, since there are still no albums and blogs supported in XF without being dependable on third-party developers) and there I need to alter the templates everytime I add a thread that I need to be highlighted. I believe (as a non-programmer, mind you) Custom Thread Fields could already help fantastically in this, but having an UI/function that actually supports highlighting individual threads (regardless if they are sticky or not) makes it even easier.
 

ge66

Active member
#8
Today I took a new look at this.
I took the suggestion to use prefixes and made a little template edit to get the thread highlighted. This could probably be made nicer, I am not a programmer.

Search for:
Code:
    <div class="listBlock main">
in template: thread_list_item
replace with:
Code:
<xen:if is="{$thread.prefix_id} == xx">
    <div class="listBlock main" style="background-color:#ffc;">
<xen:else />
    <div class="listBlock main">
</xen:if>
Replace xx with the prefix id of a newly created highlight-prefix
and replace #ffc with what highlight background colour you want.

This might not work in all threadlists.

You should probably only give moderators the permission to use the specific prefix.
 

Daniel Hood

Well-known member
#9
I'd suggest doing this instead:
Code:
<div class="listBlock main"<xen:if is="{$thread.prefix_id} == xx"> style="background-color:#ffc;"</xen:if>>
as a template modification so you don't have to do it in the future if there's changes to that template.
 

ge66

Active member
#10
Thank you for cleaning that up.

Do you or anyone else know if there is an easy way to get the colour of the chosen prefix to be the background-color?
 

Daniel Hood

Well-known member
#11
Thank you for cleaning that up.

Do you or anyone else know if there is an easy way to get the colour of the chosen prefix to be the background-color?
You'd have to make an addon that adds the thread prefix data (css/etc) to the viewparams so you can access it within the template. Alternatively instead of doing style="background-color: #ffc;" you could do:

Code:
<div class="listBlock main<xen:if is="{$thread.prefix_id} == xx">thread_prefix_{$thread.prefix_id}</xen:if>">
and in your extra css set a

Code:
.thread_prefix_xx
{
background-color: #ffc;
}
And add another css rule for each id.
 

Joe Link

Well-known member
#12
Good stuff here guys. I got it working, mostly. I'd like to know if there's a way to change the whole thread box's background color based on a specific prefix, rather than just the list box.

example.PNG