Changeset 16000


Ignore:
Timestamp:
Jun 24, 2012, 3:13:49 PM (12 years ago)
Author:
mistic100
Message:

small enhancement for BBCode Bar and Smilies Support

Location:
extensions/GuestBook
Files:
2 edited

Legend:

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

    r15940 r16000  
    11<?php
    22if (!defined('GUESTBOOK_PATH')) die('Hacking attempt!');
     3
     4include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
     5add_event_handler('user_comment_check_guestbook', 'user_comment_check',
     6  EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    37
    48function insert_user_comment_guestbook( &$comm, $key, &$infos )
     
    122126  }
    123127 
    124   include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
    125   $comment_action = user_comment_check($comment_action, $comm);
     128  // perform more spam check
     129  $comment_action = trigger_event('user_comment_check_guestbook',
     130      $comment_action, $comm
     131    );
    126132
    127133  if ( $comment_action!='reject' )
  • extensions/GuestBook/template/guestbook.tpl

    r15948 r16000  
    6767 
    6868  <p><label for="contentid">{'Comment'|@translate}* :</label></p>
    69   <p><textarea name="content" id="contentid" rows="5" cols="60">{$comment_add.CONTENT}</textarea></p>
     69  <p><textarea name="content" id="contentid" rows="10" cols="60">{$comment_add.CONTENT}</textarea></p>
    7070  <p><input type="hidden" name="key" value="{$comment_add.KEY}">
    7171    <input type="submit" value="{'Submit'|@translate}"> {'* : mandatory fields'|@translate}</p>
Note: See TracChangeset for help on using the changeset viewer.