Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Haktar

Вывод рейтинга в разделах

Recommended Posts

Не подскажите как вывести рейтинг тем в разделах не звёздочками как есть по умолчанию, а именно цифровое значение.

Share this post


Link to post
Share on other sites

topic_rating_total и topic_rating_hits.

 

Рейнтинг = topic_rating_total / topic_rating_hits

  • Upvote 1

Share this post


Link to post
Share on other sites

topic_rating_total и topic_rating_hits.

 

Рейнтинг = topic_rating_total / topic_rating_hits

Спасибо. А как бы сделать что бы topic_rating_total с значением 0 не выводился?

Share this post


Link to post
Share on other sites

Условие rating > 0 не подходит?

  • Upvote 1

Share this post


Link to post
Share on other sites

Условие rating > 0 не подходит?

Точно, стормозил :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...