vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - [AJAX] Threads Rating (https://vborg.vbsupport.ru/showthread.php?t=221364)

choccyclaire 08-21-2009 02:24 AM

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 08-21-2009 03:17 AM

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 08-21-2009 03:20 AM

^ I just noticed the above too.

mad@Max 08-21-2009 11:23 AM

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 08-21-2009 11:49 AM

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.

snowlion 08-21-2009 12:11 PM

I'm using ver 3.8.2

mad@Max 08-21-2009 12:28 PM

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?
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\" />")); 

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

trotskid 08-21-2009 01:00 PM

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

mad@Max 08-21-2009 01:08 PM

trotskid, have are you edited templates before?

trotskid 08-21-2009 01:12 PM

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


All times are GMT. The time now is 01:48 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
  • Page Generation 0.01102 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete