31
I solved the RSS problem (RSS icon an link not shown).
index.php ends with:
le="color: #000000"><?php if($xoopsModuleConfig['enablerss'] == 1) { //$rsslink=sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s' title='%s'></a>",WFDOWNLOADS_URL."rss.php", _MD_WFD_LEGENDTEXTRSS, XOOPS_URL."/".$xoopsModuleConfig['mainimagedir']."/icon/rss.gif",_MD_WFD_LEGENDTEXTRSS); $xoopsTpl->assign('full_rssfeed_link', $rsslink); $rsslink=sprintf("<a href='%s' title='%s'><img src='%s' border=0 alt='%s' title='%s'></a>",WFDOWNLOADS_URL."rss.php", _MD_WFD_LEGENDTEXTRSS, XOOPS_URL."/".$xoopsModuleConfig['mainimagedir']."/icon/rss.gif",_MD_WFD_LEGENDTEXTRSS, _MD_WFD_LEGENDTEXTRSS, '' ); //changed by Zyspec }
This code doesn't work, because the line:
le="color: #000000"><?php $xoopsTpl->assign('full_rssfeed_link', $rsslink);
should be after the definition of $rsslink. The first part (that starts with //$rsslink) can be deleted. Then, the correct code is:
le="color: #000000"><?php if($xoopsModuleConfig['enablerss'] == 1) { $rsslink=sprintf("<a href='%s' title='%s'><img src='%s' border='0' alt='%s' title='%s'></a>", WFDOWNLOADS_URL."rss.php", _MD_WFD_LEGENDTEXTRSS, XOOPS_URL."/".$xoopsModuleConfig['mainimagedir']."/icon/rss.gif", _MD_WFD_LEGENDTEXTRSS, _MD_WFD_LEGENDTEXTRSS); //changed by Zyspec $xoopsTpl->assign('full_rssfeed_link', $rsslink); }
I've added a space before WFDOWNLOADS_URL.
In viewcat.php there is a similar problem that can be solved in a similar way.
SMEDrieben