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
  #122  
Old 04-10-2002, 10:15 PM
Alfo Alfo is offline
 
Join Date: Nov 2001
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by GOD-Dblade
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 ().
I think the hack has to be written for your current version, could you add more information like what hack you were trying to install?
Reply With Quote
  #123  
Old 04-11-2002, 09:56 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am impressed! This is a very nice add-on and should be default in vbulletin releases in the future..

I am surprised nobody has commented about the most important benefit of using this system: It makes upgrading the vbulletin very easy! It's now a pain to read an anouncement that vbulletin has a new version especially if your board was heavily hacked. But if all hack writers comply with this standart, there will be no concern in upgrading your board anymore.

I'll try my best to publish my upcoming hacks with vbhacker maker.

Congratulations!

Regards,
Logician

Ps. After getting used to it, I may post a few tips or suggestions for the next releases.
Reply With Quote
  #124  
Old 04-18-2002, 01:22 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firefly, can you please check what am I missing here:

I'm trying to replace template "email_pmboxfull" for a hack I'm trying to convert into vbhackmaker.

Template has this data:
-- cut --
$touserinfo[username],

$bbuserinfo[username] has just tried to send you a private message. However, your private messages box on $bbtitle has reached the specified quota. In order to receive further private messages, you must delete some messages. Please visit this page to do so:
$bburl/private.php

Thanks,
$bbtitle team
---cut --

I copied&pasted this data from the original template to vbhackermaker 3 times, trying to be careful about trailing space or smt.

However I cant make vbhacker replace the data with the new code. I receive "The code needed in the "email_pmboxfull" template in the "Default" template set was not found." (and I'm trying to replace "default template" while applying the hack). Am I missing smt. or might there be a tiny bug here?

Regards,
Logician
Reply With Quote
  #125  
Old 04-18-2002, 04:21 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jawelin
If I used a custom directory below the admin folder, do you think it should be enough simply to add a '../' just before any file path reference within vbhacker.php ?
Of course, that dir itself should be moded to 777, shouldn it ?

Thank you very much.
:nervous: I'm here again... just to make some kind of order in my /admin/ directory.... I'd prefer an /admin/vbhacker/ very much.
Should it be hard ?

Thnx
Reply With Quote
  #126  
Old 04-24-2002, 03:39 AM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love vbhacker and wanted to contribute. I was playing around with vbHackMaker today and tried adding 2 things to it.

when editing a hack you have to type in the name of the file. I grabbed some code from vbhacker and now it lists all available hacks instead. that way you can just pick it from the list.

after you make a hack you have to manually save the text to a .hack.php file. now you can just submit the last form and it creates the file for you in your admin dir. there is no error checking involved when writing the file. someone might want to put in some checks. (grabbed code for vbhacker to do this as well.)

of course, I've included a vbhacker file
Reply With Quote
  #127  
Old 04-27-2002, 02:55 AM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone think they can help me?

I have installed vbHacker and wish to install the Users browsing this thread hack. I have copyed vbHacker to my /forims/admin/ directory and set the entire /forums/ direcotry (and all sub-folders) to chmod 777.

When I went to run vbHacker, i selected the Users browsing this thread hack and hit "install" I then told it to do everything, in the next screen, im told it cant edit the files and It needs chmod 0777 or something. Any ideas what I have done wrong?

Oh, and last thing, is it save to keep chmod set to 777? I mean, some idiot user cant come around and do something with this new chmod?

Thanks,

Alan
Reply With Quote
  #128  
Old 04-27-2002, 02:49 PM
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Oct 2001
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

finally installed this and using on 2.2.5 with Portal, works great. You truly ARE the PRESIDENT!
Reply With Quote
  #129  
Old 04-30-2002, 10:58 AM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DWZ
Someone think they can help me?

I have installed vbHacker and wish to install the Users browsing this thread hack. I have copyed vbHacker to my /forims/admin/ directory and set the entire /forums/ direcotry (and all sub-folders) to chmod 777.

When I went to run vbHacker, i selected the Users browsing this thread hack and hit "install" I then told it to do everything, in the next screen, im told it cant edit the files and It needs chmod 0777 or something. Any ideas what I have done wrong?

Oh, and last thing, is it save to keep chmod set to 777? I mean, some idiot user cant come around and do something with this new chmod?

Thanks,

Alan
*bump*
Reply With Quote
  #130  
Old 04-30-2002, 03:43 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amazing, the brilliance of this thing....

:up:

Well done, FireFly
Reply With Quote
  #131  
Old 05-02-2002, 03:20 AM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DWZ
*bump*
aww...

come on, please, anyone?
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 09:38 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.08138 seconds
  • Memory Usage 2,321KB
  • 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
  • (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
  • (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