The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how to create a rating column with rating values displayed
Hi,
I was wondering how to create an extra column to display sortable thread rating, just like in vb.org. thanks |
#2
|
|||
|
|||
Open ForumDisplay Template
Find: Code:
<a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a> Code:
<span style="float:right;"> <vb:if condition="$order['desc'] AND $sort['voteavg']"><a href="forumdisplay.php?f={vb:raw foruminfo.forumid}&daysprune=-1&order=asc&sort=voteavg">Rating </a><vb:else /><a href="forumdisplay.php?f={vb:raw foruminfo.forumid}&daysprune=-1&order=desc&sort=voteavg">Rating </a> </vb:if></span> |
#3
|
|||
|
|||
Alright! This is exactly what I was looking for! Thanks!
Brandon |
#4
|
|||
|
|||
This is great, thank you Badshah93, but is there any way of having an up/down arrow beside the word "Rating", please?
Quote:
|
#5
|
|||
|
|||
Thank you! That's also what I have been looking for.
Just one additional question: Is there a way to add the number of voters to the forumdisplay like here on vb.org as well? I mean the summary you get when hover over the rating icons in forumdisplay (Thread rating: XX votes, YY average)? I'd be glad for a helpful answer. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|