I changed my rssfit copy to work with the current XOOPS version and added plugins for myalbum, pical and xoopstube:
Download here
$news = NewsStory::getAllPublished($this->grab, 0, getmoduleoption('restrictindex'));
$news = NewsStory::getAllPublished($this->grab, 0, news_getmoduleoption('restrictindex'));
<rss version="2.0">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<atom:link href="<{$xoops_url}><{$smarty.server.REQUEST_URI}>" rel="self" type="application/rss+xml" />
<{/foreach}>
...
<{if $feed.image != ''}>
<link><{$feed.image.link}></link>
anhDP wrote:
Hi All,
I commented out the checkUpdateMessages(); in the doku.php file and that did the trick.
Cheers,
script_fu wrote:
What select boxes does this effect? Where are the "--" at?
//makes a nicely ordered selection box
//$preset_id is used to specify a preselected item
//set $none to 1 to add a option with value 0
function makeMySelBox($title,$order="",$preset_id=0, $none=0, $sel_name="", $onchange="")
{
if ( $sel_name == "" ) {
$sel_name = $this->id;
}
$myts =& MyTextSanitizer::getInstance();
echo "<select name='".$sel_name."'";
if ( $onchange != "" ) {
echo " onchange='".$onchange."'";
}
echo ">n";
$sql = "SELECT ".$this->id.", ".$title." FROM ".$this->table." WHERE ".$this->pid."=0";
if ( $order != "" ) {
$sql .= " ORDER BY $order";
}
$result = $this->db->query($sql);
if ( $none ) {
echo "<option value='0'>----</option>n";
}
while ( list($catid, $name) = $this->db->fetchRow($result) ) {
$sel = "";
if ( $catid == $preset_id ) {
$sel = " selected='selected'";
}
echo "<option class='title' value='$catid'$sel>$name</option>n"; //edit jayjay
$sel = "";
$arr = $this->getChildTreeArray($catid, $order);
foreach ( $arr as $option ) {
//start edit jayjay
$option['prefix'] = str_replace("."," ",$option['prefix']);
if ( $option['prefix'] == " " ) {
$option['prefix'] = substr($option['prefix'], 6);
$catpath = $option['prefix'].$myts->makeTboxData4Show($option[$title]);
if ( $option[$this->id] == $preset_id ) {
$sel = " selected='selected'";
}
echo "<option class='title2' value='".$option[$this->id]."'$sel>$catpath</option>n";
}
else {
$catpath = $option['prefix'].$myts->makeTboxData4Show($option[$title]);
if ( $option[$this->id] == $preset_id ) {
$sel = " selected='selected'";
}
echo "<option value='".$option[$this->id]."'$sel>$catpath</option>n";
}
//end edit jayjay
$sel = "";
}
}
echo "</select>n";
}
option.title {
background-color:#ddd;
color:#000;
}
option.title2 {
background-color:#F2F2F2;
color:#000;
}
if (isset($cid) && $cid > 0 && isset($categories[$cid])) {
$xoopsTpl->assign('xoops_pagetitle', $categories[$cid]->getVar('title').' | '.$xoopsModule->name());
jayjay wrote:
Line 14 - after channel language:<atom:link href="<{$xoops_url}><{$smarty.server.REQUEST_URI}>" rel="self" type="application/rss+xml" />