Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Details »»

Version: , by epic epic is offline
Developer Last Online: Aug 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-20-2001 Last Update: Never Installs: 5
 
No support by the author.

newsfaderHACK--ZTSKY,2001.04.23
This zip file has three files:newsfader.php??fader.js??newshackforvb2
******abolve is originally author's info ******

******rehacked to 220??221 by arrow??2001,11,18******
================================================== ===
My zip file has three files:newsfader.php??fader.js??newshackforvb220_22 1en.txt??this file??
First excuse my worse english,let's start to hack

1??Open file: admin/index.php

Find??
makenavoption("Add","announcement.php?action=add", "|");
makenavoption("Modify","announcement.php?action=mo dify");
makenavselect("Announcements");
// ***

Below it add code??
makenavoption("Add","newsfade.php?action=add","|") ;
makenavoption("Modify","newsfade.php?action=modify ");
makenavselect("News");
// ***

2??Open file: index.php

Find??

$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}

Below it add code??

// newsfade hack start
$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);
// newsfade hack end

3??Modify 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

Below it add code??

<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: add before $header??

Conitue find??

$unregwelcomemessage
</table>
<!-- /text -->

<br>

<!-- main -->

Below it add code??

<table bgcolor="#0A293E" cellpadding="4" cellspacing="1" width="100%" border="0">
<TR bgcolor="#1D6AA0" id=cat><TD colspan=6>
<normalfont color="#000000">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:5 00"><div align="center">Forum news</div></div>
</td></tr>
<table bgcolor="#0A293E" cellpadding="4" cellspacing="1" width="100%" border="0">
<tr align="center">

4??upload newsfader.php to your forum's admin directory;
upload fader.js to your forum's root directory;
upload fade.gif to your forum's root directory,it's ok now!
Can u enjoy it?

Show Your Support

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

Comments
  #22  
Old 11-26-2001, 02:23 AM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

arg, im so lazy tho...
  #23  
Old 11-26-2001, 07:35 PM
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
Posts: 525
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmmmm thanks for your help, but it only says welcome to or newest member, by the way i am using 2.2.1 so maybe its a different code?

THANKSA!!
  #24  
Old 11-26-2001, 08:31 PM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Psychdrone
hmmmmm thanks for your help, but it only says welcome to or newest member, by the way i am using 2.2.1 so maybe its a different code?

THANKSA!!
Read the first page of this thread. I explain how to fix that there. You have to move the hack further down in index.php so the $newusername value is determined before this hack. It's always a good idea to read the whole thread before installing a hack. I even read the 15 page ones.
  #25  
Old 11-27-2001, 01:01 AM
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Oct 2001
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FWC
Read the first page of this thread. I explain how to fix that there. You have to move the hack further down in index.php so the $newusername value is determined before this hack. It's always a good idea to read the whole thread before installing a hack. I even read the 15 page ones.
TRUE TRUE

And that vBStats thread was insane! but worth every bit!
  #26  
Old 11-27-2001, 01:39 AM
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Oct 2001
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Psychdrone
hmmmmm thanks for your help, but it only says welcome to or newest member, by the way i am using 2.2.1 so maybe its a different code?

THANKSA!!
I'm having the same problem, I put the code where you said but it doesn't cycle for some reason?
  #27  
Old 11-27-2001, 01:43 AM
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Oct 2001
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just reread the instructions. Didn't realize I had to move the entire hack below that line. DOH
  #28  
Old 11-27-2001, 01:46 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JTMON
I just reread the instructions. Didn't realize I had to move the entire hack below that line. DOH
It works now. That's what counts.
  #29  
Old 11-27-2001, 01:48 AM
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Oct 2001
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well acutally no it's not now either

I made the changes, but it only shows the new member, then it cycles away and nothing comes up. I added a test news messge too
  #30  
Old 11-27-2001, 01:50 AM
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Oct 2001
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



again I misspoke. It cycles to my test message but because I hyperlinked it, it's the same color as the bacground

How do I change the fader background color? and font color on fader itself?

Also, it cylces to my test message and stops. shouldn't it keep going in a circle back to newest member?
  #31  
Old 11-27-2001, 02:00 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JTMON


again I misspoke. It cycles to my test message but because I hyperlinked it, it's the same color as the bacground

How do I change the fader background color? and font color on fader itself?

Also, it cylces to my test message and stops. shouldn't it keep going in a circle back to newest member?
The fader background color and font color are at the top of the fader.js file. You can also change the color of the cell around the fader in the forumhome template addition. I am not sure why you wouldn't continuously cycle unless you changed the number of cycles in the fader.js file. I think it defaults to 100.
Closed Thread


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 06:32 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.04614 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
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
  • (5)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • postbit_imicons
  • 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