PDA

View Full Version : vB Hangman 1.2


Erwin
24 Oct 2002, 16:11
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://www.vbulletin.org/forum/external/2010/10/8.gifAttachment: games_list_1.txt (http://www.vbulletin.org/forum/attachment.php?s=&postid=313909) (for games oriented sites)
This file courtesy of Ninth Dimension.

https://www.vbulletin.org/forum/external/2010/10/8.gifAttachment: movielist.txt (http://www.vbulletin.org/forum/attachment.php?s=&postid=388015) (for movies)
This file courtesy of Fi_InCogNiTo.

https://www.vbulletin.org/forum/external/2010/10/8.gifAttachment: artists.txt (http://www.vbulletin.org/forum/attachment.php?s=&postid=388290) (for artists and bands)
This file courtesy of trafix.

Lesane Store Hack Integration - you need Store Hack installed!

https://www.vbulletin.org/forum/external/2010/10/8.gifAttachment: hangman.php (http://www.vbulletin.org/forum/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
24 Oct 2002, 16:14
Screenshot :
---------------

Admin CP Settings (updated)

Erwin
24 Oct 2002, 16:14
Screenshot :
---------------

Hangman Game integrated into your forums

Erwin
24 Oct 2002, 16:24
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
24 Oct 2002, 16:24
Wow Cool:)

*installs*

Satan

Chris M
24 Oct 2002, 16:32
Check it out -->

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

Satan

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

Chris M
24 Oct 2002, 16:37
Ah;)

My bad - *Changes permissions*

Now try!:)

Satan

Buddha
24 Oct 2002, 16:48
very cool.
probably install later and play around with it.

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

Chris M
24 Oct 2002, 16:59
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
24 Oct 2002, 17:00
Erwin this rocks very smoothe of you.

:]

Erwin
24 Oct 2002, 17:03
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
24 Oct 2002, 17:20
installed it and it works beautifully... of course.
cool work doc.

zajako
24 Oct 2002, 17:32
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
24 Oct 2002, 17:40
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
24 Oct 2002, 18:25
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
24 Oct 2002, 18:34
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
24 Oct 2002, 18:34
Cool:)

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

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

Satan

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

Ninth Dimension
24 Oct 2002, 18:40
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
24 Oct 2002, 19:20
What about with the store eh?

Satan

xware
24 Oct 2002, 19:29
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
24 Oct 2002, 19:39
Worx - Begining PHP

ZiRu$
24 Oct 2002, 20:06
thx but i dont want games on my forum

jsell
24 Oct 2002, 20:46
This is pretty cool got it installed no problem. :) Great idea!

--jsell

Erwin
24 Oct 2002, 21:12
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
24 Oct 2002, 21:13
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
24 Oct 2002, 21:14
A picture of my arch enemy;)

^ Coming soon to DarkBlazes ^

Satan

Chris M
24 Oct 2002, 21:17
@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
24 Oct 2002, 21:21
I get a blank page...

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

Erwin
24 Oct 2002, 21:25
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
24 Oct 2002, 21:27
/me smacks himself...

I'm an idiot

Chris M
24 Oct 2002, 21:35
Have you added the template?

Satan

Vile
24 Oct 2002, 21:42
Lol cool :)
Installed. Thanks :)

Matt87
24 Oct 2002, 22:10
Yah, very nice! :D

Ninth Dimension
24 Oct 2002, 22:24
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
24 Oct 2002, 22:25
Ne plans to add a score chart? ;)

Ninth Dimension
24 Oct 2002, 22:32
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
24 Oct 2002, 23:03
dude thsi is tyte, we should have high schores and stuff

Ninth Dimension
24 Oct 2002, 23:05
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
24 Oct 2002, 23:29
I say go for it! :p

Gutty
25 Oct 2002, 00:08
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
25 Oct 2002, 00:38
Did you run the install file?

Gutty
25 Oct 2002, 00:43
yes, it even comes up in the vbulletin Options panel at the bottom :/

Matt87
25 Oct 2002, 00:55
Hmm... I'm not real great with MySQL errors :p

Gutty
25 Oct 2002, 00:59
then why post ?


:/

Matt87
25 Oct 2002, 01:35
Because I thought that maybe you didn't run the install file.

Just trying to help you... :mad:

Velocd
25 Oct 2002, 01:40
Pretty nifty Erwin, defiantly an original hack. ;)

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

*clicks install*

Keta
25 Oct 2002, 03:54
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
25 Oct 2002, 04:14
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
25 Oct 2002, 04:32
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
25 Oct 2002, 05:12
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
25 Oct 2002, 05:51
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
25 Oct 2002, 08:20
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. :)
/me klicks install!!

NuclioN
25 Oct 2002, 09:48
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
25 Oct 2002, 11:00
@[D]Vincent -

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

Satan

Ninth Dimension
25 Oct 2002, 11:15
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
25 Oct 2002, 11:23
I don't think there is a limit...

And thanks;)

Satan

Ninth Dimension
25 Oct 2002, 11:26
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
25 Oct 2002, 13:00
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
25 Oct 2002, 14:33
Wow cool:)

Satan

Erwin
25 Oct 2002, 14:37
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
25 Oct 2002, 14:45
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
25 Oct 2002, 14:48
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
25 Oct 2002, 15:34
Erwin, you are a credit to this Forum.

Thanks
Jbear6

geniuscrew
25 Oct 2002, 21:00
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
25 Oct 2002, 21:20
Weird. When i isntalled this, when i goto play it it just says congradulatiosn I have won. Why?

Erwin
26 Oct 2002, 01:32
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
26 Oct 2002, 01:33
Originally posted by jbear6
Erwin, you are a credit to this Forum.

Thanks
Jbear6

What a nice thing to say! :) Thanks!

Pancreas Paul
26 Oct 2002, 01:54
Ok, got this working. Clicks install :D

Matt87
26 Oct 2002, 17:17
This is a very good idea. Once again, GREAT job!

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

Buddha
26 Oct 2002, 17:25
Originally posted by Erwin


What a nice thing to say! :) Thanks!

i gotta say doc, i wholeheartedly agree.

Graphics
27 Oct 2002, 16:52
Excellent work.

* Installed :D

Cyberhouse
28 Oct 2002, 07:16
Very nice work

Installed ;)

edwardandtubbs1
29 Oct 2002, 23:49
love it Installed in maybe 2 minutes.

lalo landa
06 Nov 2002, 03:14
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
06 Nov 2002, 04:07
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
07 Nov 2002, 19:05
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
07 Nov 2002, 19:30
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
08 Nov 2002, 16:55
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
08 Nov 2002, 23:52
Which line did he forget? Do share it so other users who want to use the Store Hack version can benefit as well.

mewgood
09 Nov 2002, 02:47
is it possibel to make the words appears in a random order?

Erwin
09 Nov 2002, 03:55
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
09 Nov 2002, 20:48
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:

http://www.vbulletin.org/forum/showthread.php?postid=319176#post319176

Please, check this out.

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

kira
09 Nov 2002, 23:11
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
10 Nov 2002, 03:28
Originally posted by lalo landa
do u realy read my post? :surprised:

http://www.vbulletin.org/forum/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
10 Nov 2002, 03:42
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
10 Nov 2002, 03:46
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
02 Dec 2002, 01:41
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
24 Mar 2003, 19:52
Great Hack !!

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

Thanks !

trafix
29 Mar 2003, 14:42
Great hack! I have just installed it with 538 names of artists and bands

ryancooper
30 Mar 2003, 16:33
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
31 Mar 2003, 01:22
Today at 04:33 AM ryancooper said this in Post #93 (http://www.vbulletin.org/forum/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
31 Mar 2003, 18:16
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
06 Apr 2003, 05:12
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
10 Apr 2003, 08:52
installed, very cool.

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

Erwin
14 Apr 2003, 23:51
Open hangman.php.

Add your additional letters to this variable:

$additional_letters

trafix
15 Apr 2003, 00:15
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
15 Apr 2003, 00:36
Mmm... I will fix the random issue now... wait...

Leah
15 Apr 2003, 00:41
Thank you! :)

Erwin
15 Apr 2003, 00:56
Okay, try this hangman.php - just upload it - let me know if the words are now random.

[removed - not working]

Leah
15 Apr 2003, 01:01
For us who use the store version; what did you change?

Erwin
15 Apr 2003, 01:03
[removed - not working]

Leah
15 Apr 2003, 01:07
Nope. Still not random here.

Erwin
15 Apr 2003, 02:30
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
15 Apr 2003, 02:55
10-24-02 at 04:00 PM ZiRu$ said this in Post #25 (http://www.vbulletin.org/forum/showthread.php?postid=313675#post313675)
thx but i dont want games on my forum

So why did you reply then?

trafix
17 Apr 2003, 08:21
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
17 Apr 2003, 08:24
LOL! No news is good news... ;)

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

kaotic
25 Apr 2003, 02:23
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
27 Apr 2003, 18:09
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
27 Apr 2003, 18:47
Also, I attached a list of movies for hangman :)

Erwin
28 Apr 2003, 05:12
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
28 Apr 2003, 06:07
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
28 Apr 2003, 06:20
Added! Thanks! :)

trafix
28 Apr 2003, 20:30
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
27 May 2003, 20:33
Installed and works perfectly. Thx Erwin.

MuSuL
10 Jun 2003, 08:21
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
30 Sep 2003, 14:44
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
26 Nov 2003, 21:08
What about a Highscore? User will mess with each other... ;)

by the way... clicks Install.

dontpanic
01 Dec 2003, 22:47
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
20 Dec 2003, 19:34
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
21 Dec 2003, 13:45
great hack! Also a big thx to the namelists ^^

B999V
24 Feb 2004, 09:46
Will this hack work with vb3?

deathemperor
05 Mar 2004, 09:34
anyone care to port this to vb3 ? I'd like to have a vb3 interesting hangman ^^

Ciperl
05 Mar 2004, 15:10
How difficult would it be to port this to v3?

Alien
11 Mar 2004, 20:52
I'm dying for this on vB3. :D

Alien
21 Mar 2004, 06:00
Hope I'm not the only one. ;)

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

Emmy2
02 Jun 2004, 15:33
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
03 Jun 2004, 20:15
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.