![]() |
[AJAX] Threads Rating
1 Attachment(s)
Description:
This is a rewritten version of this version https://vborg.vbsupport.ru/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:
Install: Extract all files from folder "Upload" in forum root directory Find in file threadrate.php on youre server: PHP Code:
PHP Code:
############################### For ten point system: Open: threadrate.php Find: PHP Code:
PHP Code:
Open: /includes/class_dm_threadrate.php Find: PHP Code:
PHP 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:) |
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 |
Version 1.5.2 (3.7.x) runs well on 3.8.3 :). Which is the difference between v2.0?
|
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 :) |
Another fix:) Replace same file.
|
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 |
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:
Quote:
Quote:
|
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 :) |
i will try....
|
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. :)
|
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. |
^ I just noticed the above too.
|
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? |
Quote:
|
I'm using ver 3.8.2
|
Ok, i did following (as it needed for ten point):
Quote:
snowlion, you are edit this string? PHP Code:
|
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 |
trotskid, have are you edited templates before?
|
Yeah, and the previous version (1.5.2) worked perfectly.
|
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?
|
Quote:
Quote:
|
what is 10 point system??
and how can we enable 10 points system?? |
bugs are very welcome:)
I'll wait. Thanks for update |
PM me who have a problem with hack, because i don't see a reason why it doesn't work.
|
Quote:
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: |
thank you verymuch for nice mod
|
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.
|
It's output from showthread script, i don't know how it output the article mod.
|
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. |
Thank you!
Do we need to overwrite the files or just upload the product? |
Overwrite all files (except img), and reimport product (better uninstall then install).
|
Brilliant. Works like a charm. :)
And I also like the box popup to view stats alteration. |
Archive is reuploaded (clean little mess after testing).
choccyclaire, i glad that you like:) |
Version 2.5.1
Fixed couple bugs with js. Edited the product and vbulletin_ajax_oneclick_showrate.js. |
Version 2.6
- navigation by page raters - added video demo from youtube |
Nice Hack, but if i want to rate a Thread, nothing happens. I reverted Template, checked the Files and Uploads...
|
Version of vB?
|
3.8.4
|
Hm, it tested on 3.8.2 and 3.8.4... Send me message to pm.
|
All times are GMT. The time now is 07:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|