Thread: vBTopSite
View Single Post
  #14  
Old 12-30-2003, 10:06 PM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UGH THIS IS GETTING ANNOYING NOW....blame vbhackmaker, here use this

PHP Code:
CREATE TABLE topsites_ips (
  
ipin int(10NOT NULL auto_increment,
  
address varchar(14NOT NULL default '',
  
siteid int(5NOT NULL default '0',
  
dateadd int(20NOT NULL default '0',
  
PRIMARY KEY  (ipin)
TYPE=MyISAM;

CREATE TABLE topsites_options (
  
active tinyint(1NOT NULL default '0',
  
hitson tinyint(1NOT NULL default '0',
  
perpage tinyint(3NOT NULL default '10',
  
daytime tinyint(2NOT NULL default '1',
  require 
tinyint(1NOT NULL default '1',
  
buttons varchar(75NOT NULL default '',
  
totalbuttons int(3NOT NULL default '50',
  
resolve tinyint(1NOT NULL default '0',
  
display tinyint(1NOT NULL default '1',
  
htmlallowed varchar(75NOT NULL default '<b><u><i>',
  
bheight tinyint(3NOT NULL default '0',
  
bwidth tinyint(3NOT NULL default '0',
  
bborder tinyint(3NOT NULL default '0',
  
arrows varchar(75NOT NULL default '',
  
rankby varchar(75NOT NULL default 'todayunique',
  
KEY active (active)
TYPE=MyISAM;

CREATE TABLE topsites_sites (
  
siteid int(3NOT NULL auto_increment,
  
siteurl varchar(75NOT NULL default '',
  
sitetitle varchar(75NOT NULL default '',
  
webmaster varchar(30NOT NULL default '',
  
webemail varchar(50NOT NULL default '',
  
sitedescription text NOT NULL,
  
sitepassword varchar(30NOT NULL default '',
  
buttonurl varchar(75NOT NULL default '',
  
totalhits int(10unsigned NOT NULL default '0',
  
totalout int(10unsigned NOT NULL default '0',
  
totalunique int(10unsigned NOT NULL default '0',
  
totalin int(10unsigned NOT NULL default '0',
  
todayin int(10unsigned NOT NULL default '0',
  
todayunique int(10unsigned NOT NULL default '0',
  
todayout int(10unsigned NOT NULL default '0',
  
todayhits int(10unsigned NOT NULL default '0',
  
lastreset int(20NOT NULL default '0',
  
lastrank int(20NOT NULL default '0',
  
joindate int(20NOT NULL default '0',
  
active tinyint(1NOT NULL default '0',
  
PRIMARY KEY  (siteid),
  
UNIQUE KEY siteurl (siteurl,webmaster,webemail,buttonurl)
TYPE=MyISAM;

INSERT INTO topsites_options VALUES (001011'http://YOURSITE/topsites/buttons'1002'<b><u><i>'31880'http://YOURSITE/topsites''todayunique');

---------------------------------
find forum/global.php
----
if (!
$servertoobusy) {
  require(
'./admin/sessions.php');
----
replace with
----
if (!
$servertoobusy) {
if(
$PHP_SELF != "/topsites_hit.php") {
  require(
'./admin/sessions.php');
}

find in admin/index.php
----------
makenavoption("Add","announcement.php?action=add","|");
makenavoption("Modify","announcement.php?action=modify");
makenavselect("Announcements");

add below
// *************************************************
makenavoption("Options","topsites_admin.php?action=options"," | ");
makenavoption("Manage Sites","topsites_admin.php?action=site","<br/>");
makenavoption("Useful Admin Functions","topsites_admin.php?action=functs","<br/>");
makenavoption("Send Emails","topsites_admin.php?action=email"," | ");
makenavoption("View","../topsites.php?page=1","<br/>");
makenavselect("vBTopSite"); 
*sigh* i think i remember why i dont release hacks here, lol

and yeah...............................vb3 is in the process of 'updating the attachment' =_= which means it might not be available until tomarrow...stupid thing. if you click install, ill be able to update you when it returns
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01108 seconds
  • Memory Usage 1,837KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete