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.
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 .
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!
Find folder Packages and put the mod in it.
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
:)
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..
Hey thanks! I will give that a try. I appreciate your reply.
:D
That worked thanks! I must of not read something somewhere.
:)
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
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.
:)
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
Thanks for the mod, Oldiesmann! :)
You're welcome... You really have to thank Grudge for this as he's the one who originally wrote it. I'll take a look at that problem in ManageBoards.php. Probably just a matter of spacing. I plan to add permissions to this mod soon ("Can rate topics" and "Can view topic ratings") just to make it more interesting. :)
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. :)
Ok. I changed a couple of things in the mod file. Try it now and see if it works...
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
Is this mod not for 1.0.2 (Juno theme) ?
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.
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.
I'd appreciated some help, post above. thanks.
That shouldn't affect anything.
-[Unknown]
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__);
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]
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.
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?
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
will this mod be upgraded for 1.0.3 or 1.1?
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
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
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
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
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! :)
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
Did you happen to click on proceed on that second page?
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
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!
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
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.
RatingsPdb.php is meant to be run from the package manager. There should be another file called "Ratingsdb.php" that you can run manually.
oh ok lemme take a look then..
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
Anyone?? :(
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?
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).
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.
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 (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fgoldbar.gif&hash=0fd131ad10dbea3d5c106f515746e595ab3bf7a5)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fgoldbar.gif&hash=0fd131ad10dbea3d5c106f515746e595ab3bf7a5)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fgoldbar.gif&hash=0fd131ad10dbea3d5c106f515746e595ab3bf7a5)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fgoldbar.gif&hash=0fd131ad10dbea3d5c106f515746e595ab3bf7a5)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fgoldbar.gif&hash=0fd131ad10dbea3d5c106f515746e595ab3bf7a5) . A value of 3-4 would be (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fsilverbar.gif&hash=0a26809e430aefbd424de49cb89de3f4544fec12)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fsilverbar.gif&hash=0a26809e430aefbd424de49cb89de3f4544fec12)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fsilverbar.gif&hash=0a26809e430aefbd424de49cb89de3f4544fec12)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fsilverbar.gif&hash=0a26809e430aefbd424de49cb89de3f4544fec12) , 1-2 would be (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fbronzebar.gif&hash=e70601992e3d24bf00e3f189ab19d1452d60ec56)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fbronzebar.gif&hash=e70601992e3d24bf00e3f189ab19d1452d60ec56) and 0 would be a (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskullknight.net%2Fyabbse%2FThemes%2Fclassic%2Fimages%2Fgoldbars%2Fbrokenbar.gif&hash=dde1a5d2e2e205f5127017ce78510ea29cafd973).
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?
Is there a way only to rate once? when i rate a topic i can change my vote.
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 ?
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
how ???
Quote from: norwegian on June 17, 2005, 07:55:37 PM
how ???
Your question will be answered...just be patient :).
-Dan The Man
ok , i wait :)
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.
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)
none can do this ??? replace stars for numbers ??? 1-5 or 1-10 .....
???
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!
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 !!
Say if I wanted to display the ratings of topics displayed on my ssi_boardNews, is that possible?
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".
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.
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 ? >:(
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 !
I integrated it with ease.. took me some time to modify some stuff, but it works very nice
This Comment Don't Solve our Problems..So please make a Tutorial[How TO]...This Will HELP Us ALOT !
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?
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!
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.
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
test failed for ManageBoards.php ::)
If the test failed go ahead and edit the file manually using the .mod or .xml instructions provided with the mod.
:D
Coudl someone please update this for 1.1 RC1?
Mine fails on ManageBoards.php too
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???
I can't get it to work with the managaboards.php. I tried manually altering the code, but with no luck.
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)
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']); ?
Have you tried that line of code, does it work?
-X
I tried it, it doesn't seem to save the "enable" part of the board admin.
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!
Could you please make this work with SMF 1.1 RC1? :)
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
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 :)
Please convert to 1.1 RC1
thanks Andreas
So once you install the mod, how do you rate a topic? Not clear.
It works with the default theme but not a custom theme. How does one get the rating drop-down with a non-default theme?
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....
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
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
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.
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.
is it possible to show the individual rating in his/own message in the topic ?
Will there be RC2 version?
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 ?
Another vote for an update to RC2. Would make a nice addition to the forum
And another one.
Actually this is keeping me from updating :(
not 1.1rc1 too?:(
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.
I don"t understand, it's already displayed by default in the message index of a board...
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?
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.
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.
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. :)
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>';
}
Thank you! ;D
A vote for a RC2 version as well :)
Another vote for RC2 version... 8)
Another vote ;)
i am voting on behalf of 5 people
so 5 more votes :D (for RC2)
lol
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.
Oh.. people are voting for RC2 version. I want to see it working at RC2 too.
Teme
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
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.
SleePY, you're a hero! :D
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
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.
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"
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.
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.
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.
The link comes up 404.
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.
No Luck;
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /****/****/****/****/Sources/MessageIndex.php on line 630
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.
All scores i enter show up as N/A :(
Can this be made for 1.1 RC2?
Thats what the guy is trying to do.
Again, I get a 404.
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..
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 ;)
Okay. PM me your email, or contact me on AIM: AwwLilMaggie
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
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
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.
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
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.
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
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.phpline 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.phpLine 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.
:(
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 :)
Excellent :)
Ok... So it took me 40 minutes instead of 20 :P
Updated the mod for RC2. Let me know if you have any problems.
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.
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! :)
so is it safe now to use with RC2 ?
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.
Im having the EXACT same errors Aww is having.
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.
Not unique table/alias: 'lr'
File: \Sources\Display.php
works well now that I applied the changes.
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
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?
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 ::)
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 ::)
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.
Hi....where I can get 1.1rc2 version of this mod..??
Thanks in advance..!
Sebastian
www.dodge-tech.com.ar
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...
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
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
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
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)
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
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
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 :)
Excellent work! :D
Here:
http://www.tactical-illusion.com/files/store/untitled.GIF
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.
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%..
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Farkserver.servehttp.com%2Fhelp.jpg&hash=1b3c66f195c744a74de2b8b0aa9f8e2d7c52667a)
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
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
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
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.
Alright -- I just conducted the following baseline test:
- downloaded and installed a fresh "SMF 1.1.rc2 install"
- downloaded "Topic_Rating_11RC2_alpha1.zip" and loaded it into package manager - no errors reported
- "Applied" the mod - again, no errors reported
- got a single new option for each board, "Enable ratings for this board"
- setting a rating worked as expected; rating was recorded and appeared correctly after being set
- ratings appeared correctly on the forum, both in the board view and in the individual topic view
- uninstall worked fine - no errors, all related interfaces (board admin, board view, topic view) were back to pre-install state
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:
- exactly what version of SMF you're trying this on (yes, I know it says it's for 1.1rc2, but doublecheck)
- what other mods you have installed (if any) -- might allow us to pin down a conflict; this case is my prime suspect at the moment
- if you've made any by-hand customizations to any of the source files
..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.
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:)
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
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 ?
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.
well duh me lol that makes sense, I didnt think of that lol I understand, thats quite cool feature :)
*gets more coffee*
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.
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 :)
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.
hey, i have installed the updated mod und all were succesfull but
i have a german theme and the option seems to be invisible
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.directupload.net%2Fimages%2F060428%2FUgm9ZLlL.jpg&hash=e36d9727e20e17db1ca4fab9396a057478d0db97)
does anyone know what i could do ?
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
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.
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
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?
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
Is there a guide for manual install of this mod???
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
Hi,
has somebody has a half star image for me?
Andreas
I think he said it's attached in the ZIP in his first posts
No it isn´t.
Andreas
Give me a sec and I'll get one up for you.
EDIT: Here you go, attached. (It already has transparency applied)
-AwwLilMaggie
Thanks, thats it :)
Andreas
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
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
Any new/improved version vor RC2?
P.S.: Hi Andreas!
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
Aber die zeigt immernoch überall wo nicht bewertet wird das N/A an oder?
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
One error-fix for the mod Rc2 is this:
Search: $context['name'] = $row_board['name'];
Replace: $context['name'] = $board_info['name'];
Andreas
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
Fixed the issue with MessageIndex.php in the mod and re-uploaded it. Let me know if there are any other problems.
Hi,
yes their is. the hole modifications for $sourcedir/ManageBoards.php from RC1 is wrong.
Use the one from RC2 instead.
Andreas
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.
***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
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!
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.
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?
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)
Can someone help me please?
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.
anyway to shut off the option allowing people to change thier rating?
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!
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 :(
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
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
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
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.
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.
hi, i need this mode for smf 1.0.7. :( :( :( please!!!!!!!!!! :'( :'( :'(
Tanks
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.
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
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.
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
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?
Hi!
This mod will be available for SMF RC3?
HecKel
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.
Would it work with RC3?
Still having problems with MessageIndex on rc2
Sorry, my bad, works with Default theme :D
Not compatible with RC3 :-[ any new fix soon?
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.
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).
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.
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.
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? :-\
Hello?? your package still doesn't work, tried it over and over again.
still gives me the same error.
Any help would be nice :)
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.
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 >:(
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?
Very nice mod, works perfect for me.
yup the package gave me a corrupted message too
also upon unzipping it says package corrupt - unexpected end of archive
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
any idea how i can move the ratings here:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Farkserver.servehttp.com%2Fex.jpg&hash=d5021ef5ca60e73749c04c7395ae4e07500a765d)
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
Please update this for 1.1.
Thank you.
Yeas please!!!!!!!!!
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
My apologises to Oldiesmann for modifying and sharing the script without seeking permission first. Please remove the attachment if desired.. sorry..
Finally someone that stepped up to the plate with an upgrade!! works great on SMF1.1 with TP0.97, thanks allot buddy ;D
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!!!!!!!!!
Please update this for 1.1.1
Thank you.
please update for 1.1.1 :P
Updated for 1.1.1
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 :( :( :(
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).
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!
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
Any chance you can post the snippet on how to show how many times it's been rated?
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 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...
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>
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.
I did,. that is the error I get upon doing it in my custom theme...
It would not work with custom theme. You need to edit the custom theme files manually and upload to overwrite.
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
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!
It's a syntax error on your part. Deploy your debugging skills then.
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.
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
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?
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
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.
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!
I haven't had time to play with it. You shall try and you'll find out.
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...
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.
I need to uninstall this mod manually but there doesn't seem to be any mod files?
It's ok I sussed it, opened the mpeg file with dreamweaver
Hi does anyone know what modification has to be done to work with Αa New damage theme?
Youll find all the mod instructions if you unzip the package.
i think its not compatible to R3 anymore :(
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?:
- Rating of individual topics enabled/disabled by topic starter or moderator/admin.
- Forcing users to wait until a certain date and time (set by the topic starter) before they can rate.
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.
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, :)
I report this problem, thx:
http://www.simplemachines.org/community/index.php?topic=158371.msg1010697#msg1010697
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.
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)
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.
after i have installed Seo4SMF, my topic ratings mod can't work.....
anybody know the trick to modify it?
your help much appreciate....
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
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
?
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
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!
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 ! ;)
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 T
hemes/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.
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 :(
yup.. having some problems with this mod...
is the owner still around? :D
ratings should be part of the core install imo
nice mod,
i will try to use in my site..hope working good
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
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
Anyone? Any ideea what to do?
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?
try this one !
http://www.simplemachines.org/community/index.php?topic=25023.msg1047413#msg1047413
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
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.
4. Execute Modification ./Sources/ManageBoards.php Test failed
how to solve it
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! :)
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
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 ?
«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!
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.
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.
...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.
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/
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.
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.
:(
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.
OK. I thought it did since the mod page says:
Update (10/1/06): Now compatible with 1.0.8 and 1.1 RC3
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!
Thanks, I didn't read down that far. :)
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 ??
hi
I have problem install update , no compatible for RC2
Where i find link for version RC2
thanks all
why you don't upgrade your forum to 1.1.2? This is the latests release and the final one!
HecKel
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
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.
all nothing
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
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.
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)
This mod wont work for me and it shows no errors
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?
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
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?
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!
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.
My pleasure...glad you got the problem resolved.
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
I am getting this error
./Themes/default/Display.template.php Test failed
any help?
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.
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 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?
No...you still need to install the mod manually into the file that failed the tests in the Package Manager.
hi again
this link is coming up blank
http://server.daniel15.com/smf/package.php
in firefox and IE
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.
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
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.
Thanks for ur comment...did u see the dates???
21st may , 22nd may & 1st june.....
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.
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.
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.
4get it mate!
Getting this error...
Edit: Fixed... but new problem below.
please can you tell me how to send all 5 star rated topics to homepage?
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.
What theme are you using and was there any errors when you installed it?
I'm using XD-Obtuse.
Only one error on Manage Boards, but I did that manually, as I did for the theme of course.
Help?
It's possible move the "rating" column to as vBulletin Stile?
Thanks!!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg169.imageshack.us%2Fimg169%2F2264%2Fratinguo2.jpg&hash=942f7823079dfab6d8b2f54bd29cb53875341160)
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.
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?
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.
Doesn't work on default either.
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.
English is the only option.
It worked fine on a fresh install.
There appears to be no duplicates or missing script.
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...
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]
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.
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?
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.
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?
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.
<form action="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '" method="post" style="margin: 0;">
Thats the code for the button.
I just solved it.
Thanks!
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...
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.
2. Execute Modification ./Sources/Display.php Test failed
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/)
daniel's mod parser does not correctly read the package. Just a note.
Thanks...there are avery few mods it won't read...I try to keep a note of them and vary my advice given accordingly.
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:"
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???
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! :(
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]
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.
Could someone convert this mod to use:
http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/
I would really appreciate it!
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.
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.
@ 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.
People who know everything about this mod, could you please check this (http://www.simplemachines.org/community/index.php?topic=192321.0) topic?
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.
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.
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??
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?
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:
I've installed this mod manually...
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.
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.
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. >:(
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?
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.
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
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
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
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.
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
Thaks TrueSatan, i do that but still don´t work.
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.
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...
did not work me tooo... tried wid IE7 :(
we must wait for bigboss :D
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.
Hmm the mod works perfect with 1.1.4
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
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.
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.
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...
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.
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.
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.
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)
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....
Great! It's installed, now, where can I enable it? I can't see a trace of it anywhere.
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.
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.
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!
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
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
This mod is great! nice job
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.
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.
Is there any screenshot available?
very very good MOD
i sugguest you . if you add sample picture at the Main Mod detial it's Perfect.
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.
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?
Alright, after looking through some source code, crying, my keen eye noticed something.
Here's the problem.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg107.imageshack.us%2Fimg107%2F7781%2Fratemodmissingtj2.gif&hash=d3adec778609a55999dd5a04c0b645a3e6c3ee61)
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.
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??
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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg107.imageshack.us%2Fimg107%2F7781%2Fratemodmissingtj2.gif&hash=d3adec778609a55999dd5a04c0b645a3e6c3ee61)
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!
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)
@ 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.
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
How to show it in the Info Center? Like "Most rated" or something like TOP 5...?
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
cannot remove the option for Rating for the guests?
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?
Then nobody help?
don't forget of me...
Nao teve ajuda no forum smf Pt..!
Iam ask did have answer in forum Portuguese about that...
Post in English please...
sorry man
i need tell ne.miguelito here is forum no chat ....
ok, I wait...
Is it possible to rank topics sorted by ratings by default? :)
7. Execute Modification ./Sources/MessageIndex.php Test failed
I get this? WTF? I use SMF 1.1.4
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)
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?
What's line 423 of your ManageBoards.template.php? Even, post your entire ManageBoards.template.php up in your post or upload it.
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
Try changing "$context['board']['is_rated']" to "!empty($context['board']['is_rated'])"
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?
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
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.
ok, so maybe that needs to go in the original mod code as it isnt there?
Thanks I will go try it out :)
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
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
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 :)
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?
Probably just adjust the column width in the first appearance of it.
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
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,
Use a Package Parser, there's plenty of them about now. http://sleepycode.com/PackageParser/index.php
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]
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
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
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.
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."
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'?
no test fails but im running Dark Red theme in english..
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
thanks mate, will give it a try after I have dome some work, Let you know later...
you're welcome, post back if you have any problems
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. ""
::)
ok try this http://www.simplemachines.org/community/index.php?topic=26770
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 >.<
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
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 ÉxitoThis 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 == 1 && !empty($context['categories'][$catid]['boards'][$prev_board]['move_links']))
array_push($stack, array_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 & That" but don't change "¢" to "&cent;"...
$catOptions['cat_name'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&$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(
-1 => array(
'id' => '-1',
'name' => $txt['parent_guests_only'],
'checked' => in_array('-1', $curBoard['memberGroups']),
'is_post_group' => false,
),
0 => 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'] ? 0 : $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']) ? '' : '"' . implode('", "', $context['board']['moderators']) . '"';
// 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 & 2', but not '&' to '&amp;'...
$boardOptions['board_name'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&$1', $_POST['board_name']);
$boardOptions['board_description'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&$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], 0, 3);
// 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
Is there a way to limit the users or usergroups that can rate the topics?
How do I get this on a custom/different theme?
good mod, can integrate with
aja star
http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/
This great mod disperately need permissions capabilities, and then will became a top mod.
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...................
What's even funniest is that SMF 2 beta also didn't have a rating system...
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?
if this is not going to happen dose any one ells no a mod that can do the above please
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?
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.
This is support topic exxocet. Please start a new topic for your issues.
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/
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)
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? :)
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
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
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
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" />
This mod doesn't work when Pretty URLS is installed... I can't vote any topics.
You can try the other topic rating mod
http://custom.simplemachines.org/mods/index.php?mod=1313
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
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...
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
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.
Screenshot please
Sorry if this is repetetive. Is it possible to install this mod on 1.1.9? Thanks
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
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?
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
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...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg2.imageshack.us%2Fimg2%2F3583%2Fratingserror.th.jpg&hash=964533d27d48788f83ed81343a912386af24aa11) (http://img2.imageshack.us/my.php?image=ratingserror.jpg)
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
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.
Please convert to SMF 2.0 RC1-1 :D :D :)
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
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
Will someone continue developing this mod?
Last update was 2 years ago...
Is there ANY topic rating mod that's 1.1.11 compatible?
Any updates for 2.0 RC3
Please update for 2.0 RC4
*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
Any updates for SMF 2.0.1. Please... :D
I will look into upgrading it later today after I get my SMF+G2 update out.
Will it include member group permissions? I don't want all forum members to be able to rate topics.
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?
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.
@Glasso
You have this mod working on 2.0?
Oops, my bad. It is Topic Rating bar.
Removed my earlier post.
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 :)
Unfortunately, this one seems to be dead.
Hopefully not :/
Is this mod still alive or is it dead for real?
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.
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.
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.
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.
Hi!
Any developments on this mod?
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 :( )