vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - [AJAX] Threads rating (https://vborg.vbsupport.ru/showthread.php?t=185117)

mad@Max 12-01-2008 06:09 PM

Sarthek, no, this future only for members.
Taragon, hm, if rating working in blogs, you can add condition like
PHP Code:

if(THIS_SCRIPT == 'blog')
{
code



Tarfandestan 12-04-2008 01:26 PM

tanx for your hack.
how can change the place of this bar in threads?
I want set it between quick reply and posts.

mad@Max 12-04-2008 04:15 PM

Tarfandestan, hm, you need little rewrite code...
Find in plugin Threads rating (showthread_complete)
PHP Code:

$vbulletin->templatecache['SHOWTHREAD'] = str_replace('$navbar''$navbar'.$vbulletin->templatecache['trate'], $vbulletin->templatecache['SHOWTHREAD']); 

Replace with
PHP Code:

$vbulletin->templatecache['SHOWTHREAD'] = str_replace('$trcode'$vbulletin->templatecache['trate'], $vbulletin->templatecache['SHOWTHREAD']); 

Now put $trcode in template SHOWTHREAD
Quote:

between quick reply and posts
:)

Tarfandestan 12-04-2008 09:16 PM

tanx a lot man. its ok right now.

mad@Max 12-04-2008 11:56 PM

Welcome ;)

kmohamed 12-11-2008 02:04 AM

this is one of the greatest hacks (my opinion) lol its small but it makes ur site looks great
thank u
should i be afraid of any bugs

kruchczan 12-14-2008 12:31 PM

After the vote, zie shows me the result :(, the option does not work who voted :(, what I was doing wrong? please help

kmohamed 12-14-2008 05:01 PM

Quote:

Originally Posted by kruchczan (Post 1685179)
After the vote, zie shows me the result :(, the option does not work who voted :(, what I was doing wrong? please help

you have to upload all of the files inside the zip file to your forum

clientscript---------------------------------->forum
images-------------------------------------->forum
threadratinginfo.php--------------------->forum
:)

kruchczan 12-14-2008 05:37 PM

I have sent files and partly working, but I have an error javascript :(.

Code:

openDreamTRI is not defined
javascript:openDreamTRI(2204)


mad@Max 12-14-2008 06:24 PM

kruchczan, you need handly add js code...
Quote:

Tuning:

If you use non default style or just autoreplace in templates not worked, did this:

1) In mod settings enable hand setting

2) In the top of "navbar" template add:

$mdm_tr

kruchczan 12-14-2008 07:38 PM

I have done and still not working :(.

chikkoo 12-25-2008 08:21 PM

I can only see the rating in default style. Others it is not working.
Even in default style, I can't see the details of the voting.

DraculaVN 12-27-2008 04:20 PM

Mod not working in Vbulletin 3.7.4 PL1 :(

mad@Max 12-27-2008 06:26 PM

Mod will be working on all version vb, while jelsoft will not change voting code:)

kruchczan 12-27-2008 06:36 PM

apparently forgot about something? does not work correctly!

TaMpE 01-02-2009 10:50 PM

Quote:

Originally Posted by mad@Max (Post 1646014)
Hm, no, go in the trate template, find all $stylevar[imgdir_rating]/stars.png, and then replace founded items on
HTML Code:

<if condition="in_array($thread[forumid], array(1,2,3,4,...,N)">$stylevar[imgdir_rating]/black_stars.png<else />$stylevar[imgdir_rating]/stars.png</if>
Where 1,2,3,4,...,N forums with different stars. But resolution of different image must be like stars.png.
Must be work:)

What do you mean? Do I have to cut out each star? It's work showing up like others people's.

rizelim 01-07-2009 06:33 PM

Thank you very much friends !

mad@Max 01-12-2009 11:36 PM

Version 1.5
Fixed some bugs, deleted hand opt., some cleanup.

mad@Max 01-13-2009 04:50 PM

Version 1.5.1
Unified one module.

ZomgStuff 01-13-2009 04:54 PM

Anyone know if this is working with 3.8?

mad@Max 01-13-2009 06:15 PM

Yes, working - tested.

Taragon 01-13-2009 06:26 PM

Thank you!
Do you also happen to have a version with the AJAX rating only perhaps?
I’ve tried to remove the things not needed, however I’m not really sure if I did things right.

mad@Max 01-13-2009 07:14 PM

Sorry, but i not understand you. What do you mean?

Taragon 01-13-2009 07:47 PM

Do you have a version available without the ?Who rat this thread? bit available?
I?ve tried to remove this at my forums, but I?m not sure I did things right.

Only leaving this available I mean:
https://vborg.vbsupport.ru/attachmen...4&d=1218672720

mad@Max 01-13-2009 09:40 PM

Quote:

‘Who rat this thread’
lol))))))))))))
No, i not have that version. But why are you don't like this future?

Taragon 01-14-2009 08:14 AM

Sorry, I wrote that wrong :p
The main reason I guess is my members are getting sometimes a bit confused when seeing lots of features.

mad@Max 01-15-2009 02:17 PM

Version 1.5.2
Rewrited of one module, for better compatibility.
Taragon, View/Edit rating can only admin groups.

jGas 01-16-2009 01:41 PM

hi, i use a different showthread template for some forums (and i've called it gars_showthred).

how should i modify the plugin (i suppose Threads rating Cache templates) to include also gars_showthread?
thanks!

mad@Max 01-16-2009 03:51 PM

Template gars_showthread replaced showthread template?

jGas 01-16-2009 09:55 PM

It may sound stupid but it doesn't work...even if i change the mod is still visible in showthread but not in gars_showthread!

edit: solved.. i don't know how but now i can see in every template and that's ok!

what about if i'd like to move the box to another position?

thanks for this mod, it's wonderful :D

mad@Max 01-17-2009 10:51 AM

If you want move box with rating, open Threads rating Maintains and look on string
PHP Code:

eval('$navbar .= "' fetch_template('trate_main') . '";'); 

Replace $navbar with what you need variable (like $footer), or create your own.

phoxitin 01-27-2009 07:28 AM

Does this work 3.8.x ??

Taragon 01-27-2009 08:50 PM

Quote:

Originally Posted by phoxitin (Post 1725965)
Does this work 3.8.x ??

Yes, it does :)

Battle_Ring 02-07-2009 12:03 AM

Not working for me. It shows whilie i vote then it disappears

kersti 03-09-2009 09:43 PM

I'm getting 404 errors - /threadratinginfo.php?threadid=36

How do I fix that?

mad@Max 03-10-2009 08:09 PM

All files is uploaded?

f4vn 03-13-2009 06:13 PM

Hi,

Can you help me chang code to vote from this https://vborg.vbsupport.ru/attachmen...1&d=1236971513
to this https://vborg.vbsupport.ru/attachmen...1&d=1236971513.

Thanks :),

pawelx1988 03-17-2009 09:08 AM

The mod is great - thanks! But I have a problem and my friends too.
My forum is on dedicated server, but the ratings is very slow.

When I'm clicking on one of stars to rate - I must wait 3-4 seconds to see the rate, but I see that in your forum I have waited 1 second! :) Can you help me with it?

paul41598 04-02-2009 03:08 PM

F4VN,

I've changed the template to meet your needs. I wanted it as well.

Replace the trate_main template with this:

Code:

                <if condition="$show['threadrating']">
    <if condition="$show['ratethread']">
        <div class="quickajaxrating" style="text-align:center; padding-bottom: 5px; background: #FFDC84; color:#000;"">
            <span id="oneclick_container">
                <if condition="!$rated">
                    <noscript>
                        $vbphrase[rating]:
                    </noscript>
                    <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_one">
                        <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="1" /><input type="submit" value="1" style="display:none;"/>
                        <noscript>
                            <input type="submit" value="1" />
                        </noscript>
                    </form>
                    <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_two">
                        <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="2" /><input type="submit" value="1" style="display:none;"/>
                        <noscript>
                            <input type="submit" value="2" />
                        </noscript>
                    </form>
                    <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_three">
                        <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="3" /><input type="submit" value="1" style="display:none;"/>
                        <noscript>
                            <input type="submit" value="3" />
                        </noscript>
                    </form>
                    <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_four">
                        <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="4" /><input type="submit" value="1" style="display:none;"/>
                        <noscript>
                            <input type="submit" value="4" />
                        </noscript>
                    </form>
                    <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_five">
                        <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="5" /><input type="submit" value="1" style="display:none;"/>
                        <noscript>
                            <input type="submit" value="5" />
                        </noscript>
                    </form>
                    <script type="text/javascript">
                        <!--
                        var threadid = $threadinfo[threadid];
                        document.write('<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="5" width="100%"><tr><td align="right" width="45%" nowrap="nowrap"><div><strong>$vbphrase[trate_rateit]</strong></div></td><td align="left" width="$widthcolumn%" nowrap="nowrap"><div class="current-rating" style="width:$current_rating;"><label for="vote5"><input type="radio" name="vote" id="oneclick_vote_five_submit" value="5" $votechecked[5] />$vbphrase[excellent]</label><label for="vote4"><input type="radio" name="vote" id="oneclick_vote_four_submit" value="4" $votechecked[4] />$vbphrase[good]</label><label for="vote3"><input type="radio" name="vote" id="oneclick_vote_three_submit" value="3" $votechecked[3] />$vbphrase[average]</label><label for="vote2"><input type="radio" name="vote" id="oneclick_vote_two_submit" value="2" $votechecked[2] />$vbphrase[bad]</label><label for="vote1"><input type="radio" name="vote" id="oneclick_vote_one_submit" value="1" $votechecked[1] />$vbphrase[terrible]</label></div></div></td>$evr</tr></table>');
                        -->
                    </script>
                    <script type="text/javascript" src="clientscript/vbulletin_ajax_oneclick_threadrate.js?v=$vboptions[simpleversion]">
                    </script>
                    <script type="text/javascript">
                        <!--
                        var threadid = $threadinfo[threadid];
                        vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_one');
                        vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_two');
                        vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_three');
                        vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_four');
                        vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_five');
                        -->
                    </script>
                    <else />
                    <div align="center" style="font-size: 15px; font-family: verdana; font-weight: bold;">You have already rated this thread!</div> </if>
                    <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="$widthcolumn%" nowrap="nowrap">
                                                                                                               
                                <ul class="star-rating" title="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>">
                                    <li class="current-rating" style="width:$current_rating;">
                                    </li>
                                </ul>
                            </td>$evr
                        </tr>
                    </table>
                </if>
            </span>
            <span id="oneclick_threadrating_current"></span>
            <span id="oneclick_threadrating_response"></span>
        </div> 
</if>
<br/>


jGas 04-08-2009 04:24 PM

hi, i'm using this mod and i really love it!
is there a way to have the thread rating with 10 stars instead of 5?

thanks :D


All times are GMT. The time now is 03:50 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.01638 seconds
  • Memory Usage 1,865KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (6)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
  • (40)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