[FILLED] Some hacks

htm1967

New Member
those hacks i'm looking for


reCAPTCHA!vB - Stop spam. Read books.
reCAPTCHA!vB - Stop spam. Read books. - vBulletin.org Forum


Is Bot: Registration Time Check
Is Bot: Registration Time Check - vBulletin.org Forum

Online Gaming Recruitment Application System
Online Gaming Recruitment Application System - vBulletin.org Forum

Thread Description
Thread Description - vBulletin.org Forum

Advanced Last X Thread in Marquee,JavaScript with External Options 2.2
Advanced Last X Thread in Marquee,JavaScript with External Options 2.2 - vBulletin.org Forum

vB Database Backup Pro (Lite) for vb 3.6
vB Database Backup Pro (Lite) for vb 3.6 - vBulletin.org Forum
 
Installation:
  1. Download and unzip the recaptcha101.zip archive.
  2. Upload the functions_recaptcha.php to your /includes/ directory.
  3. Import the product-recaptcha.xml via the Product Manager.
  4. Obtain a FREE public and private reCAPTCHA key here.
  5. Make any desired configuration changes via AdminCP > vBulletin Options > reCAPTCHA Options
  6. Make a backup of your register.php file, located in your forum root.
  7. Perform ONE (1) of the following methods:
    • Method A:
      • Download the register-patch.zip archive, extract, then upload the register.patch file to your forum root, then apply the patch:

        *Note: Please note that this method requires a basic understanding of UNIX shell commands and requires shell access to your host. If you do not have either of these or you are unsure how to use GNU patch, I highly suggest performing Method B instead)

        Code:
        # patch -b register.php < register.patch

        This will perform the file edits automatically. Once finished, you may delete the register.patch file.
    • Method B:
      Perform the following simple file edits:
      • IN register.php:
        1. FIND:
          PHP:
          eval('$imagereg = "' . fetch_template('imagereg') . '";');

          REPLACE WITH:
          PHP:
          $imagereg = recaptcha_get_html($vbulletin->options['recaptcha_publickey'], $error);

        2. FIND AND REMOVE:
          PHP:
                          'imagestamp'          => TYPE_STR,
                          'imagehash'           => TYPE_STR,

        3. FIND:
          PHP:
                  // Check Reg Image
                  if ($vbulletin->options['regimagecheck'] AND $vbulletin->options['regimagetype'])
                  {
                          require_once(DIR . '/includes/functions_regimage.php');
                          if (!verify_regimage_hash($vbulletin->GPC['imagehash'], $vbulletin->GPC['imagestamp']))
                          {
                                  $userdata->error('register_imagecheck');
                          }
                  }

          REPLACE WITH:
          PHP:
                  // Check Reg Image
                  if ($vbulletin->options['regimagecheck'] AND $vbulletin->options['regimagetype'])
                  {
                          $resp = recaptcha_check_answer ($vbulletin->options['recaptcha_privatekey'],
                                                          $_SERVER["REMOTE_ADDR"],
                                                          $_POST["recaptcha_challenge_field"],
                                                          $_POST["recaptcha_response_field"]);
          
                          if (!$resp->is_valid)
                          {
                                  $userdata->error('register_imagecheck');
                          }
                  }
 
This is a modification originally developed for 3.6.x for websites wishing to use an application, although originally designed for world of warcraft it can be used for any game.

This Mod only officially works with 3.6... but since this is open code. anyone can take the code and make it work for 3.7 and re-publish it... with credits ofcourse.

I have had this modification for a long time and only today decided to release it to the public hoping somebody might want to carry on its developement because i just dont have time, so feel free to modify the code and re-release it under a different name but please give credit.

Install
  • Unzip "product-vgat" from the "OTD Application System" folder.
  • Navigate to "Plugins & Products" in your vbulletin control pannel and then "Manage Plugins"
  • Upload the "product-vgat" plugin

Your product is now installed and ready for configuration.

Main Configuration (refresh website after plugin installation first)
  • from your vbulletin admin panel go into your Vbulletin options and scroll down to "Guild Application Form Options"
  • configure "form url" and "forum location" to your own preference

Field checking has not really been fully tested or developed so you may encounter bugs while using "Non Empty Fields", "Numeric Fields", "Boolean Fields", The rest is fully tested and operational!!!!

How To Configuring Your Application Questions
The thing that makes my application system good is that its VERY easy to add and delete questions by yourself with minimal programming knowlege, mostly just copy and paste and change the question ;)
  • go into "Style & Templates" and then into "Style Manager" and "Edit" the template you will be using.
  • scroll down to "vgat_form" and double click
This is were you add, edit and delete all your questions which will be required when a visitor fills out their application, I will try my best to explain how to add the following questions: Radio Button, CheckBox, Single Line Text Box, Multiline Text Box, Drop-Down Menu

Radio Button Question Example
Code:
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
		<tr>
			
			
				<td class="alt1 wowsl" valign="center" width=50%>
				I Am a Human
				</td>
				<td class="alt1 wowsc" valign="center" width=50%>
				<center>
					<input type="radio" name="q_Human" value="No"  /> No 
					<input type="radio" name="q_Human" value="Yes"  /> Yes 
				</center>

				</td>
			
		</tr>
</table>

Question = "I Am a Human"
Question Name = q_Human You need to write down the "Question Name" for EVERY question you make because you will need it later when we design your output tmplate which gets posted on your forum
Input Type = radio Indicates that this question is a Radio Button

Check-Box Question Example
Code:
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
		<tr>
			
			
				<td class="alt1 wowsl" valign="center" width=50%>
				What is your favurite colours:
				</td>
				<td class="alt1 wowsc" valign="center" width=50%>
				<center>
					<input type="checkbox" name="q_colour_red" value="red"  /> red 
					<input type="checkbox" name="q_colour_green" value="green"  /> green
					<input type="checkbox" name="q_colour_blue" value="blue"  /> blue
					<input type="checkbox" name="q_volour_pink" value="pink"  /> pink
				</center>

				</td>
			
		</tr>
</table>

Drop-Down Menu Question Example
"q_ConnectionType" is your name in this instance, which you will need later
Code:
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
	
			<tr>
				<td class="alt1 wowsl" valign="center" width=50%>	
				What type of Internet Connection do you use:
				</td>
				<td class="alt1 wowsc" valign="center" width=50%>
				<center>
				<select name="q_ConnectionType">
				<option value="--" ></option>
				<option value="Dialup" >Dialup</option>
				<option value="ISDN" >ISDN</option>
				<option value="DSL" >DSL</option>
				<option value="Cable" >Cable</option>
				<option value="Faster than Cable" >Faster than Cable</option>
				</select>

				</center>
				</td>
			</tr>
</table>

Single Line Text Box Question Example
Code:
		<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
				<td class="alt1 wowsl" valign="center" width=50%>	
				What is your Character name?
				</td>

				<td class="alt1 wowsc" valign="center" width=50%>
				<center>
				<input type="text" size="25" value="" name="q_CharacterName" />
				</center>
				</td>
			</tr>
		</table>

Multi-Line Text Box Question Example
Code:
		<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
			<tr>
				<td class="alt2 wowpl" valign="center">	
				Please describe what you like about the game and your character.
				</td>
			</tr>
			<tr>

				<td class="alt1 wowsc" valign="center">
				<center>
				<textarea rows="5" cols="70" name="q_LikeAboutTheGame"></textarea>
				</center>
				</td>
			</tr>
		</table>


Now i will explain how to configure your output file which will be posted on the forums.
  • Go back in to your "Guild Application Form Options" panel
  • Scroll down to the "Thread Body" panel

Example Code
Code:
[ size=5][ color=#87F717][ b]Character Information[/b][/color][/size]


[b ][u ][ color=#B1FB17]Armory Link[/color][/u][/b] - {{q_ArmoryLink}}
[b ][u ][ color=#B1FB17]Recent WWS Report[/color][/u][/b] - {{q_WWS}}


[b ][ color=#CCFB5D]Character name:[/color][/b] {{q_CharacterName}}
[b ][ color=#CCFB5D]Character Class:[/color][/b] {{q_CharacterClass}}
[b ][ color=#CCFB5D]Character Level:[/color][/b] {{q_CharacterLevel}}

As you can see the Names of the questions i told you to write down are done like "{{q_CharacterName}}" between {{}}.

You can also have thread titles look like the following:
Code:
Application from {{q_CharacterName}} Class: {{q_CharacterClass}}


::Making the application system work with 3.7.x::
  • Access Admin Panel and navigate to your Style Manager and edit the style you use.
  • Scroll down to "vgat_form" and Access
Find Line:
Code:
<input type="hidden" value="1" name="agree" />

Below it Add:
Code:
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

SAVE....

Scroll down the list again and find "vgat_rules" and Access.

Find Line
Code:
<input type="hidden" name="s" value="$session[sessionhash]" />

Below it Add:
Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

SAVE....

Done

This Mod only officially works with 3.6... but since this is open code. anyone can take the code and make it work for 3.7 and re-publish it... with credits ofcourse.

Thats about it and im sure you can figure the rest out for yourselves.. i will try and help with any questions you may have.

Enjoy!!
 
Back
Top