1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Minor fixes to the rss plugin.

This commit is contained in:
Cameron
2013-06-18 21:12:47 -07:00
parent 34f0eeb409
commit a1c768f847
4 changed files with 11 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ class chatbox_menu_rss // plugin-folder + '_rss'
/**
* Admin RSS Configuration
*/
function config() // XXX TODO // Have admin read this.
function config()
{
$config = array();
@@ -25,11 +25,10 @@ class chatbox_menu_rss // plugin-folder + '_rss'
'name' => 'Chatbox Posts',
'url' => 'chatbox',
'topic_id' => '',
'path' => 'chatbox_menu', // known
'description' => 'this is the rss feed for the chatbox entries', // that's 'description' not 'text'
'class' => '0',
'limit' => '9'
);
);
return $config;
}

View File

@@ -651,6 +651,7 @@ class rss
foreach($data as $v)
{
$v['path'] = $val;
array_push($plugin_feedlist,$v);
}
@@ -659,7 +660,7 @@ class rss
$feedlist = array_merge($feedlist, $plugin_feedlist);
// print_a($feedlist);
// print_a($feedlist);
$render=FALSE;
$i=0;

View File

@@ -164,6 +164,11 @@ SC_END
SC_BEGIN RSS_ADMIN_IMPORT_CHECK
global $feed, $rs, $tp, $i;
if($feed['description'])
{
$feed['text'] = $feed['description'];
}
$text = "<input type='checkbox' name='importid[$i]' value='1' />";
$text .= "<input type='hidden' name='name[$i]' value='".$tp->toForm($feed['name'])."' />";
$text .= "<input type='hidden' name='url[$i]' value='".$tp->toForm($feed['url'])."' />";

View File

@@ -5,9 +5,9 @@ if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:100%"); }
// Rss listing
if(!isset($RSS_LIST_HEADER))
{
$RSS_LIST_HEADER = "<table class='fborder' style='".USER_WIDTH."'>
$RSS_LIST_HEADER = "<table class='table table-striped fborder' style='".USER_WIDTH."'>
<tr>
<td class='fcaption' style='width:55%'>".RSS_LAN_ADMIN_4."</td>
<td class='fcaption' style='width:55%'> </td>
<td class='fcaption' style='text-align:right'>".RSS_PLUGIN_LAN_6."</td>
</tr>";
}