[Release v2] In-Thread Rating

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tubedogg
    Senior Member
    • Feb 2001
    • 13602

    [Release v2] In-Thread Rating

    Withdrawn cause it's in the next version.
    Last edited by tubedogg; Fri 26 Oct '01, 12:17pm.
  • usbnuts
    Member
    • Sep 2001
    • 56

    #2
    Hi, the hack doesn't seem to work.

    I'm confused when I have to make changes to misc.php
    You said I have to add $threadratingoption right above $attachmentoption.

    So, I looked around and added $threadratingoption inside the newreply template.

    PHP Code:
    </tr>
    $threadratingoption
    $attachmentoption
    </table
    Which misc.php are you talking about here?
    /forums/misc.php or /forums/admin/misc.php

    Also, where can I find newreply_threadrate template? You didn't provide instructions on how to create this template.

    Thanks for helping!

    Comment

    • BradC
      Senior Member
      • May 2001
      • 510

      #3
      probably just

      /forums/misc.php

      cause the admin one should have different functions used mainly or only in the admin folder.

      Comment

      • VirtueTech
        Senior Member
        • Jun 2000
        • 561

        #4
        This is a great idea!

        I feel that not enough people use the current thread rating system because it doesn't stand out enough.
        PaintballCity.com
        VB Board of the Month: October

        Comment

        • tubedogg
          Senior Member
          • Feb 2001
          • 13602

          #5
          Originally posted by usbnuts
          I'm confused when I have to make changes to misc.php
          You said I have to add $threadratingoption right above $attachmentoption.
          There was a little mess up in the install file...it's now fixed. Sorry for the confusion. That should actually go in the newreply template - one place it said misc.php, the other place it said newreply template.

          Which misc.php are you talking about here?
          /forums/misc.php or /forums/admin/misc.php
          root/misc.php, which would be the misc.php in your main vB folder.

          Also, where can I find newreply_threadrate template? You didn't provide instructions on how to create this template.
          This should be automatically created when you install. If you go to Templates > Modify and look under Custom Templates you should see one named newreply_threadreate.

          Comment

          • snyx
            Senior Member
            • Aug 2000
            • 1070
            • 3.5.x

            #6
            I don't quite get the full idea of this hack, you wouldnt happen to have a demo, or be able to snap a screenshot for me could ya tubedogg?
            MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

            Comment

            • tubedogg
              Senior Member
              • Feb 2001
              • 13602

              #7
              Screen added to the first post.

              Comment

              • snyx
                Senior Member
                • Aug 2000
                • 1070
                • 3.5.x

                #8
                spanks tubebogg, I shall install it now
                MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

                Comment

                • VirtueTech
                  Senior Member
                  • Jun 2000
                  • 561

                  #9
                  There still seems to be install problems with this.

                  The new template you add is called: newreply_ratethread

                  But your code calls to: newreply_threadrating

                  It also added the template into templatesetID of 10. My default templatesetID is 1...I'm not sure if mine is different than anyone elses.

                  I changed the code around to adjust for the template name but it still does not give the option to rate the thread in the reply yet.

                  Also...Misc.php is no longer included in the instructions. I;m not sure if it is supposed to be but I saw in the posts above talk about it.

                  Any ideas?
                  PaintballCity.com
                  VB Board of the Month: October

                  Comment

                  • tubedogg
                    Senior Member
                    • Feb 2001
                    • 13602

                    #10
                    Lessee here...

                    1. You are correct. It should call newreply_ratethread since the template is named that.

                    2. The templatesetid was messed up cause I never changed it back after testing. Run this query:
                    UPDATE template SET templatesetid=1 WHERE title='newreply_ratethread'

                    3. misc.php shouldn't be part of anything. I realized that after I took it out of the file.

                    I've uploaded an updated install file. Sorry about the problems.

                    Comment

                    • VirtueTech
                      Senior Member
                      • Jun 2000
                      • 561

                      #11
                      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.
                      PaintballCity.com
                      VB Board of the Month: October

                      Comment

                      • VirtueTech
                        Senior Member
                        • Jun 2000
                        • 561

                        #12
                        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.
                        PaintballCity.com
                        VB Board of the Month: October

                        Comment

                        • tubedogg
                          Senior Member
                          • Feb 2001
                          • 13602

                          #13
                          Accounted for and updated, thanks.

                          Comment

                          • tubedogg
                            Senior Member
                            • Feb 2001
                            • 13602

                            #14
                            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.

                            Comment

                            • VirtueTech
                              Senior Member
                              • Jun 2000
                              • 561

                              #15
                              Right...its not
                              PaintballCity.com
                              VB Board of the Month: October

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...