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:
@@ -17,7 +17,7 @@ class chatbox_menu_rss // plugin-folder + '_rss'
|
|||||||
/**
|
/**
|
||||||
* Admin RSS Configuration
|
* Admin RSS Configuration
|
||||||
*/
|
*/
|
||||||
function config() // XXX TODO // Have admin read this.
|
function config()
|
||||||
{
|
{
|
||||||
$config = array();
|
$config = array();
|
||||||
|
|
||||||
@@ -25,11 +25,10 @@ class chatbox_menu_rss // plugin-folder + '_rss'
|
|||||||
'name' => 'Chatbox Posts',
|
'name' => 'Chatbox Posts',
|
||||||
'url' => 'chatbox',
|
'url' => 'chatbox',
|
||||||
'topic_id' => '',
|
'topic_id' => '',
|
||||||
'path' => 'chatbox_menu', // known
|
|
||||||
'description' => 'this is the rss feed for the chatbox entries', // that's 'description' not 'text'
|
'description' => 'this is the rss feed for the chatbox entries', // that's 'description' not 'text'
|
||||||
'class' => '0',
|
'class' => '0',
|
||||||
'limit' => '9'
|
'limit' => '9'
|
||||||
);
|
);
|
||||||
|
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
@@ -651,6 +651,7 @@ class rss
|
|||||||
|
|
||||||
foreach($data as $v)
|
foreach($data as $v)
|
||||||
{
|
{
|
||||||
|
$v['path'] = $val;
|
||||||
array_push($plugin_feedlist,$v);
|
array_push($plugin_feedlist,$v);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -659,7 +660,7 @@ class rss
|
|||||||
|
|
||||||
$feedlist = array_merge($feedlist, $plugin_feedlist);
|
$feedlist = array_merge($feedlist, $plugin_feedlist);
|
||||||
|
|
||||||
// print_a($feedlist);
|
// print_a($feedlist);
|
||||||
|
|
||||||
$render=FALSE;
|
$render=FALSE;
|
||||||
$i=0;
|
$i=0;
|
||||||
|
@@ -164,6 +164,11 @@ SC_END
|
|||||||
|
|
||||||
SC_BEGIN RSS_ADMIN_IMPORT_CHECK
|
SC_BEGIN RSS_ADMIN_IMPORT_CHECK
|
||||||
global $feed, $rs, $tp, $i;
|
global $feed, $rs, $tp, $i;
|
||||||
|
if($feed['description'])
|
||||||
|
{
|
||||||
|
$feed['text'] = $feed['description'];
|
||||||
|
}
|
||||||
|
|
||||||
$text = "<input type='checkbox' name='importid[$i]' value='1' />";
|
$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='name[$i]' value='".$tp->toForm($feed['name'])."' />";
|
||||||
$text .= "<input type='hidden' name='url[$i]' value='".$tp->toForm($feed['url'])."' />";
|
$text .= "<input type='hidden' name='url[$i]' value='".$tp->toForm($feed['url'])."' />";
|
||||||
|
@@ -5,9 +5,9 @@ if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:100%"); }
|
|||||||
// Rss listing
|
// Rss listing
|
||||||
if(!isset($RSS_LIST_HEADER))
|
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>
|
<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>
|
<td class='fcaption' style='text-align:right'>".RSS_PLUGIN_LAN_6."</td>
|
||||||
</tr>";
|
</tr>";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user