Results 1 to 9 of 9

Thread: Reviews question

  1. #1
    Join Date
    Dec 2004
    Posts
    65

    Default Reviews question

    Hello,

    Does anyone here know what do I have to do in order for the reviews to appear on the site once they are submitted without having to approve them?

  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    I'm pretty sure all reviews need to be approved by either an admin or editor.. You really dont want uncensored reviews, do you?
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Join Date
    Dec 2004
    Posts
    65

    Default

    Yes i know what you mean but I plan to use the review system for something else other than reviews, this is why I asked if someone knows a way to make them appear directly on the site without having an admin or editor approve them first.

  4. #4
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Well, unless you want to recode the way the review system works, I dont think thats going to help you

    Maybe a better idea would be to tell us what your trying to accomplish and we can give you ideas on the best way to go about it
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  5. #5
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You could setup a cronjob to change the status to approved and let it run every minute or five minutes.

    This includes a warning as well, unmonitored reviews can lead to spam

  6. #6
    Join Date
    Dec 2004
    Posts
    65

    Default

    Hello,

    Thank you. Is there anther way of doing this without setting up a cron job?

  7. #7
    Join Date
    Nov 2007
    Posts
    227

    Default

    Are you using IndexU 1.XX? If so, and you really want to allow reviews to be allowed without approving them first, you simply need to edit 1 file (I think).

    Open the lib/link.class.php file and find this code (In mine it starts on line 3125):
    Code:
            $query  = "insert into $this->review_table_name
            (link_id, username, subject, rating, review, date, status, name, email)
            values ($id,'$username','$rev_subject','$rev_rating','$rev_review',now(),0,'$rev_name','$rev_email')";
            $result = $dbConn->Execute($query);
    And replace it with:

    Code:
            $query  = "insert into $this->review_table_name
            (link_id, username, subject, rating, review, date, status, name, email)
            values ($id,'$username','$rev_subject','$rev_rating','$rev_review',now(),1,'$rev_name','$rev_email')";
            $result = $dbConn->Execute($query);
    All I did was changed the 0 after now() to a 1. That should be all you need to do. I have not tested this, so you should test it accordingly.

    If you are using version 5.4x, the code should be the same or similar and in the same file but the line number may be different.


    Regards
    Wayne
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  8. #8
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    That should work, and I should have thought of that lol

  9. #9
    Join Date
    Dec 2004
    Posts
    65

    Default

    Thank you guys. mpdaddy's solution worked like a charm!

    Thanks!!

Similar Threads

  1. Reviews from v2 -> v5.3
    By Nardus in forum v5.x
    Replies: 1
    Last Post: 01-10-2007, 05:38 PM
  2. Reviews
    By berto in forum v5.x
    Replies: 0
    Last Post: 07-09-2006, 08:00 AM
  3. What if I don't need reviews?
    By limey in forum v5.x
    Replies: 4
    Last Post: 03-08-2004, 08:27 AM
  4. Question on reviews !?
    By ideavirus in forum v5.x
    Replies: 2
    Last Post: 08-31-2002, 06:16 AM
  5. How to get more reviews!!!
    By Hart_House in forum v5.x
    Replies: 0
    Last Post: 04-26-2002, 10:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •