Version: 1.00, by Link14716
Developer Last Online: Oct 2023
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.
when i auto generate phrase.php the HIS is NOT including email body phrases
I did the install for the members choice and it sends out an email to let the member know that he has been nominated and invites to add an acceptance speech ...
however these phrases are not captured by the his....i can only presume that its because the body phrase are broken into many lines .... i added the phrases manually into the hack phrase.php .... and they dont get installed by the his with the others
its not so bad for the members choice as there is only 2 email body phrases ... however the vb trader is different ... there are lots of them .
Suggestion....
The vb trader also has a substancial faq section that is added to the forum FAQ's ... is it possible to add another step to the installer/auto generator for FAQ information?
when i auto generate phrase.php the HIS is NOT including email body phrases
I did the install for the members choice and it sends out an email to let the member know that he has been nominated and invites to add an acceptance speech ...
however these phrases are not captured by the his....i can only presume that its because the body phrase are broken into many lines .... i added the phrases manually into the hack phrase.php .... and they dont get installed by the his with the others
its not so bad for the members choice as there is only 2 email body phrases ... however the vb trader is different ... there are lots of them .
Suggestion....
The vb trader also has a substancial faq section that is added to the forum FAQ's ... is it possible to add another step to the installer/auto generator for FAQ information?
This is not something that will learn you how to write a hack. It only helps with providing an easy way for a developer to offer an installer for his hack.
So i don't see how a readme could make any differnce for you being able to write a hack or not?
Looking into using HIS for a new hack i am writing, thx for making life a bit easier Link.
Running into 1 problem (well not really problem atm):
If there is a database error during install, the db_mysql.php can't include the './includes/functions_log_error.php' because current directory is different then expected. This will be more a nuisance during testing then when a hack is finished.
That is not the problem I don't think. I get a similar error, but the problem is a query failing and then the template not found error is caused by vB trying to log it I think.
This query in creator..
PHP Code:
// Grab all the phrases for the settinggroups, then unset the unneeded variable.
$teh_settinggroups2 = $DB_site->query("SELECT varname, text FROM ".TABLE_PREFIX."phrase WHERE varname IN ($sg_in) ORDER BY languageid DESC");
this is the error sent back.
PHP 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 manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY languageid DESC' at line 1
$sg_in seems to be empty...
As best I could tell. I was gonna use it for vBGarage, but for the life of me can't gen the files.
If you drop into #geekydesigns in devcore matt might be avaible to help
I noticed that and will do. However when I posted it was about 7:00 AM Sunday in the UK. I figured I'd wait for a more active time to drop in. I don't need this fixed today. But it sure seems like something I'd like to implement.