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

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

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 07-11-2008 Last Update: 01-14-2009 Installs: 145
Uses Plugins Auto-Templates
Code Changes Additional Files  
No support by the author.

This mod merge of three old mods:
vB.org Rating System Replica
[AJAX] Your One Click Thread Ratings
Who Rated This Thread / Delete Who Rated

Futures:
- Now it is not necessary to delete elements from a template
- You can choose id forums, where a rating threads to display it is necessary or not necessary
- On click rating icon in the threads you get info about voting
- You can delete vote from thread rating
- 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.

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

product-trate.xml

Update:

Uninstall old mod and import product (v1.3)

Upload stars.png in folder your style, by default /images/rating/

Enjoy!

DEMO
www.mixplay.ru/forum.php // choose any thread
user: Test
pass: 123456

Thread Rating T?rk?e 1.4.1.zip

Click Install, if you like this mod

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 08-21-2008, 11:52 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am glad
Reply With Quote
  #103  
Old 08-22-2008, 03:37 AM
Mongez's Avatar
Mongez Mongez is offline
 
Join Date: Mar 2008
Location: Egypt
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks, this is very useful mod

but i have small problem

when i click in Edit/View Rating option i get nothing ,so what can i do to fix it ?
Reply With Quote
  #104  
Old 08-22-2008, 08:03 AM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the top of template navbar add this:
PHP Code:
<!-- thread rating info -->
<
script type="text/javascript">
<!--
    function 
openDreamTRI(threadid) {
        
dreamTRIWindow window.open('threadratinginfo.php?threadid=' threadid'dreamTRI''directories=no, height=150, width=300, location=no, menubar=no, resizable=yes, status=no, scrollbars=yes, toolbar=no/\');
    }
//-->
</script>
<!-- / thread rating info --> 
Reply With Quote
  #105  
Old 08-22-2008, 11:25 AM
Mongez's Avatar
Mongez Mongez is offline
 
Join Date: Mar 2008
Location: Egypt
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mad@Max View Post
In the top of template navbar add this:
PHP Code:
<!-- thread rating info -->
<
script type="text/javascript">
<!--
    function 
openDreamTRI(threadid) {
        
dreamTRIWindow window.open('threadratinginfo.php?threadid=' threadid'dreamTRI''directories=no, height=150, width=300, location=no, menubar=no, resizable=yes, status=no, scrollbars=yes, toolbar=no/\');
    }
//-->
</script>
<!-- / thread rating info --> 
Sorry still have same problem

* I test this mod on my localhost, so this is have relation in my problem ?

many thanks agin
Reply With Quote
  #106  
Old 08-22-2008, 04:33 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are use default style?
Reply With Quote
  #107  
Old 08-22-2008, 09:58 PM
Mongez's Avatar
Mongez Mongez is offline
 
Join Date: Mar 2008
Location: Egypt
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mad@Max View Post
You are use default style?
This is strange ,it is working great with some styles i have, and some styles not working only Edit/View Rating option, so when i test now i get the problem in Navbar template, i have edit this template before, so what can i do ?

Thank you for your help.
Reply With Quote
  #108  
Old 08-22-2008, 10:09 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some styles need special editing. If you have online example, i can look on it.
Reply With Quote
  #109  
Old 08-22-2008, 10:12 PM
Mongez's Avatar
Mongez Mongez is offline
 
Join Date: Mar 2008
Location: Egypt
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mad@Max View Post
For some styles need special editing. If you have online example, i can look on it.
yes this is my forum http://www.klamaraby.com/vb/index.php

sorry it is Arabic forum

and i have Attach my navbar template if you want take a look

many thanks.
Reply With Quote
  #110  
Old 08-22-2008, 10:46 PM
mad@Max's Avatar
mad@Max mad@Max is offline
 
Join Date: Jul 2007
Location: Russia
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are sure what add correctly code in "navbar" template, at the top?
PHP Code:
<!-- thread rating info -->
<
script type="text/javascript">
<!--
    function 
openDreamTRI(threadid) {
        
dreamTRIWindow window.open('threadratinginfo.php?threadid=' threadid'dreamTRI''directories=no, height=150, width=300, location=no, menubar=no, resizable=yes, status=no, scrollbars=yes, toolbar=no');
    }
//-->
</script>
<!-- / 
thread rating info --> 
Because with this, it is must work.
Reply With Quote
  #111  
Old 08-22-2008, 10:50 PM
Mongez's Avatar
Mongez Mongez is offline
 
Join Date: Mar 2008
Location: Egypt
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange working now !, i can not talk something for your help :up:

thanks again for your time and have a nice day
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 07:26 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.07949 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete