mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +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:
@@ -9,9 +9,9 @@
|
|||||||
* News Administration
|
* News Administration
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $
|
||||||
* $Revision: 1.47 $
|
* $Revision: 1.48 $
|
||||||
* $Date: 2009-08-05 14:35:47 $
|
* $Date: 2009-08-24 08:34:55 $
|
||||||
* $Author: e107coders $
|
* $Author: secretr $
|
||||||
*/
|
*/
|
||||||
require_once("../class2.php");
|
require_once("../class2.php");
|
||||||
|
|
||||||
@@ -176,7 +176,7 @@ class admin_newspost
|
|||||||
|
|
||||||
$this->_pst = &$pstobj;
|
$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(
|
$this->_fields = array(
|
||||||
"checkboxes" => array("title" => "", "forced"=> TRUE, "width" => "3%", "thclass" => "center first", "url" => ""),
|
"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']);
|
$tmp = explode(chr(35), $_POST['news_author']);
|
||||||
$_POST['news_author'] = $tmp[0];
|
$_POST['news_author'] = $tmp[0];
|
||||||
|
|
||||||
$ret = $ix->submit_item($_POST, true);
|
$ret = $ix->submit_item($_POST, !varsettrue($_POST['create_edit_stay']));
|
||||||
$this->clear_cache();
|
$this->clear_cache();
|
||||||
|
|
||||||
if(isset($_POST['create_edit_stay']) && !empty($_POST['create_edit_stay']))
|
if(isset($_POST['create_edit_stay']) && !empty($_POST['create_edit_stay']))
|
||||||
@@ -1079,7 +1079,7 @@ class admin_newspost
|
|||||||
<tr>
|
<tr>
|
||||||
<td class='label'>".NWSLAN_15.":</td>
|
<td class='label'>".NWSLAN_15.":</td>
|
||||||
<td class='control'>
|
<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)."
|
".$frm->radio('news_allow_comments', 1, $_POST['news_allow_comments'])."".$frm->label(LAN_DISABLED, 'news_allow_comments', 1)."
|
||||||
<div class='field-help'>
|
<div class='field-help'>
|
||||||
".NWSLAN_18."
|
".NWSLAN_18."
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
* 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
|
* News shortcode batch
|
||||||
*/
|
*/
|
||||||
@@ -130,7 +130,7 @@ class news_shortcodes
|
|||||||
{
|
{
|
||||||
$NEWIMAGE = $param['image_nonew_small'];
|
$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)
|
function sc_trackback($parm)
|
||||||
|
Reference in New Issue
Block a user