View Full Version : vB Hangman for vB3
Erwin
04-02-2004, 10:00 PM
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!
https://vborg.vbsupport.ru/showpost.php?p=500843&postcount=48
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
https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: games_list_1.txt (https://vborg.vbsupport.ru/showpost.php?s=&postid=313909) (for games oriented sites)
This file courtesy of Ninth Dimension.
https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: movielist.txt (https://vborg.vbsupport.ru/showpost.php?s=&postid=388015) (for movies)
This file courtesy of Fi_InCogNiTo.
https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: artists.txt (https://vborg.vbsupport.ru/showpost.php?s=&postid=388290) (for artists and bands)
This file courtesy of trafix.
NEW WORD LISTS (courtesy of jilly)
https://vborg.vbsupport.ru/external/2009/01/38.gifmisc-words1.txt (https://vborg.vbsupport.ru/attachment.php?attachmentid=23307) (hard words)
https://vborg.vbsupport.ru/external/2009/01/38.giffood1.txt (https://vborg.vbsupport.ru/attachment.php?attachmentid=23308) (food words)
Screenshot
Hangman Game integrated into your forums
Attached Thumbnails
https://vborg.vbsupport.ru/attachment.php?attachmentid=8576&stc=1 (https://vborg.vbsupport.ru/attachment.php?attachmentid=8576)
Full instructions in the install.txt file in the ZIP below.
BarBeQue
04-03-2004, 11:14 AM
lmao
this sounds nice!
hangman hack....
too bad the screenshot is a small thumbnail, can't get a good look at it but the idea cracked me up
must install this!
kr?mel
04-03-2004, 11:28 AM
/me install this
genialer hack!
Vb-Hispano
04-03-2004, 11:43 AM
could I translate into Spanish?
thanks
BarBeQue
04-03-2004, 11:43 AM
Suggestion (or request, how you wanna interprete it ;):
Make a list of categories to the right where you can choose the category (wordlist) you wanna play.
blubber12
04-03-2004, 12:26 PM
Great hack...and I second barbeque's suggestion ;)
msimplay
04-03-2004, 01:10 PM
Suggestion (or request, how you wanna interprete it ;):
Make a list of categories to the right where you can choose the category (wordlist) you wanna play.
i second that and whose online locations :P
???`S?LV?R???`
04-03-2004, 01:37 PM
:) nice one to add to my games.. thanks erwin
Souli
04-03-2004, 02:12 PM
Nice Hack, but i miss a Higscore and a Store Addon
gmarik
04-03-2004, 02:48 PM
Could you make it work with Cyrillic letters as well?
djohn
04-03-2004, 03:09 PM
I guess, i have the same problem as gmarik, any way to get this awesome hack to work with cyrillic letters?
Erwin
04-03-2004, 07:23 PM
I guess, i have the same problem as gmarik, any way to get this awesome hack to work with cyrillic letters?
You can add more characters to be allowed in the hangman.php file. :) Go and take a look - you'll work out where to add them.
neocorteqz
04-03-2004, 08:52 PM
Nice. This should add nicely to the V3Arcade. :)
Added it to the Navbar and quick links section pretty easy.
Boofo
04-03-2004, 08:52 PM
Been waiting for this and since my buddy Dewayne ported it, I have no doubt it is great. ;) Clicks install.
Boofo
04-03-2004, 09:00 PM
Erwin. is there a way to add another settinmg in the Admin CP for the category you use for words? Like Movies or Games or something like that and have it show up in the title or something so users know what kind of words they are supposed to be guessing?
neocorteqz
04-03-2004, 09:19 PM
Erwin. is there a way to add another settinmg in the Admin CP for the category you use for words? Like Movies or Games or something like that and have it show up in the title or something so users know what kind of words they are supposed to be guessing?
that would be cool, along with a selectable list to choose from as suggested above. so that you can choose. :)
Cyricx
04-03-2004, 11:05 PM
Heck ya, if they could be divided into categories would be the clencher for me :)
I love the idea and looks awesome, but definately would like a category addition. :)
deathemperor
04-04-2004, 01:03 AM
OMG
I finally have this, vb3 has hangman at last ! ^^
bierhumpen
04-04-2004, 07:10 PM
installed!!!
cool hack THX
blubber12
04-05-2004, 12:07 AM
Love the hack as do my members...One little glitch though. Words and phrases shouldn't have apostrophe's or other punctuation, correct? I'm using one of the word lists and a few include apostrophe's, and my members are getting hung up..No pun intended LOL...Can I just remove the apostrophe's or am I missing something.
Thanks
Fi_InCogNiTo
04-05-2004, 01:57 AM
Hey my movie list! Wow, that was a long time ago =D
* Fi_InCogNiTo clicks install
Nice port :)
Red Blaze
04-05-2004, 02:58 AM
file is corrupt. :S Maybe it's my PC. -_-
Red Blaze
04-05-2004, 03:52 AM
Is there a way where there is a winner, they can win points depending how many turns they use.
Example:
No Guesses missed = 200 rings (or points)
1 miss = 150
2 misses = 100
3 misses = 75
4 misses =50
5 misses = 25
Game Over = 0
Can it be done?
EDIT: Oops, the file became better, just refreshed and deleted cookies. Sorry for the double post, ignore the other one.
Alien
04-05-2004, 06:01 AM
Wow!
Thankyouthankyouthankyouthankyou!
:banana:
GenSec
04-07-2004, 09:45 AM
I guess, i have the same problem as gmarik, any way to get this awesome hack to work with cyrillic letters?
Just find in hangman.php
$nwrong=$wrong;
Add above
$Ralpha = "@?????Ũ??????????????????????????";
$links .= "<BR><BR>";
for ($c=0; $c<33; $c++)
{
if (strstr($letters, $Ralpha[$c]))
{
if (strstr($words[$n], $Ralpha[$c])) {$links .= "\n<B>$Ralpha[$c]</B> "; }
else { $links .= "\n<FONT color=\"red\">$Ralpha[$c] </font>"; $wrong++; }
}
else
{ $links .= "\n<A HREF=\"$PHP_SELF?letters=$Ralpha[$c]$letters&n=$n\">$Ralpha[$c]</A> "; }
}
$Ralfa="cyrillic letters"
Zelda-King
04-11-2004, 10:28 PM
This hack seriously could use online locations adding. If someone's playing Hangman someone else can look in Who's Online, click on the location link and learn words that way.
Zelda-King
04-12-2004, 11:41 AM
I decided to post the fix myself for any lazy or non-coder admins out there;
1) Open includes/functions_online.php
2) Find case 'modcplogin':
$userinfo['action'] = $vbphrase['moderator_control_panel_login'];
break;
3) Underneath add case 'hangman':
$userinfo['where'] = "<a href=\"hangman.php?$session[sessionurl]\">Playing Hangman</a>";
break;
4) Find case '/robots.txt':
$userinfo['activity'] = 'spider';
break;
5) Underneath add case 'hangman.php':
$userinfo['activity'] = 'hangman';
break;
6) Save and upload includes/functions_online.php
Done!
BarBeQue
04-13-2004, 11:08 AM
tnx for the fix!
btw
Anybody who has a few new and upto date wordlists (like for movie, one that has a also has movie's that as less then 3 year old)
deathemperor
04-14-2004, 03:24 AM
there's store hack released, could someone make this when users win they gain store points and opposite.
vb2 had this so plz make this someone
msimplay
04-14-2004, 03:25 PM
there's store hack released, could someone make this when users win they gain store points and opposite.
vb2 had this so plz make this someone
i second that notion
AutomatikStudio
04-15-2004, 12:40 AM
there's store hack released, could someone make this when users win they gain store points and opposite.
vb2 had this so plz make this someoneI will hopefully release this tonight.
AutomatikStudio
04-15-2004, 01:08 AM
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
$play .= "The $term was \"<B>$word</B>\"<BR><BR>\n<A HREF=$PHP_SELF?n=$n>Play again.</A>\n\n";
ADD BELOW
$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
$win .= "<BR><BR><H1><font size=5>\n$word_line</font></H1>\n<P><BR><BR><B>Congratulations $bbuserinfo[username]!!! You have won!!!</B><BR><BR><BR>\n<A HREF=$PHP_SELF?n=$n>Play again</A>\n\n";
ADD BELOW
$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.
Zelda-King
04-15-2004, 02:55 AM
Hmm, did you take into account them having enough money to play? We wouldn't want people going into the minus range.
AutomatikStudio
04-15-2004, 03:39 AM
Hmm, did you take into account them having enough money to play? We wouldn't want people going into the minus range.Thanks for bringing that to my attention. The code has been updated to only subtract if the users points are greater than the amount to subtract.
Catch-22|BL
04-15-2004, 04:10 AM
Nice and simple! Easy install and very straightforward! :)
Zelda-King
04-15-2004, 12:54 PM
Someone on my board reported something disturbing.
With the way it is right now, it's possible to cheat in Hangman by simply backing up in the browser window to take back an incorrect move.I've tested this. You can guarantee victory with this glitch.
deathemperor
04-20-2004, 04:42 AM
like the vb2 version, back to cheat
but like Erwin said this hack was not supposed to take your board's performance.
but I anyway have to disable that ^^
can you AutomatikStudio ?
Zelda-King
04-20-2004, 09:50 AM
Well I want to use the uStore integration posted here but I can't right now because anyone in the know could just cash in... but I'm aware this wasn't on Erwin's mind when he wrote this so I'm not fussing.
jancarlo
04-20-2004, 12:07 PM
to me it gives these errors:
Warning: rand(): Invalid range: 1..0 in /home/httpd/vhosts/forum.com/httpdocs/hangman.php on line 42
Warning: rand(): Invalid range: 1..0 in /home/httpd/vhosts/forum.com/httpdocs/hangman.php on line 91
how I can resolve?
thanks
jancarlo
Holidazed
05-07-2004, 07:11 PM
Erwin, there is now file attachment for this hack. Can you repost it please? I see the games_list_1.txt, movielist.txt & artists.txt files, but not hack attachment.
Alien
05-13-2004, 04:30 PM
Yep, vanished into thin air... Hmm...
Erwin
05-13-2004, 08:16 PM
Yep, vanished into thin air... Hmm...
Weird.
I added it back to the 1st (well, 3rd) post. :)
Holidazed
05-13-2004, 08:21 PM
Does anybody have the zip file for this hack?
msimplay
05-13-2004, 11:52 PM
is there anyway to make this hack accept apostrophe's ?
deathemperor
05-14-2004, 02:43 AM
Erwin can you make this use session therefor users cannot cheat by pressing back button ?
I need hangman to give users money when playing it so cheating should be disable.
Holidazed
05-17-2004, 02:13 PM
It seems Erwin is not supporting this hack anymore. The zip attachment is gone and nobody replies to the post.
This sucks.
Erwin
05-18-2004, 09:27 AM
It seems Erwin is not supporting this hack anymore. The zip attachment is gone and nobody replies to the post.
This sucks.
The ZIP is in the 2nd post.
Holidazed
05-18-2004, 02:18 PM
thank you
Erwin, any chance of adding this is hack multiple categories?
This way we can have several word lists and either pull randomly (having it display the category) or allow the category to be user selectable.
nnjj.net
05-21-2004, 10:41 AM
is this working with vBulletin Version 3.0.1?
thanks
Holidazed
05-22-2004, 05:09 PM
it works with 3.01 for me. However, it is not a big enuf game for me to want to run. I need multiple lists and categories. Maybe more like a Wheel of Fortune game.
nnjj.net
05-25-2004, 09:51 AM
thanks
Cyricx
06-05-2004, 10:52 AM
Only two things holding me from tossin this on my site is the categories and the bug that lets them cheat :(
Awesome hack though Erwin, just hope you or another has times to add these two requests :)
Blam Forumz
08-15-2004, 08:51 PM
/me installs
xD
BarBeQue my avatar owns yours heehe
Blam Forumz
08-19-2004, 11:44 AM
Back button fix :
This will stop you from going back and re-guessing the right letters:
Go into your hangman template
Find :
$headinclude
Add after :
<script>
history.forward();
</script>
Teh Blam
if u type into the web addy:ABCDEFGHIJKLMNOPQRSTUVWXYZ on the bit where it says letters= then u can get it in 1 guess each time
e.g.
http://www.spiritual-connections.com/forums/hangman.php?letters=ABCDEFGHIJKLMNOPQRSTUVWXYZ&n=98
[/quote]
Zelda-King
08-21-2004, 09:55 PM
Back button fix :
This will stop you from going back and re-guessing the right letters:
Go into your hangman template
Find :
$headinclude
Add after :
<script>
history.forward();
</script>
Teh Blam
Thanks for sharing the fix! I guess it's OK to stick the Ushop integration back on my forums now.
another bug: where it says the letters you have used in address bar, if you delete the letter thats wrong, it will take you back a step and you wont lose a step.
y2krazy
08-29-2004, 11:10 PM
/me clicks install!
deathemperor
09-23-2004, 10:07 AM
Back button fix :
This will stop you from going back and re-guessing the right letters:
Go into your hangman template
Find :
$headinclude
Add after :
<script>
history.forward();
</script>
Teh Blam
what does the function history.forward() do ?
does any one success make it so that it let users earn money if win and lose money if lose ?
Thanks Erwin! :)
*Clicks Install
Blam Forumz
10-18-2004, 06:45 PM
Anyway I can make it so supermoderators can edit hangman words?
neocorteqz
10-19-2004, 05:01 AM
Anyway I can make it so supermoderators can edit hangman words? they would have to have access to the vBull settings, afaik, there is no way to restrict anyone to just one setting on that page, not without another hack maybe.
The Equivocate
10-20-2004, 10:15 PM
Aside from the obvious cheating methods, this is a great hack. Maybe there is a way to prevent people from cheating (editing the letters in the URL), but I'll still use it.
James T Brock
10-21-2004, 12:54 AM
Great as it is, but if they could somehow eliminate the letters in the URL cheating method, it would be even better.
Hoffi
10-25-2004, 10:02 AM
Is there a Shop integration that depends on the Number of wrong coices? So if they get the right word without mistakes they won 10 and for every wrong choice there is one Point substracted? That were great.
HiDeo
10-25-2004, 10:32 AM
Nice job !
Thanks Erwin
Blam Forumz
10-25-2004, 10:33 AM
It is in this thread, search
Hoffi
10-25-2004, 09:22 PM
It is in this thread, search
IF you ment me and this Post (https://vborg.vbsupport.ru/showpost.php?p=500843&postcount=32) it is not what I am looking for. There are 10 Points given for the right Word. But I want to give my Users 10 minus wrong Tips Points.
peterska2
11-10-2004, 12:07 PM
Nice one. Thanks :)
*peterska2 clicks install
yesfans
11-30-2004, 08:58 PM
Stupid question but HOW....
1) Upload hangman_installer.php to your admincp directory & run the installer.
I installed this from the download.
yesfans
11-30-2004, 09:02 PM
I go to it on my site and I get a HANG thing and it says I won but I can not play again. I do not see any settings in my admin panel.
yoyoyoyo
01-15-2005, 08:39 PM
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.
how many points do they win or lose? how is this determinded?
Erwin
01-16-2005, 01:48 AM
I go to it on my site and I get a HANG thing and it says I won but I can not play again. I do not see any settings in my admin panel.
Under Admin CP, vB Options.
lanc3lot
01-18-2005, 01:22 AM
Hello, is this working for 3.0.5?
jilly
01-23-2005, 04:53 PM
formatted and spell checked (lol)
misc1 words - contains some pretty hard words, on all different topics
food1 words - easy list, general food items like fruits and vegetables and other things you can eat.
Erwin
01-23-2005, 08:49 PM
formatted and spell checked (lol)
misc1 words - contains some pretty hard words, on all different topics
food1 words - easy list, general food items like fruits and vegetables and other things you can eat.
Thanks - I'll add them to the 1st post. :)
peterska2
01-23-2005, 09:22 PM
Sweet. Thanks Jilly for the new word lists. My members are going to love them
Allan
02-22-2005, 10:19 PM
Thanks Erwin ;)
it goes very well under vBulletin 3.0.6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~
Click Install
~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
computer1
02-24-2005, 05:20 AM
I get this error howe can I fix that ?
http://forum.tanakawebb.com/hangman.php?n=0
Erwin
02-24-2005, 07:53 PM
I get this error howe can I fix that ?
http://forum.tanakawebb.com/hangman.php?n=0
It's password protected.
computer1
02-25-2005, 03:44 AM
And howe can I change this ??
my board is vb 3.0.7
jeepinator
02-25-2005, 11:48 PM
I liked this add-on, but nobody ever used it so I'd like to uninstall it.
Any advice?
I can't seem to get rid of the entry in vBulletin Options. And were there any changes to the db during the install?
Thanks!
Erwin
03-03-2005, 09:54 PM
I liked this add-on, but nobody ever used it so I'd like to uninstall it.
Any advice?
I can't seem to get rid of the entry in vBulletin Options. And were there any changes to the db during the install?
Thanks!
Run vb in debug mode and you can add or delete them with ease.
jeepinator
03-04-2005, 03:03 AM
Was that an answer to both questions?
jeepinator
03-04-2005, 03:04 AM
I'll ask only one (1) question per post from now on. And be more clear?
EvilLS1
03-04-2005, 03:41 AM
Was that an answer to both questions?
The only DB changes it adds are the settings in the admincp. You can easily remove them by enabling debug mode like Erwin said.
Open your includes/config.php file and find this:
$cookieprefix = 'bb';
Below it add:
$debug='1';
Login to your admincp and it will now give you the option to remove the hangman settings.
Once you've removed the settings turn debug mode off (remove $debug='1'; from your config.php file).
tanyeri24
03-04-2005, 10:02 AM
1) Upload hangman_installer.php to your admincp directory & run the installer.
the file is in /admincp/
I ran it and give error message back like this:
Datenbankfehler in vBulletin 3.0.6:
Ungueltige SQL-Abfrage: INSERT INTO settinggroup (grouptitle,displayorder,volatile) VALUES ('vb3hangman','700','0')
mysql error: Duplicate entry 'vb3hangman' for key 1
mysql error number: 1062
jeepinator
03-05-2005, 01:34 AM
EvilLS1, thank you!
I did not know how to enable debug mode.
The hangman entry int he options drop down menu is now gone. w00t
Erwin
03-06-2005, 08:57 PM
1) Upload hangman_installer.php to your admincp directory & run the installer.
the file is in /admincp/
I ran it and give error message back like this:
Datenbankfehler in vBulletin 3.0.6:
Ungueltige SQL-Abfrage: INSERT INTO settinggroup (grouptitle,displayorder,volatile) VALUES ('vb3hangman','700','0')
mysql error: Duplicate entry 'vb3hangman' for key 1
mysql error number: 1062
You've installed the hack before?
jilly
03-11-2005, 03:17 PM
Suggestion - it would be cool if hangman could have a stats page, sort of like the shoutbox, showing a leaderboard, latest players, etc..
Pamela
03-18-2005, 01:01 AM
*clicks install* Thank you! :)
Quick question though...
I made the changes to the hangman.php file for the Store Hack integration part but it's not working. It's not adding or taking away any points whatsoever.
Was I supposed to do something aside from just the hangman.php edits??? :confused:
Thank you! :)
bluesteel
03-24-2005, 11:46 AM
@ Pamela
I am using vBookie on my site, and instead of using the 'uttstorepoints' field in the 'user' table, I am using 'money'. If your using something other than 'uttstorepoints', make sure you edit the 2 lines that contain 'uttstorepoints' to whatever you are using.
If you know what I mean! :ermm:
TwinsForMe
04-10-2005, 03:36 AM
I can't get the images to show.
Pamela
04-10-2005, 04:19 AM
@ Pamela
I am using vBookie on my site, and instead of using the 'uttstorepoints' field in the 'user' table, I am using 'money'. If your using something other than 'uttstorepoints', make sure you edit the 2 lines that contain 'uttstorepoints' to whatever you are using.
If you know what I mean! :ermm:
Ooppss..sorry I didn't see this until now! Nope, I'm using "uttstorepoints" and nothing else.
Thank you though for responding! :)
boeserwolf
04-15-2005, 12:37 PM
Hi
Just one little question
Does this hack work with vBulletin 3.07 too, as it was distributed for 3.0.0
yours
Markus
boeserwolf
04-19-2005, 12:49 PM
Here is the german translation of the hack:
yours
Markus
Pamela
06-25-2005, 08:09 PM
*clicks install* Thank you! :)
Quick question though...
I made the changes to the hangman.php file for the Store Hack integration part but it's not working. It's not adding or taking away any points (uttstorepoints) whatsoever.
Was I supposed to do something aside from just the hangman.php edits??? :confused:
Thank you! :)
Can anyone please help me? I still have this problem!
Thank you! :)
Alien
09-16-2005, 10:34 PM
Going to be updating this for vB 3.5 at all? :)
Alien
09-25-2005, 12:17 AM
Going to be updating this for vB 3.5 at all? :)
Pretty please, Erwin? :D
Rhoads
09-25-2005, 10:35 AM
Thnx, working on vB 3.0.9 :cool:
lewisbee
09-25-2005, 01:36 PM
yep, same here!
Alien
10-24-2005, 06:30 PM
Any news on updating this for 3.5? :)
I think it really just needs a FEW lines (literally) of different code. I looked it over and most code inside of the installer and the actual hangman file can remain as is.. Just needs some permission work done or something.. Anyone? :)
Mastar
11-20-2005, 02:14 PM
I've upgraded from 3.09 to 3.51 and I would like to know how to remove this hack from the vbulletin options?
deathemperor
03-19-2006, 04:54 AM
The 3.5 version of this hack is released here:
https://vborg.vbsupport.ru/showthread.php?p=928914#post928914
Cheers
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.