PDA

View Full Version : vB Hangman 1.2


Erwin
10-23-2002, 10:00 PM
vB Hangman 1.2
---------------------

The classic word game is now integrated into your forums. :)

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) Store hack version of the hangman.php courtesy of Zajako

Installation :
---------------

Simple.

1) Upload vbhangman_install.php to your admin directory, and run it, and then follow the instructions (you can run it again to uninstall this hack). This will add settings to your database automatically. Delete this file after you have done this.

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) Make a new template "hangman" and add the contents of the hangman.txt file into this.

5) Go to your Admin CP, then to the vBulletin Options section, and set whether you want guests to have access to Hangman, how many attempts you allow (default is 6, any higher and you will need to add your own custom hangman images), and then add your words. Separate each word or words or each sentence with a comma. For example...

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

(numbers and special characters are fine!)

Then, just go to http://www.yourforums.com/forums/hangman.php to play Hangman!

Enjoy! ;)


Working Demo (courtesy of hellsatan)
--------------------------------------------------

http://www.darkblazes.com/forums/hangman.php


If you like this hack and want updates, please click on the INSTALL link at the bottom of this thread. :)

Updates
-----------

1.1 - Fixed a bug that prevented you from using more images.
1.2 - Fixed bug that prevented words from being chosen randomly.

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/attachment.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/attachment.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/attachment.php?s=&postid=388290) (for artists and bands)
This file courtesy of trafix.

Lesane Store Hack Integration - you need Store Hack installed!

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: hangman.php (https://vborg.vbsupport.ru/attachment.php?s=&postid=320573) (replace the original hangman.php with this one)
This file courtesy of zajako. Bug fixed by lalo landa.

Original vB Hangman (hangman.php, images and installer)

Erwin
10-24-2002, 03:14 PM
Screenshot :
---------------

Admin CP Settings (updated)

Erwin
10-24-2002, 03:14 PM
Screenshot :
---------------

Hangman Game integrated into your forums

Erwin
10-24-2002, 03:24 PM
By the way, I am not going to release a Store Hack version. :) I don't use the Store Hack, and don't know anything about it. If someone else wants to do it, fine, but do NOT post a Store Hack version of this hack in another thread - post it in this thread please. Thanks.

Chris M
10-24-2002, 03:24 PM
Wow Cool:)

*installs*

Satan

Chris M
10-24-2002, 03:32 PM
Check it out -->

http://www.darkblazes.com/forums/hangman.php

Satan

Erwin
10-24-2002, 03:34 PM
Chris, you need to allow guests to play in your Admin CP for us to check out your Hangman. :)

Chris M
10-24-2002, 03:37 PM
Ah;)

My bad - *Changes permissions*

Now try!:)

Satan

Buddha
10-24-2002, 03:48 PM
very cool.
probably install later and play around with it.

Erwin
10-24-2002, 03:53 PM
Chris, I've put your link into my first post as a "working demo". Hope you don't mind. :)

Chris M
10-24-2002, 03:59 PM
Not at all;)

I was thinking of something that would be really cool, if you plan on a Version 2.0...

A "User Submit & Moderation" bit to the hangman file...

So that users can submit words, therefore meaning that people like myself dont always get 100% correct because I knew what words I put it:D

Satan

zajako
10-24-2002, 04:00 PM
Erwin this rocks very smoothe of you.

:]

Erwin
10-24-2002, 04:03 PM
Originally posted by hellsatan
So that users can submit words, therefore meaning that people like myself dont always get 100% correct because I knew what words I put it:D

Thanks! :)

The problem with that idea is that if you allow users to submit words, you must moderate all the words (otherwise some rude or nonsensical words may be submitted) - either way you will see all the words used. Mind you, if you have enough words for Hangman, you will still have trouble remembering which 5-letter word you have entered. :)

Buddha
10-24-2002, 04:20 PM
installed it and it works beautifully... of course.
cool work doc.

zajako
10-24-2002, 04:32 PM
Lesane store version of hack

it pays 100 points to winner or takes 50 if they lose.

just use the included hangman.php instead :]

[updated this version to 1.2 with random bug fix. :) ]

Buddha
10-24-2002, 04:40 PM
a suggestion would be to include a field for "theme" and display that on the hangman page. i did it through replacements... as i'm practically useless when it comes to php.

:)

Ninth Dimension
10-24-2002, 05:25 PM
Cool hack, I've just installed it and messed about with the templates to make it part of the arcade.

http://savepoint.co.uk/arcade.php
&
http://savepoint.co.uk/hangman.php

Ninth Dimension
10-24-2002, 05:34 PM
some suggestions for you, if you want to make them that is :)

1, Although a lot more hard work, maybe you can allow words with descriptions and spaces, numbers, etc...

2, although cheating (by pressing the back button) is not really a major problem (after all, the only person they are cheating is themselves), maybe this can be prevented?

3, something that I would like to see is some type of intregration with the arcade so users can play and will get a score based on the number of correct words guessed (but maybe this could wait for a more advanced verson of the script)

if I think of anymore, i'll let you know :)

Chris M
10-24-2002, 05:34 PM
Cool:)

@Erwin - Yeh...Thats my hope;)

If enough are submitted, it is purely guesswork then:)

Satan

xware
10-24-2002, 05:39 PM
nice hack! Installed.
but if a user press the back button he could paly again and guess all words.:)

Ninth Dimension
10-24-2002, 05:40 PM
Originally posted by xware
nice hack!
but if a user press the back button he could paly again and guess all words.:) this is true, but the only person being cheated by this is the cheater :)

Chris M
10-24-2002, 06:20 PM
What about with the store eh?

Satan

xware
10-24-2002, 06:29 PM
Originally posted by Ninth Dimension
this is true, but the only person being cheated by this is the cheater :)

I want use it to work with my bank hack,So it should no cheat. :laugh:

Neo
10-24-2002, 06:39 PM
Worx - Begining PHP

ZiRu$
10-24-2002, 07:06 PM
thx but i dont want games on my forum

jsell
10-24-2002, 07:46 PM
This is pretty cool got it installed no problem. :) Great idea!

--jsell

Erwin
10-24-2002, 08:12 PM
Originally posted by Ninth Dimension
some suggestions for you, if you want to make them that is :)

1, Although a lot more hard work, maybe you can allow words with descriptions and spaces, numbers, etc...

I didn't make it clear enough in my first post, but you can already already use a SENTENCE, or MULTIPLE WORDS in your hangman game.

Separate each word or words or each sentence with a comma. For example...

hello,vbulletin,good morning,good afternoon,this is cool

You can also use numbers (eg. 1 2 3 4) or special characters (eg. ! ? $) in the words - these numbers and special characters will just show up automatically, and the member will have to guess just the alphabets. :)


2, although cheating (by pressing the back button) is not really a major problem (after all, the only person they are cheating is themselves), maybe this can be prevented?


They will be cheating themselves. The hack relies on dynamic variables. To prevent back button cheating would require the answers being put into the database, which will increase server load. As this is not a serious hack, I don't think it warrants this move. :)


3, something that I would like to see is some type of intregration with the arcade so users can play and will get a score based on the number of correct words guessed (but maybe this could wait for a more advanced verson of the script)

if I think of anymore, i'll let you know :)

I actually use John's arade, not futurereal's arcade. If anyone wants to make a version of hangman.php for the arcade feel free - all I ask is that you post it in this thread, and not in a separate thread.

Remember, you are not restricted to only single words - multiple words and sentences are fine.

Also, the picture of the hangman can be modified - have a picture of you, or anything else you want to use. :)

Erwin
10-24-2002, 08:13 PM
Originally posted by hellsatan
What about with the store eh?

Satan

Zajako kindly made a hangman.php that is compatible with the Store hack, and I've included a link to it in the first post.

Chris M
10-24-2002, 08:14 PM
A picture of my arch enemy;)

^ Coming soon to DarkBlazes ^

Satan

Chris M
10-24-2002, 08:17 PM
@Erwin - I meant that as a reply to Ninth Dimension's post :

this is true, but the only person being cheated by this is the cheater :)

What I meant was that if this is integrated with The Store, if the user gets it wrong, they could go back loads of times over, and gain loads of points...

Satan

Matt87
10-24-2002, 08:21 PM
I get a blank page...

http://www.cnchq.com/forum/hangman.php

Erwin
10-24-2002, 08:25 PM
Originally posted by Matt87
I get a blank page...

http://www.cnchq.com/forum/hangman.php

Add the contents of "hangman.txt" from the ZIP file to a new template called "hangman". :)

Matt87
10-24-2002, 08:27 PM
/me smacks himself...

I'm an idiot

Chris M
10-24-2002, 08:35 PM
Have you added the template?

Satan

Vile
10-24-2002, 08:42 PM
Lol cool :)
Installed. Thanks :)

Matt87
10-24-2002, 09:10 PM
Yah, very nice! :D

Ninth Dimension
10-24-2002, 09:24 PM
Hi Erwin, sorry, i'm a total pratt :) I did not realise that the words could have spaces in them, this will help expand the words in my database :)

Oh, and good man, keeping to the original arcade hack - that's just pure class :) (so do I, although i've changed it a little now so that it fits in with your flash player - have a look - http://savepoint.co.uk/arcade.php)

Areku
10-24-2002, 09:25 PM
Ne plans to add a score chart? ;)

Ninth Dimension
10-24-2002, 09:32 PM
I've just been looking at Matt87's site - maybe you could include some images for a dark background? (I would offer, but graphics have never been my thing).

Vivi Ornitier
10-24-2002, 10:03 PM
dude thsi is tyte, we should have high schores and stuff

Ninth Dimension
10-24-2002, 10:05 PM
I think that having hiscores would (as Erwin said) would need a secure script, that would prevent cheating, etc.... - far too much work, but i'll not complain if he makes one :)

Matt87
10-24-2002, 10:29 PM
I say go for it! :p

Gutty
10-24-2002, 11:08 PM
im getting a database error


Database error in vBulletin 2.2.8:

Invalid SQL: SELECT userid,username,storep,usertitle FROM user WHERE userid=2
mysql error: Unknown column 'storep' in 'field list'

mysql error number: 1054

Date: Friday 25th of October 2002 01:04:04 PM


Script: http://www.nzfortress.co.nz/forum/forum/hangman.php

like why does it have a second /forum there ?

Matt87
10-24-2002, 11:38 PM
Did you run the install file?

Gutty
10-24-2002, 11:43 PM
yes, it even comes up in the vbulletin Options panel at the bottom :/

Matt87
10-24-2002, 11:55 PM
Hmm... I'm not real great with MySQL errors :p

Gutty
10-24-2002, 11:59 PM
then why post ?

:/

Matt87
10-25-2002, 12:35 AM
Because I thought that maybe you didn't run the install file.

Just trying to help you... :mad:

Velocd
10-25-2002, 12:40 AM
Pretty nifty Erwin, defiantly an original hack. ;)

I'm might incorporate it, as well tweak it up a bit :p

*clicks install*

Keta
10-25-2002, 02:54 AM
Originally posted by zajako
Lesane store version of hack

it pays 100 points to winner or takes 50 if they lose.

just use the included hangman.php instead :]

thanks i was just about ask if it could work with the store

Erwin
10-25-2002, 03:14 AM
Originally posted by Gutty
im getting a database error


Database error in vBulletin 2.2.8:

Invalid SQL: SELECT userid,username,storep,usertitle FROM user WHERE userid=2
mysql error: Unknown column 'storep' in 'field list'


like why does it have a second /forum there ?

First of all, that is the modified hangman.php you are using by Zajako - not the hangman.php that I originally made. If you use the modified hangman.php you need to have Lesane's store hack installed first. The error you are getting means you don't have his hack installed. The "storep" column is the Store Hack field. :)

Just upload and use the hangman.php from the ZIP file, not the store version.

Secondly, the second /forum means nothing - it's just a side effect of your db error. :)

Erwin
10-25-2002, 03:32 AM
Tip: If you didn't know, you can also use numbers and characters like ? or ! in your words -

for example:

3 blind mice,12 apostles,yahoo!,...

The numbers and characters will just automatically show up when you user plays hangman like this:

3 _ _ _ _ _ _ _ _ _

So the 3 will show up in "3 blind mice".

For "yahoo!" it will show up like this:

_ _ _ _ _ !

:)

[D]Vincent
10-25-2002, 04:12 AM
Nice hack but I already have enough things eating up bandwidth and this would do alot more damage to it lol I would install it but bandwidth is killing my site. I had fun playing it on hellsatan's site but another problem with having high scores is that once you've done all the ones listed then it repeats itself and the members could just sit there repeating it until they got top score :P

Vile
10-25-2002, 04:51 AM
Originally posted by Erwin
Tip: If you didn't know, you can also use numbers and characters like ? or ! in your words -


Cool, I did not know that. Thanks for the info :)

Kars10
10-25-2002, 07:20 AM
This hack rocks!!
Another great one frome Erwin!!
Thank you very much!!
A "JohnWarwick" Arcade-Integration would be the bomb.
Hope someone thinks about it. :)
* Minifreunde klicks install!!

NuclioN
10-25-2002, 08:48 AM
I wonder if the store version is adding 100 points to a successfull attempt over and over because members can play the same string of words again untill they are very rich. Play again? ... and there they go. How to prevent this?

How can you make it play another string of words after a win?
Good and nice hack though. ;) Clicks install

Chris M
10-25-2002, 10:00 AM
@[D]Vincent -

That is why you should add hundreds of words to it;)

Satan

Ninth Dimension
10-25-2002, 10:15 AM
I've got a cool idea, why don't we all compile lists of words based on a range of diffrent topics??

I can do one for games, and everyone else can do lists for other topics, depending on your site. i'll have my games one online a bit later for you all to use if you want to.

erwin, is there a limit to the number of words you can have?

hellsatan, i know it's late, but happy birthday.

Chris M
10-25-2002, 10:23 AM
I don't think there is a limit...

And thanks;)

Satan

Ninth Dimension
10-25-2002, 10:26 AM
there is always a limit - but as the data field uses the "mediumtext" field type, it will take a damn long time to fill up :)

Ninth Dimension
10-25-2002, 12:00 PM
OK, here is my first wordpack, it's theme is computer game names, feel free to use it, just download it, copy and paste the words into the words list in your vB options page, and enjoy :)

Chris M
10-25-2002, 01:33 PM
Wow cool:)

Satan

Erwin
10-25-2002, 01:37 PM
Just change the data field type to "blob" and it will be unlimited. :) But you're right, it will take many words to fill up. It's a great idea to share a word list - attach it in this thread as a text file, and I will link to it in my first post.

Erwin
10-25-2002, 01:45 PM
Ninth Dimension - I have linked to your text file and given you credit in my first post.

Other Hangman users - if you have your own wordlist you want to share, just post in this thread, and I will link to it too. :)

Ninth Dimension
10-25-2002, 01:48 PM
cool, thank you, i'll add some more words to it at some point soon, and then maybe make some more (i'm feeling helpful today) :)

jbear6
10-25-2002, 02:34 PM
Erwin, you are a credit to this Forum.

Thanks
Jbear6

geniuscrew
10-25-2002, 08:00 PM
I have an idea.

Could you make the integration hack so that the least number of tries they make, the more points they get?

It might be better than deducting 50 points of them =)

Pancreas Paul
10-25-2002, 08:20 PM
Weird. When i isntalled this, when i goto play it it just says congradulatiosn I have won. Why?

Erwin
10-26-2002, 12:32 AM
Originally posted by Pancreas Paul
Weird. When i isntalled this, when i goto play it it just says congradulatiosn I have won. Why?

Because you haven't added words to your word list in your Admin CP, under the vBulletin Options, then vB Hangman section. :)

Erwin
10-26-2002, 12:33 AM
Originally posted by jbear6
Erwin, you are a credit to this Forum.

Thanks
Jbear6

What a nice thing to say! :) Thanks!

Pancreas Paul
10-26-2002, 12:54 AM
Ok, got this working. Clicks install :D

Matt87
10-26-2002, 04:17 PM
This is a very good idea. Once again, GREAT job!

http://www.cnchq.com/forum/hangman.php

Buddha
10-26-2002, 04:25 PM
Originally posted by Erwin


What a nice thing to say! :) Thanks!

i gotta say doc, i wholeheartedly agree.

Graphics
10-27-2002, 03:52 PM
Excellent work.

* Installed :D

Cyberhouse
10-28-2002, 06:16 AM
Very nice work

Installed ;)

edwardandtubbs1
10-29-2002, 10:49 PM
love it Installed in maybe 2 minutes.

lalo landa
11-06-2002, 02:14 AM
Huge bug..

hangman.php?letters=ABCDEFGHIJKLMNOPQRSTUVWXYZ&n=33

Change the number 33 to another.. and always win ;-(


Or.. go back and try again with another letter ;-(

This two bugs have problems with de STORE HACK.. because the users steal points..

Another thing..

The store hack add on.. is wrong..

Missin' 1 line...

The original says (if lose)


$user = $DB_site->query_first("SELECT userid,username,storep,usertitle FROM user WHERE userid=$bbuserinfo[userid]");
$points=$user[storep];
$points = $points - 50; \\Points


Add the last line.. to do the query


$user = $DB_site->query_first("SELECT userid,username,storep,usertitle FROM user WHERE userid=$bbuserinfo[userid]");
$points=$user[storep];
$points = $points - 50;
$DB_site->query("UPDATE user SET storep='$points' WHERE userid=$bbuserinfo[userid]");


If not.. the user never lose points.


we have not been able to fix this bug that makes all of our users win

Erwin
11-06-2002, 03:07 AM
Originally posted by lalo landa
Huge bug..

hangman.php?letters=ABCDEFGHIJKLMNOPQRSTUVWXYZ&n=33

Change the number 33 to another.. and always win ;-(


Or.. go back and try again with another letter ;-(



It's not a bug, but the way the hack is written. If your members want to cheat like that, go ahead! :)



This two bugs have problems with de STORE HACK.. because the users steal points..

What


Another thing..

The store hack add on.. is wrong..

Missin' 1 line...



Zajako wrote the Store Hack integration. I don't use the Store Hack so I cannot comment or fix this "bug". This hack was never meant to be integrated with the Store Hack. :)

lalo landa
11-07-2002, 06:05 PM
don't get mad erwin.

I write the solution of the store hack problem.

It's not a bug, but the way the hack is written. If your members want to cheat like that, go ahead!

Mmmmmm ok.. what ever.

Erwin
11-07-2002, 06:30 PM
Let me repeat - I DID NOT WRITE THE STORE HACK VERSION! :) My hack was never designed to work with the Store Hack. zajako kindly did one.

If you have a BETTER store hack integration file, please post here or PM it to me, and I will post it in this thread, with all credits given to you. :)

lalo landa
11-08-2002, 03:55 PM
Ok.. my limited english make comunications problems..
I know that zajako makes the store hack add on..

And zajako only forget a line, I don't want to have credits for that..

Erwin.. thanks for your hack ;) it's cool any way

Erwin
11-08-2002, 10:52 PM
Which line did he forget? Do share it so other users who want to use the Store Hack version can benefit as well.

mewgood
11-09-2002, 01:47 AM
is it possibel to make the words appears in a random order?

Erwin
11-09-2002, 02:55 AM
Originally posted by mewgood
is it possibel to make the words appears in a random order?

They do already don't they? I use a random function to randomize the words.

lalo landa
11-09-2002, 07:48 PM
Originally posted by Erwin
Which line did he forget? Do share it so other users who want to use the Store Hack version can benefit as well.


do u realy read my post? :surprised:

https://vborg.vbsupport.ru/showthread.php?postid=319176#post319176

Please, check this out.

EDIT: To do it easily, here's the fixed file.

kira
11-09-2002, 10:11 PM
Thanks for yet another fun hack that adds even more "stickiness" to a community! Simple to install, easy to play and modify. Great work!

And now, after the butter, I have three questions. :)

First, I wanted to raise the number of wrong guesses to 10, and so I created four more images (adding hands and feet, LOL) using the same naming convention (hangman_7.gif, etc.). I uploaded them, and then made the change from 6 to 10 in the vbhangman options in my cpanel. But while the number of guesses was changed, the new images aren't showing up. It just shows the same hangman_6.gif image. Is there something else I need to tweak to get the hack to display the extra four images?

Second: I added the template change to my default style as well as a secondary style. But I can't seem to get the hack to run displaying the secondary style -- I just get a blank page. Is it possible to have hangman.php show up in different styles, and if so, how? :)

Third: I'd like to use different sets of words, depending on different forum categories. Is it possible to create additional "categories" of word lists? Maybe by uploading/installing additional copies of the hangman.php script (renaming them hangman1.php and hangman2.php?)? I dunno, just hoping. :)

None of these are HUGE issues, and they sure don't take away from the enjoyment of the hack, which as I said is terrific. Thanks again!

Erwin
11-10-2002, 02:28 AM
Originally posted by lalo landa
do u realy read my post? :surprised:

https://vborg.vbsupport.ru/showthread.php?postid=319176#post319176


Oops, somehow I missed that post of yours with the fix! :confused:

Sorry! :) I am linking to your fixed store version hangman.php in the first post.

Thanks!

Erwin
11-10-2002, 02:42 AM
Originally posted by kira
Thanks for yet another fun hack that adds even more "stickiness" to a community! Simple to install, easy to play and modify. Great work!

Thanks! :)


And now, after the butter, I have three questions. :)

First, I wanted to raise the number of wrong guesses to 10, and so I created four more images (adding hands and feet, LOL) using the same naming convention (hangman_7.gif, etc.). I uploaded them, and then made the change from 6 to 10 in the vbhangman options in my cpanel. But while the number of guesses was changed, the new images aren't showing up. It just shows the same hangman_6.gif image. Is there something else I need to tweak to get the hack to display the extra four images?


That's a bug. Darn it, I don't believe I missed it. :)

I've fixed up the ZIP file. The hack is now up to version 1.1

To fix this manually, read my next post. Sorry!


Second: I added the template change to my default style as well as a secondary style. But I can't seem to get the hack to run displaying the secondary style -- I just get a blank page. Is it possible to have hangman.php show up in different styles, and if so, how? :)


Make sure you add the "hangman" template to ALL your template styles - not just to your default.



Third: I'd like to use different sets of words, depending on different forum categories. Is it possible to create additional "categories" of word lists? Maybe by uploading/installing additional copies of the hangman.php script (renaming them hangman1.php and hangman2.php?)? I dunno, just hoping. :)

None of these are HUGE issues, and they sure don't take away from the enjoyment of the hack, which as I said is terrific. Thanks again!

It's not that hard to do.

You will need to add another setting in the Hangman setting section, and call the variable $hangmanwords2.

To do this, just run this query:


INSERT INTO setting (settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES (NULL, 'vB Hangman Word List 2', 'hangmanwords2', '', 'Separate each word or words or each sentence with a comma. Numbers and special characters are okay. For example... hello,vbulletin,good morning,this is cool!,3 blind mice', '', 3)");


Then copy hangman.php and rename the new file hangman2.php

Then in the hangman2.php file, change


$list = $hangmanwords;


To


$list = $hangmanwords2;


I haven't tried it but it should work.

Erwin
11-10-2002, 02:46 AM
Update Version 1.1

To upgrade from 1.0 to 1.1, replace the old hangman.php with the new one in the new vbhangman11.zip

1) Fixed a bug that does not allow you to increase the number of images when you increase the number of attempts.

To fix this manually, open hangman.php.

Find:


$nwrong=$wrong; if ($nwrong>6) $nwrong=6;


Replace with:


$nwrong=$wrong;


2) For people using the Store Version of this hack by zajako, lalo landa has posted a new version with a bug fix so that people will lose points if they get it wrong. I have linked to this new file in my first post.

Sorry for the bugs, and enjoy! :)

thedude2000
12-02-2002, 12:41 AM
a word for the wise... you can check to see if somebody has already submitted the word. read all the words already listed into an array by lines. then just simply loop thru and check against each word using if ($var = $var2) type stuff. *blinks out*

alzibub
03-24-2003, 06:52 PM
Great Hack !!

As a newbie, it was a dream to install and works really well !!

Thanks !

trafix
03-29-2003, 01:42 PM
Great hack! I have just installed it with 538 names of artists and bands

ryancooper
03-30-2003, 03:33 PM
Installed and my members are loving it!!

How can I make it so when someone is playing hangman the online box says "Playing Hangman" linked to he game?

Also it seems to always go in order any way to randomise the words?

Thanks

Erwin
03-31-2003, 12:22 AM
Today at 04:33 AM ryancooper said this in Post #93 (https://vborg.vbsupport.ru/showthread.php?postid=375537#post375537)
Installed and my members are loving it!!

How can I make it so when someone is playing hangman the online box says "Playing Hangman" linked to he game?


Install Firefly's "Who's Online Location" hack and add hangman.php to it. :)


Also it seems to always go in order any way to randomise the words?

Thanks

Mmm... that's weird, since it SHOULD be random. I'm using a random function.

ryancooper
03-31-2003, 05:16 PM
One other question, Is it possible to add more special characters to the list? I noticed ' and : do not show up and there is no option to choose them?

Also check out my forum, It seems that the games do go in order. http://www.talkdisney.com/forums/hangman.php

:banana:

Thanks :beard:

yxboom
04-06-2003, 04:12 AM
I have version 1.1 and the words are appearing in the same exact order everytime I am getting complaints that it is getting boring having to redo the same words over and over. I noticed you stated that the hack should be random but apparently on my board it is not.

seangworld
04-10-2003, 07:52 AM
installed, very cool.

Leah
04-14-2003, 08:39 PM
Hi,
I run a norwegian board and our alphabet has more letters than the english one. How do I add them?

Erwin
04-14-2003, 10:51 PM
Open hangman.php.

Add your additional letters to this variable:

$additional_letters

trafix
04-14-2003, 11:15 PM
Erwin,

I have 500+ words / phrases in my hangman list and it seems that it selects words in order of how it is inputed, my wife sat here doing it for about an hour one night....is there any way (apart from changing the order in the settings) to make it more random?

other than that great hack

Erwin
04-14-2003, 11:36 PM
Mmm... I will fix the random issue now... wait...

Leah
04-14-2003, 11:41 PM
Thank you! :)

Erwin
04-14-2003, 11:56 PM
Okay, try this hangman.php - just upload it - let me know if the words are now random.

[removed - not working]

Leah
04-15-2003, 12:01 AM
For us who use the store version; what did you change?

Erwin
04-15-2003, 12:03 AM
[removed - not working]

Leah
04-15-2003, 12:07 AM
Nope. Still not random here.

Erwin
04-15-2003, 01:30 AM
Update Version 1.2 - Fixed Random Bug - Words are now totally chosen at random

I apologize for taking so long to do this. :)

Just download and upload and replace hangman.php.

After downloading, make sure you check the top of the file - it should say version 1.2.

I've also edited zajako's Store Hack integration version as well. :) Download and upload that version. Again, make sure the top of the file says version 1.2.

Enjoy!

Bison
04-15-2003, 01:55 AM
10-24-02 at 04:00 PM ZiRu$ said this in Post #25 (https://vborg.vbsupport.ru/showthread.php?postid=313675#post313675)
thx but i dont want games on my forum

So why did you reply then?

trafix
04-17-2003, 07:21 AM
Erwin,

Yes the random now works properly now Thanks.

Isnt it funny that when something isnt working properly everyone starts screaming......When its fixed nobody says anything...lol

Erwin
04-17-2003, 07:24 AM
LOL! No news is good news... ;)

I see also that you're a fellow Aussie. G'day! :)

kaotic
04-25-2003, 01:23 AM
Very nice hack. I was into up to the point when I saw that members could cheat. I have nearly everything integrated with the store hack, so things would get a little crazy of they started cheating. ;) This is still very cool, though.

Fi_InCogNiTo
04-27-2003, 05:09 PM
For users of the store hack verson of the hangman.php file ONLY

I'm really surprised this question wasn't asked a few times already. Here's a way to customize this for users of the Store Hack version of the hangman.php file ;)


To change the amount of deducted points from the loser:

Find:


$points=$user[storep];
$points = $points - 50;

Change the value of 50 to however many points you wish to deduct from the loser.


To change the amount of added points given to the winner:

Find:


$points=$user[storep];
$points = $points + 100;

Change the value of 100 to however many points you wish to give to the winner.

Have fun ;)

Fi_InCogNiTo
04-27-2003, 05:47 PM
Also, I attached a list of movies for hangman :)

Erwin
04-28-2003, 04:12 AM
Great! I'll link to your movie list in the first post. :) I encourage people to share their hangman word lists. I will link to them from the first post.

trafix
04-28-2003, 05:07 AM
Ok you asked for it ...... :rambo:

Here is my list of atrists & bands that I use on my hangman..... this is a list of 538 different names.

Theres another one for you to link :bunny:

Erwin
04-28-2003, 05:20 AM
Added! Thanks! :)

trafix
04-28-2003, 07:30 PM
A request from one of my members....

I was playing hangman tonight and would of liked to of seen some statistics on my overall performance for the time I played it.

What does everyone think about adding all %'s to the hangman so we can follow our progress thoughout the time being a member of the site....?

Can you look at this Erwin?

Intex
05-27-2003, 07:33 PM
Installed and works perfectly. Thx Erwin.

MuSuL
06-10-2003, 07:21 AM
after someone wins a game, all they haev to do is click refresh to get more points in the store.. anyone know a fix for this?

MindTrix
09-30-2003, 01:44 PM
Installation was sooooooooooooo easssyyyyy Thanks alot, i was dreadin loadsa codin and there werent nun :p luv it

Have you made any more games like this cause i would like to set up a games section on my board (dont wanna use vbproarcade thing tho cus it didnt work properly for me)

Hoffi
11-26-2003, 08:08 PM
What about a Highscore? User will mess with each other... ;)

by the way... clicks Install.

dontpanic
12-01-2003, 09:47 PM
Erwin,

Thanks, this hack is great and super easy to install! You have once again done us all a favor here.

One thing I found though is that you didn't account for ' character, so I added it by changing the code as follows:

$additional_letters = " -.,';!?%&0123456789";

Once again, great work and thanks so much!

http://www.mcseworld.com/forums/hangman.php

Silverstangs
12-20-2003, 06:34 PM
Wow easy to install and works great in vb2.3.3!

Now if you can modify it so it can show who played and their score that would be cool too!

Scott

[FG]Omega
12-21-2003, 12:45 PM
great hack! Also a big thx to the namelists ^^

B999V
02-24-2004, 08:46 AM
Will this hack work with vb3?

deathemperor
03-05-2004, 08:34 AM
anyone care to port this to vb3 ? I'd like to have a vb3 interesting hangman ^^

Ciperl
03-05-2004, 02:10 PM
How difficult would it be to port this to v3?

Alien
03-11-2004, 07:52 PM
I'm dying for this on vB3. :D

Alien
03-21-2004, 05:00 AM
Hope I'm not the only one. ;)

deathemperor
03-31-2004, 02:08 AM
Me too but.....it seems noone is going to port this >_< SO SADDDDD

Emmy2
06-02-2004, 02:33 PM
This is a very nice hack! I've installed it, but haven't released it to my members yet...I'd like to make one little tweak to it first.

My problem is....I have a lot of "stuff" in my board's header so when you click on a hangman letter (and it processes the selection) it pops you back to the top of the board and you have to scroll down a half page to get back to the playing board.

Is there someway to add an anchor/target to the top of the playing board so that it automatically pops to that spot when you're playing the game? It seems like I would need to add something like an <a name="tophangman"> in the hangman template and also something would need to be done to the hangman.php file when it processes the letter selections. I think I could do the template, but the hangman.php file is just greek to me. Can anyone help me and let me know what adjustments to make to achieve this?

Thanks for any help!

Emmy2
06-03-2004, 07:15 PM
ok, I managed to figure this out on my own (probably simple to most of you, but I don't know much about any of this so not-so-simple to me). In case anyone else is wondering too here's how I did it...

In the hangman template I put in an anchor near the top of the playing board <a name="topofboard">your anchor here</a>

then in the hangman php file I found this line...

else
{ $links .= "\n<A HREF=\"$PHP_SELF?letters=$alpha[$c]$letters&n=$n\">$alpha[$c]</A> "; }
}

and replaced it with...

else
{ $links .= "\n<A HREF=\"$PHP_SELF?letters=$alpha[$c]$letters&n=$n#topofboard\">$alpha[$c]</A> "; }
}

you can do the same thing at the "play again" link a little further down as well. It works beautifully and the playing board never "moves" on the player, making it very seamless.