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*


All times are GMT. The time now is 04:58 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.01112 seconds
  • Memory Usage 1,760KB
  • 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
  • (5)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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