vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=221364

[AJAX] Threads Rating 20 Aug 2009 18:03

10 Attachment(s)
Description:
This is a rewritten version of this version http://www.vbulletin.org/forum/showthread.php?t=185117. Functionality is same, but working it little bit by another way:)

Difference between versions 1.x and 2.x:

- much better code (php, js, html)
- eliminated one query on showthread

Compatibility:
3.7.x - 3.8.x

Features:
  • choose forums, where a rating threads to display it is necessary or not necessary
  • view rating statistic
    • choose groups with view permission
    • choose groups with view permission
  • allow/deny rate self threads
  • allow choose 10 point system
  • navigation by page raters
  • fully realisation with AJAX

Install:

Extract all files from folder "Upload" in forum root directory

Find in file threadrate.php on youre server:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Using the Product Manager, upload the Product that came with this modification.

###############################

For ten point system:

Open: threadrate.php

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Open: /includes/class_dm_threadrate.php

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

###############################

Admincp > Plugins and Products > Manage Products > [Add/Import Product] >

product-trate.xml

Update:

Uninstall old mod and replace all files with newest, import product (latest)

Enjoy!

DEMO http://www.youtube.com/watch?v=A3zRjkjQD6k

PS Sorry, the screenshots in russian, but I think, and so everything is clear:)

Click Install, if you like this mod:)

snowlion 20 Aug 2009 21:10

Database error in vBulletin 3.8.2:
Invalid SQL:
SELECT *
FROM threadrate
WHERE threadid = intval(1);
MySQL Error : FUNCTION lonely_forum.intval does not exist
Error Number : 1305
Request Date : Thursday, August 20th 2009 @ 04:09:03 PM
Error Date : Thursday, August 20th 2009 @ 04:09:03 PM
Script : http://www.bentinhyeu.info/forum/thr...php?threadid=1
Referrer :
IP Address : 117.2.10.33
Username : Administrator
Classname : vB_Database
MySQL Version : 5.1.30


i upgraded and database error when click Edit/View Rating
:D

trotskid 20 Aug 2009 22:04

Version 1.5.2 (3.7.x) runs well on 3.8.3 :). Which is the difference between v2.0?

[email protected] 20 Aug 2009 23:58

snowlion, little fix. Archive is reuploaded. Just replace threadratinginfo.php
trotskid, how i said in first post, visually, all remained as before, but almost of code rewritten include php, javascript and html. Javascript rewritten to YUI, almost php code replaced into threadratinginfo.php and much better to-html :)

[email protected] 21 Aug 2009 00:43

Another fix:) Replace same file.

trotskid 21 Aug 2009 01:21

Update then and works fine, but doesn´t appear the 10 stars with the ten point system.

http://img38.imageshack.us/img38/8972/tr1t.jpg

JacquiiDesigns 21 Aug 2009 01:40

ha! I've just installed the previous version (3.7.x)
What are the differences between versions? Is this an upgraded code? Are there any enhancements/features for this version?

Thanks for the share.

Jacquii.

trotskid 21 Aug 2009 01:44

Quote:

Originally Posted by JacquiiCooke (Post 1871339)
ha! I've just installed the previous version (3.7.x)
What are the differences between versions? Is this an upgraded code? Are there any enhancements/features for this version?

Thanks for the share.

Jacquii.

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

Quote:

Originally Posted by trotskid (Post 1871267)
Which is the difference between v2.0?

Quote:

Originally Posted by [email protected] (Post 1871301)
how i said in first post, visually, all remained as before, but almost of code rewritten include php, javascript and html. Javascript rewritten to YUI, almost php code replaced into threadratinginfo.php and much better to-html :)


trotskid 21 Aug 2009 02:42

Well, I've installed the Thread rating out of 10 instead of 5 hack too and now works the ten point system with your addon (doesn't work in the default mode), but still doesn't appears the brown stars before rating. Also, in my style, appears now a second bar to show the default post rating. May be a problem with the latest addon..

http://img188.imageshack.us/img188/3918/tr3a.jpg

http://img518.imageshack.us/img518/8426/tr5i.jpg

Just trying :)

Faizan 21 Aug 2009 02:54

i will try....

choccyclaire 21 Aug 2009 03:24

Lovely thanks. Much better idea to have css as file too. Handier if people have many styles and want to mess with the colour of rating box quicker. :)

snowlion 21 Aug 2009 04:17

I replaced all files, reimported product and after that: others member can't use ajax rate after a member voted, ajax rating don't clickable. :D Original thread rate still work fine.
You must refresh to see "You have already rated this article" message.

choccyclaire 21 Aug 2009 04:20

^ I just noticed the above too.

[email protected] 21 Aug 2009 12:23

For those who use ten point system - fixed bug with it (the little typo:)). I just doesn't test ten system.
snowlion, which version of vb you are using?

trotskid 21 Aug 2009 12:49

Quote:

Originally Posted by [email protected] (Post 1871565)
For those who use ten point system - fixed bug with it (the little typo:)). I just doesn't test ten system.

Doesn't work and the brown stars still doesn't appear before rating.

snowlion 21 Aug 2009 13:11

I'm using ver 3.8.2

[email protected] 21 Aug 2009 13:28

Ok, i did following (as it needed for ten point):
Quote:

Open: threadrate.php

Find:

if ($vbulletin->GPC['vote'] < 1 OR $vbulletin->GPC['vote'] > 5)

Replace with:

if ($vbulletin->GPC['vote'] < 1 OR $vbulletin->GPC['vote'] > 10)

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

Open: /includes/class_dm_threadrate.php

Find:

var $max_vote = 5;

Replace with:

var $max_vote = 10;
And i test the 10 point system on my forum (ex http://mixplay.ru/showthread.php?t=1520), so all working good:)

snowlion, you are edit this string?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And i test this hack on 3.8.2, same work good. If you has edited templates of hack - revert it.

trotskid 21 Aug 2009 14:00

Thank you, now works the ten point system, but still doesn't appear the 10 brown stars before rating :(

http://img30.imageshack.us/img30/6369/tr7j.jpg

Another thing is that it's not possible to vote in the default mode with ten point system, and you always can emit a vote (to change it).

http://img193.imageshack.us/img193/1200/tr8y.jpg

[email protected] 21 Aug 2009 14:08

trotskid, have are you edited templates before?

trotskid 21 Aug 2009 14:12

Yeah, and the previous version (1.5.2) worked perfectly.

tldagent 21 Aug 2009 14:48

How can we make this similar to the current rating as shown above in vb.org? Meaning select a rating rather than stars just as they would have done previously?

snowlion 21 Aug 2009 15:14

Quote:

snowlion, you are edit this string?

And i test this hack on 3.8.2, same work good. If you has edited templates of hack - revert it.
Reverted but nothing change :D

Quote:

Yeah, and the previous version (1.5.2) worked perfectly.
i'm second this

Come2Daddy 21 Aug 2009 16:06

what is 10 point system??
and how can we enable 10 points system??

PaylaX 21 Aug 2009 17:01

bugs are very welcome:)

I'll wait.

Thanks for update

[email protected] 21 Aug 2009 17:27

PM me who have a problem with hack, because i don't see a reason why it doesn't work.

[email protected] 21 Aug 2009 17:33

Quote:

Originally Posted by Come2Daddy (Post 1871674)
what is 10 point system??
and how can we enable 10 points system??

Solution how did this http://www.vbulletin.org/forum/showthread.php?t=145110
I don't need this system, i simply executed the request:)
-----------
Added to first post: Difference between versions 1.x and 2.x: and TODO:

m2006 22 Aug 2009 04:43

thank you verymuch for nice mod

Chief Corn 22 Aug 2009 13:16

Does it plugin under $navbar? I have an article mod with its own showthread template, and it doesn't show up on there. It does work in my other forums though, but I installed it for use with the articles.

[email protected] 22 Aug 2009 15:11

It's output from showthread script, i don't know how it output the article mod.

[email protected] 25 Aug 2009 00:13

Version 2.5
In this version fixed all bugs (i hope:)).
And finally i made fully functionality with AJAX: rate, showing rating and deletion rating.

choccyclaire 25 Aug 2009 00:26

Thank you!

Do we need to overwrite the files or just upload the product?

[email protected] 25 Aug 2009 00:34

Overwrite all files (except img), and reimport product (better uninstall then install).

choccyclaire 25 Aug 2009 00:41

Brilliant. Works like a charm. :)

And I also like the box popup to view stats alteration.

[email protected] 25 Aug 2009 00:47

Archive is reuploaded (clean little mess after testing).
choccyclaire, i glad that you like:)

[email protected] 25 Aug 2009 02:26

Version 2.5.1
Fixed couple bugs with js. Edited the product and vbulletin_ajax_oneclick_showrate.js.

[email protected] 27 Aug 2009 18:12

Version 2.6
- navigation by page raters
- added video demo from youtube

wastemytime 27 Aug 2009 19:24

Nice Hack, but if i want to rate a Thread, nothing happens. I reverted Template, checked the Files and Uploads...

[email protected] 27 Aug 2009 20:24

Version of vB?

wastemytime 27 Aug 2009 23:11

3.8.4

[email protected] 28 Aug 2009 00:55

Hm, it tested on 3.8.2 and 3.8.4... Send me message to pm.

snowlion 28 Aug 2009 17:17

Latest version work great, thanks for nice mod :D

wastemytime 29 Aug 2009 11:42

Thansk to [email protected] it works perfect now.

I have one question. I thought about., to show the Option for ratings only for certain Threads. Exactly, only for specific Prefixes. Is this maybe possible with some conditional?

kruchczan 29 Aug 2009 14:39

3 Attachment(s)
Do not open first image :(

Attachment 103813

Next images is ok

Attachment 103814
Attachment 103815

Please help :).

[email protected] 29 Aug 2009 16:50

wastemytime, need write a special condition.
kruchczan, i need look up on this. Send me pm.

kalisekj 26 Oct 2009 23:05

Very Nice Mod, Thank you! Now My users Can easily See how to Rate a Movie. Question Though any way to change the color of the bar from white?

Thank you!

Biggerfool 06 Nov 2009 05:19

I installed this on my forum but nothing changed. I followed all the steps and under the admin control panel added the mod but it looks no different than before. Any help? 3.8.4

Scalemotorcars 01 Dec 2009 23:25

Works except for the first star doesn't show up. The 2nd and 3rd are fine and rating seems to be working correctly.

Any ideals?

Scalemotorcars 02 Dec 2009 02:51

Quote:

Originally Posted by Biggerfool (Post 1910866)
I installed this on my forum but nothing changed. I followed all the steps and under the admin control panel added the mod but it looks no different than before. Any help? 3.8.4

Did you go into the admincp and add the forums you want it used on. Look in the options tab near the bottom. :D

Scalemotorcars 02 Dec 2009 19:55

1 Attachment(s)
Quote:

Originally Posted by Scalemotorcars (Post 1923729)
Works except for the first star doesn't show up. The 2nd and 3rd are fine and rating seems to be working correctly.

Any ideals?

Anyone have an ideal why the first star isnt showing?

Also a contribution to the hack with a star that looks a little more like the default.

Rickeo 02 Dec 2009 20:23

I am using a dark theme anyway to change the gray background to black.

Thanks

Rick

Scalemotorcars 02 Dec 2009 21:16

Quote:

Originally Posted by Rickeo (Post 1924252)
I am using a dark theme anyway to change the gray background to black.

Thanks

Rick

well while I wait on a reply go into the vbulletin_css folder and open the stars_rating.css

Open the Css in an editor and change the last part to this. (the #000000) is black. If you need another color you can easily change it. Hope that helps.



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Rickeo 03 Dec 2009 17:42

Thank you so much :D:D:D

Scalemotorcars 03 Dec 2009 22:57

Quote:

Originally Posted by Rickeo (Post 1924824)
Thank you so much :D:D:D

Glad to help

Is the original Dev anywhere to be found? Anyone know the template or location that controls the Star Sprite?

Should be an easy fix but Ive seen this problem from other users. Anyone. Helloooooooo.........:D

Scalemotorcars 05 Dec 2009 21:13

Well no luck Ive messed with the CSS for hours. Anyone know a fix please PM me. Thanks... :up:

[email protected] 05 Dec 2009 22:02

Probably is problem in a width of stars, when you replace the original image.

Scalemotorcars 06 Dec 2009 02:20

I checked that. Problem was before the change and the new stars.png is exactly the same size.

Great MOD and would like to extend to multiple rating
by reddyink
23 Dec 2009 16:10

Is it possible to inclue the rating to multiple ratings

I like content of thread * * * * * *
I like origniality of the thread * * * *


thanks

saviola8x 23 Dec 2009 18:30

please update for vb4.
thanks

Taurus1 02 Jan 2010 09:34

I love this man! Only problem is that the initial stars don't show up. When I hover where they should be, the green ones show, any help will be appreciated!! Thanks!!

Taurus1 08 Jan 2010 15:15

No support here. Disabled.

Charles_1 10 Jan 2010 17:36

Quote:

Originally Posted by Scalemotorcars (Post 1923729)
Works except for the first star doesn't show up. The 2nd and 3rd are fine and rating seems to be working correctly.

I have to confirm this. The first star doesn't show up, everything else is OK. Some idea to solve it?

I am also using older version 1.5.2 in other installation of vBulletin and there is first star showing correctly.

chikkoo 25 Jan 2010 15:29

I have the same problem. If stars existing, it shows. If no starts existing as rating, then it does not even display the Outlines of the stars as shown in the 4th picture above.

Can someone tell me, how this got fixed?

Rather than PM replies, if u could post here it will be better for all.

It would be nice if the Thread title appears above the rating (like vborg rating old version)

Quote:

Originally Posted by kruchczan (Post 1876346)
Do not open first image :(

Attachment 103813

Next images is ok

Attachment 103814
Attachment 103815

Please help :).

Quote:

Originally Posted by [email protected] (Post 1876421)
wastemytime, need write a special condition.
kruchczan, i need look up on this. Send me pm.


Taurus1 26 Jan 2010 15:56

Any help here please!!?? :(

ForumMonkeys 28 Jan 2010 23:21

In /upload/clientscript/vbulletin_css/stars_ratings.css find this CSS selector:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add this line to get the first set of stars (gray) showing:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

:up:

Taurus1 30 Jan 2010 12:15

Quote:

Originally Posted by ForumMonkeys (Post 1969350)
In /upload/clientscript/vbulletin_css/stars_ratings.css find this CSS selector:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add this line to get the first set of stars (gray) showing:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

:up:

Thanks mate! But it don't work! Uninstalled!!

95% of the mods on here state that it is Supported....but no support at all....ridiculous!!

ForumMonkeys 30 Jan 2010 15:42

Works for me with the addition of that line. *shrug* ;)

Alecsmith 03 Feb 2010 09:16

how could i change star images?

ForumMonkeys 04 Feb 2010 19:22

This plugin uses CSS sprites for the star graphics. So you can find all the stars graphics in one image file.

jGas 06 Feb 2010 15:38

i really like this mod! it's the best for my users songs ratings =)

give it a look here: http://www.musicadigitale.net/forum/...497#post235497

i use it along with gars :D

the_ace 19 Mar 2010 13:34

this is a good rating system to use especially with the rating bug in 3.8.x

desi-boy 14 Apr 2010 18:46

can u make this 1 for vb4.0

Scalemotorcars 04 May 2010 02:05

Quote:

Originally Posted by Taurus1 (Post 1970389)
Thanks mate! But it don't work! Uninstalled!!

95% of the mods on here state that it is Supported....but no support at all....ridiculous!!

Finally fixed. Thank you sir!!!! :up:

Acido 25 Aug 2010 12:50

Port it to vb4.x and get the MOTM pole position :P

s.sami 27 Mar 2011 19:23

1 Attachment(s)
i also have this problem "Do not open first image"

also cant rediceting to thread.

rigodiaz 05 May 2011 04:14

Quote:

Originally Posted by ForumMonkeys (Post 1969350)
In /upload/clientscript/vbulletin_css/stars_ratings.css find this CSS selector:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add this line to get the first set of stars (gray) showing:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

:up:

Thank you!

ru55ian 27 Sep 2011 15:07

Quote:

Originally Posted by Acido (Post 2089309)
Port it to vb4.x and get the MOTM pole position :P

I second that... please port to VB4

chikkoo 31 Dec 2012 13:44

I have this mod installed in my forum, but lately noticed that multiple votes by the same member.

How is it possible? How can I fix this loophole?

mindhunter77 16 Mar 2019 15:38

If I uninstall, then reinstall this version, will I lose all the ratings I have so far on the site?

mindhunter77 16 Mar 2019 18:07

Also, does anyone know how to disable ipv6 with this, people using ipV6 are unable to rate.


All times are GMT. The time now is 07:41.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.