vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   news hack for vb220_221en--by Arrow (https://vborg.vbsupport.ru/showthread.php?t=32549)

epic 11-20-2001 10:00 PM

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?

snyx 11-21-2001 12:05 AM

ummm, sorry but can someone explain the £º and other odd charatcers Im not understanding? (maybe its a canadian thing)

Syphin 11-21-2001 01:14 AM

There just from a diffrent language... Just take all the odd ones out, and it will be regular... :p

-Syphin

LawnDawg 11-21-2001 01:57 AM

I see ZTSKY, so I'm assuming those characters are Chinese chars.

squawell 11-21-2001 02:46 AM

first thankz for this hack but i have one problem
PHP Code:

  $newsfadebits "\"welcome new member<b>$newusername</b>\",\"\",\n"

i use this code but it did not show up the username

what's wrong??

epic 11-21-2001 03:37 AM

1. use "ultra edit32" open hack's txt file.
2. this hack can use in vbb220 or vbb221 because this code:

$newsfades=$DB_site->query("SELECT title,pagetext FROM announcement WHERE enddate>='$datenow' AND forumid=0 ORDER BY startdate DESC");

3. this code

$newsfadebits = "\"welcome new member<b>$newusername</b>\",\"\",\n";


I have no time to test.Because i have not use this code. :rolleyes:

FWC 11-21-2001 03:46 AM

Quote:

Originally posted by squawell
first thankz for this hack but i have one problem
PHP Code:

  $newsfadebits "\"welcome new member<b>$newusername</b>\",\"\",\n"

i use this code but it did not show up the username

what's wrong??

You have to move the code for index.php further down the page. $newusername hasn't been determined yet if you put it where the instructions say. I put it right after:
PHP Code:

// get newest member
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid']; 

on my test board and it works that way.

squawell 11-21-2001 05:07 AM

Quote:

Originally posted by FWC
You have to move the code for index.php further down the page. $newusername hasn't been determined yet if you put it where the instructions say. I put it right after:
PHP Code:

// get newest member
$getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbersmembers[max]");
$newusername=$getnewestusers['username'];
$newuserid=$getnewestusers['userid']; 

on my test board and it works that way.

hey man ur right!!

i moved this code and it work~~

thankz~~u give me a big help again!!:D

FWC 11-21-2001 05:41 AM

Quote:

Originally posted by squawell

hey man ur right!!

i moved this code and it work~~

thankz~~u give me a big help again!!:D

I installed it on our live site. Glad to help again. :)

Lesane 11-21-2001 10:34 AM

Any change that this gonna work on 2.0.3?


All times are GMT. The time now is 06:57 AM.

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.01141 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete