Advertisement:

Author Topic: Topic Ratings  (Read 233408 times)

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,858
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Topic Ratings
« on: January 20, 2005, 01:59:43 PM »
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
Cincy Space - now open!

Offline ivo2296

  • Full Member
  • ***
  • Posts: 514
  • Gender: Male
  • SMF Bulgarian Translator
Re: Topic Ratings
« Reply #1 on: January 20, 2005, 10:29:28 PM »
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  .

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: Topic Ratings
« Reply #2 on: January 24, 2005, 11:01:33 AM »
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!

Offline ivo2296

  • Full Member
  • ***
  • Posts: 514
  • Gender: Male
  • SMF Bulgarian Translator
Re: Topic Ratings
« Reply #3 on: January 24, 2005, 06:44:58 PM »
Find folder Packages and put the mod in it.

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: Topic Ratings
« Reply #4 on: January 25, 2005, 10:41:47 AM »
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

 :)

Offline _complex

  • Jr. Member
  • **
  • Posts: 247
  • Gender: Male
  • ha...yooo
    • Checkit
Re: Topic Ratings
« Reply #5 on: January 25, 2005, 10:50:48 AM »
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..

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: Topic Ratings
« Reply #6 on: January 25, 2005, 02:37:53 PM »
Hey thanks! I will give that a try. I appreciate your reply.

 :D

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: Topic Ratings
« Reply #7 on: January 25, 2005, 02:39:36 PM »
That worked thanks! I must of not read something somewhere.

 :)

Offline DoW Kid Rock

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
    • Disciples of Wrestling
Re: Topic Ratings
« Reply #8 on: January 26, 2005, 09:47:41 PM »
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

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: Topic Ratings
« Reply #9 on: January 28, 2005, 11:56:57 AM »
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.

 :)

Offline Gandalf

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Male
    • SMO
Re: Topic Ratings
« Reply #10 on: February 11, 2005, 08:45:29 PM »
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

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Topic Ratings
« Reply #11 on: February 16, 2005, 06:57:01 PM »
Thanks for the mod, Oldiesmann! :)
Cristián Lávaque http://cristianlavaque.com

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,858
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Topic Ratings
« Reply #12 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. 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
Cincy Space - now open!

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Topic Ratings
« Reply #13 on: February 17, 2005, 03:33:55 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

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,858
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Topic Ratings
« Reply #14 on: February 18, 2005, 02:31:37 PM »
Ok. I changed a couple of things in the mod file. Try it now and see if it works...
Michael Eshom
Cincy Space - now open!

Offline Numair

  • Semi-Newbie
  • *
  • Posts: 38
  • Gender: Male
    • Apni Mehfil
Re: Topic Ratings
« Reply #15 on: February 24, 2005, 10:38:18 PM »
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!

Offline Numair

  • Semi-Newbie
  • *
  • Posts: 38
  • Gender: Male
    • Apni Mehfil
Re: Topic Ratings
« Reply #16 on: February 26, 2005, 07:21:50 AM »
Is this mod not for 1.0.2 (Juno theme) ?
http://www.apni-mehfil.com
Where Fun Never Fades!

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,858
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Topic Ratings
« Reply #17 on: March 07, 2005, 09:48:03 AM »
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
Cincy Space - now open!

wgm

  • Guest
Re: Topic Ratings
« Reply #18 on: March 07, 2005, 03:08:24 PM »
This piece of code is giving me an ulcer.

Code: [Select]
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
Code: [Select]
// 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
Code: [Select]
<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

  • Guest
Re: Topic Ratings
« Reply #19 on: March 13, 2005, 07:45:25 AM »
I'd appreciated some help, post above. thanks.