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

Reply
 
Thread Tools
Details »»

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

Version: Unknown Rating:
Released: 07-09-2001 Last Update: Never Installs: 5
 
No support by the author.

This hack is write by gogosoft and edit by ztsky.
I have post it before,but in Chinese.Many people PM or email me want to get a English version,So I re-release it in English.
This hack can work on all vb versions
File to be edit:
admin/index.php
index.php
template to be edit:
forumhome
how to install it? :
down zip file.
there are three files in it.
fader.js newsfade.php and installnews.txt
**********upload NEWSFADER.PHP to you vb/ADMIN
**********upload FADER.JS to your vb/
**********edit you file or template as installnews.txt
**********upload edied file.
**********go to you vb/ADMIN modify or post a news!


this all
NEW ZIP FILE SEE THE NEXT POST

Show Your Support

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

Comments
  #72  
Old 11-21-2001, 03:04 AM
PBC PBC is offline
 
Join Date: Oct 2001
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See my earlier post regarding that...they are no longer using straight HTML anymore, they are using arrays.

They've replaced all that code with the following line:

PHP Code:
makenavoption("Add","announcement.php?action=add","|"); 
Reply With Quote
  #73  
Old 02-04-2002, 11:24 AM
bitbender's Avatar
bitbender bitbender is offline
 
Join Date: Jan 2002
Location: Sorta near Dallas, Texas
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See my reply in the thread here

It's working(this time), too!

Cheers, all.
Reply With Quote
  #74  
Old 02-05-2002, 04:49 AM
igowoofwoof igowoofwoof is offline
 
Join Date: Dec 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do I add this line into the news fader?

The $bbtitle member of the day is <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$memberoftheday[userid]">$memberoftheday[username]</a>

please tell me thanks...
Reply With Quote
  #75  
Old 03-22-2002, 02:27 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I re-wrote the hack to work on 2.2.4 with code from the posts of BitBender and PBC.

Just thought I'd make it a bit easier for some of the newer php hackers to install this.

vBulletin Newsfader Hack for 2.2.4


Files to edit:
vb/admin/index.php
vb/index.php

Template to edit:
forumhome

***********************************
**1)open ADMIN/INDEX.PHP and find**
***********************************

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

**************************
**just below it,add this**
**************************

// start of newsfader hack
makenavoption("Add","newsfade.php?&action=add","|" );
makenavoption("Edit","newsfade.php?&action=modify" ,"|");
makenavselect("Forum News");
// end of newsfader hack

*******************
**save and upload**
*******************



******************************
**2)open vb/index.php and find**
******************************

if ($birthdays) {
eval("\$birthdaybits = \"".gettemplate("forumhome_birthdaybit")."\";") ;
}
}

**************************
**just below it add this**
**************************

// Hack newsfade
$newsfadebits = "\"<b><i>Welcome to $bbtitle</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

***************************************
**3)edit template forumhome and 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>


**************note: this should be added before "$header"**************

*************
**then find**
*************

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

<br>

<!-- main -->

*******************************
**just below it,add this code**
*******************************

<table bgcolor="{tablebordercolor}" cellpadding="4" cellspacing="1" width="100%" border="0">
<TR bgcolor="{tableheadbgcolor}" id=cat><TD colspan=6>
<normalfont color="{categoryfontcolor}">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 cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>

**********upload NEWSFADER.PHP to you vb/ADMIN
**********upload FADER.JS to your vb/
**********go to you vb/ADMIN modify or post a news!

You're done.
Reply With Quote
  #76  
Old 07-02-2002, 11:27 AM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay I have this installed on vb 2.2.6 but for some reason, my news only last one day , anyone have a fix to this problem
Reply With Quote
  #77  
Old 07-02-2002, 08:50 PM
Bugz Bugz is offline
 
Join Date: Feb 2002
Location: Cleveland
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by rmusic
theres acouple problems

1. Doesnt match sites colors
2. The last Member isnt working


i can fix the colors but i dont know about the last member to post

god i was such a newb back then.

its also nice to know that ppl were hacking there boards on september 11 last year

hypedave i might install this again but at the moment i dunno so i cant really help you. this hack might be out of date.
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 04:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05539 seconds
  • Memory Usage 2,268KB
  • Queries Executed 21 (?)
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
  • (1)bbcode_php
  • (1)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
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (7)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
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete