11-04-2000, 06:25 PM
22-03-01 -> Note that this hack is NOT for vB 2.0
This is my very first *i wouldn't call it a hack* tested on W2k, IIS5, PHP 4.0.3pl1 and WinNT, Apache, PHP 4.0.2. Works fine.
[Update - i forgot to post demo, cos I'm behind a firewall, take a look in there (Ukliam's site): :)
http://www.clubbers.ws/vb/index.php]
OK, here we go. :)
Download Fader 3.0 here:
http://www.webreference.com/dhtml/column27/fader30.zip
[we'll use fader.js only, upload it to you vB folder]
Create three new templates:
faderaddnews
Fill with:
prefix="$homeurl/";
arNews = [
"The Latest News From News Harvester","",
"Sun Says Microsoft Tried to Hijack Java","Reuters/1998/09/1001-sun.html",
"U.S. Financial Firms See E-Commerce Troubles","Reuters/1998/09/0906-us.html",
"FTC Bars E-Tailer In Fraud Case","bus-news/1998/09/0902-ftc.html",
"E*TRADE Adds E-Mail for Investors","bus-news/1998/09/0903-etrade.html",
"Microsoft, Ernst \& Young Debut eCommerce RapidStart","ec-news/1998/09/0906-microsoft.html",
"Lucent, WorldPort Sign Equipment Deal for Euro Network","isp-news/1998/09/0901-lucent.html",
"Microsoft Moves In With GeoCities","bus-news/1998/09/0901-microsoft.html",
"NAI Unveils PGP Enterprise Security","intra-news/1998/09/0901-nai.html",
"Amazon Targets Classical Listeners","ec-news/1998/09/0902-amazon.html",
"Microsoft, Sun Battle In Court Over Java","Reuters/1998/09/0901-bat.html"
]
This is default from news.js you downloaded. Change it to fit your needs. Don't include , on the latest line!
prefix="$homeurl/"; Take a look at your control panel -> choose options -> homeurl. If you have there something like #ttp://www.mysite.com/, change prefix line to prefix="$homeurl";
Next template
fadersetup
Fill with:
FDRboxWid = 500;
FDRboxHgt = 25;
FDRborWid = 1;
FDRborCol = "red";
FDRborSty = "solid";
FDRbackCol = "white";
FDRboxPad = 4;
FDRtxtAln = "center";
FDRlinHgt = "12pt";
FDRfntFam = "verdana, arial, helvetica";
FDRfntCol = "#ffffff";
FDRfntSiz = "12pt";
FDRfntWgh = "normal";
FDRfntSty = "normal";
FDRlnkCol = "blue";
FDRlnkDec = "";
FDRhovCol = "red";
FDRgifSrc = "";
FDRgifInt = 60;
FDRblendInt = 4;
FDRblendDur = 1;
FDRmaxLoops = 100;
FDRendWithFirst = false;
FDRreplayOnClick = false;
FDRjustFlip = false;
FDRhdlineCount = 0;
Again - change colors, border, font, width, height, etc. as you wish.
Last template
fadertable
Fill with:
<br>
<table align="center" bgcolor="#003366" cellpadding=4 cellspacing=1 border=0 width="100%">
<TR bgcolor="*categorybackcolor*">
<TD colspan=6>
<normalfont color="*categoryfontcolor*"><B>News</B></normalfont>
</td>
</tr>
<tr bgcolor="*firstaltcolor*" valign="bottom" align="center">
<td width=100% height=25 colspan=6>
<div id="elFader" STYLE="position:relative;visibility:hidden;width:500">
</div>
</td></tr>
</table>
<br>
bgcolor="#003366". You might wanna change it. :p
* = replace with { and }. It was converted when posted. :)
Open forumhome template, after $cssinclude add this:
<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
<!--
$fadersetup
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
<!--
$faderaddnews
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
<!--
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='fader.js' TYPE='text/javascript'><\/SCRIPT>");
//-->
</SCRIPT>
Add $fadertable somewhere. I added it on the top under 'welcome our newest member'.
Open index.php, find this line:
if ($action=="showforums") {
Add below:
// vB Fader MiniHack
eval("\$fadersetup = \"".gettemplate("fadersetup")."\";");
eval("\$faderaddnews = \"".gettemplate("faderaddnews")."\";");
eval("\$fadertable = \"".gettemplate("fadertable")."\";");
// vB Fader MiniHack End
Now, you're set. Enjoy.
This is my very first *i wouldn't call it a hack* tested on W2k, IIS5, PHP 4.0.3pl1 and WinNT, Apache, PHP 4.0.2. Works fine.
[Update - i forgot to post demo, cos I'm behind a firewall, take a look in there (Ukliam's site): :)
http://www.clubbers.ws/vb/index.php]
OK, here we go. :)
Download Fader 3.0 here:
http://www.webreference.com/dhtml/column27/fader30.zip
[we'll use fader.js only, upload it to you vB folder]
Create three new templates:
faderaddnews
Fill with:
prefix="$homeurl/";
arNews = [
"The Latest News From News Harvester","",
"Sun Says Microsoft Tried to Hijack Java","Reuters/1998/09/1001-sun.html",
"U.S. Financial Firms See E-Commerce Troubles","Reuters/1998/09/0906-us.html",
"FTC Bars E-Tailer In Fraud Case","bus-news/1998/09/0902-ftc.html",
"E*TRADE Adds E-Mail for Investors","bus-news/1998/09/0903-etrade.html",
"Microsoft, Ernst \& Young Debut eCommerce RapidStart","ec-news/1998/09/0906-microsoft.html",
"Lucent, WorldPort Sign Equipment Deal for Euro Network","isp-news/1998/09/0901-lucent.html",
"Microsoft Moves In With GeoCities","bus-news/1998/09/0901-microsoft.html",
"NAI Unveils PGP Enterprise Security","intra-news/1998/09/0901-nai.html",
"Amazon Targets Classical Listeners","ec-news/1998/09/0902-amazon.html",
"Microsoft, Sun Battle In Court Over Java","Reuters/1998/09/0901-bat.html"
]
This is default from news.js you downloaded. Change it to fit your needs. Don't include , on the latest line!
prefix="$homeurl/"; Take a look at your control panel -> choose options -> homeurl. If you have there something like #ttp://www.mysite.com/, change prefix line to prefix="$homeurl";
Next template
fadersetup
Fill with:
FDRboxWid = 500;
FDRboxHgt = 25;
FDRborWid = 1;
FDRborCol = "red";
FDRborSty = "solid";
FDRbackCol = "white";
FDRboxPad = 4;
FDRtxtAln = "center";
FDRlinHgt = "12pt";
FDRfntFam = "verdana, arial, helvetica";
FDRfntCol = "#ffffff";
FDRfntSiz = "12pt";
FDRfntWgh = "normal";
FDRfntSty = "normal";
FDRlnkCol = "blue";
FDRlnkDec = "";
FDRhovCol = "red";
FDRgifSrc = "";
FDRgifInt = 60;
FDRblendInt = 4;
FDRblendDur = 1;
FDRmaxLoops = 100;
FDRendWithFirst = false;
FDRreplayOnClick = false;
FDRjustFlip = false;
FDRhdlineCount = 0;
Again - change colors, border, font, width, height, etc. as you wish.
Last template
fadertable
Fill with:
<br>
<table align="center" bgcolor="#003366" cellpadding=4 cellspacing=1 border=0 width="100%">
<TR bgcolor="*categorybackcolor*">
<TD colspan=6>
<normalfont color="*categoryfontcolor*"><B>News</B></normalfont>
</td>
</tr>
<tr bgcolor="*firstaltcolor*" valign="bottom" align="center">
<td width=100% height=25 colspan=6>
<div id="elFader" STYLE="position:relative;visibility:hidden;width:500">
</div>
</td></tr>
</table>
<br>
bgcolor="#003366". You might wanna change it. :p
* = replace with { and }. It was converted when posted. :)
Open forumhome template, after $cssinclude add this:
<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
<!--
$fadersetup
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
<!--
$faderaddnews
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
<!--
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='fader.js' TYPE='text/javascript'><\/SCRIPT>");
//-->
</SCRIPT>
Add $fadertable somewhere. I added it on the top under 'welcome our newest member'.
Open index.php, find this line:
if ($action=="showforums") {
Add below:
// vB Fader MiniHack
eval("\$fadersetup = \"".gettemplate("fadersetup")."\";");
eval("\$faderaddnews = \"".gettemplate("faderaddnews")."\";");
eval("\$fadertable = \"".gettemplate("fadertable")."\";");
// vB Fader MiniHack End
Now, you're set. Enjoy.