View Full Version : Forum Display Enhancements - Forum Rating
cheesegrits
01-27-2008, 10:00 PM
IMPORTANT NOTE - if you installed 1.0, please make sure you upgrade to 1.02. There was a bug in 1.0 which can cause the wrong forum to be rated.
This mod adds rating of forums. Works exactly like rating of threads. Fully phrased. No code edits. Adds one table, and two extra columns to 'forum' table. Uses datamanagers. Adds one db query.
Installation instructions are in the README.txt in the ZIP. Standard stuff - an 'upload' folder, some template edits, and a product XML install.
Simple "Top Rated Forums" CMPS modules (for versions 2 and 3) included, see README.txt for details.
Tested on vB 3.6.8 and 3.7b3, with CMPS 2.2.1 and 3.1rc2,
Don't forget to hit Install if you decide to run this. No, I'm not shooting for MoTM, I just want to be able to keep you informed about any bug fixes or new versions.
Revision History:
1) 1/27/2008 - 1.00 - initial release
2) 1/28/2008 - 1.01 - fixed tiny template edit issue to properly display tables when Forum Rating is disabled.
3) 1/28/2008 - 1.01 - added CMPS modules to ZIP.
4) 2/23/2008 - 1.02 - Added "Use Thread Rating" mode. Fixed small bug when viewing main category from anywhere other than forumdisplay.php (like index.php). Fixed "rating wrong forum" bug. Added "Sort by Rating" option. Re-organized plugin architecture.
Thanks to wtrk (https://vborg.vbsupport.ru/member.php?u=86586) for the original idea.
-- hugh
cheesegrits
01-28-2008, 04:50 AM
First post reserved by author. Don't know why, but it seems to be traditional!
-- hugh
yahoooh
01-28-2008, 05:45 AM
new idea and thanks for sharing
Hasann
01-28-2008, 08:22 AM
good job man :D:up:
FleaBag
01-28-2008, 11:05 AM
Nice to see you in town Hugh! And a cool, original release! Thanks. :)
bokmade
01-28-2008, 01:46 PM
Thanks Man I Like The Idea ..
Install ..
cheesegrits
01-28-2008, 03:49 PM
Thanks to everyone for the kind words. Although to be honest it wasn't my idea, 'wtrk' asked me to write it as a paid mod. I had a lot of fun writing it, thought other people might get a kick out of it, and decided to release it as a vborg mod rather than charging him for it.
So kudos to 'wtrk' for the idea.
If anyone has any ideas for improvements, just post 'em and I'll see what I can do.
-- hugh
TCE Killa
01-28-2008, 05:33 PM
This is great, wish I could get it to work, got everything right but nothing is showing up, I must of put a template edit in the wrong place or something lol, marked installed for a great idea though.
cheesegrits
01-28-2008, 05:36 PM
Make sure "Yes" is selected for the Enable Forum Rating option, in the Forum Rating options (under the main vBulletin Options section).
-- hugh
TCE Killa
01-28-2008, 05:38 PM
Yeah it's enabled, I'm going to go back through the template edits in a bit and see where I went wrong, thanks.
Allan
01-28-2008, 05:47 PM
Yes, very good idea :)
cheesegrits
01-28-2008, 05:55 PM
Yeah it's enabled, I'm going to go back through the template edits in a bit and see where I went wrong, thanks.
If you can't figure it out, and don't mind PM'ing me a temporary admin account, I'd be more than happy to check out your site and see what the problem is. I'd like to make sure this isn't some kind of booboo on my part.
I know this is pretty much an "is there gas in the tank?" kinda question, but are you sure you edited the right templates for the style you are using?
I can't offhand think of any other reason why absolutely nothing would show up if you've even vaguely got the right templates edited and that Enable Forum Rating option is set. I'd expect some kind of output, even if the table appearance was screwed up.
Even if you don't have "thread rating" enabled for any forums, it should at least show the "rating not allowed" image on FORUMHOME / FORUMDISPLAY.
-- hugh
inciarco
01-29-2008, 02:12 AM
Great Idea, but has some Bugs in vB 3.6.7 PL1!! :(
1. When Rating a Forum the Rate appears Next to "Forum Tools", but when Leaving the Forum and Entering Again the Rate isn?t Displayed; when trying to Vote Again says that the User has Already Voted, so the Problem is in the Display. :confused: :(
2. When Seeing the Forum in the List of Forums, the Rating isn't Displayed, so I think should be because of the Same Problem of Display previously Exposed. :confused: :(
3. The CMPS has the same Problem, and don't Display the Rated Forums nor the Rating, perhaps is related with the Previously Explained. :confused: :(
For Now I'll only Use it in My Test Forum and Not in my Community!! :(
Would be Good to hear the Experience of other Forumers with vB 3.6.7 PL1, to Confirm those Bugs, or to Explain them with an Incompatibility with another Mod Installed in my Forums!! :rolleyes:
My Best Regards!! ;)
:)
cheesegrits
01-29-2008, 02:18 AM
inciarco - I don't have a 3.6.7pl1 server to test on right now. Could you do me a favor, look in your phpMyAdmin and see if the two columns "votenum" and "votetotal" got added to your "forum" table?
The only time I've seen this behaviour was early in testing when the installer didn't work properly for some reason, and the new "forumrating" table got created, but those two extra columns on "forum" didn't get added.
-- hugh
ChurchMedia
01-29-2008, 02:19 AM
I love this idea! I'm having the same basic problems as inciarco. On my board, I rated my Video Production forum a 5, but the stars show up in my PowerPoint forum. If I try to rate the Video Production forum again, it tells me I've already voted. Something is crossed up somewhere.
I'll let you know if I find anything. :)
cheesegrits
01-29-2008, 02:45 AM
ChurchMedia - I confirmed it on your site, am now trying to duplicate it on mine.
What version of vB is that?
EDIT - I've found some similar looking behavior when rating is enabled for guests. Were you logged in or not when you tried this?
I've haven't managed to duplicate placing the vote in the wrong forum, even on your site. But I found why it doesn't record in the db for guests, and why guests will get that "you have already voted" when it's not showing up. That's fixed, I'm testing the fix now and should have it uploaded ASAP.
I'll register on your site and see if I can duplicate the "wrong forum" thing.
-- hugh
inciarco
01-29-2008, 03:15 AM
Now that you mention Permissions, I haven't seen any Options to Set which Usergroups can Use the Ratings!! :o :confused:
Would be Great to Set those Usergroups Permissions, perhaps Listed in a TextBox and Separated by Commas!! ;)
I Tested the Ratings with my Admin User in my Test Forum!! :rolleyes:
My Best Regards!! ;)
:)
cheesegrits
01-29-2008, 03:26 AM
As per the README, in the Configuration section:
For forum and usergroup permissions, forum rating follows the existing "Allow thread rating" options. So if thread rating is enabled for a forum, the forum itself can be rated, subject to the usergroup settings. Usergroups who can't rate threads in a given forum won't be able to rate the forum itself either. Everyone can see current rating values for ratable forums.
And in the To Do section:
1) Add separate forum rating permissions, rather than inheriting thread rating permissions. The reason I didn't do this to start with is I'm still looking for an upgrade safe way of adding forum permissions.
-- hugh
inciarco
01-29-2008, 03:28 AM
As per the README, in the Configuration section:
-- hugh
Great, Thanks for Clarifying that!! :o :up:
I think is better to Inherint the Permissions, so that the Admins can choose which Forum to Rate and which one Not!! :up:
Perhaps if an Additional Option could be set for each Forum, independent to the Rating of the Threads, would be Nice too, but as you say, perhaps for other Update of this Mod mor in the Future; for now you've made a great choice inheriting the Rating Permissions!! ;)
My Best Regards!! ;)
:)
cheesegrits
01-29-2008, 05:03 AM
FYI, it also obeys vB's "can change vote" option (under "Polls and Rating Options").
ChurchMedia - I've now seen the "rating thw rong forum" thing on your site, but can't duplicate it on 3.6.7pl1, 3.6.8 or 3.7b3. The only major difference I can see is that you are running vBSEO, so I'm wondering if that may be kerfuddling things?
I've loaded up a 3.6.7pl1 test forum, and although I found a couple of little issues. It seems to work fine. I've fixed the 'guest' rating issue.
So I don't think there's any problems with Forum Rating itself, but there may be some compatibility issues with vbSEO and/or some other mod.
However, until we get these things resolved, I'm setting the status of this mod back to Beta.
-- hugh
ChurchMedia
01-29-2008, 05:47 AM
I was logged in when I rated the forums. I'm running 3.7 beta 4. I just tried it with vbSEO disabled and had the same problem. There could be another hack interfering.
Thanks for looking into it. I'll be looking forward to the next release! :)
TCE Killa
01-29-2008, 10:48 AM
If you can't figure it out, and don't mind PM'ing me a temporary admin account, I'd be more than happy to check out your site and see what the problem is. I'd like to make sure this isn't some kind of booboo on my part.
I know this is pretty much an "is there gas in the tank?" kinda question, but are you sure you edited the right templates for the style you are using?
I can't offhand think of any other reason why absolutely nothing would show up if you've even vaguely got the right templates edited and that Enable Forum Rating option is set. I'd expect some kind of output, even if the table appearance was screwed up.
Even if you don't have "thread rating" enabled for any forums, it should at least show the "rating not allowed" image on FORUMHOME / FORUMDISPLAY.
-- hugh
Okay, check your PM's now, thanks alot man.:D
cheesegrits
01-29-2008, 04:58 PM
TCE Killa - it was working fine on your site, the only issue is because your FORUMHOME template is heavily modified, such that you couldn't apply the edit for that template, it wasn't showing the "Rating" title. And because none of the forums were rated, no stars were showing.
Everything else is working fine. I rated a forum, the stars showed up, etc.
-- hugh
TCE Killa
01-29-2008, 05:31 PM
TCE Killa - it was working fine on your site, the only issue is because your FORUMHOME template is heavily modified, such that you couldn't apply the edit for that template, it wasn't showing the "Rating" title. And because none of the forums were rated, no stars were showing.
Everything else is working fine. I rated a forum, the stars showed up, etc.
-- hugh
Yeah, I noticed now, it is in the Forum Display template, not my Forum Home lol. Have a look in there if you want. Sorry about that, you should have admin status again now. Thanks for the help man, appreciated.
cheesegrits
01-29-2008, 09:49 PM
OBTW, something I forgot to mention in the docs ... if you want, there is a "rating_notrated.gif" included in the ZIP. If you replace your existing ./images/rating/rating_0.gif with this file, instead of blank for no rating, you'll see a single greyed out star.
cheesegrits
01-31-2008, 01:29 PM
NOTE - I tracked down the bug that was causing incorrect forums to get rated. I'm building a new ZIP, but for now to fix this, find the following line in the FORUMDISPLAY template (inside the third 'cheesegrits' edit):
<input type="hidden" name="t" value="$forumid" />
... and delete it.
-- hugh
cheesegrits
02-03-2008, 05:08 AM
Version 1.02 has been uploaded.
Two bug fixes. 2 new ACP options (see updated screenshots for details).
-- hugh
acast
08-30-2008, 12:35 AM
Nice idea. Friend can you make an addon that makes let you choose different kind of ratings (up to five or to ten, for example, and with different kinds of images)?
I think it will be perfect, if you have a sport forum some images and up to five the rating, if you have a cinema forum, another kind of images and rating up to ten.
Great work friend ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.