Back to vBulletin 3.0 Add-Ons

vB Hangman for vB3
Mod Version: 1.00, by Erwin

This modification is in the archives.
vB Version: 3.0.0 Rating: (1 vote - 4.00 average) Installs: 56
Released: 03 Apr 2004 Last Update: Never Downloads: 65
Not Supported  

vB Hangman for vB3

Original version for vBulletin 2.x.x by Erwin (Dr. Erwin Loh)
vBulletin 3.x.x version ported by EvilLS1
Please do not distribute without the permission of the authors.

Features

1) Allow/ Disallow guest access to Hangman in Admin CP
2) Set number of attempts in Admin CP
3) Add words in Admin CP
4) Use words of any length
5) Use as many words as you want
6) Put in a SENTENCE, or MULTIPLE WORDS
7) Ability to use NUMBERS and CHARACTERS like ! or ?
8) Totally integrated into your forums, with your forum colors and layout
9) Easy installation file that you run to automatically add database settings
10) vB3 version ported by EvilLS1
11) Who's Online fix added by Zelda-King

12) Store Hack integration by AutomatikStudio here!

Spoiler (click to open)


Alright. Here's a quick little hack for people with the store hack. It adds or subtracts points from the user depending on whether they win or lose.

All of these edits occur in hangman.php

FIND
PHP Code:
$play .= "The $term was \"<B>$word</B>\"<BR><BR>\n<A HREF=$PHP_SELF?n=$n>Play again.</A>\n\n"
ADD BELOW
PHP Code:
 $losspoints=2//Number of points subtracted for losing
  
if ($bbuserinfo['uttpoints'] > $losspoints){ //only subtract if the users points are greater than the amount to subtract
  
$userid=$bbuserinfo['userid'];
  
mysql_query("UPDATE user SET uttpoints=uttpoints-'$losspoints' WHERE userid='$userid'");
  } 
FIND
PHP Code:
$win .= "<BR><BR><H1><font size=5>\n$word_line</font></H1>\n<P><BR><BR><B>Congratulations $bbuserinfo[username]!!! &nbsp;You have won!!!</B><BR><BR><BR>\n<A HREF=$PHP_SELF?n=$n>Play again</A>\n\n"
ADD BELOW
PHP Code:
    $winpoints=10//Number of points added for winning
       
$userid=$bbuserinfo['userid'];
       
mysql_query("UPDATE user SET uttpoints=uttpoints+'$winpoints' WHERE userid='$userid'"); 
Took like 5 seconds to do. If you want other little features to integrate this with the store just let me know and I'll see what I can do.

Close


Instructions

1) Upload hangman_installer.php to your admincp directory & run the installer.

2) Upload hangman.php to your forum directory.

3) Make a hangman subdirectory in your images directory. Upload the image files to the images/hangman subdirectory.

4) In your admincp under "Languages & Phrases" click "Phrase Manager",
then click "Add new Phrase".

5) Create a new template named "hangman".

6) Login to your admincp. Under the Options section click vBulletin Options and select vB Hangman from the list. Here you can set whether you want guests to have access to Hangman, how many attempts to allow (default is 6, any higher and you will need to add your own custom hangman images), and then add your words or phrases separated by a comma.For example...

hello,yahoo!,3 blind mice,12 apostles,vbulletin,good morning,good afternoon,this is cool


7) Go to yoursite.com/forums/hangman.php and play.

Done!

Many thanks to EvilLS1 for porting this hack to vB3. Thank you to all the hackers who are helping to build this community up, and who respect other hackers. You are all the reason why we help each other.

Attachments

Text files of formatted Word Lists for vB Hangman

Attachment: http://www.vbulletin.org/forum/showpost.php?s=&postid=313909 (for games oriented sites)
This file courtesy of Ninth Dimension.

Attachment: http://www.vbulletin.org/forum/showpost.php?s=&postid=388015 (for movies)
This file courtesy of Fi_InCogNiTo.

Attachment: http://www.vbulletin.org/forum/showpost.php?s=&postid=388290 (for artists and bands)
This file courtesy of trafix.

NEW WORD LISTS (courtesy of jilly)

(hard words)
(food words)

Screenshot

Hangman Game integrated into your forums
Attached Thumbnails



Full instructions in the install.txt file in the ZIP below.

Download

This modification is archived and cannot be downloaded.

Similar Mods

VB Hangman for VB3.5 vBulletin 3.5 Add-ons
vB Hangman 1.2 vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024