View Full Version : News Fader Question
Eric23
05-18-2001, 03:04 PM
I apologize for asking but is there a News Fader hack for vB 1.1.6? There was one in this thread
http://www.vbulletin.com/forum/showthread.php?s=&threadid=16131
however, newshackforvb2.txt (the instructions???) are unreadable. I also read PeF's newsfader hack which was very cool however, when I go to insert the lines of code some of them are not there. Is this due to the version or is this the fact that I use *.php3 files?
Thanks for any help!
Eric
Funkie
05-18-2001, 06:01 PM
The fader i posted will work for you just open the file with notepad;)
Eric23
05-18-2001, 07:18 PM
thanks for the reply funky, I tried a couple of things actually and this is what I see.
************************************************** **
????????HACK??????ͩ????http://vbb.yesky.net??????????2001.04.23
?????????????????ļ???NEWSFADER.PHP??FADER.js??new shackforvb2?????DZ??ļ???
????ADMIN/INDEX.PHP
???ң?
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>????????</b>
</font></td></tr></table>
<a href="announcement.php?s=<?php echo $session[sessionhash]; ?>&action=add">????</a> |
<a href="announcement.php?s=<?php echo $session[sessionhash]; ?>&action=modify">?༭</a>
</td></tr>
???????ӣ?
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>????</b>
</font></td></tr></table>
<a href="newsfade.php?s=<?php echo $session[sessionhash]; ?>&action=add"> ???? </a> |
<a href="newsfade.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> ?? </a>
</td></tr>
??????index.php
???ң?
$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}
?????????ϣ?
// Hack newsfade
$newsfadebits = "";
$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 newsfad
??ģ?壺forumhome
?ҵ???
<meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ .">
<title>$bbtitle - powered by vBulletin</title>
$headinclude
???????ӣ?
<SCRIPT LANGUAGE='JavaScript1.2' TYPE='text/javascript'>
prefix="";
arNews = [
$newsfadebits
]
</SCRIPT>
<SCRIPT LANGUAGE='JavaScript1.2' SRC='fader.js' TYPE='text/javascript'></script>
</head>
<body>
????Щ????$header֮ǰ??
???ң?
$unregwelcomemessage
</table>
<!-- /text -->
<br>
<!-- main -->
?????????ϣ?
<table bgcolor="{tablebordercolor}" cellpadding="4" cellspacing="1" width="100%" border="0">
<TR bgcolor="{tableheadbgcolor}" id=cat><TD colspan=6>
<normalfont color="{categoryfontcolor}">??̳????????</normalfont></td>
</tr>
<tr><td colspan=6 bgcolor="#f7f7f7" height=30 valign="top" align="center">
<div id="elFader" style="position:relative;visibility:hidden;width:500"><div align="center">??̳????</div></div>
</td></tr>
<table bgcolor="{tablebordercolor}" cellpadding="4" cellspacing="1" width="100%" border="0">
<tr align="center">
?ϴ?NEWSFADER.PHP????̳ADMINĿ¼
?ϴ?FADER.JS????̳Ŀ¼???Ϳ????ˡ?
ϣ????ϲ??????????????ͩ??????http://vbb.yesky.net
************************************************** *
I can make out some of it but, I am not completely comfortable with making any adjustments with out fully understanding what it is exactly I am looking at.
If anyone has a "non-corrupted" version of this file if you could e-mail it to me that would awesome!!!!!
Thanks Funkie and everyone else in advance!
Eric
Funkie
05-18-2001, 07:29 PM
Thats not from the attachment I put up m8 d/l the one from my post;)
If still no joy I'll email it to you
Eric23
05-18-2001, 08:19 PM
Funkie thanks for all the help!!!!
If you could e-mail it to me that would be awesome.
THANKS!:)
Eric
Funkie
05-18-2001, 08:29 PM
as the email button dosn't allow attachments
here it is anyway
Eric23
05-18-2001, 08:37 PM
Funkie,
Hey good to go!!!! Thanks for all the help Funkie. I really appriciate it!
Eric
ztsky
05-19-2001, 02:24 AM
This hack is just I used.
But i think I would had post it in english.:):)
This newsfader hack is can use in every vb Version.
I like it!
I can translate into english for you:
newshackforvb2:
1)open ADMIN/INDEX.PHP
find??
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr bgcolor="#3F3849"><td><font color="#BCB6CD">
<b>Announcement</b>
</font></td></tr></table>
<a href="announcement.php?s=<?php echo $session[sessionhash]; ?>&action=add">add</a> |
<a href="announcement.php?s=<?php echo $session[sessionhash]; ?>&action=modify">edit</a>
</td></tr>
just below it,add this??
<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>
2)open??index.php
find??
$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}
just below it add this??
// Hack newsfade
$newsfadebits = "";
$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 newsfad
3)edit template forumhome:
find??
<meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ .">
<title>$bbtitle - powered by vBulletin</title>
$headinclude
Just below it,add??
<SCRIPT LANGUAGE='JavaScript1.2' TYPE='text/javascript'>
prefix="";
arNews = [
$newsfadebits
]
</SCRIPT>
<SCRIPT LANGUAGE='JavaScript1.2' SRC='fader.js' TYPE='text/javascript'></script>
</head>
<body>
??note: this should be added before "$header"??
then find??
$unregwelcomemessage
</table>
<!-- /text -->
<br>
<!-- main -->
just below it,add this code??
<table bgcolor="#FFFFFF" cellpadding="4" cellspacing="1" width="100%" border="0">
<TR bgcolor="#6C6081" id=cat><TD colspan=6>
<normalfont color="#F5D300">Forum news</normalfont></td>
</tr>
<tr><td colspan=6 bgcolor="#f7f7f7" height=30 valign="top" align="center">
<div id="elFader" style="position:relative;visibility:hidden;width:500"><div align="center">Forumnews</div></div>
</td></tr>
<table bgcolor="#FFFFFF" cellpadding="4" cellspacing="1" width="100%" border="0">
<tr align="center">
upload NEWSFADER.PHP to you vb/ADMIN
upload FADER.JS to your vb/
this all!!
ztsky
05-19-2001, 02:33 AM
this zipfile is in enhlish!
easy and clean for all vBulletin Version 1.*/2.*
First-Man
05-19-2001, 07:19 AM
ehm..
The fade does not start!
I use IE6.
Funkie
05-22-2001, 05:13 PM
Need's a hack writer to look at it as it won't display the java
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.