Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX] Threads Rating Details »»
[AJAX] Threads Rating
Version: 2.6, by mad@Max mad@Max is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 08-19-2009 Last Update: 08-26-2009 Installs: 58
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files  
No support by the author.

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:
  • 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:

PHP Code:
        $xml->add_tag('voteavg'process_replacement_vars("$vbphrase[rating]: <img class=\"inlineimg\" src=\"$stylevar[imgdir_rating]/rating_$thread[rating].gif\" alt=\"" construct_phrase($vbphrase['thread_rating_x_votes_y_average'], $thread['votenum'], $thread['voteavg']) . "\" border=\"0\" />")); 
Replace with:

PHP Code:
        $currate = ($thread['voteavg']*25 px);
        
$xml->add_tag('voteavg'process_replacement_vars("<table cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td align=\"right\" width=\"45%\" nowrap=\"nowrap\"><div><strong>$vbphrase[trate_currate]</strong></div></td><td align=\"left\" width=\"55%\" nowrap=\"nowrap\"><ul class=\"star-rating\" title=\"" construct_phrase($vbphrase['thread_rating_x_votes_y_average'], $thread['votenum'], $thread['voteavg']) . "\"><li class=\"current-rating\" style=\"width:$currate;\"></li></td></tr></table>")); 
Using the Product Manager, upload the Product that came with this modification.

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

For ten point system:

Open: threadrate.php

Find:

PHP Code:
if ($vbulletin->GPC['vote'] < OR $vbulletin->GPC['vote'] > 5
Replace with:

PHP Code:
if ($vbulletin->GPC['vote'] < OR $vbulletin->GPC['vote'] > 10
--------------------------------------------------------

Open: /includes/class_dm_threadrate.php

Find:

PHP Code:
var $max_vote 5
Replace with:

PHP Code:
var $max_vote 10
###############################

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

Download Now

File Type: zip [AJAX] Threads Rating En v2.0.zip (15.7 KB, 97 views)
File Type: zip [AJAX] Threads Rating En v2.6.zip (18.2 KB, 444 views)

Screenshots

File Type: jpg trbitdel.JPG (16.6 KB, 0 views)
File Type: jpg trset.JPG (89.6 KB, 0 views)
File Type: jpg trshow.JPG (16.2 KB, 0 views)
File Type: gif tratevid.gif (337.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Artes_Marciales

Comments
  #62  
Old 01-10-2010, 04:36 PM
Charles_1 Charles_1 is offline
 
Join Date: Jun 2006
Location: Czech Republic, Brno
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scalemotorcars View Post
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.
Reply With Quote
  #63  
Old 01-25-2010, 02:29 PM
chikkoo chikkoo is offline
 
Join Date: Mar 2005
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
Do not open first image

Attachment 103813

Next images is ok

Attachment 103814
Attachment 103815

Please help .
Quote:
Originally Posted by mad@Max View Post
wastemytime, need write a special condition.
kruchczan, i need look up on this. Send me pm.
Reply With Quote
  #64  
Old 01-26-2010, 02:56 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any help here please!!??
Reply With Quote
  #65  
Old 01-28-2010, 10:21 PM
ForumMonkeys's Avatar
ForumMonkeys ForumMonkeys is offline
 
Join Date: Sep 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

PHP Code:
.star-rating li a 
and add this line to get the first set of stars (gray) showing:

PHP Code:
backgroundurl(../../images/rating/stars.png); 
:up:
Reply With Quote
  #66  
Old 01-30-2010, 11:15 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForumMonkeys View Post
In /upload/clientscript/vbulletin_css/stars_ratings.css find this CSS selector:

PHP Code:
.star-rating li a 
and add this line to get the first set of stars (gray) showing:

PHP Code:
backgroundurl(../../images/rating/stars.png); 
: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!!
Reply With Quote
  #67  
Old 01-30-2010, 02:42 PM
ForumMonkeys's Avatar
ForumMonkeys ForumMonkeys is offline
 
Join Date: Sep 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works for me with the addition of that line. *shrug*
Reply With Quote
  #68  
Old 02-03-2010, 08:16 AM
Alecsmith Alecsmith is offline
 
Join Date: Sep 2009
Location: Still On Earth
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how could i change star images?
Reply With Quote
  #69  
Old 02-04-2010, 06:22 PM
ForumMonkeys's Avatar
ForumMonkeys ForumMonkeys is offline
 
Join Date: Sep 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This plugin uses CSS sprites for the star graphics. So you can find all the stars graphics in one image file.
Reply With Quote
  #70  
Old 02-06-2010, 02:38 PM
jGas jGas is offline
 
Join Date: May 2007
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #71  
Old 03-19-2010, 12:34 PM
the_ace the_ace is offline
 
Join Date: Jul 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05157 seconds
  • Memory Usage 2,374KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete