Hey Slurpee,
Here's some bugfixes, feedback, feature suggestions, and an feature addition <grin> all rolled into one post:
BUGFIX
-------
Where: Install Doc
Line:
cp_vars_news_fader.cgi -> To your cgi-bin folder (CHMOD this file 755)
Change to:
cp_news_fader.cgi -> To your cgi-bin folder (CHMOD this file 755)
SUGGESTION
-------------
Where: Install Doc
Line: Control Panel Lines
Suggestion: change the equality checks to ' instead of " because this is what 6.01 is using now
Example Line: if (($ubb eq "vars_news_fader") && ($status eq "Administrator")) {
Example Change to: if (($ubb eq 'vars_news_fader') && ($status eq 'Administrator')) {
SUGGESTION
------------
Where: Install Doc
Line:
if ($vars_news_fader{nfon} eq "ON") {
$newslinefader= qq~<TR bgcolor="$vars_style{CategoryStripColor}"><TD colspan="6">
<FONT SIZE="$vars_style{TextSize}" FACE="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}"><B>$vars_news_fader{nftitle}</B></FONT>
</td></tr>
<tr>
<td colspan="6" bgcolor=$vars_style{AltColumnColor1} align=center>
<table border=0 cellpadding=0 cellspacing=0 align="center" width="$vars_style{TableWidth}">
<tr>
<td colspan="6" bgcolor=$vars_style{AltColumnColor1} align=center valign=top width=100% height=43><div id="elFader" style="position:relative;visibility:hidden;width:550"><div align="center"><font face="$vars_style{FontFace}" size="$vars_style{TextSize}">News Fader for DHTML Browser.</font></div></div>
</td></tr>
</table>
</td>
</tr>~;
} else {
$newslinefader = "";
}
Change to:
if ($vars_news_fader{nfon} eq "ON") {
$newslinefader= qq~<TR bgcolor="$vars_style{CategoryStripColor}"><TD colspan="6">
<FONT SIZE="$vars_style{TextSize}" FACE="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}"><B>$vars_news_fader{nftitle}</B></FONT>
</td></tr>
<tr>
<td colspan="6" bgcolor=$vars_style{AltColumnColor1} align=center>
<table border=0 cellpadding=0 cellspacing=0 align="center" width="$vars_style{TableWidth}">
<tr>
<td colspan="6" bgcolor=$vars_style{AltColumnColor1} align=center valign=top width=100% height=43><div id="elFader" style="position:relative;visibility:hidden;width:550"></div>
</td></tr>
</table>
</td>
</tr>~;
} else {
$newslinefader = "";
}
Reason: Chops off a few bytes

BUGFIX
-------
Where: Install Docs
Lines:
Look for:
~;
} # end mods column
$Top .= "</tr>$newslinefader";Change to:
Look for:
~;
} # end mods column
$Top .= '</tr>';NEW FEATURE
--------------
Where: cp_news_fader.cgi
BEFORE: &cp_confirm("News Headlines and Settings Updated");
ADD: &ClearSummaryCache;
What it does: Clears the summary cache whenever you updated News Settings so you won't have to go into Maintenance and do it manually
FEATURE REQUEST
-------------------
* ability to choose an icon to be associated with News Fader (like a newspaper or something)
* ability how high the display headlines ar (i.e., 10 from top, 20 from top in relation to the FDRborWid argument
* ability to choose left, center, or right alignment
* Version and Coypright Info for the Hack @ the bottom of the template

Great job Slurp! Keep up the
great work
qasic