Thread Rating Number?
Jay99 Offline
Junior Member
**
Posts: 11
Joined: May 2011
Post: #1
Question Thread Rating Number?
Hey guys,

Does anyone know how to display the total amount of thread votes on forumdisplay, under the stars?

See my board Survival Daddy
(This post was last modified: 07-21-2011 08:01 AM by Jay99.)
06-23-2011 06:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Thread Rating Number?
Maybe like this:

Code:
{$thread['numratings']}


06-23-2011 07:04 AM
Find all posts by this user Quote this message in a reply
Jay99 Offline
Junior Member
**
Posts: 11
Joined: May 2011
Post: #3
RE: Thread Rating Number?
(06-23-2011 07:04 AM)RateU Wrote:  Maybe like this:

Code:
{$thread['numratings']}


Thanks RateU, that works...

Now, when there's no votes it shows "0",
how can I use "if else" to remove the "0" when no votes present?
06-25-2011 03:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Jay99 Offline
Junior Member
**
Posts: 11
Joined: May 2011
Post: #4
RE: Thread Rating Number?
Ok, I've got it working now Tongue

Here's how I did it:

Quote:<if $thread['numratings'] < 1 then>
<span class="smalltext"><font color="#585858">N/A</font></span>
<elseif $thread['numratings'] > 0 then>
<span class="smalltext"><font color="#585858">({$thread['numratings']})</font></span>
<else />
</if>

Thanks again RateU for getting me on the right track.
(This post was last modified: 06-25-2011 06:11 AM by Jay99.)
06-25-2011 06:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: