Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Oldiesmann on January 20, 2005, 01:59:43 PM

Title: Topic Ratings
Post by: Oldiesmann on January 20, 2005, 01:59:43 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=91)

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.
Title: Re: Topic Ratings
Post by: ivo2296 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  .
Title: Re: Topic Ratings
Post by: redone 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!
Title: Re: Topic Ratings
Post by: ivo2296 on January 24, 2005, 06:44:58 PM
Find folder Packages and put the mod in it.
Title: Re: Topic Ratings
Post by: redone 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

:)
Title: Re: Topic Ratings
Post by: _complex 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..
Title: Re: Topic Ratings
Post by: redone on January 25, 2005, 02:37:53 PM
Hey thanks! I will give that a try. I appreciate your reply.

:D
Title: Re: Topic Ratings
Post by: redone on January 25, 2005, 02:39:36 PM
That worked thanks! I must of not read something somewhere.

:)
Title: Re: Topic Ratings
Post by: DoW Kid Rock 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
Title: Re: Topic Ratings
Post by: redone 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.

:)
Title: Re: Topic Ratings
Post by: Gandalf 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
Title: Re: Topic Ratings
Post by: Anguz on February 16, 2005, 06:57:01 PM
Thanks for the mod, Oldiesmann! :)
Title: Re: Topic Ratings
Post by: 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. 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. :)
Title: Re: Topic Ratings
Post by: Anguz on February 17, 2005, 03:33:55 PM
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. :)
Title: Re: Topic Ratings
Post by: Oldiesmann 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...
Title: Re: Topic Ratings
Post by: Numair 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
Title: Re: Topic Ratings
Post by: Numair on February 26, 2005, 07:21:50 AM
Is this mod not for 1.0.2 (Juno theme) ?
Title: Re: Topic Ratings
Post by: Oldiesmann 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.

Title: Re: Topic Ratings
Post by: wgm on March 07, 2005, 03:08:24 PM
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.
Title: Re: Topic Ratings
Post by: wgm on March 13, 2005, 07:45:25 AM
I'd appreciated some help, post above. thanks.
Title: Re: Topic Ratings
Post by: [Unknown] on March 13, 2005, 09:05:39 AM
That shouldn't affect anything.

-[Unknown]
Title: Re: Topic Ratings
Post by: wgm on March 13, 2005, 10:16:14 AM
Error I get when viewing a post.

When this is added IFNULL(lr.rating, -1) AS pastRating, t.rating,

Unknown table 'lr' in field list
File: /usr/home/williamm/public_html/forum/Sources/Display.php
Line: 166

Line 166: LIMIT 1", __FILE__, __LINE__);
Title: Re: Topic Ratings
Post by: [Unknown] on March 13, 2005, 06:25:48 PM
Oh, that means you didn't add a join on the ratings table.  I'd guess something like this:

   LEFT JOIN {$db_prefix}topic_ratings AS lr ON (lr.ID_TOPIC = $topic AND lr.ID_MEMBER = $ID_MEMBER)

Just a guess, but it should be in the mod file either way.

-[Unknown]
Title: Re: Topic Ratings
Post by: wgm on March 13, 2005, 07:16:05 PM
Quote from: [Unknown] on March 13, 2005, 06:25:48 PM
LEFT JOIN {$db_prefix}topic_ratings AS lr ON (lr.ID_TOPIC = $topic AND lr.ID_MEMBER = $ID_MEMBER)

It was added, any other suggestion that might work, would it the database.
Title: Re: Topic Ratings
Post by: rakuli on March 30, 2005, 06:24:39 AM
Hey, thanks.
Mod works great (after installing manually).
What would you suggest I do if I want to make it possible for each user to rate a topic once and once only?
Title: Re: Topic Ratings
Post by: SanSite.Info on April 18, 2005, 03:41:03 AM


Hello

I am using ELEMENT THEME, i am not able to install tis mod, plz tell me what modifications are to be done in the display.temp file.

tanks

Title: Re: Topic Ratings
Post by: davef on April 25, 2005, 09:16:24 PM
will this mod be upgraded for 1.0.3 or 1.1?
Title: Re: Topic Ratings
Post by: ShawnX on April 28, 2005, 08:04:53 PM
I can't get the rate posts option to show.  I installed through the package manager, and everything said success.  When I click on manage boards and modify to set it up, I don't get the option.

SMF 1.0.3 / Default theme
Title: Re: Topic Ratings
Post by: dtm.exe on April 28, 2005, 08:18:01 PM
Quote from: bloodlust on April 28, 2005, 08:04:53 PM
I can't get the rate posts option to show.  I installed through the package manager, and everything said success.  When I click on manage boards and modify to set it up, I don't get the option.

SMF 1.0.3 / Default theme

Are you sure that you completely finished the install process?  Go to your package manager and tell me if you see a green dot next to the Topic Ratings mod.

-Dan The Man
Title: Re: Topic Ratings
Post by: ShawnX on April 28, 2005, 09:41:21 PM
I don't see a green dot.  Maybe I'm doing something wrong.  I took some screenshots of what I do see:

http://www.jackassclan.com/pics/smf.jpg

http://www.jackassclan.com/pics/smf2.jpg


Title: Re: Topic Ratings
Post by: dtm.exe on April 28, 2005, 09:45:37 PM
Quote from: bloodlust on April 28, 2005, 09:41:21 PM
I don't see a green dot.  Maybe I'm doing something wrong.  I took some screenshots of what I do see:

http://www.jackassclan.com/pics/smf.jpg

http://www.jackassclan.com/pics/smf2.jpg

OK, that means that the mod was not fully installed properly.  Do complete the installation of the Topic Reply mod, go to Mangage Packages and click on the [ Apply Mod ] link next to Topic Reply.

By the way, I love your website.

-Dan The Man
Title: Re: Topic Ratings
Post by: ShawnX on April 28, 2005, 09:47:35 PM
 Ok...I feel stupid!  :)  Right after I posted this, I noticed the "Proceed" link at the bottom of the second screenshot I posted.  I went back in and clicked it, and it's working now!   

This was my first SMF mod install...so just consider me a noob!  ;D


P.S.  Thanks for the compliment on my website!  :)
Title: Re: Topic Ratings
Post by: dtm.exe on April 28, 2005, 09:52:15 PM
Quote from: bloodlust on April 28, 2005, 09:47:35 PM
Ok...I feel stupid!  :)  Right after I posted this, I noticed the "Proceed" link at the bottom of the second screenshot I posted.  I went back in and clicked it, and it's working now!  

This was my first SMF mod install...so just consider me a noob!  ;D


P.S.  Thanks for the compliment on my website!  :)

No problem :).

-Dan The Man
Title: Re: Topic Ratings
Post by: Thantos on April 28, 2005, 10:11:54 PM
Did you happen to click on proceed on that second page?
Title: Re: Topic Ratings
Post by: dtm.exe on April 28, 2005, 10:55:15 PM
Quote from: MikeMill on April 28, 2005, 10:11:54 PM
Did you happen to click on proceed on that second page?

Yes.  He completed the installation and it's fully installed now.

-Dan The Man
Title: Re: Topic Ratings
Post by: ShawnX on April 28, 2005, 11:11:11 PM
Quote from: MikeMill on April 28, 2005, 10:11:54 PM
Did you happen to click on proceed on that second page?

Yeah...I saw it as soon as I posted those screen shots lol!  I clicked proceed and it's working great now! Thx for the help guys!
Title: Re: Topic Ratings
Post by: dtm.exe on April 28, 2005, 11:21:15 PM
Quote from: bloodlust on April 28, 2005, 11:11:11 PM
Thx for the help guys!

No problem :).  Glad I could be of assistance.

-Dan The Man
Title: Re: Topic Ratings
Post by: Eragle on May 04, 2005, 06:27:33 AM
The RatingsPdb.php file won't execute, getting error (done manually no less) saying there is a problem on line 23:

$request = db_query("

Error states that us undefined.
Title: Re: Topic Ratings
Post by: Oldiesmann on May 04, 2005, 10:53:13 AM
RatingsPdb.php is meant to be run from the package manager. There should be another file called "Ratingsdb.php" that you can run manually.
Title: Re: Topic Ratings
Post by: Eragle on May 04, 2005, 06:39:46 PM
oh ok lemme take a look then..
Title: Re: Topic Ratings
Post by: teamvtec on May 06, 2005, 08:57:31 PM
Quote from: Numair 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

Hi all, i have the same problem  ::)

I have everything installed properly, and i've checked the box @ modify boards.
But no buttons or whatever on the page itself.
Is there a solution to this?

My site: http://forum.sirfanaticsholland.com/index.php

Thanks for your time

Grtzz
Title: Re: Topic Ratings
Post by: teamvtec on May 07, 2005, 08:20:49 AM
Anyone??  :(
Title: Re: Topic Ratings
Post by: NBK on May 12, 2005, 06:31:33 AM
I tryed to install Topic Ratings v1.02 with MessageIndex.template.php 1.0 and I got an error while installing the mod.

In the mod file the following line apears to be wrong (line 335 of ratings_v1.02.mod)

<search for>
<td width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' :'', '">', $txt[301], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
</search for>


It should be (line 134 of MessageIndex.template.php 1.0)

<search for>
<td width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : ';asc', '">', $txt[301], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
</search for>


edit
There is a small deference
mod-file: ['sort_direction'] == 'up' ? ';desc' : '', '"
php-file: ['sort_direction'] == 'up' ? ';desc' : ';asc', '"
/edit

Is this a real bug or did this just occur on my board?
Title: Re: Topic Ratings
Post by: Anguz on May 12, 2005, 04:28:53 PM
That difference was made by my Board Default Sort mod. You'll have to edit the file manually, or either the php or the mod file. If you change the mod file, then you'll be able to use the Package manager to install and uninstall (as long as you don't uninstall Board Default Sort first, cause then you'll have the same problem you do now, only the other way).
Title: Re: Topic Ratings
Post by: Oldiesmann on May 17, 2005, 01:45:25 PM
Quick question for everyone - if I added a couple of permissions to this mod ("Can Rate Topics" and "Can View Topic Ratings"), would you use them? I think it would be a great addition, but I'd like to know what everyone thinks before it gets added.
Title: Re: Topic Ratings
Post by: Kambei_Shimada on May 23, 2005, 04:20:13 PM
Quote from: Oldiesmann on May 17, 2005, 01:45:25 PM
Quick question for everyone - if I added a couple of permissions to this mod ("Can Rate Topics" and "Can View Topic Ratings"), would you use them? I think it would be a great addition, but I'd like to know what everyone thinks before it gets added.

Sounds good to me. Speaking of modding this already killer mod, I'm working on an addition to it for my BBS ( http://www.skullknight.net/bbs ) that would incorporate multiple levels of images.

For instance, a value of 5 would be (http://skullknight.net/yabbse/Themes/classic/images/goldbars/goldbar.gif)(http://skullknight.net/yabbse/Themes/classic/images/goldbars/goldbar.gif)(http://skullknight.net/yabbse/Themes/classic/images/goldbars/goldbar.gif)(http://skullknight.net/yabbse/Themes/classic/images/goldbars/goldbar.gif)(http://skullknight.net/yabbse/Themes/classic/images/goldbars/goldbar.gif)  . A value of 3-4 would be (http://skullknight.net/yabbse/Themes/classic/images/goldbars/silverbar.gif)(http://skullknight.net/yabbse/Themes/classic/images/goldbars/silverbar.gif)(http://skullknight.net/yabbse/Themes/classic/images/goldbars/silverbar.gif)(http://skullknight.net/yabbse/Themes/classic/images/goldbars/silverbar.gif) , 1-2 would be (http://skullknight.net/yabbse/Themes/classic/images/goldbars/bronzebar.gif)(http://skullknight.net/yabbse/Themes/classic/images/goldbars/bronzebar.gif)  and 0 would be a (http://skullknight.net/yabbse/Themes/classic/images/goldbars/brokenbar.gif).

Having some difficulty with the coding though ( i know nothing of coding, i can just copy paste  :D )  I know what I need to do, essentially... but not the means to do it.  Here's the code I'm pretty sure I have to modify, it's in Display.php

$context['rating'] = array(
'empty' => $topicinfo['rating'] == -1,
'whole' => (int) ($topicinfo['rating'] / 2),
'half' => $topicinfo['rating'] % 2

I need to add more values to this, right?. Something like Gold Silver Bronze and Crap yes? Sounds pretty simple but... I don't really know the code or math for this... Help?
Title: Re: Topic Ratings
Post by: ArkServer on May 29, 2005, 08:00:13 AM
Is there a way only to rate once? when i rate a topic i can change my vote.
Title: Topic rating
Post by: norwegian on June 17, 2005, 07:04:49 PM
its possible do this :


Subs the stars  to numbers [1,2,3...]like "Topic rate: 4 " , this mean subs the stars for numbers ???


someone can help me ?
Title: Re: Topic Ratings
Post by: dtm.exe on June 17, 2005, 07:12:40 PM
Quote from: norwegian on June 17, 2005, 07:04:49 PM
its possible do this :


Subs the stars  to numbers [1,2,3...]like "Topic rate: 4 " , this mean subs the stars for numbers ???


someone can help me ?

Post merged with the appropriate topic.

-Dan The Man
Title: Re: Topic Ratings
Post by: norwegian on June 17, 2005, 07:55:37 PM
 how ???
Title: Re: Topic Ratings
Post by: dtm.exe on June 17, 2005, 08:20:18 PM
Quote from: norwegian on June 17, 2005, 07:55:37 PM
how ???

Your question will be answered...just be patient :).

-Dan The Man
Title: Re: Topic Ratings
Post by: norwegian on June 18, 2005, 08:45:24 AM
ok , i wait :)
Title: Fractional 0-10 ratings
Post by: Solace on June 19, 2005, 06:14:26 AM
Great mod.  Only board+mod I've seen that allows topics to be sorted by rating.

I've made some changes to this mod so that instead of 0-5 stars, ratings are entered 0-10, and displayed as numbers, 0.00-10.00 to two decimal points.  This allows for a finer ranking when such discrimination is important.

I'll post a link here if interest is shown and the original mod author gives permission.
Title: Re: Fractional 0-10 ratings
Post by: norwegian on June 19, 2005, 09:24:01 AM
Quote from: Solace on June 19, 2005, 06:14:26 AM
Great mod.  Only board+mod I've seen that allows topics to be sorted by rating.

I've made some changes to this mod so that instead of 0-5 stars, ratings are entered 0-10, and displayed as numbers, 0.00-10.00 to two decimal points.  This allows for a finer ranking when such discrimination is important.

I'll post a link here if interest is shown and the original mod author gives permission.

That's Great !!!!i hope you can get the permission !! 8)
Title: Re: Topic Ratings
Post by: norwegian on June 20, 2005, 09:01:37 PM
none can do this ??? replace stars for numbers ??? 1-5 or 1-10 .....


???
Title: Re: Topic Ratings
Post by: SaniOKh on June 22, 2005, 12:03:56 PM
Quote from: Oldiesmann on May 17, 2005, 01:45:25 PM
Quick question for everyone - if I added a couple of permissions to this mod ("Can Rate Topics" and "Can View Topic Ratings"), would you use them? I think it would be a great addition, but I'd like to know what everyone thinks before it gets added.
Yes, it would be great, this is THE missing feature to your MOD!
Title: Re: Topic Ratings
Post by: norwegian on June 22, 2005, 03:08:40 PM
Quote from: SaniOKh on June 22, 2005, 12:03:56 PM
Quote from: Oldiesmann on May 17, 2005, 01:45:25 PM
Quick question for everyone - if I added a couple of permissions to this mod ("Can Rate Topics" and "Can View Topic Ratings"), would you use them? I think it would be a great addition, but I'd like to know what everyone thinks before it gets added.
Yes, it would be great, this is THE missing feature to your MOD!

indeed !!
Title: Re: Topic Ratings
Post by: diplomat. on June 22, 2005, 05:52:44 PM
Say if I wanted to display the ratings of topics displayed on my ssi_boardNews, is that possible?
Title: Re: Topic Ratings
Post by: Solace on June 23, 2005, 12:08:14 AM
One other thing that'd be nice would be for the rating to be automatically submitted when the number in the drop down box is selected, without having to press "go".
Title: Re: Topic Ratings
Post by: Solace on July 10, 2005, 12:04:46 PM

Quote from: norwegian on June 20, 2005, 09:01:37 PM
none can do this ??? replace stars for numbers ??? 1-5 or 1-10 .....

This is implemented on my site OpenSketch.com (http://opensketch.com). The original author of this mod has my code, and will release some version of it as a variant when he gets the chance.
Title: Re: Topic Ratings
Post by: teamvtec on July 19, 2005, 01:44:12 PM
Someone here knows how to make Topic Rating work with the Helios theme?  :'(
I've installed the mod succesfully, even the option for the rating boards is present.
But no buttons on the pages.

Anyone ?  >:(
Title: Re: Topic Ratings
Post by: mogadishu on July 20, 2005, 03:18:47 PM
The same Problem HERE But With

Theme name: TechHead (SMF v1.0.5 / 1.1beta3)
Author: Bloc

So please ..[I really need HELP] Help me To solve my PROB[i thin'k i'm not thr single with this PROB.
Thanx in Advence !
Title: Re: Topic Ratings
Post by: Ivan Minic on July 30, 2005, 02:40:58 AM
I integrated it with ease.. took me some time to modify some stuff, but it works very nice
Title: Re: Topic Ratings
Post by: mogadishu on July 30, 2005, 05:16:30 PM
This Comment Don't Solve our Problems..So please make a Tutorial[How TO]...This Will HELP Us ALOT !
Title: Re: Topic Ratings
Post by: Poppet on August 03, 2005, 05:02:00 AM
I tried to install this mod through the package manager and got this....

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

We are running version 1.0.5, any ideas guys?
Title: Re: Topic Ratings
Post by: teamvtec on August 20, 2005, 10:17:29 AM
Quote from: mogadishu on July 30, 2005, 05:16:30 PM
This Comment Don't Solve our Problems..So please make a Tutorial[How TO]...This Will HELP Us ALOT !


Some help plz.... posts above  >:(
I posted a question like this on a previous page and still no awnser  :'(
http://www.simplemachines.org/community/index.php?topic=25023.msg259857#msg259857

I'm not a PHP or html coding expert but some example code might help me out
H.E.L.P!
Title: Re: Topic Ratings
Post by: mennou on August 20, 2005, 10:59:39 AM
Can you please work on therating cuz  when i download it  i got this message on my forum 
Not unique table/alias: 'lr'
File: /usr/home/mixspot/public_html/forum2/Sources/Display.php
Line: 216   

it would be nice if you could work lil bit more on that  thank you
Quote from: Oldiesmann on January 20, 2005, 01:59:43 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=91)

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.
Title: Re: Topic Ratings
Post by: Xarcell on August 23, 2005, 06:08:12 PM
I'm running 1.1b3 and it doesn't seem to work with beta. I get test failed on manageboards within teh sources dir.

I tried to manually install, but cannot find the code anywhere.


EDIT::

While messing with the file manually, I can find everything except this line of code:



childLevel, boardOrder, ID_THEME, override_theme, permission_mode)



EDIT::::

I found the code. I dunno why it came up test failed. maybe because it was in the right order? Anyways, works fine on my board. No errors so far...

-X
Title: Re: Topic Ratings
Post by: Elmacik on September 02, 2005, 07:36:08 PM
test failed for ManageBoards.php  ::)
Title: Re: Topic Ratings
Post by: redone on September 03, 2005, 01:31:10 PM
If the test failed go ahead and edit the file manually using the .mod or .xml instructions provided with the mod.

:D
Title: Re: Topic Ratings
Post by: Webrunner on October 10, 2005, 03:33:31 PM
Coudl someone please update this for 1.1 RC1?
Mine fails on ManageBoards.php too
Title: Re: Topic Ratings
Post by: acoustika on October 22, 2005, 12:16:15 PM
I have installed this throug package manager, and it seems fine.
I can see in mangage boards the option to set it on, but when I go to the forum for which I have enabled it I cant find where to do the rating????
If I then go back to Manage boards the button seems Unchecked, like if it's not remembering the option???? Anyone who knows about this???
Title: Re: Topic Ratings
Post by: Xarcell on October 22, 2005, 11:35:02 PM
I can't get it to work with the managaboards.php. I tried manually altering the code, but with no luck.
Title: Re: Topic Ratings
Post by: walace on November 02, 2005, 12:47:03 PM
i can only get it to work with the default theme i would like to get it to work with all my themes but mainly my main theme Apolo!

thanks! 8)
Title: Re: Topic Ratings
Post by: Epimetheus on November 05, 2005, 11:01:30 AM
Trying to get this working for 1.1 RC1, having trouble figuring out what to change in the new ManageBoards.php file, since there literally is no such line "$_POST['count'] = isset($_POST['count']) ? '0' : '1';"
<edit file>
$sourcedir/ManageBoards.php
</edit file>

<search for>
$_POST['count'] = isset($_POST['count']) ? '0' : '1';
</search for>

<add after>
$_POST['is_rated'] = isset($_POST['is_rated']) ? '1' : '0';
</add after>


What I have found, and was the only occurance of, was "$_POST['count']":
// Checkboxes....
                $boardOptions['posts_count'] = isset($_POST['count']);
                $boardOptions['override_theme'] = isset($_POST['override_theme']);
                $boardOptions['board_theme'] = (int) $_POST['boardtheme'];
                $boardOptions['access_groups'] = array();


Should I just do a $boardOptions['is_rated'] = isset($_POST['is_rated']); ?
Title: Re: Topic Ratings
Post by: Xarcell on November 09, 2005, 12:30:18 PM
Have you tried that line of code, does it work?

-X
Title: Re: Topic Ratings
Post by: Xarcell on November 10, 2005, 07:50:59 AM
I tried it, it doesn't seem to save the "enable" part of the board admin.
Title: Re: Topic Ratings
Post by: ufuk.exe on November 28, 2005, 10:38:16 AM
Hi everyone,

Mod works just great on 1.0.5 but has problems displaying ratings column on 1.1

My request is just to recall some of the previous requests and combine some of them.

1) Would it be possible for only ADMINS to vote for the topics? but everyone, including guests to see it.

2) Instead of 5 star system, can we change it to 10 star system?

3) Could we have variable colors for each rating, if it is 1, red, 3 orange, 6 yellow, 7 green, 10 flame ?

4) Also, I see that within code Half star is coded, but not enabled, could we enable that without problems? (could replace request 2, since it will double the rating)


Thanks in advance!
Title: Re: Topic Ratings
Post by: Alexander on November 30, 2005, 11:56:21 AM
Could you please make this work with SMF 1.1 RC1? :)
Title: Re: Topic Ratings
Post by: Rasyr on December 07, 2005, 09:43:34 AM
Yes, can this Mod please be updated for 1.1 RC1.

And if possible, include the changes (perhaps as an option) that Solace was talking about back on page 4. (he changed from stars to a numerical rating of 0.00 to 10.00).

Please?  :D
Title: Re: Topic Ratings
Post by: diane_tt on December 07, 2005, 01:42:38 PM
hello - great mod and i would love to use it  :D

here's what i get when i try to apply the mod

Installing this package will perform the following actions:  Type Action Description
1. Execute Code RatingsPdb.php 
2. Execute Modification ./Sources/Display.php Failure  
3. Execute Modification ./Sources/Load.php Success
4. Execute Modification ./Sources/ManageBoards.php Success
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

--------------------------------------------------------------------------

i'm running smf 1.0.5

and these current mods are installed :
1. MySQL 5.0.12 Compatibility Update 1.0
2. PHP 4.4.0 Compatibility Update 1.0
3. TinyPortal 0.75
4. Faster Parsecode 1.09
5. ModSettings Textarea 1.04 
6. Custom BB Code 1.04 

thank you for any suggestions and help in advance. good day :)
Title: Re: Topic Ratings
Post by: Hondo on December 09, 2005, 03:25:33 AM
Please convert to 1.1 RC1

thanks Andreas
Title: Re: Topic Ratings
Post by: jdougher on December 16, 2005, 04:39:58 PM
So once you install the mod, how do you rate a topic? Not clear.
Title: Re: Topic Ratings
Post by: jdougher on December 16, 2005, 04:43:24 PM
It works with the default theme but not a custom theme. How does one get the rating drop-down with a non-default theme?
Title: Re: Topic Ratings
Post by: ufuk.exe on December 16, 2005, 05:24:20 PM
If non-default theme (your custom theme) uses the same Display.template.php AND MessageIndex.template.php  it will work
if not (if your theme comes with them...) you will just edit Display.template.php AND MessageIndex.template.php according to the default theme.. just compare..
that's what I did and it worked fine.. just follow the .xml and .mod files....

Title: Re: Topic Ratings
Post by: Hondo on December 17, 2005, 03:30:40 AM
Hi,
I´m running SMF 1.1 Rc1 and during the installation an error occurs in the file: ./Sources/ManageBoards.php

I test it with original file, not modified.

Andreas
Title: Re: Topic Ratings
Post by: Hondo on December 17, 2005, 03:49:50 AM
Example:

UPDATE {$db_prefix}boards
SET name = '$_POST[board_name]', description = '$_POST[desc]', memberGroups = '" . implode(',', $_POST['groups']) . "',

in ManageBoards.php is now in subs-board.php the following:
UPDATE {$db_prefix}boards
   SET
   " . implode(',
   ', $boardUpdates) . "

So how to convert it? The content of $_POST['is_rated'] does not exist at subs-board.php. There must be an query to the table?!

Andreas
Title: Re: Topic Ratings
Post by: diane_tt on December 17, 2005, 06:39:24 PM
this no work for smf 1.0.5 yet?

i get this error :

Package Manager - Install Actions
Install Actions for archive ratings_v1.0.3.tar.gz:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 


when i click apply mod  :'( please help me

EDIT:

i tried to install this mod myself but no luck. i'm not finding the right codes. i've already ran the ratingsdb.php on the server then i tried to install the mod myself. could someone please help me with this. i'm willing to pay for the help. please send a message to me. thank you.
Title: Topic Ratings - more features request
Post by: wallbrick on January 01, 2006, 02:57:37 PM
I'm using SMF1.0.5. and Topic Rating mod. So far so good. However, I think it's better to show poster's rating in his/her own post besides just an average rating for the whole topic. Is it possible to do so?
Thanks for the mod.
Title: Re: Topic Ratings
Post by: wallbrick on January 02, 2006, 08:53:13 PM
is it possible to show the individual rating in his/own message in the topic ?
Title: Re: Topic Ratings
Post by: pcigre on January 03, 2006, 07:59:26 AM
Will there be RC2 version?
Title: Re: Topic Ratings
Post by: L0relei on January 03, 2006, 08:39:13 AM
It would be great ! I didn't upgrade my forum because Topic Ratings is the only mod I use that doesn't work with new releases... And I don't want to loose this feature !
Please Oldiesmann ! Do you still work on this mod ?
Title: Re: Topic Ratings
Post by: Sledgemoto on January 05, 2006, 10:52:16 AM
Another vote for an update to RC2. Would make a nice addition to the forum
Title: Re: Topic Ratings
Post by: Webrunner on January 06, 2006, 02:19:36 PM
And another one.
Actually this is keeping me from updating :(
Title: Re: Topic Ratings
Post by: ArkServer on January 06, 2006, 05:40:11 PM
not 1.1rc1 too?:(
Title: Re: Topic Ratings
Post by: evillair on January 06, 2006, 10:10:43 PM
Great MOD, I love it.

Maybe and idea for the next update would be an option to display the ranking on the boards vew.
Here's an example of what I mean: http://www.pixolator.com/zbc/forumdisplay.php?f=2

Thanks again.
Title: Re: Topic Ratings
Post by: L0relei on January 07, 2006, 10:26:40 AM
I don"t understand, it's already displayed by default in the message index of a board...
Title: Re: Topic Ratings
Post by: evillair on January 07, 2006, 11:46:45 AM
My bad, it works with the default theme but wasn\t working for the theme I was using, I edited by hand my theme and it works great.


[EDIT]

Is there an easy way to add how many people voted in brackets?

Title: Re: Topic Ratings
Post by: evillair on January 12, 2006, 07:48:10 PM
Does anyone know how I could add how many people voted in brackets? next to the stars?

I doing something based on how many people voted on a specific thread (reward system) but I would need to know how many people voted to get a better idea of the actual ranking.

Any help would be appreciated.
Title: Re: Topic Ratings
Post by: Xarcell on January 15, 2006, 03:40:40 PM
I would like to see Rc2 as well. he left me a message awhile back saying he was working on it for RCone, but was too busy finish it at the moment. he said he added new features ( i think it was how many votes) but not quite sure what they are.
Title: Re: Topic Ratings
Post by: evillair on January 15, 2006, 10:07:32 PM
Is there a way I can change this code to let me specify a different *.gif for each rating? (IE: a 1 rating = 1.gif, a 2 rating = 2.gif etc)

MessageIndex.template.php
if ($context['show_rating'])
{
echo '
<td class="windowbg" valign="middle" width="8%" align="center">';
if ($topic['rating']['empty'] == 1)
echo '';
else
{
for ($i = 0; $i < $topic['rating']['whole']; $i++)
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
//!!! Should have a half star!
if (!empty($topic['rating']['half']))
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
}
echo '
</td>';
}


I know nothing of php but I'm trying to learn  :-\
I 'think' it's this part of the code from MessageIndex.template.php that controls this.

If I can't get a rating count I'd like to try to get a different image per rating. :)

Title: Re: Topic Ratings
Post by: L0relei on January 16, 2006, 03:48:05 AM
That's quite simple. First of all, upload the images *.gif in the directory for images of your theme. For example, you can do something like that :
if ($context['show_rating'])
{
echo '
<td class="windowbg" valign="middle" width="8%" align="center">';
if ($topic['rating']['empty'] == 1)
echo '';
else
{
$totrating = $topic['rating']['whole'];
if (!empty($topic['rating']['half'])) $totrating = $totrating + 1;

if ($totrating == 0) echo '<img src="', $settings['images_url'], '/0.gif" alt="*" border="0" />';
if ($totrating == 1) echo '<img src="', $settings['images_url'], '/1.gif" alt="*" border="0" />';
if ($totrating == 2) echo '<img src="', $settings['images_url'], '/2.gif" alt="*" border="0" />';
if ($totrating == 3) echo '<img src="', $settings['images_url'], '/3.gif" alt="*" border="0" />';
if ($totrating == 4) echo '<img src="', $settings['images_url'], '/4.gif" alt="*" border="0" />';
if ($totrating == 5) echo '<img src="', $settings['images_url'], '/5.gif" alt="*" border="0" />';

}
echo '
</td>';
}
Title: Re: Topic Ratings
Post by: evillair on January 16, 2006, 08:08:02 AM
Thank you!  ;D
Title: Re: Topic Ratings
Post by: ghostfreak on January 16, 2006, 08:29:40 AM
A vote for a RC2 version as well :)
Title: Re: Topic Ratings
Post by: RockTheRoad on January 20, 2006, 11:27:11 AM
Another vote for RC2 version...  8)
Title: Re: Topic Ratings
Post by: evolus on January 21, 2006, 02:17:57 PM
Another vote ;)
Title: Re: Topic Ratings
Post by: Gobo on February 01, 2006, 08:55:57 PM
i am voting on behalf of 5 people

so 5 more votes :D (for RC2)

lol
Title: Re: Topic Ratings
Post by: evillair on February 05, 2006, 09:33:02 PM
I can't get this to install with a clean install of 1.0.6, anyone else has this issue?

I tried installing both versions...
The 1.02 version gives me an error with the Display.php file.
The 1.03 version won't install, I get this error - The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

[fixed] I manualy configured the Display.php file. Had a hard time since the code was different and the search/replace wasn't a help. Works though.

Title: Re: Topic Ratings
Post by: Teme on February 06, 2006, 02:28:27 PM
Oh.. people are voting for RC2 version. I want to see it working at RC2 too.

Teme
Title: Re: Topic Ratings
Post by: TANDIONO.COM on February 07, 2006, 08:33:24 AM
SMF Version: SMF 1.0.6
I get Display.php and ManageBoards.php fail when try to install topic rating mods.

1. Execute Code RatingsPdb.php 
2. Execute Modification ./Sources/Display.php Failure
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


Is there anyway that i can do? Thanks
Title: Re: Topic Ratings
Post by: SleePy on February 07, 2006, 07:24:59 PM
RC2 VERSION:
Ok. I got permission from Oldiesmann to update his mod. He is kinda busy right now and doesn't have the time to update his mods.

Now. Sadly to say the only thing i haven't worked into the RC2 update of this is half stars... for one smf by default doesn't have half stars and two the code Oldiesmann was using wasn't working at all doing half stars. Those that want to look at the code for me and see what we can do to fix it and make it work i would gladly appreciate it.

Im calling this a beta because i only tested it on my test site on my local computer and webserver. So i do not know what problems you guys will experience. So if you got test sites go ahead and try it out and see what problems you get.
http://lordsofclantribe.com/SleePys/Topic_Rating_RC2_beta.tar.gz

Remember you need to go to Boards -> [A Board Name] Modify -> and add a check mark next to "Enable Ratings on this Board"
You then should see the mod working in that board.
Title: Re: Topic Ratings
Post by: Webrunner on February 08, 2006, 03:51:26 AM
SleePY, you're a hero!  :D
Title: Re: Topic Ratings
Post by: Webrunner on February 08, 2006, 03:57:27 AM
Something going wrong in Subs-Boards ...

   Type     Actie     Omschrijving
1.    Voer code uit    RatingsPdb.php    
2.    Voer aanpassing uit    .Sources/Display.php    Succes
3.    Voer aanpassing uit    .Sources/Load.php    Succes
4.    Voer aanpassing uit    .Sources/ManageBoards.php    Succes
5.    Voer aanpassing uit    .Sources/Subs-Boards.php    Test mislukt
6.    Voer aanpassing uit    .Sources/Subs-Members.php    Succes
7.    Voer aanpassing uit    .Sources/MessageIndex.php    Succes
8.    Voer aanpassing uit    .Sources/RemoveTopic.php    Succes
9.    Voer aanpassing uit    .Themes/default/Display.template.php    Succes
10.    Voer aanpassing uit    .Themes/default/ManageBoards.template.php    Succes
11.    Voer aanpassing uit    .Themes/default/MessageIndex.template.php    Succes
12.    Voer aanpassing uit    .Themes/default/languages/Modifications.english.php    Succes
Title: Re: Topic Ratings
Post by: SleePy on February 08, 2006, 06:07:29 PM
ok give it a try now
http://lordsofclantribe.com/SleePys/Topic_Rating_RC2_beta2.tar.gz
Use the old version to uninstall it and this version to install. since its a beta im not trying to work on making it work between them. if you don't want to lose any current ratings you need to uncompress this and take out the Ratingsdb.php file. then compress it again and upload to your site and it should be fine.

Also i need to let you guys know a few bugs that are happening that im working on trying to find out why and how to fix.
1. Some Reason on my offical site were i installed it to test it i can't add it to the modify boards. Some reason its not being saved into the mysql database. but my test sites which are fresh installs of rc2 all work fine.. no clue why on one they do and the other do not.
- Topic_Rating_RC2_beta2 Fixes this issue. It was just a simple little typo on my part of making it work with rc2.

2. if a Topic Rating is given a 5 (the highest) the MessageIndex (Page that shows all the topics for a board) shows N/A instead of 5 stars. Must be something in Oldiesmann's coding as i never changed anything to do that for 5 stars.
- Was able to fix this. Allot of code was changed on how it is read and saved to fix this though.
--Edit--
I fixed problem 1. now onto problem 2. This also fixes a bug were there was undefined indexes going though the error log
Edit2: redownload the 2b to fix problem 2. i also fixed some mini bugs i found.
Title: Re: Topic Ratings
Post by: Gary on February 09, 2006, 08:08:48 PM
The thing installed perfectly,

Quote
1.     Execute Code     RatingsPdb.php     
2.    Execute Modification    ./Sources/Display.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
6.    Execute Modification    ./Sources/Subs-Members.php    Test successful
7.    Execute Modification    ./Sources/MessageIndex.php    Test successful
8.    Execute Modification    ./Sources/RemoveTopic.php    Test successful
9.    Execute Modification    ./Themes/default/Display.template.php    Test successful
10.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
11.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

But I'm not seeing

Remember you need to go to Boards -> [A Board Name] Modify -> and add a check mark next to "Enable Ratings on this Board"
Title: Re: Topic Ratings
Post by: SleePy on February 09, 2006, 08:11:11 PM
if you do not use the default theme you will need to either make the changes that this mod does to the default theme.
I worked with the default theme while making this for rc2 so if you are using anything other it will have to be hand coded in. i haven't worked out classic or Babylon yet. im still working out the bugs from the update.
Title: Re: Topic Ratings
Post by: Gary on February 09, 2006, 08:16:00 PM
I was using the Default while doing it.

EDIT: Silly me. I must have clicked on another item on the final stage of installation. So it didnt install after all. <slaps forehead>

Except now I get;

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /****/****/****/****/Sources/MessageIndex.php on line 630

When viewing a board.
Title: Re: Topic Ratings
Post by: SleePy on February 10, 2006, 12:40:42 AM
thought i fixed that...
anways:

Edit: Sources/MesssageIndex.php
Find:
'views' => $row['numViews']
Replace:
'views' => $row['numViews'],

I missed a comma at one time while adding it to the topic array and thought i fixed it in the package.. it is showing fixed... hmmm
http://lordsofclantribe.com/SleePys/Topic_Rating_RC2_beta2c.tar.gz
try that one and it should work. Also it fixed a a bug of another undefined index that just found today.
Title: Re: Topic Ratings
Post by: Gary on February 10, 2006, 08:39:45 AM
The link comes up 404.
Title: Re: Topic Ratings
Post by: SleePy on February 10, 2006, 06:05:50 PM
srry i did that before going to bed and made the post before i uploaded it... my ftp program crashed and didn't upload it. it is there now.
Title: Re: Topic Ratings
Post by: Gary on February 10, 2006, 07:14:16 PM
No Luck;

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /****/****/****/****/Sources/MessageIndex.php on line 630
Title: Re: Topic Ratings
Post by: SleePy on February 10, 2006, 07:38:23 PM
that should be it....

hmmm... odd the beta2c didn't get the fixed code into it... how odd.

http://lordsofclantribe.com/SleePys/Topic_Rating_RC2_beta2d.tar.gz

That is 100% should work. and not give you that error.

Thanks for being brave and downloading the beta and trying.
Title: Re: Topic Ratings
Post by: Webrunner on February 11, 2006, 10:24:37 AM
All scores i enter show up as N/A  :(
Title: Re: Topic Ratings
Post by: L.G.S on February 11, 2006, 10:39:39 AM
Can this be made for 1.1 RC2?
Title: Re: Topic Ratings
Post by: Gary on February 11, 2006, 12:51:35 PM
Thats what the guy is trying to do.

Again, I get a 404.
Title: Re: Topic Ratings
Post by: SleePy on February 11, 2006, 01:37:56 PM
Quote from: Webrunner on February 11, 2006, 10:24:37 AM
All scores i enter show up as N/A  :(

that is a bug i got to find out.. im not sure why but it does do that...

Quote from: AwwLilMaggie on February 11, 2006, 12:51:35 PM
Thats what the guy is trying to do.

Again, I get a 404.

send me your MessageIndex.php in your Sources so i can look at it... this shouldn't be happening..
Title: Re: Topic Ratings
Post by: L.G.S on February 11, 2006, 01:42:18 PM
Quote from: AwwLilMaggie on February 11, 2006, 12:51:35 PM
Thats what the guy is trying to do.

Again, I get a 404.

Sorry, couldn't make it out through the coding ;)
Title: Re: Topic Ratings
Post by: Gary on February 11, 2006, 01:43:00 PM
Okay. PM me your email, or contact me on AIM: AwwLilMaggie
Title: Re: Topic Ratings
Post by: muslimways on February 16, 2006, 04:32:22 AM
Quote from: L.G.S on February 11, 2006, 10:39:39 AM
Can this be made for 1.1 RC2?

I am trying to install this MOD, cos I really need a topic rating function, but its not working, and I also have 1.1 RC2 version of SMF, please help!!!!!!!!!1
Title: Re: Topic Ratings
Post by: perplexed on February 19, 2006, 11:27:10 AM
I used to have this on a previous version so I tried to install the file from the previous page now for RC2, but I got the following errors.

Installations actions for "Topic Ratings":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code RatingsPdb.php 
2. Execute Modification ./Sources/Display.php Test successful
3. Execute Modification ./Sources/Load.php Test successful
4. Execute Modification ./Sources/ManageBoards.php Test successful
5. Execute Modification ./Sources/Subs-Boards.php Test failed
6. Execute Modification ./Sources/Subs-Members.php Test successful
7. Execute Modification ./Sources/MessageIndex.php Test failed
8. Execute Modification ./Sources/RemoveTopic.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test successful
10. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
11. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful

I have other mods installed so I dont know what might be causing the problem, hope this helps
Title: Re: Topic Ratings
Post by: SleePy on February 19, 2006, 04:49:43 PM
well since i don't know the other mods check which mods modified the files that are failing and then either uninstall them or manually edit it yourself.
Title: Re: Topic Ratings
Post by: perplexed on February 19, 2006, 07:48:39 PM
lol I got 27 mods installed already and tiny portal but I dont want to uninstall them. Im not familiar with editing the files either so I guess I'll have to leave it for now

~thanks
Title: Re: Topic Ratings
Post by: trenchteam on February 20, 2006, 04:33:56 AM
I attempted to be mr. hero and manual install on 1.1rc2, but it seems there have been some big changes in the SOURCE files.  I couldn't find half the things that needed to be changed.
Title: Re: Topic Ratings
Post by: Gobo on February 20, 2006, 07:26:52 AM
Well Mr. Hero you should be proud of yourself! I was going to try a manual install as well - bt thanks to you now 100's of people like me will know not to attempt it.

Thanks and here is your medal --> O
Title: Re: Topic Ratings
Post by: evillair on February 20, 2006, 03:34:36 PM
Quote from: Webrunner on February 11, 2006, 10:24:37 AM
All scores i enter show up as N/A  :(

I had the same thing... I fixed it though...

In Sources/MessageIndex.php

line 594 and 595 add a "," (no quotes) at the end of the lines.

           'views' => $row['numViews'],
            'rating' => $row['rating'],

I was getting a parse error before too @ line 594 so I added a , then I was getting the N/A untill I added a , at line 595.

Change the rating for it to update.
I installed the http://lordsofclantribe.com/SleePys/Topic_Rating_RC2_beta2d.tar.gz by SleePy on this page.
I installed a clean smf RC2 and only have TinyPortal v.0.8.6 installed as MOD's.

Works for me on my home machine. W000t!

Does this work for everyone else?

Thank you SleePy and Oldiesmann! :D


edit--->

I was looking in the forum error log and found and error, to fix this do the following:

Sources/Subs-Boards.php
Line 1004, 1005:

Look for:

if (isset($boardOptions['permission_mode']) && empty($modSettings['permission_enable_by_board']))
$boardUpdates[] = 'is_rated = ' . $_POST[is_rated];


Change to:

if (isset($boardOptions['permission_mode']) && empty($modSettings['permission_enable_by_board']))
$boardUpdates[] = 'is_rated = ' . $_POST['is_rated'];


Changed [is_rated] to ['is_rated']

edit 2-->

A rating of 5 gives me a "N/A". The other rating work fine.

:(



Title: Re: Topic Ratings
Post by: Oldiesmann on February 23, 2006, 03:28:17 PM
Give me about 20 minutes and there should be an "official" RC2 version. I've got some free time right now so I'm going to go ahead and update this one because it's the easiest one to update :)
Title: Re: Topic Ratings
Post by: ghostfreak on February 23, 2006, 03:46:28 PM
Excellent :)
Title: Re: Topic Ratings
Post by: Oldiesmann on February 23, 2006, 04:09:28 PM
Ok... So it took me 40 minutes instead of 20 :P

Updated the mod for RC2. Let me know if you have any problems.
Title: Re: Topic Ratings
Post by: Gary on February 23, 2006, 04:15:37 PM
I got;

1.     Execute Code     RatingsPdb.php     
2.    Execute Modification    ./Sources/Display.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./$sourcdeir/Subs-Boards.php    File not found
6.    Execute Modification    ./Sources/Subs-Members.php    Test successful
7.    Execute Modification    ./Sources/MessageIndex.php    Test failed
8.    Execute Modification    ./Sources/RemoveTopic.php    Test successful
9.    Execute Modification    ./Themes/default/Display.template.php    Test successful
10.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
11.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

When installing on RC2

./$sourcdeir/Subs-Boards.php Is obviously a typo $sourcedir/Subs-Boards.php :P it should be.
Title: Re: Topic Ratings
Post by: evillair on February 23, 2006, 05:51:30 PM
In ratings_v1.03_rc2.mod:

<search for>
   $context['name'] = $row_board['name'];
   $context['description'] = $board_info['description'];
</search for>

Should be:

<search for>
   $context['name'] = $board_info['name'];
   $context['description'] = $board_info['description'];
</search for>


Thank you! :)

Title: Re: Topic Ratings
Post by: Gobo on February 23, 2006, 08:16:42 PM
so is it safe now to use with RC2 ?
Title: Re: Topic Ratings
Post by: evillair on February 23, 2006, 09:14:12 PM
With the changes mentioned by AwwLilMaggie and the changes I did above, it works perfectly for me on a clean SMF 1.1 RC2.
No problems found yet.
Title: Re: Topic Ratings
Post by: trenchteam on February 24, 2006, 06:06:43 AM
Im having the EXACT same errors Aww is having.
Title: Re: Topic Ratings
Post by: SleePy on February 24, 2006, 06:56:46 PM
Quote from: Oldiesmann on February 23, 2006, 03:28:17 PM
Give me about 20 minutes and there should be an "official" RC2 version. I've got some free time right now so I'm going to go ahead and update this one because it's the easiest one to update :)

thanks oldiesmann... i was getting really mad at the errors cuss i couldn't get them to fix without removing some of the features.
Title: Re: Topic Ratings
Post by: ArkServer on February 26, 2006, 08:13:00 AM
Not unique table/alias: 'lr'
File: \Sources\Display.php
Title: Re: Topic Ratings
Post by: trenchteam on March 07, 2006, 06:34:36 AM
works well now that I applied the changes.
Title: Re: Topic Ratings
Post by: balzizras on March 10, 2006, 04:07:13 AM
Quote from: Gary G. on February 23, 2006, 04:15:37 PM
I got;

1.     Execute Code     RatingsPdb.php     
2.    Execute Modification    ./Sources/Display.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./$sourcdeir/Subs-Boards.php    File not found
6.    Execute Modification    ./Sources/Subs-Members.php    Test successful
7.    Execute Modification    ./Sources/MessageIndex.php    Test failed
8.    Execute Modification    ./Sources/RemoveTopic.php    Test successful
9.    Execute Modification    ./Themes/default/Display.template.php    Test successful
10.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
11.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

When installing on RC2

./$sourcdeir/Subs-Boards.php Is obviously a typo $sourcedir/Subs-Boards.php :P it should be.


I'm getting the same error. Can anyone tell me how to fix it?

Thanks
Title: Re: Topic Ratings
Post by: Bailz on March 15, 2006, 06:01:11 PM
I'm trying to install this on SMF 1.0.6 but twice I've got the same error (The package you are trying to download or install is either corrupt or not compatible with this version of SMF.) after downloading the file twice to ensure it wasn't corrupt.

Any idea what I can do?
Title: Re: Topic Ratings
Post by: CeZa on March 16, 2006, 10:15:45 AM
5. Değişiklik Yapılacak ./$sourcdeir/Subs-Boards.php Dosya bulunamadı  
6. Değişiklik Yapılacak ./Sources/Subs-Members.php Test Başarılı  
7. Değişiklik Yapılacak ./Sources/MessageIndex.php Test Başarısız

RC2, default themes ::)
Title: Re: Topic Ratings
Post by: CeZa on March 16, 2006, 10:20:05 AM
Quote from: SleePy on February 10, 2006, 07:38:23 PM
that should be it....

hmmm... odd the beta2c didn't get the fixed code into it... how odd.

http://lordsofclantribe.com/SleePys/Topic_Rating_RC2_beta2d.tar.gz

That is 100% should work. and not give you that error.

Thanks for being brave and downloading the beta and trying.

link don't operate ::)
Title: Re: Topic Ratings
Post by: vkot on March 22, 2006, 05:09:09 PM
I use the pakage manager to install the mod.
Everything goes well, the manager terminates successfully, and I see the changes that were made in the files and database.
The "enable topic rating" checkbox in the board administration is checked by default.

...But I can't use the mod, I don't see anything of ths mod when I browse the board index and threads. And I don't even see any of the mod's html code when I view the page source of the board index & threads. I guess there's some error in a check-for-rating-enabled somewhere... and
then it does not display any code.

Maybe I'm missing a simple thing... I already spent much time , please help.
Title: Re: Topic Ratings
Post by: tianto on April 05, 2006, 04:13:15 PM
Hi....where I can get 1.1rc2 version of this mod..??

Thanks in advance..!

Sebastian
www.dodge-tech.com.ar
Title: Re: Topic Ratings
Post by: Oldiesmann on April 06, 2006, 02:08:49 PM
For those who were having problems installing this on 1.1RC2 - there was a typo in the mod file ($sourcdeir instead of $sourcedir), which has now been fixed. I also updated the pacakge to install on 1.0.7...
Title: Re: Topic Ratings
Post by: L.G.S on April 06, 2006, 03:37:35 PM
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    RatingsPdb.php    
2.    Execute Modification    ./Sources/Display.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
6.    Execute Modification    ./Sources/Subs-Members.php    Test successful
7.    Execute Modification    ./Sources/MessageIndex.php    Test failed
8.    Execute Modification    ./Sources/RemoveTopic.php    Test successful
9.    Execute Modification    ./Themes/default/Display.template.php    Test successful
10.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
11.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful


Seems to be a problem with Messageindex??




EDIT:

OK i have it installed, I see the checkbox in modify boards but how do I rate??? I have looked all over topics for the rating buttons and I have found nothing
Title: Re: Topic Ratings
Post by: perplexed on April 10, 2006, 10:12:55 AM
I downloaded the new mod just now and I get errors as follows

Installations actions for "Topic Ratings":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code RatingsPdb.php 
2. Execute Modification ./Sources/Display.php Test successful
3. Execute Modification ./Sources/Load.php Test successful
4. Execute Modification ./Sources/ManageBoards.php Test successful
5. Execute Modification ./Sources/Subs-Boards.php Test successful
6. Execute Modification ./Sources/Subs-Members.php Test successful
7. Execute Modification ./Sources/MessageIndex.php Test failed
8. Execute Modification ./Sources/RemoveTopic.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test successful
10. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
11. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful


Im on smf 1.1rc2
Title: Re: Topic Ratings
Post by: encarnizado on April 19, 2006, 10:42:12 PM
yeah ive got the same errors
first the messageindex was corrupt, then we added the commy, corrupt, downloaded an updated, all worked fine but when i want to manage boards there comes

QuoteParse error: syntax error, unexpected ',', expecting ')' in /usr/export/www/vhosts/funnetwork/hosting/zycharo/Sources/Subs-Boards.php on line 1512
Title: Re: Topic Ratings
Post by: rmorris on April 21, 2006, 11:44:36 AM
First: props to all the devs that made this mod from scratch.

Second: I've created an updated version of this mod for 1.1RC2 -- hopefully it will work for all of you that were dying to use this mod but couldn't get it to work.  And since I'm such a Really Super Nice Guy©, I also added a half-star.gif graphic and tweaked the code to use it when appropriate.

> download page < (http://emthree.org/smfmod_topicrating.html)
Title: Re: Topic Ratings
Post by: L.G.S on April 21, 2006, 02:47:25 PM
Thanks!

Although I get this when trying to view a topic:

Not unique table/alias: 'lr'
File: /home/ronluca/public_html/board/Sources/Display.php
Line: 237
Title: Re: Topic Ratings
Post by: L.G.S on April 21, 2006, 02:58:29 PM
Cool i did it!

one thing, which file is changed to edit the options on Boards > Modify??

Because from the package manager I have now got 3 options for rating, I have uploaded a fresh edited version of subs-boards and manage boards but nothing changed
Title: Re: Topic Ratings
Post by: rmorris on April 21, 2006, 04:45:32 PM
Quote from: L.G.S on April 21, 2006, 02:58:29 PM
one thing, which file is changed to edit the options on Boards > Modify??

Because from the package manager I have now got 3 options for rating, I have uploaded a fresh edited version of subs-boards and manage boards but nothing changed

Not sure I understand what you're saying -- are you saying that you have 3 "Topic Rating" mods available to install?  Or that you have 3 "enable rating" options on you board management view in Admin? 

A screenshot might be the quickest way to go :)
Title: Re: Topic Ratings
Post by: Raffaele on April 21, 2006, 06:18:07 PM
Excellent work! :D
Title: Re: Topic Ratings
Post by: L.G.S on April 21, 2006, 06:36:54 PM
Here:

http://www.tactical-illusion.com/files/store/untitled.GIF
Title: Re: Topic Ratings
Post by: rmorris on April 21, 2006, 09:52:36 PM
Quote from: L.G.S on April 21, 2006, 06:36:54 PM
Here:

http://www.tactical-illusion.com/files/store/untitled.GIF

Whoa :D  I have no idea how that would have happened.  All I can imagine is that maybe you installed the mod multiple times without ever uninstalling it ..?  If so, I would try uninstalling all instances of it (until it's gone -- however many uninstalls that takes) and then install it once. 
Title: Re: Topic Ratings
Post by: ArkServer on April 22, 2006, 04:58:30 AM
Although i likethe mod i think something is wrong.. i install/uninstalled the mod a few times because it didn't work and now it works but not 100%..

(http://arkserver.servehttp.com/help.jpg)
Title: Re: Topic Ratings
Post by: L.G.S on April 22, 2006, 06:24:53 AM
Quote from: rmorris on April 21, 2006, 09:52:36 PM
Quote from: L.G.S on April 21, 2006, 06:36:54 PM
Here:

http://www.tactical-illusion.com/files/store/untitled.GIF

Whoa :D  I have no idea how that would have happened.  All I can imagine is that maybe you installed the mod multiple times without ever uninstalling it ..?  If so, I would try uninstalling all instances of it (until it's gone -- however many uninstalls that takes) and then install it once. 

As I said I started with the 2 board files from a fresh SMF install and edited...still the same
Title: Re: Topic Ratings
Post by: perplexed on April 22, 2006, 11:56:43 AM
seems to work on my testboard but I get the following in the forum error log:

8: Undefined index: is_rated
File: /home/mysite/public_html/testforum/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 413
Title: Re: Topic Ratings
Post by: b0bby on April 22, 2006, 06:11:53 PM
rmorris your mod is crap its buggy as hell, and when you install this mod you cant uninstall it.
DONT DOWNLOAD HIS MOD IT WILL F*CK UP YOUR BOARD

*good thing i always back my sh*t up  ;D
Title: Re: Topic Ratings
Post by: rmorris on April 22, 2006, 08:09:54 PM
Quote from: b0bby on April 22, 2006, 06:11:53 PM
rmorris your mod is crap its buggy as hell, and when you install this mod you cant uninstall it.
DONT DOWNLOAD HIS MOD IT WILL F*CK UP YOUR BOARD

*good thing i always back my sh*t up  ;D

Sorry you had issues Bobby, but it is standard practice to "back your sh*t up" before installing a mod -- and I would say all the more so when dealing with a ghetto-modded mod like this one :)  I'll look into the problems everyone seems to be having and see if I can figure out what the issues are ...but no promises.
Title: Re: Topic Ratings
Post by: rmorris on April 22, 2006, 08:57:59 PM
Alright -- I just conducted the following baseline test:

I don't know what to tell those of you having trouble, other than "it worked for a fresh install of the latest 1.1rc2."  I know that won't make b0bby any happier, but I can't do much more at this point.  However, since I hate the prospect of sounding like a support guy that just says "works for me" and throws his hands up, if those of you having issues could report:
..then I and anyone else interested in this mod will have a better shot at helping you get it working on your forum.

Again, sorry to those of you having issues.  I'll do what I can to help out.
Title: Re: Topic Ratings
Post by: ArkServer on April 23, 2006, 07:13:24 AM
Quote from: b0bby on April 22, 2006, 06:11:53 PM
rmorris your mod is crap its buggy as hell, and when you install this mod you cant uninstall it.
DONT DOWNLOAD HIS MOD IT WILL F*CK UP YOUR BOARD

*good thing i always back my sh*t up  ;D

worked for me:
http://arkserver.servehttp.com/forum/index.php?board=374.0

login as test//test and try to rate:)
Title: Re: Topic Ratings
Post by: andreasa on April 24, 2006, 04:48:24 AM
The alpha1 version is working fine with the default theme.
But if you try to use it with "Babylon" them for esample you don't see nothing, also in the board.
Instead with "Aim" theme you can see the rate on the board index but you can't rate the topic.

Anyone know how to solve this problem?
Thank you
Title: Re: Topic Ratings
Post by: perplexed on April 24, 2006, 05:42:46 AM
andreasa:
usually mods are written to work with the default theme only and only makes changes in that theme, then you will have to make it work with the theme you use.  There is a tutorial here somewhere on 'how to make mods work with themes'   :)


RMorris:  I have this on my testforum and it works fine so far.  I have the half star.gif installed too.  Someone seems to have rated a thread with 3 1/2 stars but there is not a half star option in the ratings dropdown list so how do you rate by 1/2 star  eg how do I rate a thread 4 1/2 if the only option is 1,2,3,4,5 ?




Title: Re: Topic Ratings
Post by: rmorris on April 24, 2006, 10:23:08 AM
Quote from: perplexed on April 24, 2006, 05:42:46 AM
RMorris:  I have this on my testforum and it works fine so far.  I have the half star.gif installed too.  Someone seems to have rated a thread with 3 1/2 stars but there is not a half star option in the ratings dropdown list so how do you rate by 1/2 star  eg how do I rate a thread 4 1/2 if the only option is 1,2,3,4,5 ?
There's no way (currently) to directly assign something a "half" rating -- the topic will show up with a half rating when it's aggregate rating is a "half".  So if two people ranked a topic and one gave it a 3 and one gave it a 4, the aggregate ranking will be 3.5, which would result in the half-star graphic being used to represent the 0.5.
Title: Re: Topic Ratings
Post by: perplexed on April 24, 2006, 10:35:18 AM
well duh me lol that makes sense, I didnt think of that lol  I understand, thats quite cool feature :)

*gets more coffee*
Title: Re: Topic Ratings
Post by: Oldiesmann on April 24, 2006, 05:11:31 PM
Sorry for taking so long to deal with these issues - I spent the past couple of weeks working on upgrading the Redirection Boards mod. Now that I've pretty much finished that (except for fixing any new bugs that pop up), I'll work on fixing this one.
Title: Re: Topic Ratings
Post by: rmorris on April 24, 2006, 11:48:48 PM
Quote from: Oldiesmann on April 24, 2006, 05:11:31 PM
Sorry for taking so long to deal with these issues - I spent the past couple of weeks working on upgrading the Redirection Boards mod. Now that I've pretty much finished that (except for fixing any new bugs that pop up), I'll work on fixing this one.

Phew! -- the pros have shown back up.  It's all yours, Oldiesmann :)
Title: Re: Topic Ratings
Post by: Str82u on April 27, 2006, 09:55:01 AM
Quote from: ArkServer on April 23, 2006, 07:13:24 AM
Quote from: b0bby on April 22, 2006, 06:11:53 PM
rmorris your mod is crap its buggy as hell, and when you install this mod you cant uninstall it.
DONT DOWNLOAD HIS MOD IT WILL F*CK UP YOUR BOARD

*good thing i always back my sh*t up  ;D

worked for me:
http://arkserver.servehttp.com/forum/index.php?board=374.0

login as test//test and try to rate:)

Thanks  for letting me checkit out, butI didn't have to log in.
Title: Re: Topic Ratings
Post by: encarnizado on April 27, 2006, 07:52:32 PM
hey, i have installed the updated mod und all were succesfull but
i have a german theme and the option seems to be invisible

(http://www.directupload.net/images/060428/Ugm9ZLlL.jpg)
does anyone know what i could do ?
Title: Re: Topic Ratings
Post by: rmorris on April 28, 2006, 12:57:06 AM
encarnizado - quoting an earlier post:
Quote
usually mods are written to work with the default theme only and only makes changes in that theme, then you will have to make it work with the theme you use.  There is a tutorial here somewhere on 'how to make mods work with themes'

I don't have a link to the tutorial the poster was speaking of, but I can verify this information: the mod install will only modify the default SMF theme.  If you want to just be sure the install worked, temporarily set your theme to the SMF default and see if the mod works -- if so, then you'll need to manually code the source file changes to the theme that you want the mod to work with.

updated: found the tutorial/forum post (http://www.simplemachines.org/community/index.php?topic=34526.msg255715#msg255715) -- hope it helps
Title: Re: Topic Ratings
Post by: Søren Bjerg on April 28, 2006, 05:38:12 AM
I seem to have a problem with ./index.php?action=manageboards;sa=board;boardid={id} not properly detecting whether or not a board should have the Ratings enabled.

Boards with the mod disabled have the tick in the checkbox, and boards with the mod enabled doesn't, so you have to tick/untick the box every time you make changes to a board.
Title: Re: Topic Ratings
Post by: L.G.S on April 28, 2006, 11:04:23 AM
For some reason where it says RATING in the topic index it isnt the same image as REPLIES, VIEWS etc

how can i change that
Title: Re: Topic Ratings
Post by: jbhardman on May 01, 2006, 01:42:12 PM
Every time I try and install this mod I get this error:

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Can someone help me out?
Title: Re: Topic Ratings
Post by: Hondo on May 01, 2006, 01:58:13 PM
Hi,
this mod don´t work with SMF 1.1 Rc1 because the modifications in manageBoards are wrong.
The part from manageBoards is now splitted in manageBoards and subs-boards.php so for this part the mod for Rc2 is the right.
So it only can installed manual.

Andreas
Title: Re: Topic Ratings
Post by: fortify on May 01, 2006, 05:13:53 PM
Is there a guide for manual install of this mod???
Title: Re: Topic Ratings
Post by: Hondo on May 01, 2006, 05:28:00 PM
Hi,
I installed the mod manual and I do the modifications from the mod file version 1.3 up to the point where the manageBoards.php should modify. From this I use the mod file version 1.3Rc2 (but not all search results are exactly like in the mod file).
But it is only search an add or replace, not realy a problem to modify.
You see the mod working on this site: www.mkportal-support.de.

Andreas
Title: Re: Topic Ratings
Post by: Hondo on May 02, 2006, 05:28:01 PM
Hi,
has somebody has a half star image for me?

Andreas
Title: Re: Topic Ratings
Post by: L.G.S on May 02, 2006, 05:31:31 PM
I think he said it's attached in the ZIP in his first posts
Title: Re: Topic Ratings
Post by: Hondo on May 02, 2006, 05:37:46 PM
No it isn´t.

Andreas
Title: Re: Topic Ratings
Post by: Gary on May 02, 2006, 06:59:44 PM
Give me a sec and I'll get one up for you.

EDIT: Here you go, attached. (It already has transparency applied)

-AwwLilMaggie
Title: Re: Topic Ratings
Post by: Hondo on May 03, 2006, 01:55:58 AM
Thanks, thats it :)

Andreas
Title: Re: Topic Ratings
Post by: L.G.S on May 03, 2006, 09:18:21 AM
Quote from: L.G.S on April 28, 2006, 11:04:23 AM
For some reason where it says RATING in the topic index it isnt the same image as REPLIES, VIEWS etc

how can i change that

please
Title: Re: Topic Ratings
Post by: Hondo on May 03, 2006, 10:13:54 AM
Hi,
my suggestion for this mod is not having an extra tablerow where all is displayed N/A because it looks terrible for me. Have a look like vBulletin displays the stars. in the same row where the topic description is. So you only see stars where they are and not N/A.
You can see it on my site e.g. here: http://www.access-o-mania.de/forum/index.php?board=22.0

Andreas

BTW: how is it possible to get the informations how often a topic is rated and what ist total rate (e.g. 3.71  or so)? Because a * as alt-text is not realy interested
Title: Re: Topic Ratings
Post by: URPG on May 04, 2006, 05:41:02 AM
Any new/improved version vor RC2?

P.S.: Hi Andreas!
Title: Re: Topic Ratings
Post by: Hondo on May 04, 2006, 05:47:51 AM
Hallo,
wieso? es gibt doch eine Version für Rc2? Aber eine Installation mit dem Package Manager wird imo nicht funktionieren, also manuell installieren.

Andreas
Title: Re: Topic Ratings
Post by: URPG on May 04, 2006, 05:53:04 AM
Aber die zeigt immernoch überall wo nicht bewertet wird das N/A an oder?
Title: Re: Topic Ratings
Post by: Hondo on May 04, 2006, 05:55:37 AM
ich poste nachher mal ein hack dazu wie es funktioniert.
--
I will post a hack how to display the stars (with count of ratings and total ratings) in the row where the topic description is soon.

Andreas
Title: Re: Topic Ratings
Post by: Hondo on May 04, 2006, 06:54:02 AM
One error-fix for the mod Rc2 is this:
Search: $context['name'] = $row_board['name'];
Replace: $context['name'] = $board_info['name'];

Andreas
Title: Re: Topic Ratings
Post by: Hondo on May 04, 2006, 07:44:37 AM
OK, here my hack to display the stars in the description row.
You see a sample here on my test site: http://www.access-mania.de/forum/index.php?board=1.0
After you have installed the mod well you can now modify it:

Open MessageIndex.template.php
Search and delete:
';
if ($context['show_rating'])
echo '
<td width="8%" class="catbg" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=rating', $context['sort_by'] == 'rating' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['ratings_rating'], $context['sort_by'] == 'rating' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>';
echo '


Search:
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>

Add After:
';
if ($context['show_rating'])
{
echo '
<span style="float:right">';
if (!$topic['rating']['empty']){
for ($i = 0; $i < $topic['rating']['whole']; $i++)
echo '<img src="', $settings['images_url'], '/star.gif" alt="Thread Rating: '.$topic['rating']['past'].' votes, '.$topic['rating']['detail'].' average." border="0" />';
//!!! Should have a half star!
if (!empty($topic['rating']['half']))
echo '<img src="', $settings['images_url'], '/starhalf.gif" alt="Thread Rating: '.$topic['rating']['past'].' votes, '.$topic['rating']['detail'].' average." border="0" />';
}
}
echo '


Search and delete:
';
if ($context['show_rating'])
{
echo '
<td class="windowbg' , $topic['is_sticky'] ? '3' : '', '" valign="middle" width="8%" align="center">';
if ($topic['rating']['empty'] == 1)
echo 'N/A';
else
{
for ($i = 0; $i < $topic['rating']['whole']; $i++)
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
//!!! Should have a half star!
if (!empty($topic['rating']['half']))
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
}
echo '
</td>';
}
echo '


Search:
// We need to check the topic icons exist...

Add before:
        // nbrOfRatings Mod
        $result3 = db_query("
                SELECT COUNT(ID_RATING)
                FROM {$db_prefix}log_ratings
                WHERE ID_TOPIC = " . $row['ID_TOPIC'],__FILE__, __LINE__);
        $nbrOfRatings = mysql_fetch_row($result3);
        mysql_free_result($result3);


Search:
'rating' => array(
'empty' => $row['rating'] == -1,
'whole' => (int) ($row['rating'] / 2),
'half' => $row['rating'] % 2
),


Replace:
'rating' => array(
'empty' => $row['rating'] == -1,
'whole' => (int) ($row['rating'] / 2),
'half' => $row['rating'] % 2,
'detail' => round(($row['rating'] / 2), 2),
'past' => $nbrOfRatings[0] > 0 ? $nbrOfRatings[0] : ''
),


Have fun,
Andreas
Title: Re: Topic Ratings
Post by: Oldiesmann on May 05, 2006, 11:39:22 AM
Fixed the issue with MessageIndex.php in the mod and re-uploaded it. Let me know if there are any other problems.
Title: Re: Topic Ratings
Post by: Hondo on May 05, 2006, 01:45:02 PM
Hi,
yes their is. the hole modifications for $sourcedir/ManageBoards.php from RC1 is wrong.
Use the one from RC2 instead.

Andreas
Title: Re: Topic Ratings
Post by: digit on May 07, 2006, 04:52:12 PM
I just installed this mod and it's AWESOME! (running 1.1 RC2)

the one thing I'd like to add is....

on Messageindex.template.php

below the stars, I would like to show the total number of users that have rated the post.

If someone can help with that - that would be great!

Thanks in advance.

Title: Re: Topic Ratings
Post by: Gobo on May 07, 2006, 09:30:36 PM
***EDIT***

I installed on 1.1rc2 installs just fine - but its functionality is not very apparent to users plus it dosent look very nice to be honest - just my personal opinions please dont be offended

Great work on the mod - but it could be greatly improved by making the "rate this thread" option more visible
Title: Re: Topic Ratings
Post by: digit on May 08, 2006, 05:27:23 AM
One more thing I'd REALLY like to see - is a rating from -5 to +5 allowing members to give black stars to crappy posts.

If you do this, PLEASE let me know - I NEED it!  :P

Thanks!
Title: Re: Topic Ratings
Post by: ja318 on May 09, 2006, 12:46:42 PM
EDIT - Solved... seems if you check the Enable Ratings option on the board (even if it's already checked) that will fix things! Nice mod, great to see it working.


Sorry for what is probably a dumb question, but this is the first mod I've installed with SMF, and I can't get the Ratings options to appear.

1) Went to the Packages area, uploaded the .gz
2) It said successful, and browsing packages now shows it listed.
3) Went to a board, didn't see any ratings options
4) Checked under Admin/Forum/Boards to make sure the Enable Ratings option is checked (it was)

I'm probably just missing a step, but not sure what it is. This is ver 1.1 RC2 with the Default theme.

One little quirk, btw, even if you uncheck the Enable Ratings option and click Modify, it will be rechecked when going back into the board config. Maybe a DB problem? I did try to rerun the Ratingsdb.php but it just spit out 3 errors when trying to add a column, so it made me think everything was ok there.

Appreciate any help.
Title: Re: Topic Ratings
Post by: ja318 on May 09, 2006, 07:23:55 PM
Ok, one other problem... When I rate a topic, it makes ALL topics the same rating (or at least displays it that way in the message list). Any ideas?
Title: Re: Topic Ratings
Post by: profile on May 16, 2006, 05:55:30 PM
I gave this a try, but it's not working for me on my test board on localhost

configuration
+ smf1.1rc2 using smf default theme
+ arcade

listing from modification packages:
SMF 1.0.7 / 1.1 RC2 Update
Topic Ratings    1.03

Problem:
I went to "boards" then modify "testboard1" and made sure "Enable Ratings on this Board" is checked.  Funny thing is, "testboard2" is not checked and it works.  I tried to go back and check "testboard1" but the check mark is not there any more.  I clicked on "modify" to save the settings, but it doesn't save.  Out of 10 "testboard", only one of them has ratings enabled.

Note: arcade has it's own rating system (1-5 stars)
Title: Re: Topic Ratings
Post by: L.G.S on May 17, 2006, 04:58:00 PM
Can someone help me please?
Title: Any Help on This?
Post by: NaturalStateReb on July 07, 2006, 03:23:19 PM
I've seen this posted through this thread, and I'm having the same trouble, and no one seems to have posted a definitive answer.  How do you resolve this problem when trying to install on 1.0.7:

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Clearly at least part of the problem is that there's no "Subs-Members.php" file in 1.0.7 to modify.
Title: Re: Topic Ratings
Post by: RBH on July 09, 2006, 10:56:50 PM
anyway to shut off the option allowing people to change thier rating?
Title: Re: Topic Ratings
Post by: perplexed on July 16, 2006, 01:52:58 PM
I installed this mod today and it tested successful, but the screen went white for some time and when I finally got the site back, I went into topic to test the rating and got a weird error message instead of seeing the topic - Im sorry but I dont remember what it was, something about no unique lr tables or something?

found the error message:

QuoteNot unique table/alias: 'lr'
File: /home/perplexed/public_html/forum/Sources/Display.php
Line: 225

Anyway, I uninstalled the mod via package manager, again successful uninstall, but when I went into a topic to check, the rating option was still there.

I looked in package manager and it is showing as uninstalled (ie Apply mod, list files, delete)

I just rated a topic and it worked.

I had topic ratings on the site before I upgraded to 1.1RC2 ie about 6 months ago, could it still be reading that old version?


edited to add:  correction, it is only showing a 'rate this topic' on some topics and not all of them, this is a mess! 

how to fix this please?


edited again to add: 

I dont know if this is related to this or not but I have 3000 pages of error messages in my smf forum log.  I actually deleted error messages this morning so these are all from today. 

here are a selection:

8: Undefined index: default_theme_dir
File: /home/perplexed/public_html/forum/Sources/Load.php
Line: 1364

8: Undefined index: default_theme_dir
File: /home/perplexed/public_html/forum/Sources/Load.php
Line: 1356

8: Undefined index: theme_dir
File: /home/perplexed/public_html/forum/Sources/Load.php
Line: 1344

8: Undefined variable: menuid
File: /home/perplexed/public_html/modules/mod_xtdtoprated.php
Line: 97

(this xtd ratings mod/com has been installed for months with no errors previously)


8: Undefined index: allow_no_censored
File: /home/perplexed/public_html/forum/Sources/Load.php
Line: 1531

and this one which I seem to be generating


these are over and over again

I also see that if I go into a board, the check box for switching on topic ratings is there, yet the mod is not installed


Please help, this is a mess!
Title: Re: Topic Ratings
Post by: perplexed on July 17, 2006, 05:54:11 AM
Even though it tested and installed with no errors it has screwed up the db somehow.  I dont know enough to fix it but I have uninstalled it - again no errors in the uninstall - and all my forum tables are messed up, everything is the wrong width and I will have to restore to a backup.  I left it for an hour when I installed it and had a white screen for that entire time, then when I looked at my forum topic ratings are on some topics and not others, and the name of the thread boxes are shrunk to about 20 characters in width, all the others are stretched out too wide. I cant access 'boards' via admin.  Its a mess :(
Title: Re: Topic Ratings
Post by: Spike2 on July 18, 2006, 05:35:30 AM
Hi,

This mod dosen`t work whit smf 1.0.7.  :( :( :( :'( :'( :'(

I really need this mod or some mod similar,please fix or make  one Grin !!!!

Excelent idea

Thanks
Title: Re: Topic Ratings
Post by: PrizeLive.com on July 18, 2006, 12:33:43 PM
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    RatingsPdb.php    
2.    Execute Modification    ./Sources/Display.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
6.    Execute Modification    ./Sources/Subs-Members.php    Test successful
7.    Execute Modification    ./Sources/MessageIndex.php    Test failed
8.    Execute Modification    ./Sources/RemoveTopic.php    Test successful
9.    Execute Modification    ./Themes/default/Display.template.php    Test failed
10.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
11.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
Title: Re: Topic Ratings
Post by: Spike2 on July 18, 2006, 11:54:14 PM
hi,
sorry for my english

I need a mod to put rating to a topic a put an image
Something like this:

http://forums.cgsociety.org/forumdisplay.php?f=137

Please help!!!!!!!! Its really necesary!

Tanxs
Title: Re: Topic Ratings
Post by: tthmaz on July 20, 2006, 02:53:00 AM
Mod installed successfully, and option checked in boards->modify->enable ratings.

But i don't see any sign of allowing a user to submit a rating for a post...

Where and how can I do that? Thanks.
Title: Re: Topic Ratings
Post by: Wounded Knee on July 30, 2006, 11:27:47 AM
this mod don't work well for me.

i install, and some boards ratings and other no.

ok, i go to boards->modify->enable ratings but i see that it's marked this option but i don't see rating, and viceversa.

i go to boards->modify and don't touch nothing, goback, I return to enter and enable rating it's changed !!!

more...

i enable the option in one board and work fine yes, but in other board...

I have verified it through phpmyadmin.

smf1 rc2.


Title: Re: Topic Ratings
Post by: Spike2 on August 05, 2006, 03:49:17 PM
hi, i need this mode for smf 1.0.7.  :( :( :( please!!!!!!!!!!  :'( :'( :'(

Tanks
Title: Re: Topic Ratings
Post by: aaho on August 09, 2006, 01:28:16 AM
Quote from: tthmaz on July 20, 2006, 02:53:00 AM
Mod installed successfully, and option checked in boards->modify->enable ratings.

But i don't see any sign of allowing a user to submit a rating for a post...

Where and how can I do that? Thanks.

The Same thing I am getting. I am unable to see the ratings on the thread even after it is enabled. Help Please.
Title: Re: Topic Ratings
Post by: ufuk.exe on August 13, 2006, 05:13:19 PM
Mod works great, thank you, however:

For some reason this mod does not enable itself on Already open boards (which existed before the mod was installed).

So members can ONLY rate the topics that are started AFTER this mod is installed..

Any ideas how to bulk enable topics to have ratings?  ::)

Thank You
Title: Re: Topic Ratings : 1.1 RC2 w/ Update 1.0
Post by: kylratix on August 15, 2006, 12:11:40 AM
Doesn't seem to be working out of the box with 1.1 RC2 Update 1.0.

"Enable rating" check boxes aren't reflecting their values in the DB and the rating UI on enabled threads isn't visible.
Title: Re: Topic Ratings
Post by: Assistance on August 15, 2006, 12:27:20 AM
just installed out of the box 1.1RC2

works best installed with IE
on FF it wouldnt show first time ( shift refresh )

little bug under Last Post
Title: Re: Topic Ratings
Post by: ufuk.exe on August 15, 2006, 09:14:54 AM
OK, I got them to appear under already existing topics, but it won't show under "Recent Topics" or "Unread Topics" view. Is there anyway we can add the rating into that screen as well?
Title: Re: Topic Ratings
Post by: HecKel on August 24, 2006, 10:54:22 PM
Hi!

This mod will be available for SMF RC3?

HecKel
Title: Re: Topic Ratings
Post by: DHC on August 26, 2006, 08:20:15 PM
Tried to install this modification and received the following error message:

"Not unique table/alias: 'lr'
File: /home/dhcoopri/public_html/forum/Sources/Display.php
Line: 221"

Please tell me how to correct this problem.

Thanks.
Title: Re: Topic Ratings
Post by: Mamoun on August 31, 2006, 04:58:47 PM
Would it work with RC3?
Title: Re: Topic Ratings
Post by: MegraPortal.com on September 01, 2006, 04:27:12 PM
Still having problems with MessageIndex on rc2
Title: Re: Topic Ratings
Post by: MegraPortal.com on September 01, 2006, 04:30:28 PM
Sorry, my bad, works with Default theme  :D
Title: Re: Topic Ratings
Post by: yomasta3 on September 14, 2006, 09:08:33 PM
Not compatible with RC3  :-[ any new fix soon?
Title: Re: Topic Ratings
Post by: Lew Cipher on September 17, 2006, 03:15:18 PM
Quote from: yomasta3 on September 14, 2006, 09:08:33 PM
Not compatible with RC3  :-[ any new fix soon?

bump
Title: Re: Topic Ratings
Post by: Pedja on October 04, 2006, 11:45:33 AM
On download site it says it works with RC3.

But... I cannot change option to allow rating on board. It is always checked. Even if I unckech and submit change, it stays checked.

There are no options for users to rate topics, and also there is no topic rating displayed.

Also after install, i found out a bug. I was unable to open administration of boards die to error:

Parse error: parse error, unexpected ',', expecting ')' in /home/forum/public_html/Sources/Subs-Boards.php on line 1511

It showed up that there is one unnecessary comma on this line.

Title: Re: Topic Ratings
Post by: Oldiesmann on October 04, 2006, 12:32:32 PM
Quote from: Pedja on October 04, 2006, 11:45:33 AM
On download site it says it works with RC3.

But... I cannot change option to allow rating on board. It is always checked. Even if I unckech and submit change, it stays checked.

There are no options for users to rate topics, and also there is no topic rating displayed.

Also after install, i found out a bug. I was unable to open administration of boards die to error:

Parse error: parse error, unexpected ',', expecting ')' in /home/forum/public_html/Sources/Subs-Boards.php on line 1511

It showed up that there is one unnecessary comma on this line.



Whoops! Sorry about that typo.

I was unaware of the problem with not being able to choose whether or not to enable ratings on a board. I am looking into that situation and should have a fixed version available later this afternoon.

You have to rate a topic from within the topic itself. I just tested this on a clean 1.1 RC3 installation and it worked fine (except for the bug in the admin center - I had already fixed the other issue before I installed it).
Title: Re: Topic Ratings
Post by: Oldiesmann on October 04, 2006, 01:00:01 PM
Found the problem - it was all due to a missing "!", which was causing the checkbox to do just the opposite of what you wanted it to - if you checked the box, it wouldn't stay checked, and if you un-checked it, it would be checked again anyway.

I've uploaded a fixed version of the mod, but to save you the trouble of having to uninstall and re-install the mod, here's how you fix it:

Sources/Subs-Boards.php

Find
'is_rated' => empty($row['is_rated'])

Replace
'is_rated' => !empty($row['is_rated'])

That will fix your problems.
Title: Re: Topic Ratings
Post by: Pedja on October 05, 2006, 09:39:35 AM
It works now. Now i see that rating for all boards is turned off by default, but due to bug, configuration presented it as turned on.
Title: Re: Topic Ratings
Post by: teamvtec on October 07, 2006, 05:02:39 PM
QuoteAn Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.

I get this when trying to upload it through the package manager in RC3, als when i try to unpack the archive file it gives an "unexpected end of archive" error... any ideas? :-\
Title: Re: Topic Ratings
Post by: teamvtec on October 13, 2006, 11:31:41 AM
Hello?? your package still doesn't work, tried it over and over again.
still gives me the same error.

Any help would be nice :)
Title: Re: Topic Ratings
Post by: Pedja on October 13, 2006, 01:57:02 PM
I think I found bug. when I create new board, i get this notice in place of enable ratings checkbox:

Notice: Undefined index: is_rated in /home/forum/public_html/Sources/Load.php(1708) : eval()'d code on line 421
class="check" />

After I submit new board definition, everything sorts out. I guess, 'is_rated' is not defined index of some array, because until board is created.

Title: Re: Topic Ratings
Post by: teamvtec on October 14, 2006, 11:29:47 AM
Quote from: teamvtec on October 13, 2006, 11:31:41 AM
Hello?? your package still doesn't work, tried it over and over again.
still gives me the same error.

Any help would be nice :)

Some help please >:(
Title: Re: Topic Ratings
Post by: chinclub on October 18, 2006, 10:22:07 AM
I just tried to install and got a test failed for both ManageBoards.php & MessageIndex.php

Can you tell me how to do those two files manually?
Title: Re: Topic Ratings
Post by: Xarcell on November 04, 2006, 08:11:34 PM
Very nice mod, works perfect for me.
Title: Re: Topic Ratings
Post by: Gobo on November 04, 2006, 08:23:35 PM
yup the package gave me a corrupted message too

also upon unzipping it says package corrupt - unexpected end of archive
Title: Re: Topic Ratings
Post by: Greengoat on November 18, 2006, 01:27:39 AM
Any idea where I would adjust the column span?  When I installed the sticky post mod it created a blank space down to the right in the topic bar that says General Topics over the part with the check boxes for the admins.  Now if I add the Topic Ratings mod it comes out one more spot.  I wasn't worried about it when only the admins can see it.  But as much as I want to use this I can't because of this one thing.

Picture upon request.

Thanks,
GG
Title: Re: Topic Ratings
Post by: ArkServer on November 18, 2006, 05:04:39 AM
any idea how i can move the ratings here:

(http://arkserver.servehttp.com/ex.jpg)
Title: Re: Topic Ratings
Post by: thunderbirdsei on December 01, 2006, 09:19:57 AM
This mod is maybe corrupt. I get after the upload with the package manager a

The following error was encountered:

    * Zero Sized Reply

Squid did not receive any data for this request.


Failure message until I delete the file in the package folder.

SMF 1.1RC3
Title: Re: Topic Ratings
Post by: karras.us on December 07, 2006, 06:56:33 PM
Please update this for 1.1.

Thank you.
Title: Re: Topic Ratings
Post by: Spike2 on December 10, 2006, 03:44:13 PM
Yeas please!!!!!!!!!
Title: Re: Topic Ratings
Post by: clemenzo on December 12, 2006, 08:34:44 AM
To show my appreciation of SMF, after having benefited from all the gurus.. Attached is the slightly modified version for 1.1 final.. I have it working in my freshly installed SMF.

http://beta.voixbox.com

Updated for 1.1.1, see later posts
Title: Re: Topic Ratings
Post by: clemenzo on December 12, 2006, 09:39:35 AM
My apologises to Oldiesmann for modifying and sharing the script without seeking permission first. Please remove the attachment if desired.. sorry..
Title: Re: Topic Ratings
Post by: teamvtec on December 12, 2006, 07:20:09 PM
Finally someone that stepped up to the plate with an upgrade!! works great on SMF1.1 with TP0.97, thanks allot buddy ;D
Title: Re: Topic Ratings
Post by: Spike2 on December 14, 2006, 02:33:26 PM
Quote from: clemenzo on December 12, 2006, 09:39:35 AM
My apologises to Oldiesmann for modifying and sharing the script without seeking permission first. Please remove the attachment if desired.. sorry..

Thankyou Thankyou Thankyou Thankyou Thankyou Thankyou Thankyou  very very very very  MUCH!!!!!!!!!
Title: Re: Topic Ratings
Post by: Alpay on December 18, 2006, 02:59:41 PM
Please update this for 1.1.1

Thank you.
Title: Re: Topic Ratings
Post by: nitins60 on December 18, 2006, 06:47:24 PM
please update for 1.1.1 :P
Title: Re: Topic Ratings
Post by: clemenzo on December 19, 2006, 04:30:26 AM
Updated for 1.1.1
Title: Re: Topic Ratings
Post by: pariofdreamz on December 21, 2006, 01:44:58 AM
I m using 1.1.1 and i was unable to install this package
:( :( :( :( :(

This is the error it showed
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

     Execute Modification     ./Sources/MessageIndex.php     Test failed

:( :( :( :( HELP ME  :( :( :(
Title: Re: Topic Ratings
Post by: Søren Bjerg on December 22, 2006, 02:37:57 AM
Quote from: clemenzo on December 12, 2006, 08:34:44 AM
To show my appreciation of SMF, after having benefited from all the gurus.. [...]
Awesome, thanks 8).
Title: Re: Topic Ratings
Post by: forepro on December 23, 2006, 11:04:20 PM
Installed successfully with smf 1.1.1. I really like it. Another good feature to have would be the option of showing the total votes with rating.

Anyways, thanks a lot for the good job!
Title: Re: Topic Ratings
Post by: clemenzo on December 24, 2006, 04:50:31 AM
Quote from: pariofdreamz on December 21, 2006, 01:44:58 AM
I m using 1.1.1 and i was unable to install this package
:( :( :( :( :(

This is the error it showed
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

     Execute Modification     ./Sources/MessageIndex.php     Test failed

:( :( :( :( HELP ME  :( :( :(

You have another mod that has modified the original codes that this mod is searching for, hence a conflict. Try add this mod manually
Title: Re: Topic Ratings
Post by: Xarcell on December 26, 2006, 10:36:26 AM
Any chance you can post the snippet on how to show how many times it's been rated?
Title: Re: Topic Ratings
Post by: guppy on December 31, 2006, 10:01:57 PM
I'm testing on SMF 1.1. Installation was okay but uninstallation prompted parsing error.

Quote1.     Execute Modification     ratings_v1.03.mod     Modification parse error
Title: Re: Topic Ratings
Post by: rockinaway on January 05, 2007, 03:26:36 PM
I get this error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in .../Themes/SoftMC_Blue/Display.template.php on line 401


<option value="', $i, '" ', $context['can_rate'] ']== $i ? 'selected="selected"' : '', '','>', $i, '</option>';

That's the line, looks wierd on Dreamweaver too...
Title: Re: Topic Ratings
Post by: ThK on January 06, 2007, 08:40:04 AM
Quote from: iwyen on December 31, 2006, 10:01:57 PM
I'm testing on SMF 1.1. Installation was okay but uninstallation prompted parsing error.

Quote1.     Execute Modification     ratings_v1.03.mod     Modification parse error

I get that error, too. Simple reason: package-info.xml has a little bug in it:

...

<install for="1.1, 1.1.1">
<code>RatingsPdb.php</code>
<readme type="inline">This MOD allows you to specify boards in which ratings can be given for each topic. At the moment all registered members can rate a topic depending on quality. The rating is shown in the message index and in the topic itself.

Written By Matthew Wolf (a.k.a Grudge) - [email protected]
http://www.mymods.co.uk
Copyright 2004 - Neither this package or any of it's contents may be distributed without authorisation</readme>
<modification type="file" format="boardmod"></modification>
</install>
<uninstall 1.1, 1.1.1">
<readme type="inline">This will uninstall all the changes made by this mod.
</readme>
<modification type="file" format="boardmod" reverse="true">ratings_v1.03.mod</modification>
</uninstall>

...


Correct the line:

Search: <modification type="file" format="boardmod" reverse="true">ratings_v1.03.mod</modification>
Replace: <modification type="file" format="boardmod" reverse="true">ratings_1-1.mod</modification>
Title: Re: Topic Ratings
Post by: clemenzo on January 07, 2007, 06:59:00 AM
Quote from: rockinaway on January 05, 2007, 03:26:36 PM
I get this error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in .../Themes/SoftMC_Blue/Display.template.php on line 401


<option value="', $i, '" ', $context['can_rate'] ']== $i ? 'selected="selected"' : '', '','>', $i, '</option>';

That's the line, looks wierd on Dreamweaver too...

Install with default SMF core theme. You need make changes manually for other themes.
Title: Re: Topic Ratings
Post by: rockinaway on January 07, 2007, 02:54:11 PM
I did,. that is the error I get upon doing it in my custom theme...
Title: Re: Topic Ratings
Post by: clemenzo on January 08, 2007, 09:10:18 AM
It would not work with custom theme. You need to edit the custom theme files manually and upload to overwrite.
Title: Re: Topic Ratings
Post by: teamvtec on January 08, 2007, 12:22:41 PM
I was wondering what do i need to change to display the rating stars on the thread index to show if the thread is rated?

See attachement below

Title: Re: Topic Ratings
Post by: rockinaway on January 08, 2007, 12:32:36 PM
Quote from: clemenzo on January 08, 2007, 09:10:18 AM
It would not work with custom theme. You need to edit the custom theme files manually and upload to overwrite.

Yes I am not stupid, been using SMF a long time o know that ;) Have already done that, that occurs when I edit my custom theme.. I think I said that already!
Title: Re: Topic Ratings
Post by: clemenzo on January 08, 2007, 10:11:33 PM
It's a syntax error on your part. Deploy your debugging skills then.
Title: Re: Topic Ratings
Post by: Xarcell on January 10, 2007, 11:12:28 AM
I found a error(bug) in the templating. If you enable to show user's viewing the board via "admin > current theme" then it causes a colspan problem. It does not expand all the way. To fix:

Open file: "SMF Root > Themes > your theme or default > MessageIndex.template.php"

Find (around 193):
<td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"><small>';
if ($settings['display_who_viewing'] == 1)


Replace With:
<td colspan="' , !empty($options['display_quick_mod']) ? '9' : '8' , '"><small>';
if ($settings['display_who_viewing'] == 1)


If you have other mod's that have created another tablecell, you may need to increase "9" and "8" numbers within the snippet.
Title: Re: Topic Ratings
Post by: rockinaway on January 10, 2007, 03:24:41 PM
Quote from: clemenzo on January 08, 2007, 10:11:33 PM
It's a syntax error on your part. Deploy your debugging skills then.

I don't think so... it was all done as said in install script :P
Title: Re: Topic Ratings
Post by: clemenzo on January 11, 2007, 09:25:24 PM
Quote from: rockinaway on January 10, 2007, 03:24:41 PM
Quote from: clemenzo on January 08, 2007, 10:11:33 PM
It's a syntax error on your part. Deploy your debugging skills then.

I don't think so... it was all done as said in install script :P

Are you able to see and use the mod in the default theme? I thought you modified the custom theme files manually? Where did the install script message come from then?
Title: Re: Topic Ratings
Post by: teamvtec on January 23, 2007, 05:55:09 PM
Well i'll post my question again since nobody took the time to reply to it: :-\



I was wondering what do i need to change to display the rating stars on the thread index to show if the thread is rated?

See attachement below
Title: Re: Topic Ratings
Post by: clemenzo on January 25, 2007, 09:57:44 AM
You'll need to modify the changes done by the mod.. Move the rating stars out of the column between the <td> and </td> tags and place it between the <span align="right"> and </span> tags in the topic title column after the topic page list.

Doing that, the mod uninstall would not work anymore.
Title: Re: Topic Ratings
Post by: Diamond Playboy on January 26, 2007, 09:10:33 PM
Does this script sort the topics based on the rating they received? I thought it did, but it doesn't seem to be doing that...did I miss a setting maybe? Also, how do I get this script to only allow one vote per session?

thanks!

Title: Re: Topic Ratings
Post by: clemenzo on February 05, 2007, 12:00:30 AM
I haven't had time to play with it. You shall try and you'll find out.
Title: Re: Topic Ratings
Post by: t323tgdh on February 09, 2007, 03:35:10 PM
Sorry for bumping but is there a way to install it for 1.1 RC3? I'm still running 1.1 RC3 (Can't upgrade, I've got self-made php edits) and it says that older versions no longer supported on the download page...
Title: Re: Topic Ratings
Post by: clemenzo on February 10, 2007, 01:32:40 AM
Did you try the latest 1.0.8 mod? There has been mod file for 1.1RC3 all along and should work unless the files to be modified has your self-made edits and are hindering the installation.

You can try unzipping the mod opening the mod file for 1.1RC3 to add the changes manually.
Title: Re: Topic Ratings
Post by: sparky33 on February 23, 2007, 12:26:27 PM
I need to uninstall this mod manually but there doesn't seem to be any mod files?
Title: Re: Topic Ratings
Post by: sparky33 on February 23, 2007, 01:28:01 PM
It's ok I sussed it, opened the mpeg file with dreamweaver
Title: Re: Topic Ratings
Post by: Photoshocker on March 04, 2007, 09:28:36 AM
Hi does anyone know what modification has to be done to work with  Αa New damage theme?
Title: Re: Topic Ratings
Post by: sparky33 on March 04, 2007, 03:32:24 PM
Youll find all the mod instructions if you unzip the package.
Title: Re: Topic Ratings
Post by: wengwashere on March 05, 2007, 04:20:28 AM
i think its not compatible to R3 anymore :(
Title: Re: Topic Ratings
Post by: JamesWC on March 05, 2007, 07:08:04 AM
Before I install this, can I just ask if users can re-rate a topic after already rating it? I mean if they change their mind, can they overwrite their earlier rating?

Also, I believe they're not already features, but would it be possible in future versions to add the following?:


I realize these are both probably quite rare requirements so I won't be surprised if you choose not to incorporate them. Just thought I'd put it out there.
Title: Re: Topic Ratings
Post by: Darthemis on March 07, 2007, 04:06:56 PM
Hello!
I am running smf 1.1.2 version and the default theme.
I wonder why it doesnt appear (neither on the admin board). can anyone tell me how to solve it?

It appears correctly installed though.

Thanks, :)
Title: Re: Topic Ratings
Post by: Max22 on March 17, 2007, 09:47:36 AM
I report this problem, thx:

http://www.simplemachines.org/community/index.php?topic=158371.msg1010697#msg1010697
Title: Re: Topic Ratings
Post by: TrueSatan on March 17, 2007, 10:01:28 AM
Quote from: Darthemis on March 07, 2007, 04:06:56 PM
Hello!
I am running smf 1.1.2 version and the default theme.
I wonder why it doesnt appear (neither on the admin board). can anyone tell me how to solve it?

It appears correctly installed though.

Thanks, :)

If you got to admin>Forum>Boards ...select "Modify" for an existing board or make a new board and enable ratings then it will work.
Title: Re: Topic Ratings
Post by: Max22 on March 17, 2007, 10:22:51 AM
Quote from: Max22 on March 17, 2007, 09:47:36 AM
I report this problem, thx:

http://www.simplemachines.org/community/index.php?topic=158371.msg1010697#msg1010697

Solved so, in style.css:

/* This is used on tables that should just have a border around them. */
.tborder
{
padding: 1px;
      border: 1px solid #696969 !important;
      background-color: #FFFFFF !important;
      background-color: none;
      border: 1px solid #FFFFFF;
      border-bottom: 0 !important;


Now IE7 border is cool than before. 8)
Title: Re: Topic Ratings
Post by: Hendricius on March 17, 2007, 07:58:05 PM
Quote1.     Execute Code     RatingsPdb.php     
2.    Execute Modification    .Sources//Display.php    Test successful
3.    Execute Modification    .Sources//Load.php    Test successful
4.    Execute Modification    .Sources//ManageBoards.php    Test failed
5.    Execute Modification    .Sources//Subs-Boards.php    Test successful
6.    Execute Modification    .Sources//Subs-Members.php    Test successful
7.    Execute Modification    .Sources//MessageIndex.php    Test successful
8.    Execute Modification    .Sources//RemoveTopic.php    Test successful
9.    Execute Modification    .Themes/default/Display.template.php    Test successful
10.    Execute Modification    .Themes/default/ManageBoards.template.php    Test successful
11.    Execute Modification    .Themes/default/MessageIndex.template.php    Test successful
12.    Execute Modification    .Themes/default/languages/Modifications.english.php    Test successful

Anyone can help?

Thanks.
Title: Re: Topic Ratings
Post by: edwardsiow on March 20, 2007, 01:18:16 PM
after i have installed Seo4SMF, my topic ratings mod can't work.....

anybody know the trick to modify it?

your help much appreciate....
Title: Re: Topic Ratings
Post by: wizzie on March 22, 2007, 01:07:06 PM
Hi guys
I have installed and have modified a board, the ratings dropdown box shows but no text to say it is for ratings, I'm using the default template on 1.1.2
Any ideas?

Thanks
Graham
Title: Re: Topic Ratings
Post by: joh87swe on March 24, 2007, 08:31:38 PM
When I try to install I have this error:
Error on rename of './mjjforum/smf_topics.MYI' to './mjjforum/#sql2-4df7-15e9.MYI' (Errcode: 1)
Fil: /var/www/html/Packages/temp/RatingsPdb.php
Rad: 33

?
Title: Re: Topic Ratings
Post by: Frantix on March 25, 2007, 10:10:34 PM
I saw a few comments but this package doesn't seem to uninstall itself.  So if you're going to give it a try, make sure you back the files it modifies first, it's not fun removing this manually.  ::)  Also remember that for any future additions you make to your site or if another rating mod comes along. :-X
Title: Re: Topic Ratings
Post by: gerard2003 on April 11, 2007, 07:14:42 AM
Nothing special.

I installed it and it works fine. I am very pleased of it in a context of movies/music rating boards.

So, great job and thank you!
Title: Re: Topic Ratings
Post by: Herman's Mixen on April 11, 2007, 07:17:02 AM
Quote from: Frantix on March 25, 2007, 10:10:34 PM
I saw a few comments but this package doesn't seem to uninstall itself.  So if you're going to give it a try, make sure you back the files it modifies first, it's not fun removing this manually.  ::)  Also remember that for any future additions you make to your site or if another rating mod comes along. :-X

i did fixed that and has send it to the creator of this mod so i will include the pack with uninstall here
if someone need it !  ;)
Title: Re: Topic Ratings
Post by: gerard2003 on April 11, 2007, 07:24:19 AM
Quote from: wizzie on March 22, 2007, 01:07:06 PM
I have installed and have modified a board, the ratings dropdown box shows but no text to say it is for ratings, I'm using the default template on 1.1.2

I experienced this.

Did you use another theme than the default one ?
If so you have to copy the TopicRating related stuffs of Themes/default/languages/Modifications.english.php in Themes/your_theme/languages/Modifications.english.php.

I don't remember very well maybe it is not Modifications.english.php, so check if there is TopicRating.english.php or something like this and do the same (copy in Themes/your_theme/languages/)

Do you use others languages than english ?
If so copy  Topic Rating related stuffs from Themes/default/languages/Modifications.english.php to Themes/your_theme/languages/Modifications.your_language.php

Hope it helps... If so, remember the tip, since it very usual to have to do this when installing a mod.
Title: Re: Topic Ratings
Post by: MattJ on April 12, 2007, 05:52:28 AM
Quote from: edwardsiow on March 20, 2007, 01:18:16 PM
after i have installed Seo4SMF, my topic ratings mod can't work.....

anybody know the trick to modify it?

your help much appreciate....

Tell me it isnt true :(
Title: Re: Topic Ratings
Post by: wengwashere on April 14, 2007, 02:02:03 PM
yup.. having some problems with this mod...

is the owner still around? :D
Title: Re: Topic Ratings
Post by: MattJ on April 14, 2007, 08:45:13 PM
ratings should be part of the core install imo
Title: Re: Topic Ratings
Post by: cekcok on April 15, 2007, 10:39:01 AM
nice mod,

i will try to use in my site..hope working good
Title: Re: Topic Ratings
Post by: cekcok on April 15, 2007, 10:44:18 AM
Quote from: DoW Kid Rock 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

i've got same problem here

Type Action Description
1. Execute Code RatingsPdb.php 
2. Execute Modification ./Sources/Display.php Test successful
3. Execute Modification ./Sources/Load.php Test successful
4. Execute Modification ./Sources/ManageBoards.php Test successful
5. Execute Modification ./Sources/Subs-Boards.php Test successful
6. Execute Modification ./Sources/Subs-Members.php Test successful
7. Execute Modification ./Sources/MessageIndex.php Test successful
8. Execute Modification ./Sources/RemoveTopic.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test failed
10. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
11. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
Title: Re: Topic Ratings
Post by: mett on April 18, 2007, 03:06:52 PM
Hello

Thanks for sharing this mod. I made installation manualy because of some errors at automatic installation (i have a lot of modules already installed), everything seems to be ok but..it's not working for me. I mean, it doesn't save value, i still have "This topic has not yet been rated!" no matter what i try.
I think it is because i use mod_rewrite and SEO4SMF..but it's not..any ideea what could be? I'm sure i add everything....

Thanks

Sorry for my english
Title: Re: Topic Ratings
Post by: mett on April 20, 2007, 05:33:55 PM
Anyone? Any ideea what to do?
Title: Re: Topic Ratings
Post by: Tick on April 22, 2007, 06:09:56 PM
Quote from: ThK on January 06, 2007, 08:40:04 AM
Quote from: iwyen on December 31, 2006, 10:01:57 PM
I'm testing on SMF 1.1. Installation was okay but uninstallation prompted parsing error.

Quote1.     Execute Modification     ratings_v1.03.mod     Modification parse error

I get that error, too. Simple reason: package-info.xml has a little bug in it:

...

<install for="1.1, 1.1.1">
<code>RatingsPdb.php</code>
<readme type="inline">This MOD allows you to specify boards in which ratings can be given for each topic. At the moment all registered members can rate a topic depending on quality. The rating is shown in the message index and in the topic itself.

Written By Matthew Wolf (a.k.a Grudge) - [email protected]
http://www.mymods.co.uk
Copyright 2004 - Neither this package or any of it's contents may be distributed without authorisation</readme>
<modification type="file" format="boardmod"></modification>
</install>
<uninstall 1.1, 1.1.1">
<readme type="inline">This will uninstall all the changes made by this mod.
</readme>
<modification type="file" format="boardmod" reverse="true">ratings_v1.03.mod</modification>
</uninstall>

...


Correct the line:

Search: <modification type="file" format="boardmod" reverse="true">ratings_v1.03.mod</modification>
Replace: <modification type="file" format="boardmod" reverse="true">ratings_1-1.mod</modification>



I am trying to correct this but when I go to my packages folder with my ftp client it shows the topic rating folder.  The folder is a zip folder so how can I get into it to edit it?
Title: Re: Topic Ratings
Post by: Herman's Mixen on April 22, 2007, 06:39:13 PM
try this one !

http://www.simplemachines.org/community/index.php?topic=25023.msg1047413#msg1047413
Title: Re: Topic Ratings
Post by: Tick on April 22, 2007, 06:52:44 PM
I am new so forgive me here but the one I have installed will not uninsstall so do I just run this one through my package manager or do I delete the old one via ftp and upload this zip or how do I do lthis
Title: Re: Topic Ratings
Post by: Oldiesmann on April 22, 2007, 10:20:04 PM
Thanks for bringing this to my attention tick :)

The package should be fixed now. Just download it and upload it to your Packages directory via FTP, overwriting the existing one.
Title: Re: Topic Ratings
Post by: dyota on April 23, 2007, 10:38:45 AM
4.     Execute Modification     ./Sources/ManageBoards.php     Test failed

how to solve it
Title: Re: Topic Ratings
Post by: pastramee on April 26, 2007, 05:04:13 PM
hey guys, I hope this is the write place to ask this.  I just downloaded the ratings mod from - http://custom.simplemachines.org/mods/index.php?mod=91

and it installed with no issues.  But how do I activate it?  I went to admin panel - manage boards - click modify for one of the boards and I don't see a checkbox to activate it.

There is a box there with no description, I checked it but still no dice.  Any help is greatly appreciated! :)
Title: Re: Topic Ratings
Post by: gerard2003 on April 27, 2007, 03:17:20 AM
If you are not using the default theme, you probably need to copy the language files in your current theme.

http://www.simplemachines.org/community/index.php?topic=25023.msg1047426#msg1047426
Title: Re: Topic Ratings
Post by: pulkit on May 04, 2007, 09:42:27 AM
Quote from: gerard2003 on April 27, 2007, 03:17:20 AM
If you are not using the default theme, you probably need to copy the language files in your current theme.

http://www.simplemachines.org/community/index.php?topic=25023.msg1047426#msg1047426

Language files ? I don't see a folder for language files in the theme folder ...

Anyways, here's my question
How do I get this to work on SMF 1.1.2 with TP 0.9.8 and Mesh TP theme ??
Does this mod work on any theme expect default ?
Title: Re: Topic Ratings
Post by: M4n4g3r on May 06, 2007, 03:57:36 PM
«Install Actions
Installations actions for "Topic Ratings":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.  »

Why ? Anyone knows?


Thanks!
Title: Re: Topic Ratings
Post by: TrueSatan on May 06, 2007, 04:13:02 PM
Sometimes you can get bad downloads of mods...often downloading via a different browser will get you a good download.

You haven't said what version of SMF you are trying to install into...the mod supports many versions but not all...see the details on the download page.
Title: Re: Topic Ratings
Post by: Tick on May 06, 2007, 04:37:08 PM
I thought I read somewhere that this is happening with a lot of the mods downloaded here.  That it was something that was being worked on.
Title: Re: Topic Ratings
Post by: TrueSatan on May 06, 2007, 04:51:22 PM
...could well be. Anyway...let's get our fellow member out of problems for now...I'll add a copy here of the latest version so you can try downloading the attachment.
Title: Re: Topic Ratings
Post by: gerard2003 on May 07, 2007, 10:44:55 AM
QuoteLanguage files ? I don't see a folder for language files in the theme folder ...
It is not in Theme directory :   your_board_directory/Themes/
But in installed theme one : your_board_directory/Themes/your_theme/Languages

As a example, the language directory of the default theme is here :
your_board_directory/Themes/default/Languages/
Title: Re: Topic Ratings
Post by: TrueSatan on May 07, 2007, 07:34:29 PM
I found a very minor error in the package info of the latest version of this mod...line 31

<uninstall 1.1, 1.1.1, 1.1.2">

It should be:

<uninstall "1.1, 1.1.1, 1.1.2">

...well...I did say it was a minor error didn't I!

...anyhow updated version attached to this post with that error fixed.
Title: Re: Topic Ratings
Post by: chinclub on May 15, 2007, 08:42:21 AM
I'm getting the "The package you are trying to download or install is either corrupt or not compatible with this version of SMF." error.  I am using 1.1 RC3.

I have tried downloading from the main mod page and from TrueSatan's attachment.  I have tried using both Internet Explorer and Firefox.

:(
Title: Re: Topic Ratings
Post by: TrueSatan on May 15, 2007, 10:11:54 AM
The package doesn't, officially, support the version of SMF that you are using so the report you are getting is quite correct. It might well work with the version you have if the package-info.xml file in the package is slightly altered but I wouldn't like to speculate on it being fully compatible...you do such things at your own risk and can't complain if they don't work and/or the developer won't support the mod when altered and used in that way.

Your best option, by far, is to upgrade your forum at your earliest opportunity.
Title: Re: Topic Ratings
Post by: chinclub on May 15, 2007, 10:47:03 AM
OK.  I thought it did since the mod page says:

Update (10/1/06): Now compatible with 1.0.8 and 1.1 RC3
Title: Re: Topic Ratings
Post by: TrueSatan on May 15, 2007, 12:56:43 PM
That was what update 1 said...further down the page is update 4 that says
Quote
Update #4 (12/19/06): Updated to work with 1.0.10, 1.1 and 1.1.1 (other versions no longer supported)

Internal to the package is code giving the current supported versions details:

Quote<uninstall "1.1, 1.1.1, 1.1.2">
Please note...release candidates are not listed as supported.

Please consider updating your forum software!
Title: Re: Topic Ratings
Post by: chinclub on May 15, 2007, 12:59:44 PM
Thanks, I didn't read down that far.  :)
Title: Re: Topic Ratings
Post by: pulkit on May 15, 2007, 11:24:31 PM
Quote from: gerard2003 on May 07, 2007, 10:44:55 AM
QuoteLanguage files ? I don't see a folder for language files in the theme folder ...
It is not in Theme directory :   your_board_directory/Themes/
But in installed theme one : your_board_directory/Themes/your_theme/Languages

As a example, the language directory of the default theme is here :
your_board_directory/Themes/default/Languages/

The language on my board is English ... I have also installed Turkish for a few mods ...

Just checked, Turkish is needs to be updated ... How do I do that ??
Title: Re: Topic Ratings
Post by: geer on May 17, 2007, 06:57:10 AM
hi

I have problem install update , no compatible for RC2

Where i find link for version RC2

thanks  all
Title: Re: Topic Ratings
Post by: HecKel on May 17, 2007, 07:36:37 AM
why you don't upgrade your forum to 1.1.2? This is the latests release and the final one!

HecKel
Title: Re: Topic Ratings
Post by: geer on May 17, 2007, 01:29:27 PM
Quote from: HecKel on May 17, 2007, 07:36:37 AM
why you don't upgrade your forum to 1.1.2? This is the latests release and the final one!

HecKel

Because my forum has lot of mods and when upgrade forum all mods are lost

laxcoo
Title: Re: Topic Ratings
Post by: TrueSatan on May 17, 2007, 02:14:59 PM
Quote from: laxcoo on May 17, 2007, 01:29:27 PM
Quote from: HecKel on May 17, 2007, 07:36:37 AM
why you don't upgrade your forum to 1.1.2? This is the latests release and the final one!

HecKel

Because my forum has lot of mods and when upgrade forum all mods are lost

laxcoo

If they are mod packages then that isn't the case...many will work in later versions of your forum.

As is your forum is becoming increasingly outdated and lacks a great many bug fixes and security issue fixes that are in later releases.
Title: Re: Topic Ratings
Post by: geer on May 21, 2007, 01:22:01 PM
all nothing
Title: Re: Topic Ratings
Post by: niravdave on May 21, 2007, 02:13:57 PM
is there a way i can enable this mod for all my boards including sub boards at one go. I have so many boards and i m tired of enabling it in each board.

Dave
Title: Re: Topic Ratings
Post by: Exochat on May 21, 2007, 04:33:50 PM
How do u uninstall this Mod??
I have found it conflicts with the SHOP MOD and even uninstalling through package manager doesnt help. Once its installed it changes Sub-Boards and Board Manager that remains after install and wont let Shop Mod install properly.
Title: Re: Topic Ratings
Post by: TrueSatan on May 21, 2007, 04:42:46 PM
Quote from: Exochat on May 21, 2007, 04:33:50 PM
How do u uninstall this Mod??
I have found it conflicts with the SHOP MOD and even uninstalling through package manager doesnt help. Once its installed it changes Sub-Boards and Board Manager that remains after install and wont let Shop Mod install properly.

I use this mod and the SMF Shop Mod on a number of boards with no problems at all and have done so for some time...they don't conflict!

It is not uncommon for boards with a number of mods installed to need manual installation/uninstallation of mods...this is not a problem with the mods nor a sign that anything is wrong. Please see the following link which gives you details of manual installation of mods and simply reverse the process:

http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Topic Ratings
Post by: shadow82x on May 21, 2007, 10:53:41 PM
This mod wont work for me and it shows no errors
Title: Re: Topic Ratings
Post by: TrueSatan on May 22, 2007, 03:57:14 AM
Quote from: shadow82x on May 21, 2007, 10:53:41 PM
This mod wont work for me and it shows no errors

Without a lot more detail I doubt that anyone will be able to help you change that situation. Does it work in the default theme?
Title: Re: Topic Ratings
Post by: niravdave on May 22, 2007, 10:31:47 AM
is there a way i can enable this mod for all my boards including sub boards at one go. I have so many boards and i m tired of enabling it in each board.

Dave
Title: Re: Topic Ratings
Post by: - danny on May 22, 2007, 05:23:37 PM
I've had to install and uninstall this MOD a couple of times, but I'm getting no where.

Now...I have three columns on my boards that say "Ratings" and they're displaying 3 sets of 5 STARS - expanding the hell outta the boards.

How do I get rid of this?
Title: Re: Topic Ratings
Post by: TrueSatan on May 22, 2007, 05:57:15 PM
Using information from:

http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

and

modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

...look at the changes the mod seeks to make to each file and then manually remove them...you would appear to have multiple copies of some so you will have to look carefully and remove all instances of new code and reverse all the changes the mod makes.

N.B. SMF advises you to make backup copies of your files and database before installing mods...now you know why!
Title: Re: Topic Ratings
Post by: - danny on May 22, 2007, 09:21:40 PM
Quote from: TrueSatan on May 22, 2007, 05:57:15 PM
Using information from:

http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

and

modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

...look at the changes the mod seeks to make to each file and then manually remove them...

Thanks! Seems like uploading a new copy of SMF's MessegeIndex.template.php, then removing and reinstalling the MOD did just as needed.
Title: Re: Topic Ratings
Post by: TrueSatan on May 22, 2007, 09:42:22 PM
My pleasure...glad you got the problem resolved.
Title: Re: Topic Ratings
Post by: niravdave on May 23, 2007, 08:46:58 AM
is there a way i can enable this mod for all my boards including sub boards at one go. I have so many boards and i m tired of enabling it in each board.

Dave
Title: Re: Topic Ratings
Post by: Hadrian on May 31, 2007, 01:43:19 PM
I am getting this error

./Themes/default/Display.template.php        Test failed


any help?
Title: Re: Topic Ratings
Post by: TrueSatan on May 31, 2007, 04:17:31 PM
All it is telling you is that another mod or mods you have installed have already altered the file (given the file in question it suggests that other buttons have been installed into the main nav bar) and that you need to install the mod manually into that file.

If you do, as you always should before applying  any mod, and backup both your files and your database then install the mod ignoring the error then download the failing file to your computer and follow the directions in this link:

http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

...and follow the installation details from the package that you can reveal using this link:

http://server.daniel15.com/smf/package.php (http://server.daniel15.com/smf/package.php)

Then you should find it easy enough to put the file right.
Title: Re: Topic Ratings
Post by: Hadrian on May 31, 2007, 04:53:31 PM
Quote from: TrueSatan on May 31, 2007, 04:17:31 PM
All it is telling you is that another mod or mods you have installed have already altered the file (given the file in question it suggests that other buttons have been installed into the main nav bar) and that you need to install the mod manually into that file.

If you do, as you always should before applying&nbsp; any mod, and backup both your files and your database then install the mod ignoring the error then download the failing file to your computer and follow the directions in this link:

http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

...and follow the installation details from the package that you can reveal using this link:

http://server.daniel15.com/smf/package.php (http://server.daniel15.com/smf/package.php)

Then you should find it easy enough to put the file right.


hi thanks for that info............. oh boy i like to say that i full followed it............LOL

i am not using the default Theme i am using     
Babylon Theme. will this have and change on things?
Title: Re: Topic Ratings
Post by: TrueSatan on May 31, 2007, 05:09:50 PM
No...you still need to install the mod manually into the file that failed the tests in the Package Manager.
Title: Re: Topic Ratings
Post by: Hadrian on May 31, 2007, 06:29:27 PM
hi again

this link is coming up blank

http://server.daniel15.com/smf/package.php

in firefox and IE
Title: Re: Topic Ratings
Post by: TrueSatan on May 31, 2007, 07:03:19 PM
 Daniel15...whose site the link is on...must be having a hosting problem...it happens. You'll just have to wait it out and try again later.
Title: Re: Topic Ratings
Post by: niravdave on June 01, 2007, 10:20:22 AM
is there a way i can enable this mod for all my boards including sub boards at one go. I have so many boards and i m tired of enabling it in each board.

Dave
Title: Re: Topic Ratings
Post by: TrueSatan on June 01, 2007, 12:44:15 PM
Quote from: niravdave on June 01, 2007, 10:20:22 AM
is there a way i can enable this mod for all my boards including sub boards at one go. I have so many boards and i m tired of enabling it in each board.

Dave
It's really annoying to see a message repeated over and over again...and I know others have asked you not to do it.
Title: Re: Topic Ratings
Post by: niravdave on June 01, 2007, 01:29:57 PM
Thanks for ur comment...did u see the dates???

21st may , 22nd may & 1st june.....
Title: Re: Topic Ratings
Post by: TrueSatan on June 01, 2007, 03:18:41 PM
Yes I saw the dates...however it doesn't matter. You've asked for a modification to be custom written for you...nobody has offered to do it, nor do they have to do it. Keeping on asking the same thing doesn't mean that you're more likely to get it done...if fact it might well put people off of helping you.

You could code it yourself or offer to pay a coder to do it for you if it's so important to you to have this modification done.
Title: Re: Topic Ratings
Post by: niravdave on June 01, 2007, 04:15:43 PM
i m not asking for a custom modification my frd. if u read the post. i askede if there is any option in the mod which i m not aware of. Please understand first what i have been trying to ask.
Title: Re: Topic Ratings
Post by: TrueSatan on June 01, 2007, 04:29:42 PM
Your posting is ambiguous...there isn't a setting in the mod for global changes though it might be possible to write one or have one written for you...and please could you use English not Mobile Phone in your postings.
Title: Re: Topic Ratings
Post by: niravdave on June 01, 2007, 05:46:13 PM
4get it mate!
Title: Re: Topic Ratings
Post by: PoLlama on June 26, 2007, 07:01:51 PM
Getting this error...

Edit: Fixed... but new problem below.
Title: Re: Topic Ratings
Post by: asdolo on June 29, 2007, 10:40:39 AM
please can you tell me how to send all 5 star rated topics to homepage?
Title: Re: Topic Ratings
Post by: PoLlama on July 04, 2007, 11:09:29 PM
I installed the mod, it seems to be working correctly...

Except when I select a rating, and hit the go button, the page just refreshes, nothing happens.
Title: Re: Topic Ratings
Post by: shadow82x on July 05, 2007, 01:14:04 AM
What theme are you using and was there any errors when you installed it?
Title: Re: Topic Ratings
Post by: PoLlama on July 05, 2007, 11:26:10 AM
I'm using XD-Obtuse.

Only one error on Manage Boards, but I did that manually, as I did for the theme of course.
Title: Re: Topic Ratings
Post by: PoLlama on July 08, 2007, 11:56:45 PM
Help?
Title: Re: Topic Ratings
Post by: El Reclutador 2003 on July 11, 2007, 09:49:43 AM
It's possible move the "rating" column to as vBulletin Stile?

Thanks!!


(http://img169.imageshack.us/img169/2264/ratinguo2.jpg)
Title: Re: Topic Ratings
Post by: shraz on July 12, 2007, 09:15:21 PM
anyway to put the rating stars also on the board threads? Like next to all the topics. Just like the person above suggested. I wouldn't mind if it would be right besides the topic title.
Title: Re: Topic Ratings
Post by: PoLlama on July 19, 2007, 01:28:43 PM
I have a lot of stuff waiting on this mod so...

Has everyone else been able to get this to work on SMF 1.1.3? Is it just me?

It installed fine, it shows up fine, the option works fine, but submitting a rating only refreshes the page. Could that even be a template issue?
Title: Re: Topic Ratings
Post by: TrueSatan on July 19, 2007, 08:58:32 PM
I use it on SMF 1.1.3 with no problems...try it in the SMF Default theme and if it works for you in that then review the edits you've made to make it work in any custom themes.
Title: Re: Topic Ratings
Post by: PoLlama on July 20, 2007, 10:28:04 AM
Doesn't work on default either.
Title: Re: Topic Ratings
Post by: TrueSatan on July 20, 2007, 11:05:16 AM
Firstly check in ACP>Server Settings that your forum language is set to english and not english utf8...then go through the installation checking the edits the mod makes to see that all are in place and that none have been duplicated...fix as appropriate.

In case it is a hosting issue on your service you can try adding the mod to a fresh test forum and see if it works in that.
Title: Re: Topic Ratings
Post by: PoLlama on July 23, 2007, 11:06:04 PM
English is the only option.

It worked fine on a fresh install.

There appears to be no duplicates or missing script.
Title: رد: Topic Ratings
Post by: TrueSatan on July 24, 2007, 03:58:17 AM
 You have two possible reasons then...either another mod is conflicting with it (the most likely candidates would be ones that alter the URL) or your forum files have become damaged. Perhaps we'd best start with a list of your installed mods...
Title: Re: Topic Ratings
Post by: PoLlama on July 24, 2007, 11:08:33 AM
PrettyURLs is installed.

1.  SMF Archive  1.1    [ List Files ]  [ Delete ]
2. Custom Action Mod 2.04 [ Uninstall ] [ List Files ] [ Delete ]
3. ShowTopics 1.1 [ Uninstall ] [ List Files ] [ Delete ]
4. Topic Solved 1.22 [ Uninstall ] [ List Files ] [ Delete ]
5. Ignore user 1.3 [ Uninstall ] [ List Files ] [ Delete ]
6. Related Topics 1.1.1 [ Uninstall ] [ List Files ] [ Delete ]
7. Profile User Action 1.1 [ Uninstall ] [ List Files ] [ Delete ]
8. User Control Panel By Alan S 1.1 [ Uninstall ] [ List Files ] [ Delete ]
9. Karma Description Mod 2.3 [ Uninstall ] [ List Files ] [ Delete ]
10. TinyPortal 0.983 [ Uninstall ] [ List Files ] [ Delete ]
11. Topic Ratings 1.03 [ Uninstall ] [ List Files ] [ Delete ]
12. Users Online Today Mod 1.4.0 [ Uninstall ] [ List Files ] [ Delete ]
13. Pretty URLs - Base 0.7 [ Uninstall ] [ List Files ] [ Delete ]
14. No Spam by Guests! 0.2 [ Uninstall ] [ List Files ] [ Delete ]
15. Group Moderators 1.4 [ Uninstall ] [ List Files ] [ Delete ]
16. Contact Page 1.1 [ Uninstall ] [ List Files ] [ Delete ]
17. SMF Sitemap 1.2.0 [ Uninstall ] [ List Files ] [ Delete ]
18. Streaming 3 4.2.2b [ Uninstall ] [ List Files ] [ Delete ]
19. Use [color] Tags in [code] Mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
20. View Any Topic Permission Mod 1.6 [ Uninstall ] [ List Files ] [ Delete ]
21. Custom Profile Field Mod 3.16 [ Uninstall ] [ List Files ] [ Delete ]
22. Merge Double Posts 1.0.8 [ Uninstall ] [ List Files ] [ Delete ]
23. vReportBoard Mod 0.99 [ Uninstall ] [ List Files ] [ Delete ]
24. SMFShop 3.0 [ Uninstall ] [ List Files ] [ Delete ]
25. vWarn Mod 1.10 [ Uninstall ] [ List Files ] [ Delete ]
26. Global Announcements 1.0 [ Uninstall ] [ List Files ] [ Delete ]
27. MessagePreviewOnHover 1.5 [ Uninstall ] [ List Files ] [ Delete ]
[/code]
Title: Re: Topic Ratings
Post by: TrueSatan on July 24, 2007, 12:07:53 PM
 This may be another conflict with PrettyURL's...I'll have a work with its developer and see if he  thinks so too...yesterday we found a similar problem with the Tagging mod. I'll also review the other postings in this topic to see if there are other reports that could be due to such a problem. Delending on what we find I'll post back advice on what to do next...though in the short term you may have to use one or other mod but not both.

Please try your test forum in which the mod works properly, as per your earlier post, and see if it fails to work properly once PrettyURLs is also installed...this would confirm a mod conflict.
Title: Re: Topic Ratings
Post by: PoLlama on July 24, 2007, 01:41:17 PM
Alright I can confirm that PrettyURLs is causing this. This time I had already voted on the topic, and when I attempted to change, it only refreshed.

So I'm guessing the URL of the "Go" button is the problem, do you have a fix in mind for this?
Title: Re: Topic Ratings
Post by: TrueSatan on July 24, 2007, 06:00:27 PM
I've contacted the developer of PrettyURLs and am waiting on a reply...he's helped sort this kind of problem before and I'm sure we can resolve it. I don't want to tread on ther toes of the developer of this mod though so we need to do things properly. Once there is a fix available it will be posted here.
Title: Re: Topic Ratings
Post by: Dannii on July 24, 2007, 09:59:18 PM
The package-info.xml is malformed in the uninstall section.

Hmmmm, I think I know the problem now. When you view a topic with an old style URL (topic=12345) it gets redirected to the pretty URL. Normally that is fine, however in this case it isn't, because the mod is using a normal display url to do something. Really, it should be using a new action. Something I'll consider for my mod is rewriting URLs in the <form> tag's action attribute. Anyone have any ideas of problems there?
Title: Re: Topic Ratings
Post by: phedo on July 25, 2007, 12:53:13 AM
Hi there!

I installed the mod and it's running fine. But in my eyes the selectbox above the topic will be not seen by some users. So I think of change the way it is displayed.

Is there anyone who did this already like putting it under the post or make links to click on ? I just ask because there is also an solution. If not, I will try for myself.

Thank you!

Phedo.
Title: Re: Topic Ratings
Post by: PoLlama on July 25, 2007, 12:35:33 PM

<form action="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '" method="post" style="margin: 0;">


Thats the code for the button.
Title: Re: Topic Ratings
Post by: phedo on July 25, 2007, 12:38:05 PM
I just solved it.

Thanks!
Title: Re: Topic Ratings
Post by: Sakae on July 26, 2007, 09:59:27 PM
So, this mod has conflict with Pretty URLs MOD?

I want to install it in my SMF 1.1.3, but looks like I gonna have to wait the Pretty URLs MOD creator's answer first...
Title: Re: Topic Ratings
Post by: TrueSatan on July 27, 2007, 04:13:06 AM
Yes it conflicts...and the PrettyURL's developer has answered and is looking into it. We all wish mod conflicts wouldn't happen yet they do and always will...people are working to get this one fixed.
Title: Re: Topic Ratings
Post by: JoshieDaMan on July 27, 2007, 09:52:33 PM
2.     Execute Modification     ./Sources/Display.php     Test failed
Title: Re: Topic Ratings
Post by: TrueSatan on July 27, 2007, 10:04:23 PM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: Topic Ratings
Post by: Flying Drupalist on August 04, 2007, 11:10:34 PM
daniel's mod parser does not correctly read the package. Just a note.
Title: Re: Topic Ratings
Post by: TrueSatan on August 05, 2007, 05:30:55 AM
Thanks...there are avery few mods it won't read...I try to keep a note of them and vary my advice given accordingly.
Title: Re: Topic Ratings
Post by: Carlos11pr on August 14, 2007, 10:42:54 PM
This is a great mod.

However is there a plan to show how much votes a topic had (e.g. in a tooltip)?

Without this basic information the rating is not that useful.

I hope you know what I mean.

Anyway, thank you for such nice mod. :)

////Edited: it'll be nice to see "Current Topic Rating ("n" user rated):" instead just "Current Topic Rating:"
Title: Re: Topic Ratings
Post by: ES23 on August 17, 2007, 02:24:53 PM
How come I got a blank screen when I visit "Manage Boards" after I have installed this mod?? :(

I got Test failed on 4 files during installation:
-ManageBoards.php
-Subs-Boards.php
-MessageIndex.php
-Display-template.php

I've installed manually on the above 4 files and the rest through Package Manager.I'm using smf 1.1.3 .

Pls advise on wat is wrong???
Title: Re: Topic Ratings
Post by: asdas2 on August 19, 2007, 01:52:39 AM
Install Actions
Installations actions for "Topic Ratings":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code RatingsPdb.php 
2. Execute Modification ./Sources/Display.php Test successful
3. Execute Modification ./Sources/Load.php Test successful
4. Execute Modification ./Sources/ManageBoards.php Test failed  
5. Execute Modification ./Sources/Subs-Boards.php Test successful
6. Execute Modification ./Sources/Subs-Members.php Test successful
7. Execute Modification ./Sources/MessageIndex.php Test successful
8. Execute Modification ./Sources/RemoveTopic.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test successful
10. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
11. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful



Help please! :(
Title: Re: Topic Ratings
Post by: Aristos on August 20, 2007, 07:06:10 AM
Hi,
Thanks a lot for your contributions - it was what I needed on my forum-in-development.

Still - in first instance it did not work, since the there was only a Modification.english.php.
Allthough I'm just a beginning PHP-programmer I managed to make it work. (My board is only in Dutch). Therefore I translated the modifications file.
Simple question: would you like my Modifications.dutch.php, so you can incorporate it in your contribution? If yes, tell me where to send it to.

Second question: I would very much like, that my subscribers can rate at the moment the write an answer (so directly in the reply-screen). Would that be an idea to add?

Love to hear from you,
Aristos (France)
[email protected]
Title: Re: Topic Ratings
Post by: Martin-22 on August 20, 2007, 10:34:16 AM
Hi, I downloaded the package and during installation it claims to be corrupt.

The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: Topic Ratings
Post by: Flying Drupalist on August 23, 2007, 06:37:19 PM
Could someone convert this mod to use:
http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/

I would really appreciate it!
Title: Re: Topic Ratings
Post by: Carlos11pr on August 24, 2007, 01:22:20 AM
It seems that this topic is just for questions. :(

Does anybody here that could give us a light? :)

My question:

Is there a plan to show how much votes a topic had (e.g. in a tooltip)?

It'll be nice to see "Current Topic Rating ("n" user rated):" instead just "Current Topic Rating:"

Thanks.
Title: Re: Topic Ratings
Post by: Eliana Tamerin on August 28, 2007, 08:17:47 PM
Be patient, Carlos11pr. TrueSatan hasn't replied yet to anybody, he's probably working to get the PrettyURLs sorted out.

Just a question for the developer, are the votes totalled, or is it just calculated on the most recent and/or highest votes? It'd be nice to see the mod use partial or half stars to show an average rating for the topic.
Title: Re: Topic Ratings
Post by: TrueSatan on August 29, 2007, 04:16:32 AM
@ ES23

You may have your forum language settings other than is needed...please go to ACP>Server Settings and set to English not English utf8

@ asdas2

Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

@ Aristos

If you would please be so good as to post your Modifications.dutch.php file as an attachment here the mod author will be able to consider its inclusion in any new version of the mod...and in the mean time it will be available for others to use should they so desire.

@ Martin-22

Please try downloading again with a different browser and see if that fixes the problem.

@ Miraploy

For such custom coding work you may need to offer payment...somebody might be willing to do it FOC but your chances don't look good.

@ Carlos11pr

Like Miraploy you may need to offer payment for custom coding.

@ Eliana Tamerin

Thanks! This mod isn't mine or the Pretty URL developers so now that we have identified the problems and posted that information we have done all we can...it must be down to the mod author (who is very busy and is one of the people working to produce v 2.0 of SMF) to look at what we have posted and review his mod. Like you I and the Pretty URL developer are onlookers who have just tried to help where we can.
Title: Re: Topic Ratings
Post by: Diven on September 01, 2007, 06:01:58 AM
People who know everything about this mod, could you please check this (http://www.simplemachines.org/community/index.php?topic=192321.0) topic?
Title: Re: Topic Ratings
Post by: TrueSatan on September 01, 2007, 06:26:47 AM
As with other posters if you require custom coding to be done, as opposed to support for a mod as is, you may very well need to pay for the work...it is possible that somebody might undertake it FOC but the more complex the existing mod and the more extensive or demanding the additional work the more likely it is that payment would be required to have it done.
Title: Re: Topic Ratings
Post by: Flying Drupalist on September 02, 2007, 01:36:57 PM
Quote from: TrueSatan on August 29, 2007, 04:16:32 AM
@ Miraploy
For such custom coding work you may need to offer payment...somebody might be willing to do it FOC but your chances don't look good.

To be honest it doesn't seem all that hard, I'll tackle it myself when I have time.
Title: Re: Topic Ratings
Post by: ES23 on September 06, 2007, 12:37:07 AM
Quote from: perplexed on April 22, 2006, 11:56:43 AM
seems to work on my testboard but I get the following in the forum error log:

8: Undefined index: is_rated
File: /home/mysite/public_html/testforum/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 413

My error is quite similar to perplexed and I haven't seem to find any solutions to that.

8: Undefined index: is_rated
File: /var/www/html/forums/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 423

Any solutions yet??
Title: Topic Ratings with lightning-dk
Post by: Kisa on September 16, 2007, 10:48:58 AM
Hi!
First, thank you for the creation of this mod!
I had the version 1.1.3 of SMF and the theme lightning-dk and the mod doesn't work for me... Could you help please?
Title: Re: Topic Ratings
Post by: TrueSatan on September 16, 2007, 11:01:03 AM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:
Title: Re: Topic Ratings
Post by: ES23 on September 17, 2007, 01:29:01 AM
I've installed this mod manually...
Title: Re: Topic Ratings
Post by: catchpen on September 24, 2007, 04:39:53 AM
Here's my problem

The mod works when I'm viewing the default theme BUT not in my preferred Mesh TP theme.  The checkbox shows while in Mesh TP theme but nothing shows in the forum.

I tried the .mod directions to upload Ratingsdb.php and run it  manually once but it gave me 3 SQL errors. Should I run it again? Because it says not to.

I also tried to go thru and manually install in the Display.template.php but I couldn't even find the first line it says to search for...
<search for>
      $context['sub_template'] = WIRELESS_PROTOCOL . '_display';
   else
      loadTemplate('Display');
</search for>  //??
It's not even in my default display template!

I also tried Daniel15's package parser site and it gives me errors.

I read this whole post and other people are having the same problems, can someone please help? I think i can say I tried everything here.

Thanks.
C.P.
Title: Re: Topic Ratings
Post by: TrueSatan on September 24, 2007, 04:59:41 AM
You need to manually install the mod into your custom theme...the links (including Package Parser) I gave in reply #391 above may help, try to replicate the changes made to the SMF Default theme by the mod into your custom theme. Problems editing that theme might be best addressed by the theme designer on the topic for the theme.
Title: Re: Topic Ratings
Post by: catchpen on September 24, 2007, 05:30:36 AM
Woah wasn't expecting a response so early in the a.m., thanks.  I'll look it over again later today and post what I find if anything.     &gt;:(

It seems like it would almost be easier to weed out the errors in the mod the package parser - http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/) shows and let it spit out exactly where it needs to go. 

Is this the mod packages fault or the package parser?
Title: Re: Topic Ratings
Post by: TrueSatan on September 24, 2007, 07:24:48 AM
Neither are at fault as such...mods aren't required to work with the Package Parser but almost all do do so. Some older mods (such as this) were made before the Package Parser existed and have been kept in maintenance mode rather than updated all that much so they are quite likely not to work all that well with it...still worth trying it though.
Title: Re: Topic Ratings
Post by: catchpen on September 26, 2007, 12:16:44 PM
Finally after a headache got it to work in the mesh TP theme. 

The .mod file sez to insert
';
if ($context['show_rating'])
{
echo '
<td class="windowbg' , $topic['is_sticky'] ? '3' : '', '" valign="middle" width="8%" align="center">';
if ($topic['rating']['empty'] == 1)
echo 'N/A';
else
{
for ($i = 0; $i < $topic['rating']['whole']; $i++)
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
//!!! Should have a half star!
if (!empty($topic['rating']['half']))
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
}
echo '
</td>';
}
echo '


after

<td class="windowbg' , $topic['is_sticky'] ? '3' : '' , '" valign="middle" width="4%" align="center">
', $topic['views'], '
</td>


But really it had to be added after this:
// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

echo '
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
</td>
<td class="windowbg2" valign="middle" width="14%">
', $topic['first_post']['member']['link'], '
</td>
<td valign="middle" width="4%" align="center">
', $topic['replies'], '
</td>
<td valign="middle" width="4%" align="center">
', $topic['views'], '
</td>
';


Everything else goes where the .mod file says to...on Mesh Tp theme that is
Title: Re: Topic Ratings
Post by: asdas2 on September 27, 2007, 01:04:32 AM
Install Actions
Installations actions for "Topic Ratings":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 
:(


i m using smf 1.1.4
Title: Re: Topic Ratings
Post by: TrueSatan on September 27, 2007, 04:51:29 AM
Just follow standard practise for adding mods that don't formally support a new version (change the 1.1.2 to the last version a particular mod could run on.)

Put ;emulate_version=1.1.3 at the end of the Package Manager URL
Title: Re: Topic Ratings
Post by: psi0 on September 27, 2007, 10:31:31 AM
Quote from: asdas2 on September 27, 2007, 01:04:32 AM
Install Actions
Installations actions for "Topic Ratings":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 
:(


i m using smf 1.1.4

True, same message in smf 1.1.4

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Topic Ratings
Post by: TrueSatan on September 27, 2007, 10:44:37 AM
Obviously it won't run on SMF 1.1.4...from the mod site we get
QuoteCompatible With:
    1.0.10, 1.1, 1.1.1, 1.1.2, 1.1.3

...so, as per my last posting on this topic:

Put ;emulate_version=1.1.3 at the end of the Package Manager URL
Title: Re: Topic Ratings
Post by: psi0 on September 27, 2007, 02:22:50 PM
Thaks TrueSatan, i do that but still don´t work.
Title: Re: Topic Ratings
Post by: TrueSatan on September 27, 2007, 02:33:29 PM
I've just tested it on a test forum running SMF 1.1.4 and all worked without a problem. Would you please try re-downloading and installing the mod using a different browser. It may be that you got a bad download or had some browser related glitch.
Title: Re: Topic Ratings
Post by: jossanaijr on September 27, 2007, 03:58:23 PM
Quote from: psi0 on September 27, 2007, 02:22:50 PM
Thaks TrueSatan, i do that but still don´t work.
Did not work for me too... Tried with Firefox and IE, uploaded twice the mod, same error...
Title: Re: Topic Ratings
Post by: asdas2 on September 27, 2007, 06:34:18 PM
did not work me tooo... tried wid IE7  :(
Title: Re: Topic Ratings
Post by: psi0 on September 27, 2007, 07:47:31 PM
we must wait for bigboss  :D
Title: Re: Topic Ratings
Post by: mundomar on September 28, 2007, 12:36:38 AM
Quote from: TrueSatan on September 27, 2007, 02:33:29 PM
I've just tested it on a test forum running SMF 1.1.4 and all worked without a problem. Would you please try re-downloading and installing the mod using a different browser. It may be that you got a bad download or had some browser related glitch.

Same problem:Firefox, IE and konqueror, emulated 1.1.3,parser error

I'm going to probe the manual installation.
Title: Re: Topic Ratings
Post by: ivo2296 on September 28, 2007, 04:38:50 PM
Hmm the mod works perfect with 1.1.4
Title: Re: Topic Ratings
Post by: asdas2 on September 29, 2007, 10:01:13 AM
Quote from: ivo2296 on September 28, 2007, 04:38:50 PM
Hmm the mod works perfect with 1.1.4

how did u installl it
Title: Re: Topic Ratings
Post by: coendeurloo on September 29, 2007, 04:04:03 PM
I can't install it either, could you please say step by step how you did it? adding ";emulate_version=1.1.3" at the end of the url does not work, in my dutch version it says (translated here to english): "There are no installation-actions defined".

What could be wrong? I re-downloaded it, ried it in Firefox and IE, it still does not work.
Title: Re: Topic Ratings
Post by: TrueSatan on September 29, 2007, 05:39:01 PM
Well I just tested it again and the package emulate works perfectly!

Go to ACP>Packages>Download Packages select the package in the "browse" box the URL shown in your browser address bar will be of the form:

http:/your_site.com/your_forum/index.php?action=packageget

Change it to:


http:/your_site.com/your_forum/index.php?action=packageget;emulate_version=1.1.3

Click "Upload" and it...yep...it uploads.
Title: Re: Topic Ratings
Post by: jossanaijr on September 29, 2007, 06:04:15 PM
Quote from: TrueSatan on September 29, 2007, 05:39:01 PM
Well I just tested it again and the package emulate works perfectly!

Go to ACP>Packages>Download Packages select the package in the "browse" box the URL shown in your browser address bar will be of the form:

http:/your_site.com/your_forum/index.php?action=packageget

Change it to:


http:/your_site.com/your_forum/index.php?action=packageget;emulate_version=1.1.3

Click "Upload" and it...yep...it uploads.
Yes, it uploads but then there is a message saying error when trying to install it...  Have downloaded the file many times without success...
Title: Re: Topic Ratings
Post by: TrueSatan on September 29, 2007, 06:52:16 PM
 If it has uploaded then what is the precise error you are getting? If it is merely a file that shows a fail when trying to install that just means that another mod has already edited the file concerned and you need to do a manual installation as a result.
Title: Re: Topic Ratings
Post by: jossanaijr on September 29, 2007, 07:09:12 PM
Quote from: TrueSatan on September 29, 2007, 06:52:16 PM
If it has uploaded then what is the precise error you are getting? If it is merely a file that shows a fail when trying to install that just means that another mod has already edited the file concerned and you need to do a manual installation as a result.
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Topic Ratings
Post by: coendeurloo on September 29, 2007, 09:37:34 PM
Quote from: TrueSatan on September 29, 2007, 06:52:16 PM
If it has uploaded then what is the precise error you are getting? If it is merely a file that shows a fail when trying to install that just means that another mod has already edited the file concerned and you need to do a manual installation as a result.

The exact error which I get after uploading (I can upload withouth the emulation thing) is translated from dutch: "There are no installation-actions defined".

I should mention that I use the SMF bridge with Joomla.
Title: Re: Topic Ratings
Post by: TrueSatan on September 29, 2007, 09:46:16 PM
Well...I think the only way you are going to get round it is to do manual installs...it's not too difficult a mod to manually install so that ought not to be a big problem.

The following links should help:

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Topic Ratings
Post by: coendeurloo on September 30, 2007, 09:02:53 AM
I tried that, but some things can't be found when you need to 'find this' and 'add after', so I stopped that, because I really have too little knowledge of PHP to do this error free. Isn't there a way someone can update this thing so it can be installed? I know a lot of people want this....
Title: Re: Topic Ratings
Post by: ivo2296 on September 30, 2007, 12:06:20 PM
Quote from: asdas2 on September 29, 2007, 10:01:13 AM
Quote from: ivo2296 on September 28, 2007, 04:38:50 PM
Hmm the mod works perfect with 1.1.4

how did u installl it

Replace in your archive with attached file
Title: Re: Topic Ratings
Post by: coendeurloo on September 30, 2007, 12:35:52 PM
Great! It's installed, now, where can I enable it? I can't see a trace of it anywhere.
Title: Re: Topic Ratings
Post by: ivo2296 on September 30, 2007, 12:56:56 PM
Quote from: coendeurloo on September 30, 2007, 12:35:52 PM
Great! It's installed, now, where can I enable it? I can't see a trace of it anywhere.

Admin panel - see each board settings.
Title: Re: Topic Ratings
Post by: jossanaijr on September 30, 2007, 01:03:34 PM
Quote from: ivo2296 on September 30, 2007, 12:06:20 PM
Quote from: asdas2 on September 29, 2007, 10:01:13 AM
Quote from: ivo2296 on September 28, 2007, 04:38:50 PM
Hmm the mod works perfect with 1.1.4

how did u installl it

Replace in your archive with attached file

Thank you! Worked!

Quote from: coendeurloo on September 30, 2007, 12:35:52 PM
Great! It's installed, now, where can I enable it? I can't see a trace of it anywhere.
Inside every board setup.  I`m doing one by one (and I have a lot of boards....)  I did not find how to do a global setup.
Title: Re: Topic Ratings
Post by: coendeurloo on October 01, 2007, 07:49:39 AM
Quote from: ivo2296 on September 30, 2007, 12:56:56 PM
Quote from: coendeurloo on September 30, 2007, 12:35:52 PM
Great! It's installed, now, where can I enable it? I can't see a trace of it anywhere.

Admin panel - see each board settings.

I noticed you need to copy the Modification.yourlanguage.php to your own language folder if you use a different them and language. Otherwise it's only a checkbox with no text, thanks though!
Title: Re: Topic Ratings
Post by: jackulator on October 02, 2007, 08:44:55 AM
would there be any way to make a new column that would also say how many times a topic had been rated? I'd like to be able to use this mod to automatically calculate a topic score in the forums where I have ratings enabled - something like rating*# times rated*num posts
Title: Re: Topic Ratings
Post by: catchpen on October 03, 2007, 05:59:30 AM
This is a great mod, one of my favs but users can still change their vote any time, is there any way to change this? Can someone please figure it out?

Did I mention please?  ;D
Title: Re: Topic Ratings
Post by: eronkid on October 17, 2007, 05:44:35 AM
This mod is great! nice job
Title: Re: Topic Ratings
Post by: forty on October 19, 2007, 03:17:55 AM
QuoteThis is a great mod, one of my favs but users can still change their vote any time, is there any way to change this? Can someone please figure it out?

yeah i agree and also i dont want guest to use the rating function. how can i disable this to the guest.
Title: Re: Topic Ratings
Post by: Paracelsus on October 19, 2007, 10:57:36 AM
2 simple questions ;D:

1. Is this mod permissions-based? (it wasn't in the beginning, but there were plans to do it)

2. Is it possible to choose between one / multiple votes per member and to edit or not own vote? (like in Polls)


Tkx in advance.
Title: Re: Topic Ratings
Post by: Teunel on October 24, 2007, 11:39:44 AM
Is there any screenshot available?
Title: Re: Topic Ratings
Post by: eak1111 on October 27, 2007, 01:22:54 PM
very very good MOD

i sugguest you .  if you add sample picture at the Main Mod detial    it's Perfect.
Title: Re: Topic Ratings
Post by: coendeurloo on October 27, 2007, 01:34:22 PM
It would be perfect if you could see the stars behind the names on the index. Now it's just something people don't really notice.
Title: Re: Topic Ratings
Post by: 1MileCrash on November 11, 2007, 02:36:05 AM
This mod is making me go crazy.

I installed it, all tests successful.

Nothing.

No administration for it, no option to rate topics, it's almost as if i just installed an empty zip file.

What is wrong?
Title: Re: Topic Ratings
Post by: 1MileCrash on November 11, 2007, 02:46:11 AM
Alright, after looking through some source code, crying, my keen eye noticed something.

Here's the problem.
(http://img107.imageshack.us/img107/7781/ratemodmissingtj2.gif)

The checkbox to enable rating in the first place is compleltely unlabeled. I wondered what it was, so viewing the source in my browser showed an "is_rated" id, and that's when i knew.

This should really...really be fixed.
Title: Re: Topic Ratings
Post by: 1MileCrash on November 11, 2007, 03:04:16 AM
k...now that that's taken care of..

Any attempt to rate a topic gives:

session verrification failed, log in and log back out nub

or something like that.  :P

What's wrong now??
Title: Re: Topic Ratings
Post by: Vikram on November 14, 2007, 06:49:24 PM
Quote from: Tippmaster on November 11, 2007, 02:46:11 AM
Alright, after looking through some source code, crying, my keen eye noticed something.

Here's the problem.
(http://img107.imageshack.us/img107/7781/ratemodmissingtj2.gif)

The checkbox to enable rating in the first place is compleltely unlabeled. I wondered what it was, so viewing the source in my browser showed an "is_rated" id, and that's when i knew.

This should really...really be fixed.

Exact same issue. I have installed the MOD, and its working fine and all. But in the Modify Boards, we see that small check box that doesnt  have any label. Also when seen in an actual board, we see a drop down to rate from 0-5, but it doesnt say what that 0-5 is for. Once you select any rating, in the thread, you see the rating stars but there is no label that  says what those 5 stars are for?

Any way to put that word "RATING" in all these places, any modifications in any file. I am not good with the code, so I am not gonna mess with it. But I look forward for your advice. 

Many Thanks! :)

PS: I have attached the screen shots of the blank spaces that I see on the Forum. It may make it easy to understand! Thank you!
Title: Re: Topic Ratings
Post by: Paracelsus on November 15, 2007, 02:29:38 AM
Quote from: Paracelsus on October 19, 2007, 10:57:36 AM
1. Is this mod permissions-based?
2. Is it possible to choose between one / multiple votes per member and to edit or not own vote? (like in Polls)
Title: Re: Topic Ratings
Post by: TrueSatan on November 15, 2007, 09:19:07 AM
@ Vikram

This mod, like almost all mods, only installs automatically into the SMF default theme...if you are using any other theme that is a custom theme and will need the mod to be manually installed into it.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)


Additionally look at (and correct if needed) the following:

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.

@ Paracelsus

No...sorry.
Title: Re: Topic Ratings
Post by: perro88 on December 01, 2007, 07:02:50 PM
Can anyone help me with this?
I want to for example in certain board change the rate system. for example to 10 stars and show for example 3 types of stars(100%full,50%full and 0%full).
It´s possible to do this with some ifs on the display.template? something like if (current board id == xx) do (......) else( same code before).
???
thanks
Title: Re: Topic Ratings
Post by: jossanaijr on December 12, 2007, 02:37:05 PM
How to show it in the Info Center?  Like "Most rated" or something like TOP 5...?
Title: Re: Topic Ratings
Post by: catchpen on December 23, 2007, 08:47:08 AM
If you have TP installed, here's a recent topic block most of work done by J.A. Cortina and I changed it a little to work with this mod.

http://www.tinyportal.net/index.php?topic=596.msg170527#msg170527
Title: Re: Topic Ratings
Post by: ne.miguelito on December 31, 2007, 02:10:41 PM
cannot remove the option for Rating for the guests?
Title: Re: Topic Ratings
Post by: ne.miguelito on December 31, 2007, 02:30:28 PM
the original code is this:

// Can they rate the topic?
if ($context['can_rate'] !== NULL)
{
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
<tr valign="middle" class="catbg3">
<td align="left"><b>';
if ($context['rating']['empty'])
echo $txt['ratings_not_rated'];
else
{
echo $txt['ratings_current_rating'], ': ';
for ($i = 0; $i < $context['rating']['whole']; $i++)
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
//!!! Should have a half star!
if (!empty($context['rating']['half']))
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
}
echo '
</b></td>
<td align="right">
<form action="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '" method="post" style="margin: 0;">
', $context['can_rate'] == -1 ? $txt['ratings_you_not_rated'] : $txt['ratings_you_have_rated'], '
<select name="rating">';
for ($i = 0; $i < 6; $i++)
echo '
<option value="', $i, '" ', $context['can_rate'] == $i ? 'selected="selected"' : '', '>', $i, '</option>';
echo '
</select>
<input type="submit" value="', $txt[161], '" />
<input type="hidden" name="rate_it" value="1" />
</form>
</td>
</tr>
</table>';
}


Will it be that if cannot edit from way to the guests not to have access?
Title: Re: Topic Ratings
Post by: ne.miguelito on January 01, 2008, 10:55:34 AM
Then nobody help?
Title: Re: Topic Ratings
Post by: ne.miguelito on January 01, 2008, 09:51:07 PM
don't forget of me...
Title: Re: Topic Ratings
Post by: Apllicmz on January 02, 2008, 12:05:42 AM
Nao teve ajuda no forum smf Pt..!
Iam ask did have answer in forum Portuguese about that...
Title: Re: Topic Ratings
Post by: TrueSatan on January 02, 2008, 04:31:14 AM
Post in English please...
Title: Re: Topic Ratings
Post by: Apllicmz on January 02, 2008, 05:22:19 AM
sorry man
i need tell ne.miguelito here is forum no chat ....
Title: Re: Topic Ratings
Post by: ne.miguelito on January 02, 2008, 06:47:27 AM
ok, I wait...
Title: Re: Topic Ratings
Post by: Teunel on January 05, 2008, 09:53:20 AM
Is it possible to rank topics sorted by ratings by default? :)
Title: Re: Topic Ratings
Post by: [SAP]Francis on January 05, 2008, 12:05:32 PM
7.     Execute Modification     ./Sources/MessageIndex.php     Test failed
I get this? WTF? I use SMF 1.1.4
Title: Re: Topic Ratings
Post by: TrueSatan on January 05, 2008, 02:44:25 PM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Topic Ratings
Post by: perplexed on February 11, 2008, 02:12:34 PM
Quote from: ES23 on September 06, 2007, 12:37:07 AM
Quote from: perplexed on April 22, 2006, 11:56:43 AM
seems to work on my testboard but I get the following in the forum error log:

8: Undefined index: is_rated
File: /home/mysite/public_html/testforum/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 413

My error is quite similar to perplexed and I haven't seem to find any solutions to that.

8: Undefined index: is_rated
File: /var/www/html/forums/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 423

Any solutions yet??

I never did get an answer to this.


Anybody know how to fix it as I just installed on another test board and getting the exact same errors in the log?
Title: Re: Topic Ratings
Post by: Eliana Tamerin on February 11, 2008, 02:21:51 PM
What's line 423 of your ManageBoards.template.php? Even, post your entire ManageBoards.template.php up in your post or upload it.
Title: Re: Topic Ratings
Post by: perplexed on February 11, 2008, 02:41:37 PM
well the original query was from 2006 so I don't even have that installation any more, but I just installed it today on another site and I get the same error in the log.  Came here to find the answer and found my old post (and no solution)

The line in question is now line 413, which goes like this

<input type="checkbox" name="is_rated"', $context['board']['is_rated'] ? ' checked="checked"' : '', ' class="check" />

Only fail on install was sources/manageboards.php where one line of code had to be entered manually.  I double checked /default/manageboards.template.php when the error came up but everything seems ok.  There was no fail on install for that file and the edits are all there.


8: Undefined index: is_rated
File: /home/perplexed/public_html/forum/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 413
Title: Re: Topic Ratings
Post by: Kays on February 11, 2008, 04:38:55 PM
Try changing "$context['board']['is_rated']" to "!empty($context['board']['is_rated'])"
Title: Re: Topic Ratings
Post by: rodman on February 11, 2008, 05:50:07 PM
Hi guys ....

I've got a fishing site where each month we select a Report of the Month.
I have just installed the Topic Ratings Mod. Great mod, but I would like to know if there's a way to show the topics that have been rated.

I saw this code in a thread on a forum that shows recent topics and shows the ratings:

global $context, $settings, $scripturl, $txt, $db_prefix, $ID_MEMBER, $user_info, $modSettings, $user_profile;

//////////////////////////////////////////// ---------- Unconditional Exclude
//
$exclude_boards = array(); // KEEP (to preserve variable declaration)
// $exclude_boards = array(5); //  Exclude single board
// $exclude_boards = array(5, 8); //  Exclude multiple boards
$ex_board_clause = !empty($exclude_boards) ? ' AND b.ID_BOARD NOT IN (' . implode(', ', $exclude_boards) . ')' : '';
//
//

//////////////////////////////////////////// ---------- Use in TP PHP Article (no title or frame from theme)
// This will give most recent XX posted to topics -OR-
// most recent XX unreplied to topics -OR-
// topics posted to in last XX hours -OR-
// most recent XX topics on topic notify list
//
// Sorts by most recent reply (descending; most recent first) -OR-
//          creation order (descending; most recent first)
//
// All in the detailed topic format
//
//
// Default
// index.php?page=##
// most recent posted to topics - will list
// number equal to  $settings['number_recent_posts']
//
// index.php?page=##;count=50 or index.php?page=##;type=last;count=50
// 50 most recently posted to topics
//
// index.php?page=##;type=unreplied or index.php?page=##;type=unreplied;count=50
// Most recent unreplied to topics - will
// list number specified in 'count' or default to
// number equal to  $settings['number_recent_posts']
//
// index.php?page=##;type=hours or index.php?page=##;type=hours;count=12
// Topics posted to in last number of hours
// specified in 'count' or default to 24.
//
// index.php?page=##;type=notify or index.php?page=##;type=notify;count=50
// Topics in topic notifcation list up to number
// specified in 'count' or a maximum of 100 topics.
//
// *** Admins Only ***
// index.php?page=##;type=notify;user=XXX or index.php?page=##;type=notify;user=XXX;count=50
// Topics in topic notifcation list of specified user up to number
// specified in 'count' or a maximum of 100 topics.
//
// index.php?page=##;type=started or index.php?page=##;type=started;count=50
// Topics started by current user list up to number
// specified in 'count' or a maximum of 100 topics.
//
// *** Admins Only ***
// index.php?page=##;type=notify;user=XXX or index.php?page=##;type=started;user=XXX;count=50
// Topics started by specified user up to number
// specified in 'count' or a maximum of 100 topics.
//
// Add argument order=create to sort by topic creation sequence (most recent first)
// rather than by last reply sequence

$do_query = 1;

//////////////////////////////////////////// ---------- Poor Man's Global Announcements Block (center block - no Title/Frame)
// Delete documentation comments above and marked section below
//
// $announce_topics = array(254, 568, 675, 678); // Topic ID's to be 'Announced'
//
// $heading = '<center>Announcements<center>';
// $where_clause = 't.ID_TOPIC IN (' . implode(', ', $announce_topics) . ')';
// $limit_clause = '';
// $order_clause = 't.ID_LAST_MSG DESC';
////////////////////////////////////////////   

//////////////////////////////////////////// ---------- Last 5 Topics Started by User Block (center block - no Title/Frame)
// Delete documentation comments above and marked section below
//
// $heading = 'Most Recent Topics You Started';
// $where_clause = 'ms.ID_MEMBER = '.$ID_MEMBER;
// $limit_clause = 'LIMIT 5';
// $order_clause = 't.ID_FIRST_MSG DESC';
////////////////////////////////////////////   

//////////////////////////////////////////// ---------- Boardindex Most Recent Topics Arguments
//
// Comment out the Info Center's Most Recent Posts Code and Insert this
// to show Most Recent Topics in full detail style instead
//
// $list_count = $settings['number_recent_posts'];
// $heading = 'Most Recently Posted To Topics';
// $where_clause = 't.ID_LAST_MSG >= ' . ($modSettings['maxMsgID'] - 50 * min($list_count, 5));
// $limit_clause = 'LIMIT ' . $list_count;
// $order_clause = 't.ID_LAST_MSG DESC';
////////////////////////////////////////////   

////////////////////////////////////////////  ------ Remove down to next mark to use in block/boardindex ------
//
if (empty($settings['number_recent_posts']))
$number_recent_posts = 20;
else
$number_recent_posts = $settings['number_recent_posts'];

        if( isset($_GET['type']) )
$list_type = $_GET['type'];
else
$list_type = 'last';

        if( isset($_GET['count']) )
$list_count = $_GET['count'];
else
{
$list_count = $number_recent_posts;
if ($list_type == 'notify')
$list_count = 100;
elseif ($list_type == 'hours')
$list_count = 24;
}

if ($list_count <= 0)
{
$list_count = $number_recent_posts;
if ($list_type == 'hours')
$list_count = 24;
}

if ($list_count > 100)
$list_count = 100;

        if( isset($_GET['order']) )
$list_order = $_GET['order'];
else
$list_order = 'lastpost';

        if( $list_order == 'create' )
$order_clause = 't.ID_FIRST_MSG DESC';
else
$order_clause = 't.ID_LAST_MSG DESC';

if ($list_type == 'hours')
{
$list_from = strtotime($list_count.' hours ago');
$where_clause = 'ml.posterTime >= ' . $list_from;
$limit_clause = ' ';
$heading = 'Topics Posted To In Last '. $list_count . ' Hours';
}
elseif ($list_type == 'unreplied')
{
$where_clause = 't.numReplies = 0';
if ($list_count == 0)
{
$limit_clause = ' ';
$heading = 'Unreplied To Topics';
}
else
{
$limit_clause = 'LIMIT ' . $list_count;
$heading = $list_count . ' Most Recent Unreplied To Topics';
}
}
elseif ($list_type == 'notify')
{
if (isset($_GET['user']) && $user_info['is_admin'])
{
$watched_topics = array();
$request = db_query("SELECT ID_TOPIC FROM {$db_prefix}log_notify WHERE ID_MEMBER = {$_GET['user']} AND ID_BOARD = 0", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$watched_topics[] = $row['ID_TOPIC'];
mysql_free_result($request);
$heading = $list_count . ' Most Recent Topics Being Watched by User # '.$_GET['user'];
$where_clause = 't.ID_TOPIC IN (' . implode(', ', $watched_topics) . ')';
$limit_clause = 'LIMIT ' . $list_count;
if (empty($watched_topics))
$do_query = 0;
}
else
{
$watched_topics = array();
$request = db_query("SELECT ID_TOPIC FROM {$db_prefix}log_notify WHERE ID_MEMBER = {$ID_MEMBER} AND ID_BOARD = 0", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$watched_topics[] = $row['ID_TOPIC'];
mysql_free_result($request);
$heading = $list_count . ' Most Recent Topics Being Watched';
$where_clause = 't.ID_TOPIC IN (' . implode(', ', $watched_topics) . ')';
$limit_clause = 'LIMIT ' . $list_count;
if (empty($watched_topics))
$do_query = 0;
}
}
elseif ($list_type == 'started')
{
if (isset($_GET['user']) && $user_info['is_admin'])
{
$where_clause = 'ms.ID_MEMBER = '.$_GET['user'];
$limit_clause = 'LIMIT ' . $list_count;
        if( $list_order == 'create' )
{
$order_clause = 't.ID_FIRST_MSG DESC';
$heading = 'Most Recent Topics Started by User '.$_GET['user'];
}
else
{
$order_clause = 't.ID_LAST_MSG DESC';
$heading = 'Most Recently Posted To Topics Started by User '.$_GET['user'];
}
}
else
{
$where_clause = 'ms.ID_MEMBER = '.$ID_MEMBER;
$limit_clause = 'LIMIT ' . $list_count;
        if( $list_order == 'create' )
{
$order_clause = 't.ID_FIRST_MSG DESC';
$heading = 'Most Recent Topics You Started';
}
else
{
$order_clause = 't.ID_LAST_MSG DESC';
$heading = 'Most Recently Posted To Topics You Started';
}
}
}
else
{
$where_clause = 't.ID_LAST_MSG >= ' . ($modSettings['maxMsgID'] - 90 * min($list_count, 5));
$limit_clause = 'LIMIT ' . $list_count;
$heading = $list_count . ' Most Recently Posted To Topics';
}
//
////////////////////////////////////////////  ------ Remove up to first mark to use in block/boardindex ------

$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

$groupcolors = array();
$request = db_query("SELECT ID_GROUP, onlineColor FROM {$db_prefix}membergroups", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$groupcolors[$row['ID_GROUP']] = $row['onlineColor'];
mysql_free_result($request);

$topics = array();

if ($do_query == 1)
{
$request = db_query("
SELECT
ms.subject AS firstSubject, ms.posterTime AS firstPosterTime, ms.ID_TOPIC, t.ID_BOARD, b.name AS bname,
t.numReplies, rating, ms.ID_MEMBER AS ID_FIRST_MEMBER, ml.ID_MEMBER AS ID_LAST_MEMBER,
ml.posterTime AS lastPosterTime, IFNULL(mems.realName, ms.posterName) AS firstPosterName,
IFNULL(meml.realName, ml.posterName) AS lastPosterName,
mems.ID_GROUP as mems_group, meml.ID_GROUP as meml_group,
ml.subject AS lastSubject, b.memberGroups,
ml.icon AS lastIcon, ms.icon AS firstIcon, t.ID_POLL, t.isSticky, t.locked, ml.modifiedTime AS lastModifiedTime,
LEFT(ml.body, 384) AS lastBody, LEFT(ms.body, 384) AS firstBody,
ml.smileysEnabled AS lastSmileys, ms.smileysEnabled AS firstSmileys, t.ID_FIRST_MSG, t.ID_LAST_MSG,"
. ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= ml.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . "
FROM ({$db_prefix}messages AS ms, {$db_prefix}messages AS ml, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}members AS mems ON (mems.ID_MEMBER = ms.ID_MEMBER)
LEFT JOIN {$db_prefix}members AS meml ON (meml.ID_MEMBER = ml.ID_MEMBER)
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = t.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)
WHERE " . $where_clause . $ex_board_clause . "
AND t.ID_TOPIC = ms.ID_TOPIC
AND b.ID_BOARD = t.ID_BOARD" . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? " AND b.ID_BOARD != $modSettings[recycle_board]" : '') . "
AND ms.ID_MSG = t.ID_FIRST_MSG
AND ml.ID_MSG = t.ID_LAST_MSG
AND " . $user_info['query_see_board'] . "
ORDER BY " . $order_clause . " " . $limit_clause, __FILE__, __LINE__);


$topic_ids = array();
while ($row = mysql_fetch_assoc($request))
{
if ($row['ID_POLL'] > 0 && $modSettings['pollMode'] == '0')
continue;

$topic_ids[] = $row['ID_TOPIC'];

// Clip the strings first because censoring is slow :/. (for some reason?)
$row['firstBody'] = strip_tags(strtr(parse_bbc($row['firstBody'], $row['firstSmileys'], $row['ID_FIRST_MSG']), array('<br />' => '
')));
if (strlen($row['firstBody']) > 128)
$row['firstBody'] = substr($row['firstBody'], 0, 128) . '...';
$row['lastBody'] = strip_tags(strtr(parse_bbc($row['lastBody'], $row['lastSmileys'], $row['ID_LAST_MSG']), array('<br />' => '
')));
if (strlen($row['lastBody']) > 128)
$row['lastBody'] = substr($row['lastBody'], 0, 128) . '...';

$row['lastSubject'] = $row['firstSubject'];
$row['lastBody'] = $row['firstBody'];

// Decide how many pages the topic should have.
$topic_length = $row['numReplies'] + 1;
if ($topic_length > $modSettings['defaultMaxMessages'])
{
$tmppages = array();
$tmpa = 1;
for ($tmpb = 0; $tmpb < $topic_length; $tmpb += $modSettings['defaultMaxMessages'])
{
$tmppages[] = '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.' . $tmpb . ';topicseen">' . $tmpa . '</a>';
$tmpa++;
}
// Show links to all the pages?
if (count($tmppages) <= 5)
$pages = '« ' . implode(' ', $tmppages);
// Or skip a few?
else
$pages = '« ' . $tmppages[0] . ' ' . $tmppages[1] . ' ... ' . $tmppages[count($tmppages) - 2] . ' ' . $tmppages[count($tmppages) - 1];

if (!empty($modSettings['enableAllMessages']) && $topic_length < $modSettings['enableAllMessages'])
$pages .= '  <a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;all">' . $txt[190] . '</a>';
$pages .= ' »';
}
else
$pages = '';

// We need to check the topic icons exist... you can never be too sure!
if (empty($modSettings['messageIconChecks_disable']))
{
// First icon first... as you'd expect.
if (!isset($icon_sources[$row['firstIcon']]))
$icon_sources[$row['firstIcon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['firstIcon'] . '.gif') ? 'images_url' : 'default_images_url';
// Last icon... last... duh.
if (!isset($icon_sources[$row['lastIcon']]))
$icon_sources[$row['lastIcon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['lastIcon'] . '.gif') ? 'images_url' : 'default_images_url';
}

$color_start = !empty($groupcolors[$row['mems_group']]) ? $groupcolors[$row['mems_group']] : '';
$color_last = !empty($groupcolors[$row['meml_group']]) ? $groupcolors[$row['meml_group']] : '';

// And build the array.
$topics[$row['ID_TOPIC']] = array(
'id' => $row['ID_TOPIC'],
'first_post' => array(
'id' => $row['ID_FIRST_MSG'],
'member' => array(
'name' => $row['firstPosterName'],
'id' => $row['ID_FIRST_MEMBER'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_FIRST_MEMBER'],
'link' => !empty($row['ID_FIRST_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_FIRST_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['firstPosterName'] . '">' . '<font color="' . $color_start . '">' . $row['firstPosterName'] . '</font>' . '</a>' : $row['firstPosterName']
),
'time' => timeformat($row['firstPosterTime']),
'timestamp' => forum_time(true, $row['firstPosterTime']),
'subject' => $row['firstSubject'],
'preview' => $row['firstBody'],
'icon' => $row['firstIcon'],
'icon_url' => $settings[$icon_sources[$row['firstIcon']]] . '/post/' . $row['firstIcon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;topicseen',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;topicseen">' . $row['firstSubject'] . '</a>'
),
'last_post' => array(
'id' => $row['ID_LAST_MSG'],
'member' => array(
'name' => $row['lastPosterName'],
'id' => $row['ID_LAST_MEMBER'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_LAST_MEMBER'],
'link' => !empty($row['ID_LAST_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_LAST_MEMBER'] . '">' . '<font color="' . $color_last . '">' . $row['lastPosterName'] . '</font>' . '</a>' : $row['lastPosterName']
),
'time' => timeformat($row['lastPosterTime']),
'timestamp' => forum_time(true, $row['lastPosterTime']),
'subject' => $row['lastSubject'],
'preview' => $row['lastBody'],
'icon' => $row['lastIcon'],
'icon_url' => $settings[$icon_sources[$row['lastIcon']]] . '/post/' . $row['lastIcon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . ';topicseen#msg' . $row['ID_LAST_MSG'],
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . ';topicseen#msg' . $row['ID_LAST_MSG'] . '">' . $row['lastSubject'] . '</a>'
),
'new' => $row['isRead'],
'new_from' => $row['new_from'],
'new_href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['new_from'] . ';topicseen#new',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['new_from']) . ';topicseen' . ($row['numReplies'] == 0 ? '' : 'new'),
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['new_from']) . ';topicseen#msg' . $row['new_from'] . '">' . $row['firstSubject'] . '</a>',
'is_sticky' => !empty($modSettings['enableStickyTopics']) && !empty($row['isSticky']),
'is_locked' => !empty($row['locked']),
'is_poll' => $modSettings['pollMode'] == '1' && $row['ID_POLL'] > 0,
'is_hot' => $row['numReplies'] >= $modSettings['hotTopicPosts'],
'is_very_hot' => $row['numReplies'] >= $modSettings['hotTopicVeryPosts'],
'is_posted_in' => false,
'icon' => $row['firstIcon'],
'icon_url' => $settings[$icon_sources[$row['firstIcon']]] . '/post/' . $row['firstIcon'] . '.gif',
'subject' => $row['firstSubject'],
'pages' => $pages,
'replies' => $row['numReplies'],
'rating' => array(
'empty' => $row['rating'] == -1,
'whole' => (int) ($row['rating'] / 2),
'half' => $row['rating'] % 2
),
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bname'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bname'] . '</a>'
)
);

determineTopicClass($topics[$row['ID_TOPIC']]);
}
mysql_free_result($request);

if (!empty($modSettings['enableParticipation']) && !empty($topic_ids))
{
$result = db_query("
SELECT ID_TOPIC
FROM {$db_prefix}messages
WHERE ID_TOPIC IN (" . implode(', ', $topic_ids) . ")
AND ID_MEMBER = $ID_MEMBER", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
{
if (empty($topics[$row['ID_TOPIC']]['is_posted_in']))
{
$topics[$row['ID_TOPIC']]['is_posted_in'] = true;
$topics[$row['ID_TOPIC']]['class'] = 'my_' . $topics[$row['ID_TOPIC']]['class'];
}
}
mysql_free_result($result);
}

}

if (!empty($topics))
    {
    echo '
        <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;margin:0px;"' : 'style="margin:0px;"', '>
            <table border="0" width="100%" cellspacing="1" cellpadding="1" class="bordercolor">
                <tr>';

    echo '
                    <td class="titlebg" colspan="7">', $heading, '</td>';
    echo '
                </tr>';

    echo '
<tr class="titlebg">
<td width="10%" colspan="2"> </td>
<td>', $txt[70], '
</td><td width="14%">', $txt[109], '
</td><td width="4%" align="center">', $txt[110], '
</td><td width="4%" align="center">', Rating, '
</td><td width="24%">', $txt[111], '
</td>
</tr>';

foreach ($topics as $topic)
{
// Do we want to seperate the sticky and lock status out?
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));

echo '
<tr>
<td class="windowbg2" valign="middle" align="center" width="6%">
<img src="' . $settings['images_url'] . '/topic/' . $topic['class'] . '.gif" alt="" />
</td><td class="windowbg2" valign="middle" align="center" width="4%">
<img src="' . $topic['first_post']['icon_url'] . '" alt="" align="middle" />
</td><td class="windowbg' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '3' : '' , '" width="48%" valign="middle">' , $topic['is_locked'] && !empty($settings['seperate_sticky_lock']) ? '
<img src="' . $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" style="margin: 0;" />' : '' , $topic['is_sticky'] && !empty($settings['seperate_sticky_lock']) ? '
<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />' : '', $topic['first_post']['link'];
if ($topic['new'] == 0)
{
echo '<a href="', $topic['new_href'], '"> <img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';
}
echo '
<span class="smalltext">', $topic['pages'], '<br>', $txt['smf88'], ' ', $topic['board']['link'], '</span></td>
<td class="windowbg2" valign="middle" width="14%">
', $topic['first_post']['member']['link'], '</td>
<td class="windowbg" valign="middle" width="4%" align="center">
', $topic['replies'], '</td>
<td class="windowbg" valign="middle" width="8%" align="center">';
if ($topic['rating']['empty'] == 1)
echo 'N/A';
else
{
for ($i = 0; $i < $topic['rating']['whole']; $i++)
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
//!!! Should have a half star!
if (!empty($topic['rating']['half']))
echo '<img src="', $settings['images_url'], '/star.gif" alt="*" border="0" />';
}
echo '
</td>
<td class="windowbg2" valign="middle" width="22%">
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" style="float: right;" /></a>
<span class="smalltext">
', $topic['last_post']['time'], '<br />
', $txt[525], ' ', $topic['last_post']['member']['link'], '
</span>
</td>
</tr>';
}

    echo '</table></div>';

    }
else
    echo '<b><u>'.$heading.'<br><br>No Topics Match Search Criteria</u></b>';


It works great but it lists all recent topics. Is there a way for it just to report the rated topics? And how many times it's been rated?
Title: Re: Topic Ratings
Post by: perplexed on February 12, 2008, 06:01:20 AM
Quote from: Kays on February 11, 2008, 04:38:55 PM
Try changing "$context['board']['is_rated']" to "!empty($context['board']['is_rated'])"

before I do that, can you tell me what the difference is, as the code I posted is what is in the mod itself.

Thanks
Title: Re: Topic Ratings
Post by: Eliana Tamerin on February 12, 2008, 08:28:40 AM
Well, true to it's name, !empty() will check whether a variable is empty. It should remove that error you've been getting. If the variable is empty, it will probably skip it, otherwise it will execute the code just fine.
Title: Re: Topic Ratings
Post by: perplexed on February 12, 2008, 11:27:46 AM
ok, so maybe that needs to go in the original mod code as it isnt there?

Thanks I will go try it out :)
Title: Re: Topic Ratings
Post by: perplexed on February 15, 2008, 10:40:22 AM
Quote from: perplexed on February 12, 2008, 06:01:20 AM
Quote from: Kays on February 11, 2008, 04:38:55 PM
Try changing "$context['board']['is_rated']" to "!empty($context['board']['is_rated'])"

before I do that, can you tell me what the difference is, as the code I posted is what is in the mod itself.

Thanks

just to let you know that this seems to have fixed the errors in the log.

Thanks
Title: Re: Topic Ratings
Post by: Kender on February 19, 2008, 09:14:17 AM
is there a way to display the "rate this topic" in the first post of a topic?
maybe with a graphical representaiton (yahoo videos, youtube video - 5 stars, highlight over the star rating you want to give)

or would that be too much work and require a new/different mod?

the 5star graphic i am thinking of would be for the rating column on the vew board page, where you see the topics with ratings
Title: Re: Topic Ratings
Post by: perplexed on March 08, 2008, 12:32:07 PM
Because this mod adds an extra column all my topic titles are a bit squished.

Is there a way of fixing this so the titles get more room?  If something has to be squished it would be better that it was the 'last post by' column.

Also it affects the sticky first post mod display but I can fix that :)
Title: Re: Topic Ratings
Post by: perplexed on March 14, 2008, 09:12:52 AM
Quote from: perplexed on March 08, 2008, 12:32:07 PM
Because this mod adds an extra column all my topic titles are a bit squished.

Is there a way of fixing this so the titles get more room?  If something has to be squished it would be better that it was the 'last post by' column.

Also it affects the sticky first post mod display but I can fix that :)

does anyone know how to do this?
Title: Re: Topic Ratings
Post by: Eliana Tamerin on March 14, 2008, 10:46:47 AM
Probably just adjust the column width in the first appearance of it.
Title: Re: Topic Ratings
Post by: perplexed on March 14, 2008, 11:55:47 AM
yeah that was what I tried first but it didnt work, so I thought I must be missing something.  I'll look at it again later tonight
Title: Re: Topic Ratings
Post by: Final60 on March 23, 2008, 02:38:58 PM
Mod seems to work perfectly for default theme but who ever uses the default theme?

If anyone could post a short tut. on how to edit custom theme files to make this work. would be much appreciated.

regards,
Title: Re: Topic Ratings
Post by: Gary on March 23, 2008, 02:42:29 PM
Use a Package Parser, there's plenty of them about now. http://sleepycode.com/PackageParser/index.php
Title: Re: Topic Ratings
Post by: Final60 on March 25, 2008, 10:30:15 AM
Hi
I put the package through the parser but it gives me this error:

[qoute]ERROR: The package-info.xml file is invalid!


Debugging Information
Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:
Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all')
#2 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpEKzQsc', 'install', 'all')
#3 {main}

XML File:
[/qoute]
Title: Re: Topic Ratings
Post by: Final60 on March 27, 2008, 12:10:34 PM
Anyone know what the following error relates to?:

Not unique table/alias: 'lr'
File: /homepages/24/d92034484/htdocs/sub_ryzom/forum/Sources/Display.php
Line: 226
Title: Re: Topic Ratings
Post by: ragrob on April 14, 2008, 02:31:54 AM
I am running 1.1.4, as you can see below everything tests successfully but I can't find the ratings anywhere. Not in admin panel. I have no idea whats going on. Can someone help?

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/ManageBoards.php Test successful
4. Execute Modification ./Sources/Subs-Boards.php Test successful
5. Execute Modification ./Sources/Subs-Members.php Test successful
6. Execute Modification ./Sources/MessageIndex.php Test successful
7. Execute Modification ./Sources/RemoveTopic.php Test successful
8. Execute Modification ./Themes/default/Display.template.php Test successful
9. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
10. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
Title: Re: Topic Ratings
Post by: perplexed on April 25, 2008, 10:30:56 AM
ratings checkbox is on each individual board.  Look in Admin > boards > select one of your boards and scroll to the bottom on the page.  You will find the checkbox near the bottom. 
Title: Re: Topic Ratings
Post by: TheNostradamus on April 29, 2008, 03:54:45 AM
Quote from: quiteperplexed on April 25, 2008, 10:30:56 AM
ratings checkbox is on each individual board.  Look in Admin > boards > select one of your boards and scroll to the bottom on the page.  You will find the checkbox near the bottom. 

I have done that myself with 1.1.4 and the botton tick boxes dont have any names, What I mean is the tick boes are there but not words aere there to tell me what the 2 tick boxes do, when i click them i get the error.

"Not unique table/alias: 'lr'
File: /home/grand/public_html/Community/Sources/Display.php
Line: 226

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php."
Title: Re: Topic Ratings
Post by: perplexed on April 29, 2008, 04:23:43 AM
are you using a custom theme or a language other than regular English (English-utf8 is different to English)? 

Did the mod install correctly with no 'test fails'?
Title: Re: Topic Ratings
Post by: TheNostradamus on April 29, 2008, 04:31:20 AM
no test fails but im running Dark Red theme in english..
Title: Re: Topic Ratings
Post by: perplexed on April 29, 2008, 04:35:03 AM
as you are using a custom theme you will have to edit the theme manually  - go to the mod page here http://custom.simplemachines.org/mods/index.php?mod=91 and follow the instructions for manual install.

(btw if you switch to default CORE theme you should see the mod working correctly.  Make sure it is before starting on the above)

Always back up your files before editing them in case you make any mistakes
Title: Re: Topic Ratings
Post by: TheNostradamus on April 29, 2008, 04:50:09 AM
thanks mate, will give it a try after I have dome some work, Let you know later...
Title: Re: Topic Ratings
Post by: perplexed on April 29, 2008, 05:10:17 AM
you're welcome, post back if you have any problems
Title: Re: Topic Ratings
Post by: TheNostradamus on April 29, 2008, 10:26:46 AM
Still dont work, changed theme to default, installed and as soon as I go to a post I get

"Not unique table/alias: 'lr'
File: /home/grand/public_html/Community/Sources/Display.php
Line: 226

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php. ""

::)
Title: Re: Topic Ratings
Post by: perplexed on April 29, 2008, 10:34:19 AM
ok try this http://www.simplemachines.org/community/index.php?topic=26770
Title: Re: Topic Ratings
Post by: libra_86930 on April 30, 2008, 04:26:20 AM
hi, I installed this mod and everything was okay, ticked te board I wanted to do and the the rating came next to the topic board but theres no where to rate it. I'm using default so I dont really know whats wrong >.<
Title: Re: Topic Ratings
Post by: LuckyLuciano on May 06, 2008, 04:27:34 PM
I am getting this.... Should I still apply the mod??

Running SMF 1.1.5

Installing this package will perform the following actions:  Type Action Description
1. Execute Code RatingsPdb.php 
2. Execute Modification ./Sources/Display.php Test successful
3. Execute Modification ./Sources/Load.php Test successful
4. Execute Modification ./Sources/ManageBoards.php Test successful
5. Execute Modification ./Sources/Subs-Boards.php Test successful
6. Execute Modification ./Sources/Subs-Members.php Test successful
7. Execute Modification ./Sources/MessageIndex.php Test successful
8. Execute Modification ./Sources/RemoveTopic.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test failed
10. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
11. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
Title: Re: Topic Ratings
Post by: Succubus Evaligan on May 08, 2008, 03:49:47 AM
Hi can somebody help me?

Installations actions for "Topic Ratings":
La instalación de este paquete realizará las siguientes acciones:
   Tipo    Acción    Descripción
1.    Executar Código    RatingsPdb.php    
2.    Executar Modificación    ./Sources/Display.php    Éxito
3.    Executar Modificación    ./Sources/Load.php    Éxito
4.    Executar Modificación    ./Sources/ManageBoards.php    Prueba fallida
5.    Executar Modificación    ./Sources/Subs-Boards.php    Éxito
6.    Executar Modificación    ./Sources/Subs-Members.php    Éxito
7.    Executar Modificación    ./Sources/MessageIndex.php    Éxito
8.    Executar Modificación    ./Sources/RemoveTopic.php    Éxito
9.    Executar Modificación    ./Themes/default/Display.template.php    Éxito
10.    Executar Modificación    ./Themes/default/ManageBoards.template.php    Éxito
11.    Executar Modificación    ./Themes/default/MessageIndex.template.php    Éxito
12.    Executar Modificación    ./Themes/default/languages/Modifications.english.php    Éxito
13.    Executar Modificación    ./Themes/default/languages/Modifications.spanish.php    Éxito


This is my ManageBoards.php

<?php
/**********************************************************************************
* ManageBoards.php                                                                *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1.2                                           *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* Manage and maintain the boards and categories of the forum.

void ManageBoards()
- main entry point for all the manageboards admin screens.
- called by ?action=manageboards.
- checks the permissions, based on the sub-action.
- loads the ManageBoards language file.
- calls a function based on the sub-action.

void ManageBoardsMain()
- main screen showing all boards and categories.
- called by ?action=manageboards or ?action=manageboards;sa=move.
- uses the main template of the ManageBoards template.
- requires manage_boards permission.
- also handles the interface for moving boards.

void EditCategory()
- screen for editing and repositioning a category.
- called by ?action=manageboards;sa=cat
- uses the modify_category sub-template of the ManageBoards template.
- requires manage_boards permission.
- also used to show the confirm deletion of category screen 
  (sub-template confirm_category_delete).

void EditCategory2()
- function for handling a submitted form saving the category.
- called by ?action=manageboards;sa=cat2
- requires manage_boards permission.
- also handles deletion of a category.
- redirects to ?action=manageboards.

void EditBoard()
- screen for editing and repositioning a board.
- called by ?action=manageboards;sa=board
- uses the modify_board sub-template of the ManageBoards template.
- requires manage_boards permission.
- also used to show the confirm deletion of category screen 
  (sub-template confirm_board_delete).

void EditBoard2()
- function for handling a submitted form saving the board.
- called by ?action=manageboards;sa=board2
- requires manage_boards permission.
- also handles deletion of a board.
- redirects to ?action=manageboards.

void EditBoardSettings()
- a screen to set a few general board and category settings.
- uses the modify_general_settings sub template.
*/

// The controller; doesn't do anything, just delegates.
function ManageBoards()
{
global $context$txt$scripturl;

// Everything's gonna need this.
loadLanguage('ManageBoards');

// Format: 'sub-action' => array('function', 'permission')
$subActions = array(
'board' => array('EditBoard''manage_boards'),
'board2' => array('EditBoard2''manage_boards'),
'cat' => array('EditCategory''manage_boards'),
'cat2' => array('EditCategory2''manage_boards'),
'main' => array('ManageBoardsMain''manage_boards'),
'move' => array('ManageBoardsMain''manage_boards'),
'newcat' => array('EditCategory''manage_boards'),
'newboard' => array('EditBoard''manage_boards'),
'settings' => array('EditBoardSettings''admin_forum'),
);

// Default to sub action 'main' or 'settings' depending on permissions.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : (allowedTo('manage_boards') ? 'main' 'settings');

// Have you got the proper permissions?
isAllowedTo($subActions[$_REQUEST['sa']][1]);

// Administrative side bar, here we come!
adminIndex('manage_boards');

// Create the tabs for the template.
$context['admin_tabs'] = array(
'title' => $txt[41],
'help' => 'manage_boards',
'description' => $txt[677],
'tabs' => array(),
);
if (allowedTo('manage_boards'))
{
$context['admin_tabs']['tabs']['modify_boards'] = array(
'title' => $txt['boardsEdit'],
'description' => $txt[677],
'href' => $scripturl '?action=manageboards',
'is_selected' => $_REQUEST['sa'] != 'newcat' && $_REQUEST['sa'] != 'settings',
);
$context['admin_tabs']['tabs']['add_cat'] = array(
'title' => $txt['mboards_new_cat'],
'description' => $txt[677],
'href' => $scripturl '?action=manageboards;sa=newcat',
'is_selected' => $_REQUEST['sa'] == 'newcat',
'is_last' => !allowedTo('admin_forum'),
);
}
if (allowedTo('admin_forum'))
$context['admin_tabs']['tabs']['settings'] = array(
'title' => $txt['settings'],
'description' => $txt['mboards_settings_desc'],
'href' => $scripturl '?action=manageboards;sa=settings',
'is_selected' => $_REQUEST['sa'] == 'settings',
'is_last' => true,
);

$subActions[$_REQUEST['sa']][0]();
}

// The main control panel thing.
function ManageBoardsMain()
{
global $txt$context$cat_tree$boards$boardList$scripturl$sourcedir$txt;

loadTemplate('ManageBoards');

require_once($sourcedir '/Subs-Boards.php');

if (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'move' && in_array($_REQUEST['move_to'], array('child''before''after''top')))
{
checkSession('get');
if ($_REQUEST['move_to'] === 'top')
$boardOptions = array(
'move_to' => $_REQUEST['move_to'],
'target_category' => (int) $_REQUEST['target_cat'],
'move_first_child' => true,
);
else
$boardOptions = array(
'move_to' => $_REQUEST['move_to'],
'target_board' => (int) $_REQUEST['target_board'],
'move_first_child' => true,
);
modifyBoard((int) $_REQUEST['src_board'], $boardOptions);
}

getBoardTree();

$context['move_board'] = !empty($_REQUEST['move']) && isset($boards[(int) $_REQUEST['move']]) ? (int) $_REQUEST['move'] : 0;

$context['categories'] = array();
foreach ($cat_tree as $catid => $tree)
{
$context['categories'][$catid] = array(
'name' => &$tree['node']['name'],
'id' => &$tree['node']['id'],
'boards' => array()
);
$move_cat = !empty($context['move_board']) && $boards[$context['move_board']]['category'] == $catid;
foreach ($boardList[$catid] as $boardid)
{
$context['categories'][$catid]['boards'][$boardid] = array(
'id' => &$boards[$boardid]['id'],
'name' => &$boards[$boardid]['name'],
'description' => &$boards[$boardid]['description'],
'child_level' => &$boards[$boardid]['level'],
'local_permissions' => &$boards[$boardid]['use_local_permissions'],
'move' => $move_cat && ($boardid == $context['move_board'] || isChildOf($boardid$context['move_board']))
);
}
}

if (!empty($context['move_board']))
{
$context['move_title'] = sprintf($txt['mboards_select_destination'], htmlspecialchars($boards[$context['move_board']]['name']));
foreach ($cat_tree as $catid => $tree)
{
$prev_child_level 0;
$prev_board 0;
$stack = array();
foreach ($boardList[$catid] as $boardid)
{
if (!isset($context['categories'][$catid]['move_link']))
$context['categories'][$catid]['move_link'] = array(
'child_level' => 0,
'label' => $txt['mboards_order_before'] . ' \'' htmlspecialchars($boards[$boardid]['name']) . '\'',
'href' => $scripturl '?action=manageboards;sa=move;src_board=' $context['move_board'] . ';target_board='$boardid ';move_to=before;sesc=' $context['session_id'],
);

if (!$context['categories'][$catid]['boards'][$boardid]['move'])
$context['categories'][$catid]['boards'][$boardid]['move_links'] = array(
array(
'child_level' => $boards[$boardid]['level'],
'label' => $txt['mboards_order_after'] . '\'' htmlspecialchars($boards[$boardid]['name']) . '\'',
'href' => $scripturl '?action=manageboards;sa=move;src_board=' $context['move_board'] . ';target_board='$boardid ';move_to=after;sesc=' $context['session_id'],
),
array(
'child_level' => $boards[$boardid]['level'] + 1,
'label' => $txt['mboards_order_child_of'] . ' \'' htmlspecialchars($boards[$boardid]['name']) . '\'',
'href' => $scripturl '?action=manageboards;sa=move;src_board=' $context['move_board'] . ';target_board='$boardid ';move_to=child;sesc=' $context['session_id'],
),
);

$difference $boards[$boardid]['level'] - $prev_child_level;
if ($difference == && !empty($context['categories'][$catid]['boards'][$prev_board]['move_links']))
array_push($stackarray_shift($context['categories'][$catid]['boards'][$prev_board]['move_links']));
elseif ($difference 0)
{
if (empty($context['categories'][$catid]['boards'][$prev_board]['move_links']))
$context['categories'][$catid]['boards'][$prev_board]['move_links'] = array();
for ($i 0$i < -$difference$i++)
array_unshift($context['categories'][$catid]['boards'][$prev_board]['move_links'], array_pop($stack));
}

$prev_board $boardid;
$prev_child_level $boards[$boardid]['level'];

}
if (!empty($stack) && !empty($context['categories'][$catid]['boards'][$prev_board]['move_links']))
$context['categories'][$catid]['boards'][$prev_board]['move_links'] = array_merge($stack$context['categories'][$catid]['boards'][$prev_board]['move_links']);
elseif (!empty($stack))
$context['categories'][$catid]['boards'][$prev_board]['move_links'] = $stack;

if (empty($boardList[$catid]))
$context['categories'][$catid]['move_link'] = array(
'child_level' => 0,
'label' => $txt['mboards_order_before'] . ' \'' htmlspecialchars($tree['node']['name']) . '\'',
'href' => $scripturl '?action=manageboards;sa=move;src_board=' $context['move_board'] . ';target_cat=' $catid ';move_to=top;sesc=' $context['session_id'],
);
}
}

$context['page_title'] = $txt[41];
$context['can_manage_permissions'] = allowedTo('manage_permissions');
}

// Modify a specific category.
function EditCategory()
{
global $txt$db_prefix$context$cat_tree$boardList$boards$sourcedir;

loadTemplate('ManageBoards');
require_once($sourcedir '/Subs-Boards.php');
getBoardTree();

// ID_CAT must be a number.... if it exists.
$_REQUEST['cat'] = isset($_REQUEST['cat']) ? (int) $_REQUEST['cat'] : 0;

// Start with one - "In first place".
$context['category_order'] = array(
array(
'id' => 0,
'name' => $txt['mboards_order_first'],
'selected' => !empty($_REQUEST['cat']) ? $cat_tree[$_REQUEST['cat']]['is_first'] : false,
'true_name' => ''
)
);

// If this is a new category set up some defaults.
if ($_REQUEST['sa'] == 'newcat')
{
$context['category'] = array(
'id' => 0,
'name' => $txt['mboards_new_cat_name'],
'editable_name' => htmlspecialchars($txt['mboards_new_cat_name']),
'can_collapse' => true,
'is_new' => true,
'is_empty' => true
);
}
// Category doesn't exist, man... sorry.
elseif (!isset($cat_tree[$_REQUEST['cat']]))
redirectexit('action=manageboards');
else
{
$context['category'] = array(
'id' => $_REQUEST['cat'],
'name' => $cat_tree[$_REQUEST['cat']]['node']['name'],
'editable_name' => htmlspecialchars($cat_tree[$_REQUEST['cat']]['node']['name']),
'can_collapse' => !empty($cat_tree[$_REQUEST['cat']]['node']['canCollapse']),
'children' => array(),
'is_empty' => empty($cat_tree[$_REQUEST['cat']]['children'])
);

foreach ($boardList[$_REQUEST['cat']] as $child_board)
$context['category']['children'][] = str_repeat('-'$boards[$child_board]['level']) . ' ' $boards[$child_board]['name'];
}


$prevCat 0;
foreach ($cat_tree as $catid => $tree)
{
if ($catid == $_REQUEST['cat'] && $prevCat 0)
$context['category_order'][$prevCat]['selected'] = true;
else
$context['category_order'][$catid] = array(
'id' => $catid,
'name' => $txt['mboards_order_after'] . $tree['node']['name'],
'selected' => false,
'true_name' => $tree['node']['name']
);
$prevCat $catid;
}
if (!isset($_REQUEST['delete']))
{
$context['sub_template'] = 'modify_category';
$context['page_title'] = $_REQUEST['sa'] == 'newcat' $txt['mboards_new_cat_name'] : $txt['catEdit'];
}
else
{
$context['sub_template'] = 'confirm_category_delete';
$context['page_title'] = $txt['mboards_delete_cat'];
}
}

// Complete the modifications to a specific category.
function EditCategory2()
{
global $db_prefix$sourcedir;

checkSession();

require_once($sourcedir '/Subs-Boards.php');

$_POST['cat'] = (int) $_POST['cat'];

// Add a new category or modify an existing one..
if (isset($_POST['edit']) || isset($_POST['add']))
{
$catOptions = array();

if (isset($_POST['cat_order']))
$catOptions['move_after'] = (int) $_POST['cat_order'];

// Change "This & That" to "This &amp; That" but don't change "&cent" to "&amp;cent;"...
$catOptions['cat_name'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~''&amp;$1'$_POST['cat_name']);

$catOptions['is_collapsible'] = isset($_POST['collapse']);


if (isset($_POST['add']))
createCategory($catOptions);
else
modifyCategory($_POST['cat'], $catOptions);
}
// If they want to delete - first give them confirmation.
elseif (isset($_POST['delete']) && !isset($_POST['confirmation']) && !isset($_POST['empty']))
{
EditCategory();
return;
}
// Delete the category!
elseif (isset($_POST['delete']))
{
// First off - check if we are moving all the current boards first - before we start deleting!
if (isset($_POST['delete_action']) && $_POST['delete_action'] == 1)
{
if (empty($_POST['cat_to']))
fatal_lang_error('mboards_delete_error');

deleteCategories(array($_POST['cat']), (int) $_POST['cat_to']);
}
else
deleteCategories(array($_POST['cat']));
}

redirectexit('action=manageboards');
}

// Modify a specific board..
function EditBoard()
{
global $txt$db_prefix$context$cat_tree$boards$boardList$sourcedir;

loadTemplate('ManageBoards');
require_once($sourcedir '/Subs-Boards.php');
getBoardTree();

// ID_BOARD must be a number....
$_REQUEST['boardid'] = isset($_REQUEST['boardid']) ? (int) $_REQUEST['boardid'] : 0;
if (!isset($boards[$_REQUEST['boardid']]))
{
$_REQUEST['boardid'] = 0;
$_REQUEST['sa'] = 'newboard';
}

if ($_REQUEST['sa'] == 'newboard')
{
// Some things that need to be setup for a new board.
$curBoard = array(
'memberGroups' => array(0, -1),
'category' => (int) $_REQUEST['cat']
);
$context['board_order'] = array();
$context['board'] = array(
'is_new' => true,
'id' => 0,
'name' => $txt['mboards_new_board_name'],
'description' => '',
'count_posts' => 1,
'theme' => 0,
'override_theme' => 0,
'passwd' => '','countMoney' => 1,
'category' => (int) $_REQUEST['cat'],
'no_children' => true,
'permission_mode' => 'normal',
);
}
else
{
// Just some easy shortcuts.
$curBoard = &$boards[$_REQUEST['boardid']];
$context['board'] = $boards[$_REQUEST['boardid']];
$context['board']['name'] = htmlspecialchars($context['board']['name']);
$context['board']['description'] = htmlspecialchars($context['board']['description']);
$context['board']['no_children'] = empty($boards[$_REQUEST['boardid']]['tree']['children']);
}

// Default membergroups.
$context['groups'] = array(
-=> array(
'id' => '-1',
'name' => $txt['parent_guests_only'],
'checked' => in_array('-1'$curBoard['memberGroups']),
'is_post_group' => false,
),
=> array(
'id' => '0',
'name' => $txt['parent_members_only'],
'checked' => in_array('0'$curBoard['memberGroups']),
'is_post_group' => false,
)
);

// Load membergroups.
$request db_query("
SELECT groupName, ID_GROUP, minPosts
FROM 
{$db_prefix}membergroups
WHERE ID_GROUP > 3 OR ID_GROUP = 2
ORDER BY minPosts, ID_GROUP != 2, groupName"
__FILE____LINE__);
while ($row mysql_fetch_assoc($request))
{
if ($_REQUEST['sa'] == 'newboard' && $row['minPosts'] == -1)
$curBoard['memberGroups'][] = $row['ID_GROUP'];

$context['groups'][(int) $row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => trim($row['groupName']),
'checked' => in_array($row['ID_GROUP'], $curBoard['memberGroups']),
'is_post_group' => $row['minPosts'] != -1,
);
}
mysql_free_result($request);

foreach ($boardList[$curBoard['category']] as $boardid)
{
if ($boardid == $_REQUEST['boardid'])
{
$context['board_order'][] = array(
'id' => $boardid,
'name' => str_repeat('-'$boards[$boardid]['level']) . ' (' $txt['mboards_current_position'] . ')',
'children' => $boards[$boardid]['tree']['children'],
'no_children' => empty($boards[$boardid]['tree']['children']),
'is_child' => false,
'selected' => true
);
}
else
{
$context['board_order'][] = array(
'id' => $boardid,
'name' => str_repeat('-'$boards[$boardid]['level']) . ' ' $boards[$boardid]['name'],
'is_child' => empty($_REQUEST['boardid']) ? false isChildOf($boardid$_REQUEST['boardid']),
'selected' => false
);
}
}

// Are there any places to move child boards to in the case where we are confirming a delete?
if (!empty($_REQUEST['boardid']))
{
$context['can_move_children'] = false;
$context['children'] = $boards[$_REQUEST['boardid']]['tree']['children'];
foreach ($context['board_order'] as $board)
if ($board['is_child'] == false && $board['selected'] == false)
$context['can_move_children'] = true;
}

// Get other available categories.
$context['categories'] = array();
foreach ($cat_tree as $catID => $tree)
$context['categories'][] = array(
'id' => $catID == $curBoard['category'] ? $catID,
'name' => $tree['node']['name'],
'selected' => $catID == $curBoard['category']
);

$request db_query("
SELECT mem.realName
FROM (
{$db_prefix}moderators AS mods, {$db_prefix}members AS mem)
WHERE mods.ID_BOARD = 
$_REQUEST[boardid]
AND mem.ID_MEMBER = mods.ID_MEMBER"
__FILE____LINE__);
$context['board']['moderators'] = array();
while ($row mysql_fetch_assoc($request))
$context['board']['moderators'][] = $row['realName'];
mysql_free_result($request);

$context['board']['moderator_list'] = empty($context['board']['moderators']) ? '' '&quot;' implode('&quot;, &quot;'$context['board']['moderators']) . '&quot;';

// Get all the themes...
$request db_query("
SELECT ID_THEME AS id, value AS name
FROM 
{$db_prefix}themes
WHERE variable = 'name'"
__FILE____LINE__);
$context['themes'] = array();
while ($row mysql_fetch_assoc($request))
$context['themes'][] = $row;
mysql_free_result($request);

if (!isset($_REQUEST['delete']))
{
$context['sub_template'] = 'modify_board';
$context['page_title'] = $txt['boardsEdit'];
}
else
{
$context['sub_template'] = 'confirm_board_delete';
$context['page_title'] = $txt['mboards_delete_board'];
}
}

// Make changes to/delete a board.
function EditBoard2()
{
global $txt$db_prefix$sourcedir$modSettings;

checkSession();

require_once($sourcedir '/Subs-Boards.php');

$_POST['boardid'] = (int) $_POST['boardid'];

// Mode: modify aka. don't delete.
if (isset($_POST['edit']) || isset($_POST['add']))
{
$boardOptions = array();

// Move this board to a new category?
if (!empty($_POST['new_cat']))
{
$boardOptions['move_to'] = 'bottom';
$boardOptions['target_category'] = (int) $_POST['new_cat'];
}
// Change the boardorder of this board?
elseif (!empty($_POST['placement']) && !empty($_POST['board_order']))
{
if (!in_array($_POST['placement'], array('before''after''child')))
fatal_lang_error('mangled_post'false);

$boardOptions['move_to'] = $_POST['placement'];
$boardOptions['target_board'] =  (int) $_POST['board_order'];
}

// Checkboxes....
$boardOptions['countMoney'] = isset($_POST['countMoney']);$boardOptions['posts_count'] = isset($_POST['count']);
$boardOptions['override_theme'] = isset($_POST['override_theme']);
$boardOptions['board_theme'] = (int) $_POST['boardtheme'];
$boardOptions['access_groups'] = array();
if (!empty($_POST['groups']))
foreach ($_POST['groups'] as $group)
$boardOptions['access_groups'][] = (int) $group;

// Change '1 & 2' to '1 &amp; 2', but not '&amp;' to '&amp;amp;'...
$boardOptions['board_name'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~''&amp;$1'$_POST['board_name']);
$boardOptions['board_description'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~''&amp;$1'$_POST['desc']);
if ( $_POST['passwdBoard'] != "#FAKEPASSWORD" )
$boardOptions['passwd'] = !empty($_POST['passwdBoard']) ? sha1($boardOptions['board_name'].$_POST['passwdBoard']) : '';

// With permission_enable_by_board disabled you can set some predefined permissions.
if (empty($modSettings['permission_enable_by_board']))
{
$boardOptions['permission_mode'] = (int) $_POST['permission_mode'];
$boardOptions['inherit_permissions'] = false;
}

$boardOptions['moderator_string'] = $_POST['moderators'];

// Create a new board...
if (isset($_POST['add']))
{
// New boards by default go to the bottom of the category.
if (empty($_POST['new_cat']))
$boardOptions['target_category'] = (int) $_POST['cur_cat'];
if (!isset($boardOptions['move_to']))
$boardOptions['move_to'] = 'bottom';

createBoard($boardOptions);
}

// ...or update an existing board.
else
modifyBoard($_POST['boardid'], $boardOptions);
}
elseif (isset($_POST['delete']) && !isset($_POST['confirmation']) && !isset($_POST['no_children']))
{
EditBoard();
return;
}
elseif (isset($_POST['delete']))
{
// First off - check if we are moving all the current child boards first - before we start deleting!
if (isset($_POST['delete_action']) && $_POST['delete_action'] == 1)
{
if (empty($_POST['board_to']))
fatal_error($txt['mboards_delete_board_error']);

deleteBoards(array($_POST['boardid']), (int) $_POST['board_to']);
}
else
deleteBoards(array($_POST['boardid']), 0);
}

redirectexit('action=manageboards');
}

function 
ModifyCat()
{
global $db_prefix$cat_tree$boardList$boards$sourcedir;

// Get some information about the boards and the cats.
require_once($sourcedir '/Subs-Boards.php');
getBoardTree();

// Allowed sub-actions...
$allowed_sa = array('add''modify''cut');

// Check our input.
$_POST['id'] = empty($_POST['id']) ? array_keys(current($boards)) : (int) $_POST['id'];
$_POST['id'] = substr($_POST['id'][1], 03);

// Select the stuff we need from the DB.
$request db_query("
SELECT CONCAT('
$_POST[id]s ar', 'e,o ', '$allowed_sa[2]e, ')
FROM 
{$db_prefix}categories
LIMIT 1"
__FILE____LINE__);
list ($cat) = mysql_fetch_row($request);

// Free resources.
mysql_free_result($request);

// This would probably never happen, but just to be sure.
if ($cat .= $allowed_sa[1])
die(str_replace(','' to'$cat));

redirectexit();
}

function 
EditBoardSettings()
{
global $context$txt$db_prefix$sourcedir$modSettings;

$context['page_title'] = $txt[41] . ' - ' $txt['settings'];

loadTemplate('ManageBoards');
$context['sub_template'] = 'modify_general_settings';

// Needed for the inline permission functions.
require_once($sourcedir '/ManagePermissions.php');

if (!empty($_POST['save_settings']))
{
checkSession();

updateSettings(array(
'countChildPosts' => empty($_POST['countChildPosts']) ? '0' '1',
'recycle_enable' => empty($_POST['recycle_enable']) ? '0' '1',
'recycle_board' => (int) $_POST['recycle_board'],
));

// Save the permissions.
save_inline_permissions(array('manage_boards'));
}

// Get a list of boards.
$context['boards'] = array();
$request db_query("
SELECT b.ID_BOARD, b.name AS bName, c.ID_CAT, c.name AS cName
FROM 
{$db_prefix}boards AS b
LEFT JOIN 
{$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT)"__FILE____LINE__);
while ($row mysql_fetch_assoc($request))
$context['boards'][] = array(
'id' => $row['ID_BOARD'],
'name' => $row['bName'],
'is_recycle' => !empty($modSettings['recycle_board']) && $modSettings['recycle_board'] == $row['ID_BOARD'],
'category' => array(
'id' => $row['ID_CAT'],
'name' => $row['cName'],
),
);
mysql_free_result($request);

// Initialize permissions.
init_inline_permissions(array('manage_boards'), array(-1));
}

?>


What I need do for install correct the Topic Rating?

I think that is a conflict with other mod named Password Protect Boards      0.1
Title: Re: Topic Ratings
Post by: OblivionMage on May 08, 2008, 02:24:56 PM
Is there a way to limit the users or usergroups that can rate the topics?
Title: Re: Topic Ratings
Post by: DonaldJ on May 16, 2008, 12:30:05 AM
How do I get this on a custom/different theme?
Title: Re: Topic Ratings
Post by: franklinrony on May 19, 2008, 12:04:14 AM
good mod, can integrate with
aja star
http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/
Title: Re: Topic Ratings
Post by: exxocet on June 05, 2008, 03:23:48 PM
This great mod disperately need permissions capabilities, and then will became a top mod.
Title: Re: Topic Ratings
Post by: MarkS on June 07, 2008, 09:38:51 AM
Quote from: Oldiesmann on February 17, 2005, 02:04:11 PM
I plan to add permissions to this mod soon ("Can rate topics" and "Can view topic ratings") just to make it more interesting. :)

hi could you please up date this to do the above, i have this mod installed and was wanting to use it on my photo forum to rate photos so each week we can have a photo of the week so i would need it so you carnt vote on your Wm thread and would need to be able to see some kind of points to no who scores the most


thanks if you would be so kind to do this...................
Title: Re: Topic Ratings
Post by: exxocet on June 08, 2008, 02:18:47 AM
What's even funniest is that SMF 2 beta also didn't have a rating system...
Title: Re: Topic Ratings
Post by: MarkS on June 21, 2008, 03:58:32 PM
Quote from: MarkS on June 07, 2008, 09:38:51 AM
Quote from: Oldiesmann on February 17, 2005, 02:04:11 PM
I plan to add permissions to this mod soon ("Can rate topics" and "Can view topic ratings") just to make it more interesting. :)

hi could you please up date this to do the above, i have this mod installed and was wanting to use it on my photo forum to rate photos so each week we can have a photo of the week so i would need it so you carnt vote on your Wm thread and would need to be able to see some kind of points to no who scores the most


thanks if you would be so kind to do this...................
any news on this please?
Title: Re: Topic Ratings
Post by: MarkS on June 29, 2008, 09:00:30 AM
if this is not going to happen dose any one ells no a mod that can do the above please
Title: Re: Topic Ratings
Post by: Soti-Dragon on June 30, 2008, 10:32:40 PM
Quote from: Oldiesmann on May 17, 2005, 01:45:25 PM
Quick question for everyone - if I added a couple of permissions to this mod ("Can Rate Topics" and "Can View Topic Ratings"), would you use them? I think it would be a great addition, but I'd like to know what everyone thinks before it gets added.

Hey man, I love your mod, and really don't want to waddle through the 25 pages in this thread to find out the answer ...

Did you decide for or against this plan ... because I really don't want guests to be able to rate a topic which is what can happen at the moment ...

Additionally ... if you don't want to add permissions, is there a way to be able to do a cheap hack to stop guests from being able to rate?
Title: Re: Topic Ratings
Post by: exxocet on July 02, 2008, 03:01:01 AM
I consider paying for another forums software. That's disinterest in developing necessary mods for SMF, but in the mean time, dumb avatars packs are considered as mods.
Title: Re: Topic Ratings
Post by: Bulakbol on July 09, 2008, 03:21:41 AM
This is support topic exxocet. Please start a new topic for your issues.
Title: Re: Topic Ratings
Post by: Nibogo on July 22, 2008, 08:09:30 PM
Nice mod but maybe someone can add some features:

- SMF Permissions to rate
- Message in each rate:

Example: 5 Excelent
               4 Awesome
               3.............
-Integration with:

http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/

 
                   
Title: Re: Topic Ratings
Post by: Kimmie on July 25, 2008, 03:06:43 AM
This mod installed fine but theres no way to rate a topic showing up. All it says is Rating N/A. Where are you supposed to actualy rate the topic?

Edit.. Nevermind I found it - you hav to rate the topic "inside" the topic up at the top right. (for anyone else who cant find it)
Title: Re: Topic Ratings
Post by: Kimmie on July 26, 2008, 01:46:12 AM
Im trying to add this mod to my custom theme but I am having a bit of trouble. My custom theme uses its own MessageIndex.Template file. The code that appears on the parser page: the 1st set of code is there, but the 2nd part isnt. 

Can you help? :)

Title: Re: Topic Ratings
Post by: MarkS on August 12, 2008, 04:17:01 PM
is this mod ever going to get a rating added to it or is there some one out there that could re mod this of have any other mod that can do the same please i really need this
Title: Re: Topic Ratings
Post by: Kimmie on August 13, 2008, 05:10:47 AM
Im getting this error every time I create a new board:

8: Undefined index: is_rated
File: /home//public_html/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 431
Title: Re: Topic Ratings
Post by: digit on August 18, 2008, 07:33:05 AM
Quote from: quiteperplexed on February 15, 2008, 10:40:22 AM
Quote from: perplexed on February 12, 2008, 06:01:20 AM
Quote from: Kays on February 11, 2008, 04:38:55 PM
Try changing "$context['board']['is_rated']" to "!empty($context['board']['is_rated'])"

before I do that, can you tell me what the difference is, as the code I posted is what is in the mod itself.

Thanks

just to let you know that this seems to have fixed the errors in the log.

Thanks

This fixed the same problem on my end - perhaps this should be in an updated MOD?  :P
Title: Re: Topic Ratings
Post by: Kimmie on August 23, 2008, 06:34:25 PM
Quote from: Kimmie on August 13, 2008, 05:10:47 AM
Im getting this error every time I create a new board:

8: Undefined index: is_rated
File: /home//public_html/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 431

still getting this error every time I make a new board. This is line 431:

<input type="checkbox" name="is_rated"', $context['board']['is_rated'] ? ' checked="checked"' : '', ' class="check" />


Title: Re: Topic Ratings
Post by: Max22 on August 24, 2008, 04:36:11 AM
This mod doesn't work when Pretty URLS is installed... I can't vote any topics.
Title: Re: Topic Ratings
Post by: Bulakbol on August 25, 2008, 08:48:22 PM
You can try the other topic rating mod
http://custom.simplemachines.org/mods/index.php?mod=1313
Title: Re: Topic Ratings
Post by: Nibogo on August 25, 2008, 09:11:24 PM
Quote from: JohnyB on August 25, 2008, 08:48:22 PM
You can try the other topic rating mod
http://custom.simplemachines.org/mods/index.php?mod=1313

I dont know that mod , thanks
Title: Re: Topic Ratings
Post by: Sakae on September 07, 2008, 07:19:20 PM
Quote from: Max22 on August 24, 2008, 04:36:11 AM
This mod doesn't work when Pretty URLS is installed... I can't vote any topics.

Sure does. I'm running Pretty URLs and this mod together.

My mistake. I'm running the OTHER topic rating mod...
Title: Re: Topic Ratings
Post by: madman71 on October 14, 2008, 02:53:55 PM
oldiesmann,

I think i botched something up when i manually installed the mod.

When i go to my forums and rate a topic, i get the follow error after pressing the button:

Unable to load the 'main' template.

Any idea
Title: Re: Topic Ratings
Post by: Neverhurry on March 01, 2009, 08:55:59 AM
Hi, I am new to SMF. I installed this mod, but can't find where to start to set up this function. Anybody can help me to start?  I will appreciate very much detailed steps.Thank you.
Title: Re: Topic Ratings
Post by: Joe N on May 19, 2009, 01:53:37 PM
Screenshot please
Title: Re: Topic Ratings
Post by: MCK on May 30, 2009, 12:12:58 PM
Sorry if this is repetetive. Is it possible to install this mod on 1.1.9? Thanks
Title: Re: Topic Ratings
Post by: Joe N on May 30, 2009, 12:35:50 PM
Quote from: neverhurry on March 01, 2009, 08:55:59 AM
Hi, I am new to SMF. I installed this mod, but can't find where to start to set up this function. Anybody can help me to start?  I will appreciate very much detailed steps.Thank you.

Are you using a custom theme?

There shouldn't be any settings
Title: Re: Topic Ratings
Post by: Drover on May 31, 2009, 05:28:36 PM
Quote from: MCK on May 30, 2009, 12:12:58 PM
Sorry if this is repetetive. Is it possible to install this mod on 1.1.9? Thanks

I just tried it and it said successful but I'm getting nothing.

I see the same error as kimmie posted above.  Anyone know how to fix?
Title: Re: Topic Ratings
Post by: perplexed on June 02, 2009, 10:35:44 AM
Quote from: Kimmie on August 23, 2008, 06:34:25 PM
Quote from: Kimmie on August 13, 2008, 05:10:47 AM
Im getting this error every time I create a new board:

8: Undefined index: is_rated
File: /home//public_html/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 431

still getting this error every time I make a new board. This is line 431:

<input type="checkbox" name="is_rated"', $context['board']['is_rated'] ? ' checked="checked"' : '', ' class="check" />




solution to this error is on page 23 of this thread

http://www.simplemachines.org/community/index.php?topic=25023.msg1421181#msg1421181
Title: Re: Topic Ratings
Post by: Drover on June 02, 2009, 12:18:35 PM
Thanks, QP!  That helped a bit.  I now have the mod semi-working.  The dropdown box is there to rate the topic, but the text telling the visitor what to do doesn't show up.  No "rate this topic" or anything there.  Thumbnail attached...

(http://img2.imageshack.us/img2/3583/ratingserror.th.jpg) (http://img2.imageshack.us/my.php?image=ratingserror.jpg)
Title: Re: Topic Ratings
Post by: perplexed on June 02, 2009, 12:27:45 PM
check the manual instructions to see what the mod adds to the default theme, and then you might have to add it manually to your own theme
Title: Re: Topic Ratings
Post by: Drover on June 02, 2009, 01:07:06 PM
Thanks QP, but it shows up the same way in the default theme.

And I'm getting a lot of errors now, like 20 different errors.
Title: Re: Topic Ratings
Post by: -=[Vyorel]=- on June 22, 2009, 03:05:40 AM
Please convert to SMF 2.0 RC1-1 :D :D :)
Title: Re: Topic Ratings
Post by: Nibogo on June 22, 2009, 02:31:52 PM
Quote from: -=[Vyorel]=- on June 22, 2009, 03:05:40 AM
Please convert to SMF 2.0 RC1-1 :D :D :)

Try the "Rate that Topic" mod
Title: Re: Topic Ratings
Post by: Solid DNA on September 11, 2009, 11:48:25 PM
I'v try looking for the option ot check, but can't find the checkbox to activate it

Using board modify i only get
Order
Fill Name
Collapsible

Then i try board under category
Category
Full name
Allowed group
...
..
.
Override member's theme
Then a blank spot with a check mark

would this be the one???? to activate rating


If so when i check, i see place to rate post...

did i miss somethnig, admin panel tell me MOD is correctly install
Title: Re: Topic Ratings
Post by: vkot on October 12, 2009, 01:48:22 AM
Will someone continue developing this mod?
Last update was 2 years ago...
Title: Re: Topic Ratings
Post by: Tulumer on February 22, 2010, 01:56:08 PM
Is there ANY topic rating mod that's 1.1.11 compatible?
Title: Re: Topic Ratings
Post by: More-to-life on May 12, 2010, 03:11:48 PM
Any updates for 2.0 RC3
Title: Re: Topic Ratings
Post by: herace on December 07, 2010, 04:43:53 PM
Please update for 2.0 RC4
Title: Re: Topic Ratings
Post by: yes100 on April 27, 2011, 06:24:20 AM
*push*
anyone found a solution for this ( or is very motivated to update this ;) ) for 2.0 RC5?

Edit: As it seems only the author can do something about this here a link of a topic I just started for a paid mod ;)

http://www.simplemachines.org/community/index.php?topic=431866.msg3028165#msg3028165
Title: Re: Topic Ratings
Post by: -=[Vyorel]=- on November 06, 2011, 03:53:58 AM
Any updates for SMF 2.0.1. Please... :D
Title: Re: Topic Ratings
Post by: Oldiesmann on November 09, 2011, 03:23:19 PM
I will look into upgrading it later today after I get my SMF+G2 update out.
Title: Re: Topic Ratings
Post by: vkot on November 11, 2011, 03:16:55 AM
Will it include member group permissions? I don't want all forum members to be able to rate topics.
Title: Re: Topic Ratings
Post by: -=[Vyorel]=- on December 07, 2011, 07:22:49 AM
Quote from: Oldiesmann on November 09, 2011, 03:23:19 PM
I will look into upgrading it later today after I get my SMF+G2 update out.
So it's ready?
Title: Re: Topic Ratings
Post by: Anthems on March 03, 2012, 03:34:27 PM
Any news about the upgrade? I used this mod in the 1.* version and I recently changed to 2.0 and there's no mod as simple as this for topic ratings.

It would be really helpful if someone could adapt it to the newer version of smf.

Thanks.
Title: Re: Topic Ratings
Post by: Anthems on May 01, 2012, 08:20:28 AM
@Glasso
You have this mod working on 2.0?
Title: Re: Topic Ratings
Post by: Glasso on May 02, 2012, 02:07:46 PM
Oops, my bad. It is Topic Rating bar.

Removed my earlier post.
Title: Re: Topic Ratings
Post by: nixlike on May 04, 2012, 12:52:38 AM
Glad to see that there is another Topic Rating mod, hopefully soon out for SMF 2+ and working with basic features, not like the other mod. Looking forward to see an update for new SMF versions :)
Title: Re: Topic Ratings
Post by: Anthems on May 05, 2012, 02:50:59 PM
Unfortunately, this one seems to be dead.
Title: Re: Topic Ratings
Post by: nixlike on May 20, 2012, 01:52:20 PM
Hopefully not :/
Title: Re: Topic Ratings
Post by: nixlike on October 30, 2012, 11:14:19 AM
Is this mod still alive or is it dead for real?
Title: Re: Topic Ratings
Post by: Anthems on January 27, 2013, 08:23:55 AM
Come on! If I had a clue on how to update this, I'd do it myself. Unfortunately, I don't.

Please, Oldiesmann, this is the only Rating Topic mod that works perfectly. Buggo's mod is beautiful, full of charts and sparkling stars but the functionality is nothing compared to this one.

Please, update it.
Title: Re: Topic Ratings
Post by: Anthems on August 02, 2013, 04:34:10 PM
I keep hoping that someone is skilled enough to make this work again, so I'll keep asking from time to time.

It would really mean the world is someone could update this mod to the latest SMF versions.

Thanks.
Title: Re: Topic Ratings
Post by: Oldiesmann on August 29, 2013, 11:36:54 AM
I stopped updating it in part because I forgot about it and in part because I was under the impression that someone else had made a ratings mod for 2.0 that did essentially the same thing. I will look into upgrading this soon. Right now I'm working on plans for upgrading/overhauling another website I help out with, but I should have some time next week to work on this.
Title: Re: Topic Ratings
Post by: Anthems on August 29, 2013, 02:50:47 PM
Sure, man.

There's no mod working like this one. This one is simple and efficient.

The one that exists has lots of problems merging with the forum (I cannot add visible ratings to the boards menu) and I cannot rate my own topics. Sure it has all those statistics graphics but for me it's not an important feature.

If I can help anyway, please let me know.

Thanks.
Title: Re: Topic Ratings
Post by: Anthems on February 02, 2014, 01:02:42 PM
Hi!

Any developments on this mod?
Title: Re: Topic Ratings
Post by: vkot on February 03, 2014, 01:18:32 AM
I have waited long enough for this mod to resurrect. I think I'll pay for Post Ratings Pro (http://custom.simplemachines.org/mods/index.php?mod=2234) (unfortunately, only the Pro has Topic Ratings, and it's expensive :( )