mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 12:41:51 +02:00
News: administration message fix, temporary default columns fix (not sure how it works yet), news_allows_comment fix (admin form and shortcode)
This commit is contained in:
parent
fe9d5f3d01
commit
fcc085aee3
@ -9,9 +9,9 @@
|
||||
* News Administration
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $
|
||||
* $Revision: 1.47 $
|
||||
* $Date: 2009-08-05 14:35:47 $
|
||||
* $Author: e107coders $
|
||||
* $Revision: 1.48 $
|
||||
* $Date: 2009-08-24 08:34:55 $
|
||||
* $Author: secretr $
|
||||
*/
|
||||
require_once("../class2.php");
|
||||
|
||||
@ -176,7 +176,7 @@ class admin_newspost
|
||||
|
||||
$this->_pst = &$pstobj;
|
||||
|
||||
$this->fieldpref = $user_pref['admin_news_columns'];
|
||||
$this->fieldpref = varset($user_pref['admin_news_columns'], array('news_id', 'news_title', 'news_author', 'news_render_type', 'options'));
|
||||
|
||||
$this->_fields = array(
|
||||
"checkboxes" => array("title" => "", "forced"=> TRUE, "width" => "3%", "thclass" => "center first", "url" => ""),
|
||||
@ -461,7 +461,7 @@ class admin_newspost
|
||||
$tmp = explode(chr(35), $_POST['news_author']);
|
||||
$_POST['news_author'] = $tmp[0];
|
||||
|
||||
$ret = $ix->submit_item($_POST, true);
|
||||
$ret = $ix->submit_item($_POST, !varsettrue($_POST['create_edit_stay']));
|
||||
$this->clear_cache();
|
||||
|
||||
if(isset($_POST['create_edit_stay']) && !empty($_POST['create_edit_stay']))
|
||||
@ -1079,7 +1079,7 @@ class admin_newspost
|
||||
<tr>
|
||||
<td class='label'>".NWSLAN_15.":</td>
|
||||
<td class='control'>
|
||||
".$frm->radio('news_allow_comments', 0, $_POST['news_allow_comments'])."".$frm->label(LAN_ENABLED, 'news_allow_comments', 0)."
|
||||
".$frm->radio('news_allow_comments', 0, !$_POST['news_allow_comments'])."".$frm->label(LAN_ENABLED, 'news_allow_comments', 0)."
|
||||
".$frm->radio('news_allow_comments', 1, $_POST['news_allow_comments'])."".$frm->label(LAN_DISABLED, 'news_allow_comments', 1)."
|
||||
<div class='field-help'>
|
||||
".NWSLAN_18."
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id: news_shortcodes.php,v 1.24 2009-07-25 07:54:34 marj_nl_fr Exp $
|
||||
* $Id: news_shortcodes.php,v 1.25 2009-08-24 08:34:55 secretr Exp $
|
||||
*
|
||||
* News shortcode batch
|
||||
*/
|
||||
@ -130,7 +130,7 @@ class news_shortcodes
|
||||
{
|
||||
$NEWIMAGE = $param['image_nonew_small'];
|
||||
}
|
||||
return ($news_item['news_allow_comments'] ? ''.($pref['comments_icon'] ? $NEWIMAGE : '')." <a href='".e_HTTP."comment.php?comment.news.".$news_item['news_id']."'>".$param['commentlink'].$news_item['news_comment_total'].'</a>' : $param['commentoffstring']);
|
||||
return (!$news_item['news_allow_comments'] ? ''.($pref['comments_icon'] ? $NEWIMAGE : '')." <a href='".e_HTTP."comment.php?comment.news.".$news_item['news_id']."'>".$param['commentlink'].$news_item['news_comment_total'].'</a>' : $param['commentoffstring']);
|
||||
}
|
||||
|
||||
function sc_trackback($parm)
|
||||
|
Loading…
x
Reference in New Issue
Block a user