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
  #52  
Old 04-27-2005, 04:11 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

getting this error trying to generate an installer
PHP Code:
<?php

// Phrases

WarningInvalid argument supplied for foreach() in \his_files\hack_creator_b2.php.bak on line 202

?>
PHP Code:
            // Generate phrases file.
            if (isset($hack['phrase_like']) && ($_REQUEST['text'] != 1 || $_REQUEST['type'] == "phrases")) {
                // Grab the phrases.
                $teh_phrases = $DB_site->query("SELECT varname, text, phrasetypeid FROM ".TABLE_PREFIX."phrase WHERE (varname LIKE '$hack[phrase_like]') && phrasetypeid NOT IN (5000, 6000) ORDER BY languageid DESC");
                while ($the_phrases = $DB_site->fetch_array($teh_phrases)) {
                    // Put the phrases in an array.
                    $hack_phrases[$the_phrases[varname]]['text'] = str_replace("'", "\'", $the_phrases['text']);
                    $hack_phrases[$the_phrases[varname]]['phrasetypeid'] = $the_phrases['phrasetypeid'];
                }
                // Start the phrases.php file.
                if ($_REQUEST['text'] != 1) {
                    echo "phrases.php <a href="hack_install.php?$_SERVER[QUERY_STRING]&text=1&type=phrases">(Save This File)</a><br /><div class="smallfont" style="height:250px;width:100%;overflow:auto"><pre>&lt;?php\n\n// Phrases\n";
                } else {
                    echo "<?php\n\n// Phrases\n\n";
                }
                // Go through each phrase and spit it out.       // #####################################
                foreach ($hack_phrases as $varname => $phrase) { // ################## LINE 202
                    if ($_REQUEST['text'] != 1) {                // #####################################
                        echo '$phrase['."'$varname'".'][\'text\'] = \''.htmlentities($phrase['text']).'\';'."\n";
                        echo '$phrase['."'$varname'".'][\'phrasetypeid\'] = '."'$phrase[phrasetypeid]';\n\n";
                    } else {
                        echo "\$phrase['$varname']['text'] = '$phrase[text]';\n";
                        echo "\$phrase['$varname']['phrasetypeid'] = '$phrase[phrasetypeid]';\n\n";
                    }
                }
                // End the file and continue, or...
                // End output buffering and spit out the file.
                if ($_REQUEST['text'] != 1) {
                    echo "\n?&gt;</pre></div><br /><br />";
                } else {
                    echo "\n?>";
                    header ( "Content-type: text/php" );
                    header('Content-Disposition: attachment; filename="phrases.php"');
                    $omgzprint = ob_get_contents();
                    ob_end_clean();
                    print $omgzprint;
                    unset($omgzprint);
                }
                // Now unset some crap.
                unset($teh_phrases);
                unset($the_phrases);
                unset($hack_phrases);
            }
line 202 is marked on the right side of the code, help please :happysad:
Reply With Quote
  #53  
Old 04-27-2005, 06:45 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your hackfiles/..../1/index.php make sure you not commented out "$hack['phrase_like']".

If you don't have any phrases that match the pattern, you can get this error and just ignore.
Reply With Quote
  #54  
Old 04-27-2005, 06:46 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On second thought, if you don't want to generate phrases, comment out the "$hack['phrase_like']".
Reply With Quote
  #55  
Old 04-27-2005, 07:15 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks marco, that cleared up the problem, was a problem to do with case sensitivity

one more problem though
PHP Code:
<?php

// Settings

$settinggroup['threadbot']['phrase'] = 'threadBOT';
$settinggroup['threadbot']['displayorder'] = '6431';

$setting['threadbot_on']['titlephrase'] = '';
$setting['threadbot_on']['descphrase'] = '';
$setting['threadbot_on']['grouptitle'] = 'threadbot';
$setting['threadbot_on']['value'] = '1';
$setting['threadbot_on']['defaultvalue'] = 'yes';
$setting['threadbot_on']['optioncode'] = 'yesno';
$setting['threadbot_on']['displayorder'] = '10';

$setting['threadbot_username']['titlephrase'] = '';
$setting['threadbot_username']['descphrase'] = '';
$setting['threadbot_username']['grouptitle'] = 'threadbot';
$setting['threadbot_username']['value'] = 'jetzxia';
$setting['threadbot_username']['defaultvalue'] = '';
$setting['threadbot_username']['optioncode'] = '';
$setting['threadbot_username']['displayorder'] = '20';

$setting['threadbot_feeders']['titlephrase'] = '';
$setting['threadbot_feeders']['descphrase'] = '';
$setting['threadbot_feeders']['grouptitle'] = 'threadbot';
$setting['threadbot_feeders']['value'] = '18';
$setting['threadbot_feeders']['defaultvalue'] = '';
$setting['threadbot_feeders']['optioncode'] = '';
$setting['threadbot_feeders']['displayorder'] = '30';


?>
all of the phrases/text for those settings appear to be missing?
Reply With Quote
  #56  
Old 04-27-2005, 07:21 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry never seen that happen.
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 12:43 AM.


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.05948 seconds
  • Memory Usage 2,288KB
  • Queries Executed 20 (?)
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
  • (3)bbcode_php
  • (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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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