Quote:
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!
Quote:
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!
Quote:
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.
Quote:
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:
PHP Code:
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
PHP Code:
$list = $hangmanwords;
To
PHP Code:
$list = $hangmanwords2;
I haven't tried it but it should work.