Ignore:
Timestamp:
Jun 22, 2012, 4:10:24 PM (12 years ago)
Author:
mistic100
Message:

-add option to remove rating
-improve message header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GuestBook/include/guestbook.inc.php

    r15940 r15948  
    111111    'content' => trim( $_POST['content'] ),
    112112    'website' => trim( $_POST['website'] ),
    113     'rate' => $_POST['score'],
     113    'rate' => @$_POST['score'],
    114114   );
    115115
     
    228228        'CONTENT' => trigger_event('render_comment_content',$row['content']),
    229229        'WEBSITE' => $row['website'],
    230         'WEBSITE_NAME' => preg_replace('#^(https?:\/\/)#i', null, $row['website']),
    231         'STARS' => get_stars($row['rate'], GUESTBOOK_PATH .'template/jquery.raty/'),
    232         'RATE' => $row['rate'],
    233230      );
     231     
     232    if ($conf['guestbook']['activate_rating'])
     233    {
     234      $tpl_comment['STARS'] = get_stars($row['rate'], GUESTBOOK_PATH .'template/jquery.raty/');
     235    }
    234236     
    235237    if (is_admin() and !empty($row['email']))
     
    310312        'WEBSITE' => $website ,
    311313        'EMAIL' => $email ,
     314        'ACTIVATE_RATING' => $conf['guestbook']['activate_rating'],
    312315      ));
    313316}
Note: See TracChangeset for help on using the changeset viewer.