|
From: Florin C B. <ory...@us...> - 2013-04-29 05:05:55
|
Update of /cvsroot/mxbb/mx_news/mx_news/includes In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17109/includes Modified Files: functions.php functions_comment.php Log Message: phpBB3 bbcode update Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/includes/functions.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** functions.php 15 Jul 2008 22:06:18 -0000 1.8 --- functions.php 29 Apr 2013 05:05:52 -0000 1.9 *************** *** 218,222 **** --- 218,246 ---- function page_header() { + global $lang, $mx_user, $images, $template; + + //overwrite some phpBB3 vars + $images['mx_news_icon_minipost'] = $mx_user->img('icon_post_reply', 'REPLY_POST', false, '', 'src'); + $images['mx_news_icon_edit'] = $mx_user->img('icon_post_edit', 'EDIT_POST', false, '', 'src'); + $images['mx_news_icon_delpost'] = $mx_user->img('icon_post_delete', 'DELETE_POST', false, '', 'src'); + + $template->assign_vars( array( + 'L_NEWS_TITLE' => $lang['mx_news_title'], + 'L_NEWS_DISABLE' => $lang['mx_news_disable'], + 'L_CLICK_HERE' => $lang['Read_full_link'], + 'L_AUTHOR' => $lang['Submiter'], + 'L_EDIT' => $lang['Comment_edit'], + 'L_DELETE' => $lang['Comment_delete'], + 'L_REPLY' => $lang['Comment_add'], + + 'DELETE_IMG' => $images['mx_news_icon_delpost'], + 'EDIT_IMG' => $images['mx_news_icon_edit'], + 'REPLY_IMG' => $images['mx_news_icon_minipost'], + // Buttons + //'B_REPLY_IMG' => $mx_user->create_button('mx_news_icon_minipost', $lang['Comment_add'], $this->this_mxurl()), + //'B_DELETE_IMG' => $mx_user->create_button('mx_news_icon_delpost', $lang['Comment_delete'], "javascript:delete_item('". mx_append_sid( $this->this_mxurl()) . "')"), + //'B_EDIT_IMG' => $mx_user->create_button('mx_news_icon_edit', $lang['Comment_edit'], mx_append_sid($this->this_mxurl())) + )); } Index: functions_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/includes/functions_comment.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** functions_comment.php 10 Jul 2008 22:54:28 -0000 1.7 --- functions_comment.php 29 Apr 2013 05:05:53 -0000 1.8 *************** *** 91,94 **** --- 91,99 ---- $this->formatting_comment_image_resize = $mx_news_config['formatting_comment_image_resize']; $this->formatting_comment_wordwrap = $mx_news_config['formatting_comment_wordwrap']; + + //overwrite some phpBB3 vars + //$images['mx_news_icon_minipost'] = $mx_user->img('icon_post_reply', 'REPLY_POST', false, '', 'src'); + //$images['mx_news_icon_edit'] = $mx_user->img('icon_post_edit', 'EDIT_POST', false, '', 'src'); + //$images['mx_news_icon_delpost'] = $mx_user->img('icon_post_delete', 'DELETE_POST', false, '', 'src'); // *************** *** 97,106 **** $this->images = array( 'icon_minipost' => $images['mx_news_icon_minipost'], ! //'comment_post' => $images['mx_news_comment_post'], ! 'comment_post' => 'mx_news_comment_post', ! //'icon_edit' => $images['mx_news_icon_edit'], ! 'icon_edit' => 'mx_news_icon_edit', ! //'icon_delpost' => $images['mx_news_icon_delpost']); ! 'icon_delpost' => 'mx_news_icon_delpost'); $this->u_post = $mx_news->this_mxurl( 'action=post_news&item_id=' . $this->item_id . '&modrewrite=no'); --- 102,111 ---- $this->images = array( 'icon_minipost' => $images['mx_news_icon_minipost'], ! 'comment_post' => $images['mx_news_comment_post'], ! //'comment_post' => 'mx_news_comment_post', ! 'icon_edit' => $images['mx_news_icon_edit'], ! //'icon_edit' => 'mx_news_icon_edit', ! 'icon_delpost' => $images['mx_news_icon_delpost']); ! //'icon_delpost' => 'mx_news_icon_delpost'); $this->u_post = $mx_news->this_mxurl( 'action=post_news&item_id=' . $this->item_id . '&modrewrite=no'); |