vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - [AJAX] Your One Click Thread Ratings (https://vborg.vbsupport.ru/showthread.php?t=136162)

fci 01-16-2007 11:32 PM

Ok.. I think I finally figured out what issue is with it still showing after voting:
Set "Check Thread Rating" to Yes in vBulletin Options under "Thread Display Options (showthread)"
If someone can please confirm this I will probably work on a new release

kafi, in the next release, that will be the goal.

ubblite 01-16-2007 11:38 PM

Quote:

Originally Posted by fci (Post 1161013)
Ok.. I think I finally figured out what issue is with it still showing after voting:
Set "Check Thread Rating" to Yes in vBulletin Options under "Thread Display Options (showthread)"
If someone can please confirm this I will probably work on a new release

kafi, in the next release, that will be the goal.

Yup, it's working now. Nice job - thanks.

DPSR 01-17-2007 01:02 PM

Yea, working just fine now :D:D:D
Thanks ;)

trustful88 01-18-2007 12:38 AM

wow sweet, i might get this on my page

nader 01-20-2007 09:58 AM

i think there is bug in this script i tested on vb3.5.X it does not give number?

<script type="text/javascript" src="clientscript/vbulletin_ajax_oneclick_threadrate.js?v=$vboptions[simpleversion]">

StarBuG 01-20-2007 02:03 PM

Hi

Thank you for this modification.

I have two questions:

1) How can I get a permanent "vote" button like here on vB.org and not use ajax?

2) Currently the message you get after voting is not formated (I use the modified version from post #6). It does not show in the colored box/div with background color.
How can I get it to display it within this box/div?

If I add divs around or inside of
Code:

<span id="oneclick_threadrating_response"></span>
<span id="oneclick_threadrating_current"></span

The answer does not show at all but this is the part that generates the "thank you for rating" message.

Any help is appreciated

StarBuG

arena 01-20-2007 04:01 PM

Quote:

Originally Posted by DPSR (Post 1156182)
One i modified for my site (attached preview):p

If anyone want to use it, here it is--

Add this your style CSS (you can change the colors matching with your forum):
PHP Code:

.news{
padding5px;
background#EDF4FA;
border1px solid #D7DEE4;
color#4E4E4C;


Add the code below $poll (not tested anywhere else)



Change the options (marked with RED color) in above code the way you want.

Click save and rest followed all instructions provided by fci

BIG thanks to fci for the hack ;)

Thank you :)

StarBuG 01-21-2007 02:29 PM

Does no one has an Idea how to solve the 2 issues >> here << ??

Pvtiste 01-22-2007 04:40 PM

Quote:

Originally Posted by DPSR (Post 1156182)
One i modified for my site (attached preview):p

If anyone want to use it, here it is--

Add this your style CSS (you can change the colors matching with your forum):
PHP Code:

.news{
padding5px;
background#EDF4FA;
border1px solid #D7DEE4;
color#4E4E4C;


Add the code below $poll (not tested anywhere else)



Change the options (marked with RED color) in above code the way you want.

Click save and rest followed all instructions provided by fci

BIG thanks to fci for the hack ;)

Thanks for the job & sharing but this mod doesn't work on my board :(
When I tick, there is nothing... Help me please :D
Thank you

tutorials.de 01-27-2007 01:42 AM

Hi Dudes,

first of all thanks to fci for this great hack! Instead of the template code provided you may use the one we have installed in our showroom (see screenshot).

Here is the code (for vBulletin 3.6.4.) It is "plug & play" but I can't give any guarantee that it works for you. Just paste it in template SHOWTHREAD directly under $poll

Code:

<!-- Threadrating -->
<if condition="$show['threadrating']">
    <if condition="$show['ratethread']">
        <div style="text-align:left; padding-bottom: 5px;">
        <span id="oneclick_container">
        <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 class="tborder" cellpadding="3" cellspacing="1" width="100%"><tr>');
        document.write('    <td class="alt2">$vbphrase[rating]:</td>');
        document.write('    <td class="alt1"><a href="javascript:void(0);" id="oneclick_vote_one_submit" style="font-size:14pt; text-decoration:none"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" border="0" /> $vbphrase[terrible]</a></td>');
        document.write('    <td class="alt2"><a href="javascript:void(0);" id="oneclick_vote_two_submit" style="font-size:14pt; text-decoration:none"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" border="0" /> $vbphrase[bad]</a></td>');
        document.write('    <td class="alt1"><a href="javascript:void(0);" id="oneclick_vote_three_submit" style="font-size:14pt; text-decoration:none"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" border="0" /> $vbphrase[average]</a></td>');
        document.write('    <td class="alt2"><a href="javascript:void(0);" id="oneclick_vote_four_submit" style="font-size:14pt; text-decoration:none"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" border="0" /> $vbphrase[good]</a></td>');
        document.write('    <td class="alt1"><a href="javascript:void(0);" id="oneclick_vote_five_submit" style="font-size:14pt; text-decoration:none"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" border="0" /> $vbphrase[excellent]</a></td>');
        document.write('</tr></table>');
        -->
        </script>
        <script type="text/javascript" src="clientscript/vbulletin_ajax_oneclick_threadrate.js?v=$vboptions[simpleversion]"></script>
        <script type="text/javascript">
        <!--
            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>
        </span>
        <span id="oneclick_threadrating_current"></span>
        <span id="oneclick_threadrating_response"></span>
        </div>
    </if>
</if>
<!-- / Threadrating -->

Have fun :)

- Lagaf
www.tutorials.de


All times are GMT. The time now is 11:47 AM.

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.01323 seconds
  • Memory Usage 1,772KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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