Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
Clear Hack Instructions : Help & File Template...
Chris M's Avatar
Chris M
Join Date: Dec 2001
Posts: 6,186

Chris Murphy, BSc - Developing a couple of New Projects for release in 2010!

Northampton, England
Show Printable Version Email this Page Subscription
Chris M Chris M is offline 10-30-2002, 10:00 PM

Help Guide
==========

This help guide is designed to help you write a clear and easy to understand hack instruction file...

=-=
The variables I used in the file

You might be wondering what i meant by "#directory#" or "#query#"...

I have given you a template to make a clear and easy to follow hack...

Here is an explanation of what all the queries mean:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
(This starts from the top of the file downwards)

===

#warnings# - This is for giving any warnings to the installer - If your hack contains Database modifications, such as Queries, then you can put something like :

Quote:
You MUST BACKUP your Database AND your .php Files before installing this hack
===

#support information# - This is for notifying the user whether you want them to reply in the thread, email or PM you, or whether you do not wish to be contacted for support, not even via the thread

===

#directory# - This is what directory the file can be found...Some people just put down "global.php"...Unfortunately, people do not know whether you mean "admin/global.php", "mod/global.php" or the "global.php" file that can be found in your vBulletin root folder...

Therefore, the directories can be (as standard):

root (where newthread.php, showthread.php and usercp.php are found)
admin (the admin folder)
mod (the mod folder)

===

#filename# - Quite simply, what the name of the file is...Is it newthread.php, newreply.php, functions.php or whatever...

===

#code to find# - This is a fundamental thing of a vBulletin hack; There is always going to be something to find...That is why I have named the variable "#code to find#"

===

#instruction# - This is the instruction you are giving to the user; This tells them whether you are adding a piece of code above, below, or replacing a block/line of code...

The special thing about the "#instruction#" variable is that it is surrounded by:

Quote:
=====
=====
These help to make the instruction stand out from the code...

It is necessary to make sure the "=" reaches the ":" found at the end of each instruction line:

i.e.

Quote:
========
Add below:
========
===

#codeinstruction# - This is simply the code that corresponds to your instruction

===

#query# - This is where you enter what Query/Queries the user has to run

===

#templatename# - This is the name of the template, either one being added or one being modified - If an instruction is given before it, it is usually one to "edit" the template named

===

#templatecontents# - This is the contents of the new template to be created

===

#html/java to find# - This is what needs to be found in the template you are editing

===

#templateinstruction# - This is what code that the edited template is going to be replaced with / what code is being added

===

# hack credits # - This is the Credits you give to anyone, if any. If not applicable, just remove the "Credits -" section entirely

===

What else can be done to make it smart?

I find that leaving a line break between instructions and code always makes for an easier to follow regime...

That way you dont suddenly emerge from code with:

Quote:
========
Add below:
========

followed by more code...

===

Why did you make this tutorial?

I made this, so that people who are hacking have an easier life...

Alot of why hacks go wrong is because their instructions are not accurately written, or are too squashed up to be able to distinguish what is meant to be found/replaced or not...

If any of you have been downloading any of my Full Releases hacks recently, you will notice that I have used this style in all my instruction files...

I find it easy to use, easy to follow, and have not had any complaints (yet) about faulty or difficult to read instructions...

===

What else can you suggest?

Well...I have provided a kind of basis for an instruction file...Now I think one more thing is in order...

It is all very well having a nicely laid-out instruction file...

But if your instructions themselves are very cryptic, it does not fare good...

You must treat the potential hack users as if they know nothing at all about PHP, MySQL or Template editing/adding...

You must provide thorough and descriptive instructions on how to install your hack...

Most new hackers will find it easier to understand how vBulletin works if the instructions they have to follow are clear and presented nicely...

===

If you have any questions, please post them below

Satan
Attached Files
File Type: txt hacktemplate.txt (1.1 KB, 41 views)
Reply With Quote
Reply

Thread Tools

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:23 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.03508 seconds
  • Memory Usage 2,204KB
  • Queries Executed 15 (?)
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_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete