Results 1 to 5 of 5

Thread: Submit a Review Link

  1. #1
    Hart_House's Avatar
    Hart_House is offline Registered
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default Submit a Review Link

    For the sites that have been rated I have stars icon showing. But for those that don't that have not been rated by default it shows "n/a"

    I've changed it to "submit a review" in place of "n/a"

    what I want to do now is have that "submit a review" link to the actual review page

    I went to lang/english to edit the line item msg_1116 but i'm geting parsing errors

    Any help would be appreciated.


    Hart

  2. #2
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    Make sure you did it correctly. Edit lang/english.php3 line 285

    PHP Code:
      $msg_1116 "n/a";   // replace with any string you like 

  3. #3
    Hart_House's Avatar
    Hart_House is offline Registered
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default

    This is what I have in my lang/english

    $msg_1116 = "<a href='review.php3?id=<%link_id%>'> Submit
    A Review</a>";

    But the script keeps crashing on me everytime I try to click on submit a review.

    What's da matter?

    The problem is the link id doesn't show up as a number, but as <"link_id%">

    How to correct this?
    Last edited by Hart_House; 09-03-2001 at 07:58 AM.

  4. #4
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    You should add this code too in browse.php3 line 139

    PHP Code:
    $rating str_replace("<%link_id%>",$link_id,$rating); 
    Don't forget to add in search.php3, hot.php3, new.php3,
    top_rated.php3, and pick.php3 too

  5. #5
    Hart_House's Avatar
    Hart_House is offline Registered
    Join Date
    Aug 2001
    Location
    Toronto, Ontario
    Posts
    678

    Default

    Thanks Dody, Works Wonders.

    This is a great hack i'd like to suggest to everyone to get your ratings votes up.


    As oppose to leaving your rating "n/a" , Why not allow for a link that says... Submit A Review as default.


    Rating: Submit A Review


    Just a little clarification for everyone -

    You need to add this line:
    $rating = str_replace("<%link_id%>",$link_id,$rating);

    Right after this line:
    $rating = ShowRating($rating);

    I know dody mentioned line 139 but there isn't really a line 139 in all the files your suppose to edit.



    Hart
    Last edited by Hart_House; 09-04-2001 at 01:11 AM.

Similar Threads

  1. INDEXU FEATURES
    By Hart_House in forum Pre-Sales Questions
    Replies: 13
    Last Post: 06-30-2003, 12:57 PM
  2. popup menu in submit link forum
    By persut in forum v5.x
    Replies: 2
    Last Post: 05-14-2003, 07:26 AM
  3. Add Fields To Submit form & link display
    By 4webmasters.us in forum v5.x
    Replies: 9
    Last Post: 05-03-2003, 08:38 PM
  4. Replies: 2
    Last Post: 10-17-2001, 03:39 AM

Posting Permissions

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