Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Hangman 1.2 Details »»
vB Hangman 1.2
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 10-23-2002 Last Update: Never Installs: 100
 
No support by the author.

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

Attachment: games_list_1.txt (for games oriented sites)
This file courtesy of Ninth Dimension.

Attachment: movielist.txt (for movies)
This file courtesy of Fi_InCogNiTo.

Attachment: artists.txt (for artists and bands)
This file courtesy of trafix.

Lesane Store Hack Integration - you need Store Hack installed!

Attachment: hangman.php (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)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 11-08-2002, 03:55 PM
lalo landa lalo landa is offline
 
Join Date: Nov 2002
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #83  
Old 11-08-2002, 10:52 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which line did he forget? Do share it so other users who want to use the Store Hack version can benefit as well.
Reply With Quote
  #84  
Old 11-09-2002, 01:47 AM
mewgood mewgood is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possibel to make the words appears in a random order?
Reply With Quote
  #85  
Old 11-09-2002, 02:55 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #86  
Old 11-09-2002, 07:48 PM
lalo landa lalo landa is offline
 
Join Date: Nov 2002
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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/showthrea...176#post319176

Please, check this out.

EDIT: To do it easily, here's the fixed file.
Reply With Quote
  #87  
Old 11-09-2002, 10:11 PM
kira kira is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #88  
Old 11-10-2002, 02:28 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by lalo landa
do u realy read my post? :surprised:

https://vborg.vbsupport.ru/showthrea...176#post319176
Oops, somehow I missed that post of yours with the fix!

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

Thanks!
Reply With Quote
  #89  
Old 11-10-2002, 02:42 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 (settinggroupidtitlevarnamevaluedescriptionoptioncodedisplayorderVALUES (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.
Reply With Quote
  #90  
Old 11-10-2002, 02:46 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
  $nwrong=$wrong; if ($nwrong>6$nwrong=6
Replace with:

PHP Code:
  $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!
Reply With Quote
  #91  
Old 12-02-2002, 12:41 AM
thedude2000 thedude2000 is offline
 
Join Date: Mar 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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*
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07455 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete