rating in portal announcement
duhol Offline
Junior Member
**
Posts: 34
Joined: Mar 2011
Post: #9
RE: rating in portal announcement
Well, i made it.

Add:

PHP Code:
r.uid AS rated

and

PHP Code:
LEFT JOIN ".TABLE_PREFIX."threadratings r ON(r.tid=t.tid AND r.uid='{$mybb->user['uid']}')


then i put:

PHP Code:
                $not_rated = '';
                     if(!$announcement['rated'])
                 {
                     $not_rated = ' star_rating_notrated';
                 }


instead of:

PHP Code:
                $not_rated = '';
                     if(!$rated)
                 {
                     $not_rated = ' star_rating_notrated';
                 }


and no need to make $rated condition Smile

Hej, RateU, will you help me to write all of this as plugin? Is it possible to easy to make?

(This post was last modified: 05-16-2011 06:12 PM by duhol.)
05-16-2011 06:09 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
rating in portal announcement - duhol - 05-15-2011, 05:12 AM
RE: rating in portal announcement - duhol - 05-15-2011, 03:39 PM
RE: rating in portal announcement - duhol - 05-15-2011, 10:25 PM
RE: rating in portal announcement - RateU - 05-16-2011, 03:30 AM
RE: rating in portal announcement - duhol - 05-16-2011, 06:51 AM
RE: rating in portal announcement - RateU - 05-16-2011, 07:18 AM
RE: rating in portal announcement - duhol - 05-16-2011 06:09 PM
RE: rating in portal announcement - RateU - 05-17-2011, 05:59 AM
RE: rating in portal announcement - duhol - 05-17-2011, 07:53 PM
RE: rating in portal announcement - RateU - 05-18-2011, 04:51 AM
RE: rating in portal announcement - RateU - 05-19-2011, 02:39 AM

 Standard Tools
Forum Jump: