News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Topic Ratings

Started by Oldiesmann, January 20, 2005, 01:59:43 PM

Previous topic - Next topic

Oldiesmann

Link to Mod

This mod allows users to rate topics (1 to 5 stars). Admins choose which board(s) users can rate topics on, so if you don't want them rating your announcements, you can set it so they can't rate topics on that particular board.
Michael Eshom
Christian Metal Fans

ivo2296

I have installed it and i turned on rating but i can't find where is the rating option when i'm in a topic - may be just that mod isn't for SMF 1.0.1  .

redone

Stupid question time! Where do I put the mod file? I am sorry I am new to this and I am still learning. I have followed mod files before do I just follow the mod file and do it myself? Or does the mod file need to be uploaded somwhere?

Sorry if this question appears obvious to everyone but me!

ivo2296

Find folder Packages and put the mod in it.

redone

Thanks! Did that and it tells me its installed but I don't see anywhere I can activate it. I have looked through the layout/options and still nothing.

Any ideas?

Thanks

:)

_complex

Try

Admin Panel > Manage Boards > (Click board you want to activate for Topics Ratings) > Then you should see an option to activate. Like a checkbox or something..

redone

Hey thanks! I will give that a try. I appreciate your reply.

:D

redone

That worked thanks! I must of not read something somewhere.

:)

DoW Kid Rock

I have tried to install this a few times and when I click on apply it has the following
Type     Action     Description
1.    Execute Code    RatingsPdb.php    
2.    Execute Modification    ./Sources/Display.php    Success
3.    Execute Modification    ./Sources/Load.php    Success
4.    Execute Modification    ./Sources/ManageBoards.php    Failure
5.    Execute Modification    ./Sources/ManageMembers.php    Success
6.    Execute Modification    ./Sources/MessageIndex.php    Success
7.    Execute Modification    ./Sources/RemoveTopic.php    Success
8.    Execute Modification    ./Themes/default/Display.template.php    Success
9.    Execute Modification    ./Themes/default/ManageBoards.template.php    Success
10.    Execute Modification    ./Themes/default/MessageIndex.template.php    Success
11.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success

a failure for manageboards.php

thanks for the help in advance

redone

Go ahead and delete the package. Delete and try again.

Failing that you can try two things:

1. Download the mod and put it into the packages folder and see if that fixes it.

2. Do the mod yourself following the instructions in the .mod file.

:)

Gandalf

hello, i have changed this .mod to write also french language, it's the same as the current but with french in addition :D
download the whole modification including frensh language here ---> http://www.siemens-mobiles.org/smf_mods/ratings.zip
Siemens-mobiles.org Visit it and you won't regret it :D

Anguz

Thanks for the mod, Oldiesmann! :)
Cristián Lávaque http://cristianlavaque.com

Oldiesmann

You're welcome... You really have to thank Grudge for this as he's the one who originally wrote it. I'll take a look at that problem in ManageBoards.php. Probably just a matter of spacing. I plan to add permissions to this mod soon ("Can rate topics" and "Can view topic ratings") just to make it more interesting. :)
Michael Eshom
Christian Metal Fans

Anguz

Quote from: Oldiesmann on February 17, 2005, 02:04:11 PM
You're welcome... You really have to thank Grudge for this as he's the one who originally wrote it.

Heh, totally forgot. Thanks Grudge! But still thanks for supporting it Oldiesmann. :)
Cristián Lávaque http://cristianlavaque.com

Oldiesmann

Ok. I changed a couple of things in the mod file. Try it now and see if it works...
Michael Eshom
Christian Metal Fans

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
http://www.apni-mehfil.com
Where Fun Never Fades!

Numair

Is this mod not for 1.0.2 (Juno theme) ?
http://www.apni-mehfil.com
Where Fun Never Fades!

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.

Michael Eshom
Christian Metal Fans

wgm

This piece of code is giving me an ulcer.

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

I added this manually.

Display.php

// 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);


From this

<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>


Thanks.

wgm

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

Advertisement: