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)

Hoffi 11-26-2003 08:08 PM

What about a Highscore? User will mess with each other... ;)

by the way... clicks Install.

dontpanic 12-01-2003 09:47 PM

Erwin,

Thanks, this hack is great and super easy to install! You have once again done us all a favor here.

One thing I found though is that you didn't account for ' character, so I added it by changing the code as follows:

$additional_letters = " -.,';!?%&0123456789";

Once again, great work and thanks so much!

http://www.mcseworld.com/forums/hangman.php

Silverstangs 12-20-2003 06:34 PM

Wow easy to install and works great in vb2.3.3!

Now if you can modify it so it can show who played and their score that would be cool too!

Scott

[FG]Omega 12-21-2003 12:45 PM

great hack! Also a big thx to the namelists ^^

B999V 02-24-2004 08:46 AM

Will this hack work with vb3?

deathemperor 03-05-2004 08:34 AM

anyone care to port this to vb3 ? I'd like to have a vb3 interesting hangman ^^

Ciperl 03-05-2004 02:10 PM

How difficult would it be to port this to v3?

Alien 03-11-2004 07:52 PM

I'm dying for this on vB3. :D

Alien 03-21-2004 05:00 AM

Hope I'm not the only one. ;)

deathemperor 03-31-2004 02:08 AM

Me too but.....it seems noone is going to port this >_< SO SADDDDD

Emmy2 06-02-2004 02:33 PM

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!

Emmy2 06-03-2004 07:15 PM

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.


All times are GMT. The time now is 06:54 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.01331 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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