well, I did too, on my test version of VB 2.2.2...
But it did require some adjustments to the original script.
For the changes to the /admin/index.php script:
Quote:
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>Forum news</b>
</font></td></tr></table>
<a href="newsfade.php?s=<?php echo $session[sessionhash]; ?>&action=add"> add</a> |
<a href="newsfade.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> edit</a>
</td></tr>
|
I used:
Quote:
// start of newsfader hack
makenavoption("Add","newsfade.php?&action=add","|" );
makenavoption("Edit","newsfade.php?&action=modify" ,"|");
makenavselect("Forum News");
// end of newsfader hack
|
And for the /index.php changes:
Quote:
// Hack newsfade
$newsfadebits = "\"Welcome our new member??$newusername\",\"\",\n";
$newsfades=$DB_site->query("SELECT title,pagetext FROM announcement WHERE enddate>=$datenow AND forumid=0 ORDER BY startdate DESC");
while ($newsfade=$DB_site->fetch_array($newsfades)) {
$newsfadebits.="\"".addslashes($newsfade[pagetext])."\",\"$newsfade[title]\",\n";
}
$newsfadebits = substr($newsfadebits,0,-2);
// End Hack newsfade
|
I used:
Quote:
// Hack newsfade
$newsfadebits = "\"<b><i>Welcome to Bitbender Forums, Where Members RULE</b></i>\",\"\",\n";
$newsfades=$DB_site->query("SELECT title,pagetext FROM announcement WHERE enddate>=$today AND forumid=0 ORDER BY startdate DESC");
while ($newsfade=$DB_site->fetch_array($newsfades)) {
$newsfadebits.="\"".addslashes($newsfade[pagetext])."\",\"$newsfade[title]\",\n";
}
$newsfadebits = substr($newsfadebits,0,-2);
// End Hack newsfade
|
Notice the difference in red. The previous variable used no longer seems to be valid.
All other changes apply as instructed. (Since I restored from a DB backup, my template changes were already in place).
Seems to work as before.