vBulletin Mods

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

[AJAX] Threads Rating
by mad@Max
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?

mad@Max 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 :)

mad@Max 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 mad@Max (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.

mad@Max 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 mad@Max (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.


All times are GMT. The time now is 11:21.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, 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.