Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #132  
Old 06-02-2004, 02:33 PM
Emmy2 Emmy2 is offline
 
Join Date: Jan 2004
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #133  
Old 06-03-2004, 07:15 PM
Emmy2 Emmy2 is offline
 
Join Date: Jan 2004
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...

PHP Code:
else
    { 
$links .= "\n<A HREF=\"$PHP_SELF?letters=$alpha[$c]$letters&n=$n\">$alpha[$c]</A> "; }
  } 
and replaced it with...

PHP Code:
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.
Reply With Quote
Reply

Thread Tools

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 12:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04963 seconds
  • Memory Usage 2,221KB
  • Queries Executed 17 (?)
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
  • (2)bbcode_php
  • (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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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