vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Hangman 1.2 (https://vborg.vbsupport.ru/showthread.php?t=44942)

lalo landa 11-08-2002 03:55 PM

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 11-08-2002 10:52 PM

Which line did he forget? Do share it so other users who want to use the Store Hack version can benefit as well.

mewgood 11-09-2002 01:47 AM

is it possibel to make the words appears in a random order?

Erwin 11-09-2002 02:55 AM

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.

lalo landa 11-09-2002 07:48 PM

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.

kira 11-09-2002 10:11 PM

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 11-10-2002 02:28 AM

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! :confused:

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

Thanks!

Erwin 11-10-2002 02:42 AM

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.

Erwin 11-10-2002 02:46 AM

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! :)

thedude2000 12-02-2002 12:41 AM

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 03-24-2003 06:52 PM

Great Hack !!

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

Thanks !

trafix 03-29-2003 01:42 PM

Great hack! I have just installed it with 538 names of artists and bands

ryancooper 03-30-2003 03:33 PM

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 03-31-2003 12:22 AM

Quote:

Today at 04:33 AM ryancooper said this in Post #93
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. :)

Quote:


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 03-31-2003 05:16 PM

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 04-06-2003 04:12 AM

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 04-10-2003 07:52 AM

installed, very cool.

Leah 04-14-2003 08:39 PM

Hi,
I run a norwegian board and our alphabet has more letters than the english one. How do I add them?

Erwin 04-14-2003 10:51 PM

Open hangman.php.

Add your additional letters to this variable:

$additional_letters

trafix 04-14-2003 11:15 PM

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 04-14-2003 11:36 PM

Mmm... I will fix the random issue now... wait...

Leah 04-14-2003 11:41 PM

Thank you! :)

Erwin 04-14-2003 11:56 PM

Okay, try this hangman.php - just upload it - let me know if the words are now random.

[removed - not working]

Leah 04-15-2003 12:01 AM

For us who use the store version; what did you change?

Erwin 04-15-2003 12:03 AM

[removed - not working]

Leah 04-15-2003 12:07 AM

Nope. Still not random here.

Erwin 04-15-2003 01:30 AM

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 04-15-2003 01:55 AM

Quote:

10-24-02 at 04:00 PM ZiRu$ said this in Post #25
thx but i dont want games on my forum
So why did you reply then?

trafix 04-17-2003 07:21 AM

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 04-17-2003 07:24 AM

LOL! No news is good news... ;)

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

kaotic 04-25-2003 01:23 AM

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 04-27-2003 05:09 PM

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:

PHP Code:

$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:

PHP Code:

$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 04-27-2003 05:47 PM

Also, I attached a list of movies for hangman :)

Erwin 04-28-2003 04:12 AM

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 04-28-2003 05:07 AM

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 04-28-2003 05:20 AM

Added! Thanks! :)

trafix 04-28-2003 07:30 PM

A request from one of my members....

Quote:

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 05-27-2003 07:33 PM

Installed and works perfectly. Thx Erwin.

MuSuL 06-10-2003 07:21 AM

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 09-30-2003 01:44 PM

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)


All times are GMT. The time now is 08:38 AM.

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.01516 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete