mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 18:47:54 +01:00
Added pref to switch between summary or description on News feed.
This commit is contained in:
parent
b2bfa12ebe
commit
267a66f075
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/rss_menu/admin_prefs.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2006-12-07 15:41:50 $
|
||||
| $Author: sweetas $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-02-07 22:45:10 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
/*
|
||||
@ -400,6 +400,7 @@ class rss{
|
||||
global $tp, $pref;
|
||||
|
||||
$pref['rss_othernews'] = $_POST['rss_othernews'];
|
||||
$pref['rss_summarydiz'] = $_POST['rss_summarydiz'];
|
||||
|
||||
save_prefs();
|
||||
return LAN_SAVED;
|
||||
|
@ -4,9 +4,9 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/rss_menu/languages/English.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:43 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-02-07 22:45:10 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@ -75,6 +75,7 @@ define("RSS_LAN_ADMIN_15", "Tick links to mark them for import ...");
|
||||
define("RSS_LAN_ADMIN_16", "import?");
|
||||
define("RSS_LAN_ADMIN_17", "import ticked links");
|
||||
define("RSS_LAN_ADMIN_18", "rss feed(s) imported.");
|
||||
define("RSS_LAN_ADMIN_19", "Use News summary as description in News Feed?");
|
||||
|
||||
define("RSS_LAN_ADMIN_21", "active and visible in rss feed list");
|
||||
define("RSS_LAN_ADMIN_22", "active and not visible in rss feed list");
|
||||
@ -85,6 +86,7 @@ define("RSS_LAN_ADMIN_27", "Uncheck All");
|
||||
|
||||
define("RSS_LAN_ADMIN_31", "rss entries limit updated");
|
||||
|
||||
|
||||
define("RSS_LAN_0", "RSS");
|
||||
define("RSS_LAN_2", "@nospam.com");
|
||||
define("RSS_LAN_3", "noauthor@nospam.com");
|
||||
|
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/rss_menu/rss.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:42 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-02-07 22:45:10 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@ -191,18 +191,19 @@ class rssCreate {
|
||||
foreach($tmp as $value) {
|
||||
$this -> rssItems[$loop]['title'] = $value['news_title'];
|
||||
$this -> rssItems[$loop]['link'] = "http://".$_SERVER['HTTP_HOST'].e_HTTP."news.php?item.".$value['news_id'].".".$value['news_category'];
|
||||
if($value['news_summary']){
|
||||
$this -> rssItems[$loop]['description'] = $value['news_summary'];
|
||||
if($value['news_summary'] && $pref['rss_summarydiz'])
|
||||
{
|
||||
$this -> rssItems[$loop]['description'] = $value['news_summary'];
|
||||
}else{
|
||||
$this -> rssItems[$loop]['description'] = $value['news_body'];
|
||||
}
|
||||
}
|
||||
$this -> rssItems[$loop]['author'] = $value['user_name'];
|
||||
$this -> rssItems[$loop]['author_email'] = $value['user_email'];
|
||||
$this -> rssItems[$loop]['author_email'] = $value['user_email'];
|
||||
$this -> rssItems[$loop]['category'] = "<category domain='".SITEURL."news.php?cat.".$value['news_category']."'>".$value['category_name']."</category>";
|
||||
|
||||
if($value['news_allow_comments'] && $pref['comments_disabled'] != 1){
|
||||
$this -> rssItems[$loop]['comment'] = "http://".$_SERVER['HTTP_HOST'].e_HTTP."comment.php?comment.news.".$value['news_id'];
|
||||
}
|
||||
}
|
||||
$this -> rssItems[$loop]['pubdate'] = $value['news_datestamp'];
|
||||
|
||||
$loop++;
|
||||
|
@ -124,6 +124,12 @@ if(!isset($RSS_ADMIN_OPTIONS_TABLE)){
|
||||
<input type='checkbox' name='rss_othernews' value='1' ".($pref['rss_othernews'] == 1 ? " checked='checked' " : "")." />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='forumheader3'>".RSS_LAN_ADMIN_19."</td>
|
||||
<td class='forumheader3'>
|
||||
<input type='checkbox' name='rss_summarydiz' value='1' ".($pref['rss_summarydiz'] == 1 ? " checked='checked' " : "")." />
|
||||
</td>
|
||||
</tr>
|
||||
<tr style='vertical-align:top'>
|
||||
<td colspan='2' style='text-align:center' class='forumheader'>
|
||||
<input class='button' type='submit' name='updatesettings' value='".LAN_SAVE."' />
|
||||
@ -172,4 +178,4 @@ if(!isset($RSS_ADMIN_IMPORT_FOOTER)){
|
||||
</div>";
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user