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 04-09-2009 08:29 AM

Now i'm working on a new version, and in it i will add a feature with 10 points. So, wait for version 2.0....

Arkham 04-13-2009 04:32 PM

Is it possible to use the info from the "show user's rating" in the post itself?

E.g. in the header of each post, show what that particular user rated that thread? This feature is something I desperately need.

Looking forward to the new version!

Acido 04-21-2009 02:38 PM

This is not working in 3.8.2

Arkham 04-21-2009 02:49 PM

Quote:

Originally Posted by Acido (Post 1795998)
This is not working in 3.8.2

Crap. I was just going to install it, too.

Anyone know if it at least works w/3.8.1?

Taragon 04-21-2009 09:46 PM

Quote:

Originally Posted by Arkham (Post 1796008)
Crap. I was just going to install it, too.

Anyone know if it at least works w/3.8.1?

I guess it will work from 3.6.4 until at least 3.8.2

mindhunter77 04-30-2009 08:57 PM

Where would I go to edit the white space between this MOD, and my banner? Any ideas, I have looked for an hour lol..

chjp 05-03-2009 05:19 AM

I like it. Thank you.

EagleNick 06-14-2009 06:22 PM

Hello,

Can you add an option to manually include the variable to show the ratings? I'd like to move the rating area to a customized area within the thread, and not right after $navbar.

How can I do this?

Thanks.

Dennis Kaczor 06-19-2009 06:41 PM

Quote:

Originally Posted by paul41598 (Post 1782440)
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/>


Very nice work here Paul, and I have added this to my system. I have one question if this is possible as I'm not a coder. Rather than the user trying to move the mouse over the little radio button, have it so that it highlights the button when you move over the text area for that selection? Just a thought...

Dennis

xyzmary2001 07-17-2009 11:11 AM

Will it be an update for vB 3.8.2? My users love it, it will be a shame to give up on it after I will make the update to vb 3.8.

@edit: Just checked and works perfectly with 3.8.2.

AndrusW 08-02-2009 09:52 AM

Works perfectly for me in 3.83 also.

Verionia 08-04-2009 03:35 PM

Quote:

Originally Posted by AndrusW (Post 1860023)
Works perfectly for me in 3.83 also.

Yes works perfect for 3.83 but how can I change images to the ones here on VB or different stars?

Verionia 08-04-2009 08:35 PM

Wait... i had to uninstall as this is already implemented in 3.83... :o

Taragon 08-04-2009 09:45 PM

Quote:

Originally Posted by Verionia (Post 1861431)
Wait... i had to uninstall as this is already implemented in 3.83... :o

Rating, yes. Ajax rating, no.

Verionia 08-05-2009 03:11 AM

Quote:

Originally Posted by Taragon (Post 1861465)
Rating, yes. Ajax rating, no.

But Im having a problem... I cant rate threads on my forums anymore...everytime I click the rate button, nothing happens! :(

Tiberonmagnus 08-15-2009 03:06 AM

Is there a method to make it so I can include the "View Rating" graph below the 5 star selection area? I'm talking about the information you get about who voted on the 5 stars after you press the "Edit/View Rating" button to the right of the stars. I can get it to appear below the 5 star selection area, but it doesn't show any numbers at all. Am I missing something?

mad@Max 08-20-2009 05:10 PM

Finally, i rewrote the hack https://vborg.vbsupport.ru/showthread.php?t=221364.


All times are GMT. The time now is 01:36 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.01324 seconds
  • Memory Usage 1,801KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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