Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-04-2000 Last Update: Never Installs: 0
 
No support by the author.

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:5 00">
</div>
</td></tr>
</table>
<br>

bgcolor="#003366". You might wanna change it.
* = 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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-05-2000, 02:40 PM
Guest
 
Posts: n/a
Default

Nicely done. Another one on the to-do list once v2.0 is out
Reply With Quote
  #3  
Old 11-05-2000, 03:05 PM
Guest
 
Posts: n/a
Default

Thanks.
Reply With Quote
  #4  
Old 11-05-2000, 04:07 PM
Guest
 
Posts: n/a
Default

Thanks
Reply With Quote
  #5  
Old 12-30-2000, 08:02 AM
Guest
 
Posts: n/a
Default

I add template to my vB 1.1.4 but nothing new fader on the forum ?

Did any thing I was missed ?

Is the news put in the faderaddnews template ?
could you pls explain clear what is the prefix in faderaddnews template ?
Reply With Quote
  #6  
Old 01-02-2001, 06:37 PM
Guest
 
Posts: n/a
Default

First time I've seen your forum. It looks great. Do you mind if I do something somewhat like you have done with the left navigation?
Reply With Quote
  #7  
Old 01-03-2001, 05:26 AM
Guest
 
Posts: n/a
Default

Quote:
First time I've seen your forum. It looks great. Do you mind if I do something somewhat like you have done with the left navigation?
The demo posted isn't my site at all. I just posted to show what News Fader is and how it works.
Reply With Quote
  #8  
Old 01-03-2001, 05:28 AM
Guest
 
Posts: n/a
Default

Quote:
I add template to my vB 1.1.4 but nothing new fader on the forum ?

Did any thing I was missed ?

Is the news put in the faderaddnews template ?
could you pls explain clear what is the prefix in faderaddnews template ?
If you carefully follow the instructions, you shouldn't fall into troubles.
Reply With Quote
  #9  
Old 01-04-2001, 11:32 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Parker Trasborg
First time I've seen your forum. It looks great. Do you mind if I do something somewhat like you have done with the left navigation?
The site he put as a demo is mine, feel free to use the layout, it is a pretty basic design, I only realy did it for testing.
Reply With Quote
  #10  
Old 01-09-2001, 07:00 PM
Guest
 
Posts: n/a
Default

Hi,

I would like to add the number of threads and other statistik variable in the newsfader But i don't know how.

Can anyone post his faderaddnews template for me?

thanks
Jen
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05829 seconds
  • Memory Usage 2,270KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete