vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [Release v2] In-Thread Rating (https://vborg.vbsupport.ru/showthread.php?t=27808)

VirtueTech 09-11-2001 03:59 AM

A heads up: I'm using version 2.0.1 and in your instructions the second modification to newreply.php the code:

$foruminfo=getforuminfo($threadinfo[forumid]);

Appears three times. IT has to be the last entry. I made a mistake and put it after the second time that code appeared.

VirtueTech 09-11-2001 04:05 AM

Its no problem..this hack is awesome. Finally it will make more use of the rating feature.

Another Problem - I have the option to allow users to rate the thread. It doesn't CHECK the radio input field for what the user rating last.

tubedogg 09-11-2001 04:05 AM

Accounted for and updated, thanks.

tubedogg 09-11-2001 04:14 AM

Quote:

Originally posted by VirtueTech
Another Problem - I have the option to allow users to rate the thread. It doesn't CHECK the radio input field for what the user rating last.
It should only CHECK something other than "no rating" if the user has previously rated the thread and they are allowed to change their rating.

VirtueTech 09-11-2001 04:14 AM

Right...its not

tubedogg 09-11-2001 04:16 AM

And you have this in newreply.php?
Code:

                switch ($rating[vote]) {
                  case 1:
                        $onec = "CHECKED";
                    break;
                  case 2:
                        $twoc = "CHECKED";
                    break;
                  case 3:
                        $threec = "CHECKED";
                    break;
                  case 4:
                        $fourc = "CHECKED";
                    break;
                  case 5:
                        $fivec = "CHECKED";
                    break;
                  default:
                        $noc = "CHECKED";
                }


VirtueTech 09-11-2001 04:19 AM

<i>nevermind fixed...check post below:</i>

VirtueTech 09-11-2001 04:25 AM

ok scratch it...it works...something didn't work on it ..but I'm not sure why it does now...I didn't change a thing

New problem - After I make a vote through a reply...lets say I go back and reply again...the vote I had last is checked. If I change my vote....and go back and reply again...the vote number I changed to is not CHECKED

tubedogg 09-11-2001 04:40 AM

I can't replicate that...I followed these steps:
1. Replied and rated a thread
2. Replied again and changed the rating
3. Replied again and my new rating (from step 2) *is* checked.

Not sure what would be causing that.

squawell 09-11-2001 05:44 AM

my question is what code should i add to misc.php??

somebody tell me pls~~~~


All times are GMT. The time now is 12:38 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.01930 seconds
  • Memory Usage 1,732KB
  • 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
  • (1)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
  • (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