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

Reply
 
Thread Tools
vbHacker & vbHackMaker Details »»
vbHacker & vbHackMaker
Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-20-2002 Last Update: Never Installs: 121
 
No support by the author.

Version 1.0.1 released! [March 25th, 18:30]
New:
~ Backup files: Now the script will backup files before editing them. You can disable this, and also change the extension of the backup file. (note: the folder in which the files reside must be writable)
~ CHMOD: The script will try to CHMOD files instead of just dying. The parent folder must be writable if you want the script to CHMOD files in it.
~ Another small fix there's not much to say about.

Ok here's something I wrote yesterday, and today after testing it on serveral forums I can finally release it.

What is it?
vbHacker is a script that automatically installs hacks for you. It takes a xxxxx.hack.php file and comes up with the install script for it. This means you only need vbhacker.php to sit in your admin folder, and just upload data files every time you want to install a new hack.

How does one create hack files?
To make these xxxxx.hack.php data files, please read the post about vbHackMaker:
https://vborg.vbsupport.ru/showthrea...&postid=231705

The script does the following:
~ Hack files (only PHP have access to write that file)
~ Install new templates
~ Update existing templates
~ Run queries
If anything fails, the script skips it. Then you are taken to a page that lists all the changes the script couldn't do, with instructions how to do them yourself.

You also have the option to generate a plain text file with complete hacking instructions, in case you prefer that.
The installer also checks for your vBulletin version, warning you if the versions mismatch.

I took some screen shots earlier of the various steps.

Hack chooser - This is the part where you see a list of all hacks you have and you can choose which one, and whether to install it or create a text file:
http://www.vbulletin.org/vbhacker/1_chooser.gif
For the next screen shots I chose the Quick Reply Box hack.

Elements to install - There you can choose what parts of the hack you want to install. There are four main parts: File hacks, new templates, template edits and queries. This is good for upgrades if you only want to update the templates, and nothing else.
http://www.vbulletin.org/vbhacker/2_quick_elements.gif

Specific changes - A more specific step that allows you to select exactly what changes to what files/templates you want to make. Once again, this is helpful when upgrading.
http://www.vbulletin.org/vbhacker/3_quick_config.gif

Auto installer - The core of the script that actually installs the hack. This is how it looks like when it works fine:
http://www.vbulletin.org/vbhacker/4_quick_auto_ok.gif
And this is how it looks like when something went wrong (because I made it go wrong ):
http://www.vbulletin.org/vbhacker/5_quick_auto_bad.gif

Manual mode - An optional step that you will only use if the auto installer had some problems. It just lists the changes you need to do yourself:
http://www.vbulletin.org/vbhacker/6_quick_manual.gif

Text file - If you want to generate a text file with the full instructions to install the hack:
http://www.vbulletin.org/vbhacker/7_quick_text.gif

The style for my Admin CP was done by kier.

Well, hope you like what you see. I will start releasing my hacks with this installer soon, so you can see it in action. A script that creates these data files will probably come soon, so everyone will be able to use this for their own hacks.

Attached is the script, version 1.0.1.
Just upload it to your /admin folder, and you're done. Whenever you need to install a new hack just go to /admin/vbhacker.php in your browser.

Show Your Support

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

Comments
  #112  
Old 04-06-2002, 07:07 AM
GameCrash GameCrash is offline
 
Join Date: Oct 2001
Location: Germany (Bavaria)
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm... some weeks (or months?) before I offered to create such a tool... nobody wanted it...
Reply With Quote
  #113  
Old 04-06-2002, 07:19 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I don't need vbHacker, I just need the plaintext file it creates so I can install the hack.
Reply With Quote
  #114  
Old 04-06-2002, 06:43 PM
timecode timecode is offline
 
Join Date: Jan 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Requests

Definitely have a vbhacks folder to keep the hacks tidy.

In vbhackmaker, how about having a selection list of current xxxx.hack.php files like you do in vbhacker's 'choose a hack you wish to install' to select from (for editing) ?

Problems

'Proceed With Creating Hack'... I have no 'file edits' for example, only template edits. It seems to insist on me saying that there is at least one file edit before I can go any further.

The first 'template edit' gets '\'characters (escape) added which make vbhacker unable to find the string in the original. It also adds them again, making them worse each time the file is edited and run through vbhackmaker
e.g.
<a href=\\\"calendar.php?s=$session[sessionhash]\\\"><img src=\\\"https://vborg.vbsupport.ru/images/top_calendar.gif\\\" alt=\\\"Calendar\\\" border=\\\"0\\\"></a>

Also, I'm trying to replace the following from the header template but it says it can't ever find it. It IS there though. Is it parsing 'newline' and other similar characters correctly? I've re-typed the whole text in vbhackmaker, cut and pasted it as well from the original header, but no luck.

<!-- logo and buttons -->
<center>
<table border="0" width="\{tablewidth\}" cellpadding="0" cellspacing="0">
<tr>


Apart from these problems it's great. The ones I do have working run smooth as silk

I have no other hacks installed. I'm running on a clean install of 2.2.5 (tried it on a clean 2.2.2 as well though) and wanted to get vbhacker running before I start to use it live.

Any ideas as to why I'm having these specific problems?
Reply With Quote
  #115  
Old 04-07-2002, 11:11 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First problem of "must have a file edit" -- simple, a hack must consist of at least one file edit or it's not a hack (but a template modification).

The added slashes -- a problem with magic_quotes_gpc being on. I think I know how to fix this and I will as soon as I get some free time on my hands.
Reply With Quote
  #116  
Old 04-07-2002, 11:01 PM
ja5es ja5es is offline
 
Join Date: Nov 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhhh... This is nice. Thanks a lot FireFly!
Reply With Quote
  #117  
Old 04-08-2002, 03:06 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
First problem of "must have a file edit" -- simple, a hack must consist of at least one file edit or it's not a hack (but a template modification).

The added slashes -- a problem with magic_quotes_gpc being on. I think I know how to fix this and I will as soon as I get some free time on my hands.
Just FYI... I tried to package my hack using vbHackMaker and I also had the added slashes problem. The problem occurs with or without magic_quotes_gpc on. magic_quotes_runtime is set to off if that makes a difference.
Reply With Quote
  #118  
Old 04-09-2002, 02:51 PM
andrew67 andrew67 is offline
 
Join Date: Dec 2001
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This ermm script/hack??? ROCKS!!!! It makes installing hacks a breeze... FireFly does it again, what a champion... Three cheers for FireFly

Hip Hip
Hooray
Hip Hip
Hooray
Hip Hip
Hooray
Reply With Quote
  #119  
Old 04-09-2002, 04:08 PM
Alfo Alfo is offline
 
Join Date: Nov 2001
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Wolf42
I got to get access via AdminCP:

Add this code in admin/index.php
PHP Code:
// ***
makenavoption("Add Hack","vbhacker.php","<br>");
makenavoption("Make Hack","vbhackmaker.php");
makenavselect("FireFly's Hackinstaller","<hr>"); 
right after:
PHP Code:
if ($debug==1) {
    
makenavoption("Download Set","template.php?action=downloadset","<br>");
    
makenavoption("Upload Set","template.php?action=uploadset","<br>");
    
makenavoption("Do <img> Tags","template.php?action=imgtags");

What do you think?

Ups: Don't work! Just tryed on my boards.
But I don't know why. Any ideas?
Doesn't Fix what you have done but is a alternative:
In .admin/Index.php Look for:
Code:
<tr class="firstalt">
	<td>MySQL Language Lookup</td>
	<td><input type="text" name="search_query" size="30"> <span id="submitrow"><input type="submit" value="Find Now"></span></td>
</tr>
<tr class="secondalt">
	<td>Useful Links</td>
	<td><select onchange="jumpto(this.options[this.selectedIndex].value)">
		<option>&raquo; Useful Links &laquo;</option>
		<option value="http://www.vbulletin.org">vBulletin Org</option>
		<option value="http://www.vbulletin.com/">vBulletin Home Page</option>
		<option value="http://www.vbulletin.com/members/">vBulletin Members' Area</option>
		<option value="http://www.vbulletin.com/forum/">vBulletin Support Forums</option>
		<option value="http://www.vbulletin.com/manual/">vBulletin Online Manual</option>
		<option value="http://www.php.net/">PHP Home Page</option>
		<option value="http://www.php.net/manual/">PHP Online Manual</option>
		<option value="http://www.mysql.com/">MySQL Home Page</option>
		<option value="http://www.mysql.com/documentation/">MySQL Documentation</option>

	</select></td>
</tr>
And Just add :
Code:
		<option value="http://xxx.xxx.com/admin/vbhacker.php">VB HACKER</option>
		<option value="http://xxx.xxx.com/admin/vbhackermaker.php">VB HACKERMAKER</option>
It works.

Also Thanks to Firefly for a user friendly addition
Reply With Quote
  #120  
Old 04-10-2002, 09:03 PM
GOD-Dblade GOD-Dblade is offline
 
Join Date: Apr 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i cant get this hack to work with 2.2.5...there a reason for this? shows a error...

Warning: Variable passed to reset() is not an array or object in /home/virtual/site16/fst/var/www/html/forums/admin/vbhacker.php on line 278
Warning: The vBulletin version you are currently using (2.2.5) does not match the vBulletin version required by this hack ().
Reply With Quote
  #121  
Old 04-10-2002, 09:55 PM
Kengan's Avatar
Kengan Kengan is offline
 
Join Date: Nov 2001
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love it ! thanks !
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 02:54 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.05240 seconds
  • Memory Usage 2,329KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_php
  • (2)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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