vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - vB.org Rating System Replica (https://vborg.vbsupport.ru/showthread.php?t=155701)

Rich 08-19-2007 10:00 PM

vB.org Rating System Replica
 
I applogize for releasing this modification again for a second time. The initial thread has gone insane and literally doubles and triples ALL of my posts each time I have responded to the thread. I am not certain why, but it only occurs in that thread, so here we go again. lol

This modification will replicate the rating system found here on vBulletin.org. There is currently a release by Magnus out there that does some of this.

This version functions just like vb.orgs.

If you wish to see how this will appear, you can view the top of any page where there is a thread here on the .org. That rating box is what you will be installing.

I mean no disrespect to Magnus for releasing this modification. (It isn't his code, but he released something very similar.) I wanted to be able to support it and update the thread as needed.

------------------------------------------------------------------------------------------------

New Updated File Includes The Corrections To Make The Change Voting Work.

Brandon Sheley 08-20-2007 01:26 AM

Thanks, will check it out

I think a user said this version doesn't use AJAX like the version used here ?

Rich 08-20-2007 01:45 AM

Hello,

This version doesn't use ajax, though it is something I will be looking into tomorrow.

optrex 08-20-2007 10:27 AM

Thanks Rich. Ill wait until the next update before installing then, so I dont have to do things twice over.

YsTyle 08-20-2007 11:15 AM

thanks - installed :)

obmob 08-21-2007 04:36 PM

Well, i've been trying to make this work as vb.org... so far, no luck.

Is it me, or it only allows you one vote per thread?

I've voted, logged out and logged in with a regular user and i can't vote again. :(

Rich 08-21-2007 09:51 PM

Hello,

I am currently packaging up the corrected version. I have it all worked out. I should be releasing it within the next 15 minutes or so.

Update:

The attached zip (first thread) includes the template edits as well as the plugin required to make this work. Ajax now functions as it should and multiple ratings has returned. (Sorry about that.) All in all, it should be all set now.

obmob 08-22-2007 12:23 AM

Congratulations, it seems to be working! :D

Will test some more and see if i didn't miss something, i'm getting the "you voted popup" when submitting my vote. :p

thanks

Rich 08-22-2007 12:29 AM

Hello,

I currently have this running on my site. I ran it past 10 of my users, and not a single error arose. (Which is why I released it.) Let me know if you get it squared away.

obmob 08-22-2007 12:48 AM

Just the popup message, i changed this:

Code:

    <script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=368"></script>
    <script type="text/javascript">
    <!--
    vB_AJAX_ThreadRate_Init('showthread_threadrate_form');
    var threadid = $threadinfo[threadid];
    //-->
    </script>

For this:

Code:

    <script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=368"></script>
    <script type="text/javascript">
    <!--
    vB_AJAX_ThreadRate_Init('showthread_threadrate_form');
    var threadid = $threadinfo[threadid];
        window.alert = null;
    //-->
    </script>

Thank you! :D

Rich 08-22-2007 08:49 AM

I updated the zip file with the nullified window alert. Thanks obmob!

Stoebi 08-22-2007 09:57 AM

Hi

thank you very much for your nice module :)
My wish is to see what i voted for.
Example:
Rating: **
My wish:
Your voted for this $thread_title: *** - Average Rating: **


The original Rating allows me to change my vote. Can you rerealize this too, please?


What do you think about my wishes?


Kind Regards, Stoebi

optrex 08-22-2007 10:08 AM

Great ideas Stoebi - this has a lot of potential.

Smiry Kin's 08-22-2007 10:17 AM

Possible to turn into a product? hate my templates looking messy..

Also what is the plugin used for? i did all the templates, it worked perfectly.. ajax etc..?

rayphua 08-22-2007 11:37 AM

1. Thread rating does not show in search for New Posts.

2. When we set "Required Thread Rating Votes to Show Rating" in Admincp to 2 or more, a single vote still does not do anything. Click on Vote Now and the box still stays there, does not disappear or anything, like nothing is happening.

Mecho 08-22-2007 01:37 PM

Hey .. i installed this hack but it seems this one is not working for me too ..

i will pm u ( Rich ) my site detail and i will appreciate if u can check , of course if u have time ;)

Rich 08-22-2007 08:00 PM

Quote:

Originally Posted by Smiry Kin's (Post 1323014)
Possible to turn into a product? hate my templates looking messy..

Also what is the plugin used for? i did all the templates, it worked perfectly.. ajax etc..?

The reason it isn't a product is because most users have a modified SHOWTHREAD template. I would hate for this mod to break the functionality of modifications they may already have, or modifications that have made to sections that require editting.

The plugin queries the threadrate table to see if the user has voted already or not. If they have, it shows the rating. If they haven't, it shows the rate box.

Stoebi, I will look into that this weekend. (I work full-time and have 2 kids. lol)

Quote:

1. Thread rating does not show in search for New Posts.

2. When we set "Required Thread Rating Votes to Show Rating" in Admincp to 2 or more, a single vote still does not do anything. Click on Vote Now and the box still stays there, does not disappear or anything, like nothing is happening.
I will also look into this as well.

Quote:

Hey .. i installed this hack but it seems this one is not working for me too ..

i will pm u ( Rich ) my site detail and i will appreciate if u can check , of course if u have time
I contacted him back and found his site has a few java errors that are causing the problems. Once those are located and corrected, this should work fine on his site.

obmob 08-22-2007 08:46 PM

Still playing around, so far, it seems to be working just fine. :D

rb290 08-23-2007 08:06 PM

Got any previews?

Rich 08-23-2007 08:08 PM

Taken from my release post:

Quote:

If you wish to see how this will appear, you can view the top of any page where there is a thread here on the .org. That rating box is what you will be installing.

esperone 08-23-2007 11:59 PM

well done. great mod.

rainyleaves 08-26-2007 04:24 PM

Great Mod!!
Thank you very much for your nice module!!

But I got very big problem.
It's just only my problem.

Your Ajax code conflicts with Vbcredit Mod's ajax code.

Your code:
Code:

<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=368"></script>
Vbcredit code:
Code:

<script type="text/javascript" src="clientscript/credits_ajax_postadd.js?v=$vboptions[simpleversion]"></script>
I love your mod.
I really want use your mod.
Can I fix the conflicts?
Please...Could you fix the problem?
Sorry my English.

Thanks... :)

Rich 08-26-2007 07:09 PM

Quote:

Your code:
Code:

<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=368"></script>

That should actually be:

Code:

<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=$vboptions[simpleversion]"></script>
That slipped by me. Sorry. (I will update the download.) The ajax I am using is actually the default ajax already found in the showthread template.

TheBlackPoet 08-27-2007 01:12 AM

i like this a lot.. thanks... installed

rayphua 08-27-2007 01:32 AM

Hi Rich,

What are the changes done on this new version?

Is the following done?

. Thread rating does not show in search for New Posts.

2. When we set "Required Thread Rating Votes to Show Rating" in Admincp to 2 or more, a single vote still does not do anything. Click on Vote Now and the box still stays there, does not disappear or anything, like nothing is happening.

3. Changing of votes - I don't see where we are able to change the votes.

Further, since this template has changed several times now, I think it is good if you are able to direct these changes for those who installed the previous versions. Instead of us trying to figure out what has changed, there should be info like....add this back in from previous deleted lines...find and delete this line, etc. This would save us a lot of time, and avoid mistakes.

Thanks.

rainyleaves 08-27-2007 03:58 PM

Thanks!! for your time , Rich.

I found my problem.
Conflict code is red code.
I fixed that after deleted the red code.
I think the red code is overlapped with VBcredit's same code.

Anyway, Thanks for your reply. :)

<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=368"></script>
<script type="text/javascript">
<!--
vB_AJAX_ThreadRate_Init('showthread_threadrate_for m');
var threadid = $threadinfo[threadid];
window.alert = null;
//-->
</script>

djdonx 09-03-2007 09:51 AM

This is exactly what I'm looking for, except for one thing..

I only want to apply this to a certain group of forums, not the whole board

Is there a way to do this?

momo2 09-11-2007 10:00 AM

Installed worked like a charm.... thanks so much..

djdonx 09-11-2007 03:31 PM

Any help on my query?

Snatch 09-21-2007 07:00 AM

In the TXT you writes
HTML Code:

##########################################################################################
Find and REMOVE:
##########################################################################################

</td>
    </if>
    <if condition="$show['threadrating']">
        <td class="vbmenu_control" id="threadrating" nowrap="nowrap">
            <a href="$show[nojs_link]#goto_threadrating"><span id="threadrating_current"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></span></a>
            <if

But the last <if make en error if I remove it like this.

Smiry Kin's 09-21-2007 02:05 PM

its actually
PHP Code:

</td>
    </if>
    <if 
condition="$show['threadrating']">
        <
td class="vbmenu_control" id="threadrating" nowrap="nowrap">
            <
a href="$show[nojs_link]#goto_threadrating"><span id="threadrating_current"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></span></a>
            <if 
condition="$show['popups']"><script type="text/javascript"vbmenu_register("threadrating"); </script></if> 


MissKalunji 09-28-2007 12:59 PM

so does this work? i checked thepoet's website and it doesn't seem to be working on his?

obmob 09-28-2007 03:58 PM

It works, I'm using it on my sites. :p

MissKalunji 09-28-2007 04:03 PM

Cool Thanks!

now i don't mind using it but i wanna place it under the first thread or inside the firs tthread i've tried moving it around and it ain't working

Suggestion?

obmob 09-28-2007 09:11 PM

Hmm... i don't think it's possible to move in to the postbit template, i tried something like that with "similar threads", but never make it work >.<

Maybe Rich knows better.

MissKalunji 09-28-2007 09:20 PM

oh ok i'll keep trying maybe something's missing..
Thanks!

optrex 10-02-2007 12:05 PM

How come this is no longer supported. I thought that was the whole idea of it being released?

Quote:

I wanted to be able to support it and update the thread as needed.

Rich 10-02-2007 12:08 PM

Hello,

I will be "resupporting" this modification once I get some health issues squared away. Unfortunantly, I have been going in and out of the hospital with some blood clot issues for the past few weeks. The lack of support is due to health and not an actual "support" issue. its hard to support something when you do not know if you will be here the next day to actually do it, which is why I changed the setting until they get everything with me squared away. Sorry.

obmob 10-03-2007 03:29 AM

Health comes first! Take care Rich :D

thunder_sti 10-03-2007 04:34 AM

Great Mod.

Is there a way it can be incorporated into a pictures gallery where members can rate the best pics.

For example like Hot or Not.


All times are GMT. The time now is 05:52 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.01308 seconds
  • Memory Usage 1,838KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_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
  • (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