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

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

Version: 3.0.0 Rating:
Released: 04-02-2004 Last Update: Never Installs: 56
 
No support by the author.

vB Hangman for vB3

Original version for vBulletin 2.x.x by Erwin (Dr. Erwin Loh)
vBulletin 3.x.x version ported by EvilLS1
Please do not distribute without the permission of the authors.

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) vB3 version ported by EvilLS1
11) Who's Online fix added by Zelda-King

12) Store Hack integration by AutomatikStudio here!
https://vborg.vbsupport.ru/showpost....3&postcount=48

Instructions

1) Upload hangman_installer.php to your admincp directory & run the installer.

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) In your admincp under "Languages & Phrases" click "Phrase Manager",
then click "Add new Phrase".

5) Create a new template named "hangman".

6) Login to your admincp. Under the Options section click vBulletin Options and select vB Hangman from the list. Here you can set whether you want guests to have access to Hangman, how many attempts to allow (default is 6, any higher and you will need to add your own custom hangman images), and then add your words or phrases separated by a comma.For example...

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


7) Go to yoursite.com/forums/hangman.php and play.

Done!

Many thanks to EvilLS1 for porting this hack to vB3. Thank you to all the hackers who are helping to build this community up, and who respect other hackers. You are all the reason why we help each other.

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.

NEW WORD LISTS (courtesy of jilly)

misc-words1.txt (hard words)
food1.txt (food words)

Screenshot

Hangman Game integrated into your forums
Attached Thumbnails
https://vborg.vbsupport.ru/attachmen...tid=8576&stc=1


Full instructions in the install.txt file in the ZIP below.

Show Your Support

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

Comments
  #32  
Old 04-15-2004, 12:40 AM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deathemperor1st
there's store hack released, could someone make this when users win they gain store points and opposite.
vb2 had this so plz make this someone
I will hopefully release this tonight.
Reply With Quote
  #33  
Old 04-15-2004, 01:08 AM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright. Here's a quick little hack for people with the store hack. It adds or subtracts points from the user depending on whether they win or lose.

All of these edits occur in hangman.php

FIND
PHP Code:
$play .= "The $term was \"<B>$word</B>\"<BR><BR>\n<A HREF=$PHP_SELF?n=$n>Play again.</A>\n\n"
ADD BELOW
PHP Code:
 $losspoints=2//Number of points subtracted for losing
  
if ($bbuserinfo['uttpoints'] > $losspoints){ //only subtract if the users points are greater than the amount to subtract
  
$userid=$bbuserinfo['userid'];
  
mysql_query("UPDATE user SET uttpoints=uttpoints-'$losspoints' WHERE userid='$userid'");
  } 
FIND
PHP Code:
$win .= "<BR><BR><H1><font size=5>\n$word_line</font></H1>\n<P><BR><BR><B>Congratulations $bbuserinfo[username]!!! &nbsp;You have won!!!</B><BR><BR><BR>\n<A HREF=$PHP_SELF?n=$n>Play again</A>\n\n"
ADD BELOW
PHP Code:
    $winpoints=10//Number of points added for winning
       
$userid=$bbuserinfo['userid'];
       
mysql_query("UPDATE user SET uttpoints=uttpoints+'$winpoints' WHERE userid='$userid'"); 
Took like 5 seconds to do. If you want other little features to integrate this with the store just let me know and I'll see what I can do.
Reply With Quote
  #34  
Old 04-15-2004, 02:55 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, did you take into account them having enough money to play? We wouldn't want people going into the minus range.
Reply With Quote
  #35  
Old 04-15-2004, 03:39 AM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zelda-King
Hmm, did you take into account them having enough money to play? We wouldn't want people going into the minus range.
Thanks for bringing that to my attention. The code has been updated to only subtract if the users points are greater than the amount to subtract.
Reply With Quote
  #36  
Old 04-15-2004, 04:10 AM
Catch-22|BL Catch-22|BL is offline
 
Join Date: Aug 2003
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice and simple! Easy install and very straightforward!
Reply With Quote
  #37  
Old 04-15-2004, 12:54 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone on my board reported something disturbing.
Quote:
With the way it is right now, it's possible to cheat in Hangman by simply backing up in the browser window to take back an incorrect move.
I've tested this. You can guarantee victory with this glitch.
Reply With Quote
  #38  
Old 04-20-2004, 04:42 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

like the vb2 version, back to cheat
but like Erwin said this hack was not supposed to take your board's performance.
but I anyway have to disable that ^^
can you AutomatikStudio ?
Reply With Quote
  #39  
Old 04-20-2004, 09:50 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I want to use the uStore integration posted here but I can't right now because anyone in the know could just cash in... but I'm aware this wasn't on Erwin's mind when he wrote this so I'm not fussing.
Reply With Quote
  #40  
Old 04-20-2004, 12:07 PM
jancarlo jancarlo is offline
 
Join Date: Feb 2003
Location: Italia
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to me it gives these errors:

Warning: rand(): Invalid range: 1..0 in /home/httpd/vhosts/forum.com/httpdocs/hangman.php on line 42

Warning: rand(): Invalid range: 1..0 in /home/httpd/vhosts/forum.com/httpdocs/hangman.php on line 91

how I can resolve?

thanks
jancarlo
Reply With Quote
  #41  
Old 05-07-2004, 07:11 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin, there is now file attachment for this hack. Can you repost it please? I see the games_list_1.txt, movielist.txt & artists.txt files, but not hack attachment.
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 04:29 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.05755 seconds
  • Memory Usage 2,320KB
  • 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
  • (4)bbcode_php
  • (3)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