Here's some bugfixes, feedback, feature suggestions, and an feature addition 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~
$vars_news_fader{nftitle}
News Fader for DHTML Browser.
~; } else { $newslinefader = ""; }
Change to:
if ($vars_news_fader{nfon} eq "ON") { $newslinefader= qq~
$vars_news_fader{nftitle}
~; } else { $newslinefader = ""; }
Reason: Chops off a few bytes
BUGFIX ------- Where: Install Docs Lines:
Look for: ~; } # end mods column
$Top .= "
$newslinefader";
Change to:
Look for: ~; } # end mods column
$Top .= '';
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
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.