Customizing SMF > Modifications and Packages

Topic Ratings

<< < (4/107) > >>

Numair:
I have installed it, everything went nicely, no error, no problem, but still there's no result.

There's no Topic Rating appeared so far.

Plz check this

http://www.apni-mehfil.com/forum

Thanks

Numair:
Is this mod not for 1.0.2 (Juno theme) ?

Oldiesmann:
It should work just fine for 1.0.2. If that theme includes Display.template.php or MessageIndex.template.php, you will have to modify those files manually or use the ones from the default theme. As far as getting it to work - Admin -> Manage Boards, click "Modify" next to a board. You should see an option about that.

wgm:
This piece of code is giving me an ulcer.


--- Code: ---IFNULL(lr.rating, -1) AS pastRating, t.rating,
--- End code ---
When added you can't view posts, take it away, you can view posts.

I added this manually.

Display.php

--- Code: ---// Get all the important topic info.
$request = db_query("
SELECT
t.numReplies, t.numViews, t.locked, ms.subject, t.isSticky, t.ID_POLL, t.ID_MEMBER_STARTED,
IFNULL(lr.rating, -1) AS pastRating, t.rating,
IFNULL(lt.logTime, 0) AS logTime, t.ID_FIRST_MSG
FROM {$db_prefix}topics AS t, {$db_prefix}messages AS ms
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = $topic AND lt.ID_MEMBER = $ID_MEMBER)
WHERE t.ID_TOPIC = $topic
AND ms.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error(472, false);
$topicinfo = mysql_fetch_assoc($request);
mysql_free_result($request);

--- End code ---

From this

--- Code: ---<search for>
// Get all the important topic info.
$request = db_query("
SELECT
t.numReplies, t.numViews, t.locked, ms.subject, t.isSticky, t.ID_POLL, t.ID_MEMBER_STARTED,
</search for>

<add after>
IFNULL(lr.rating, -1) AS pastRating, t.rating,
</add after>

--- End code ---

Thanks.

wgm:
I'd appreciated some help, post above. thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version