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

Reply
 
Thread Tools
[HIS] Hack Installer System (Build 3) Details »»
[HIS] Hack Installer System (Build 3)
Version: 1.00, by Link14716 Link14716 is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-09-2004 Last Update: Never Installs: 26
Supported DB Changes
 

I decided to release what I thought was a stable build 3 early. For those who actually used build 2 in their hacks (if there are any), delete the build 2 files and replace them with the build 3 files (except the example hack). Build 3 changes the way the HIS file are laid out, so hack_install.php was changed quite a bit. Seriously, upgrade. Your build 1/2 hack files will work with build 3.

Now that I've finished my public service announcement, I must not that a hack creator script, allowing for easy creation of the hack files, is not included in this release. I decided to release build 3 before the creator script is finalized. If you want to create hack files now, you'll have to first make a folder for your hack (replacing spaces with underscores), a folder inside for the build number (1 probably, but you can use another number). Then, move the example index.php over and edit it as necessary. Then, upload the folder and index.php to the hacks folder, select it, check "Generate Files" and continue. It will generate all the files needed except the query and modification files. For those, just follow the example file's syntax.

Now, onto the HIS!

The Hack Installer System (HIS) is an HTL-like hack. However, it suceeds in one major place the HTL failed: vBulletin.org compliance.

The HIS is a hacker tool - it does not need a seperate installation. It only needs one database table, which is created automatically the first time the script is ran. Thus, it can be distributed along with your hack as its installer as long as you follow the terms:

You may NOT modify hack_install.php or hack_install_bx.php (where x is the build number) and leave it named as such. If you modify hack_install_bx.php, rename your modified hack_install_bx.php to something entirely different (probably yourhack_install.php) first. ONLY THE OFFICIAL UNMODIFIED FILES MAY BE NAMED hack_install.php AND hack_install_bx.php. Even if you modify and rename, the original copyright text at the top must remain intact.

Eh, well, I think that is all the terms. Anyways, on to this "hack".

This is based off of the uCash & uShop installer, which was based off of the vBadvanced Homepage 1.01 installer by Tigga (Brian Gunter), used with permission.

Build 3 is attached, screens should be attached in this post and in the following post.

Show Your Support

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

Comments
  #42  
Old 02-15-2005, 09:14 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
i know but it never got answered
Try catching me on ICQ today, could be difficult because i seem to be stuck with RL work, and a non-responsive server (and a non-responsive Tech Suppurt ) for a server i administer.
Reply With Quote
  #43  
Old 02-16-2005, 04:11 PM
Vizionz Vizionz is offline
 
Join Date: Jul 2003
Location: Chicago
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

edits post wrong topic sorry
Reply With Quote
  #44  
Old 02-16-2005, 05:09 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@link

On an upgrade "settinggroups" are never installed. Have a modified version now here, that i will include with one of my hacks. If you want i can send you, but i guess you will figure it out yourself in 10 seconds.
Reply With Quote
  #45  
Old 04-07-2005, 11:34 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
ok now i'm starting to get this thing after more confuz-zed-ness than you shake a stick at.

i must reitterate it should really come with a basic readme/faq. but thank you for your efforts.

i have run into a problem though
PHP Code:
Warninghalt(./includes/functions_log_error.php): failed toopenstreamNo such file or directoryinK:\Network\xampp\htdocs\forums\includes\db_mysql.php on line 389

Warning
halt(): Failed opening './includes/functions_log_error.php'forinclusion (include_path='.;K:\Network\xampp\php\pear\')inK:\Network\xampp\htdocs\forums\includes\db_mysql.php on line 389

     

    There seems to have been a slight problem with the EBS:L!VE Forums database.
    Please try again by pressing the refresh button in your browser.

    An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

    We apologise for any inconvenience.
Database error in vBulletin 3.0.3: 
Code:
Invalid SQL: SELECT varname, text FROM phrase WHERE varname IN () ORDER BY languageid DESC
mysql error: You have an error in your SQL syntax. Check the manualthatcorresponds to your MySQL server version for the right syntax tousenear ') ORDER BY languageid DESC' at line 1

mysql error number: 1064

Date: Monday 14th of February 2005 02:41:30 PM
Script: http://localhost/forums/install/hack_install.php
Referer: http://localhost/forums/install/hack_install.php
Username: sabret00the
IP Address: 127.0.0.1
ok it's not as simple as i thought it would be to fix it, the error is here
PHP Code:
               // Now grab all the phrases for the settings andunset the unneeded variable.
               
$teh_settings2 $DB_site->query("SELECT varname,text FROM ".TABLE_PREFIX."phrase WHERE varname IN ($sg_in) ORDER BYlanguageid DESC"); 
                unset(
$sg_in);
               while (
$the_settings2 =$DB_site->fetch_array($teh_settings2)) {
                   
// Figure out what's what and putthem in the setting array.
                   
$varname =str_replace("setting_"""$the_settings2['varname']);
                    if (
strpos($varname"_desc")) {
                       
$varname =str_replace("_desc"""$varname);
                        
$pt "desc";
                    } else {
                       
$varname =str_replace("_title"""$varname);
                        
$pt "title";
                    }
                  
$hack_settings[$varname][''.$pt.'phrase'] = str_replace("'""\'",$the_settings2['text']);
                    
// Now unset some crap.
                    
unset($varname);
                    unset(
$pt);
                } 
the $sg_in doesn't seem to be set
I have exactly the same problem and I there is zero documentation about this HIS system.

Cheers,

Pseudomizer
Reply With Quote
  #46  
Old 04-08-2005, 06:11 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Pseudomizer

One of the current problems with HIS (like mentioned before) is that it can't handle a SQL-error during install properly because of wrong directory.

The reason for the error is probably that you didn't quote and escaped all phrases in phrases.php correctly.

If you need help send me a PM and i will try to help you.
Reply With Quote
  #47  
Old 04-08-2005, 10:23 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
I have exactly the same problem and I there is zero documentation about this HIS system.

Cheers,

Pseudomizer
the $sg_in variable is a bit of a problem but you can actually hardcode it and it should sort your problem
Reply With Quote
  #48  
Old 04-08-2005, 10:45 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no 'problem' with a $sg_in variable.
Reply With Quote
  #49  
Old 04-08-2005, 10:57 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there most definately is, i've had a problem with it on every installer i've tried to make.

if it isn't that it appears not to be set, it's that it caches
Reply With Quote
  #50  
Old 04-08-2005, 11:41 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem is that IF you are using settings.php, you MUST leave the definition of both the $setting and the $settinggroup array in that file. If you are not using either one of them, it still must be defined.

Easiest solution is to keep the following 2 lines in the top of the settings.php file if you use it:
PHP Code:
$settinggroup = array();
$setting = array(); 
You can always leave those 2 lines in the top. No need to change the install program.
Reply With Quote
  #51  
Old 04-08-2005, 03:50 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
If you need help send me a PM and i will try to help you.
Done. :nervous:

Cheers,

Pseudomizer
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 11:09 PM.


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.08317 seconds
  • Memory Usage 2,332KB
  • 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
  • (1)bbcode_code
  • (3)bbcode_php
  • (4)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
  • (3)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