vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Hangman for vB3 (https://vborg.vbsupport.ru/showthread.php?t=63391)

Erwin 04-02-2004 10:00 PM

vB Hangman for vB3
 
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

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: games_list_1.txt (for games oriented sites)
This file courtesy of Ninth Dimension.

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: movielist.txt (for movies)
This file courtesy of Fi_InCogNiTo.

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: artists.txt (for artists and bands)
This file courtesy of trafix.

NEW WORD LISTS (courtesy of jilly)

https://vborg.vbsupport.ru/external/2009/01/38.gifmisc-words1.txt (hard words)
https://vborg.vbsupport.ru/external/2009/01/38.giffood1.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.

BarBeQue 04-03-2004 11:14 AM

lmao
this sounds nice!

hangman hack....
too bad the screenshot is a small thumbnail, can't get a good look at it but the idea cracked me up

must install this!

kr?mel 04-03-2004 11:28 AM

/me install this

genialer hack!

Vb-Hispano 04-03-2004 11:43 AM

could I translate into Spanish?

thanks

BarBeQue 04-03-2004 11:43 AM

Suggestion (or request, how you wanna interprete it ;):

Make a list of categories to the right where you can choose the category (wordlist) you wanna play.

blubber12 04-03-2004 12:26 PM

Great hack...and I second barbeque's suggestion ;)

msimplay 04-03-2004 01:10 PM

Quote:

Originally Posted by BarBeQue
Suggestion (or request, how you wanna interprete it ;):

Make a list of categories to the right where you can choose the category (wordlist) you wanna play.

i second that and whose online locations :P

???`S?LV?R???` 04-03-2004 01:37 PM

:) nice one to add to my games.. thanks erwin

Souli 04-03-2004 02:12 PM

Nice Hack, but i miss a Higscore and a Store Addon

gmarik 04-03-2004 02:48 PM

Could you make it work with Cyrillic letters as well?

djohn 04-03-2004 03:09 PM

I guess, i have the same problem as gmarik, any way to get this awesome hack to work with cyrillic letters?

Erwin 04-03-2004 07:23 PM

Quote:

Originally Posted by djohn
I guess, i have the same problem as gmarik, any way to get this awesome hack to work with cyrillic letters?

You can add more characters to be allowed in the hangman.php file. :) Go and take a look - you'll work out where to add them.

neocorteqz 04-03-2004 08:52 PM

Nice. This should add nicely to the V3Arcade. :)

Added it to the Navbar and quick links section pretty easy.

Boofo 04-03-2004 08:52 PM

Been waiting for this and since my buddy Dewayne ported it, I have no doubt it is great. ;) Clicks install.

Boofo 04-03-2004 09:00 PM

Erwin. is there a way to add another settinmg in the Admin CP for the category you use for words? Like Movies or Games or something like that and have it show up in the title or something so users know what kind of words they are supposed to be guessing?

neocorteqz 04-03-2004 09:19 PM

Quote:

Originally Posted by Boofo
Erwin. is there a way to add another settinmg in the Admin CP for the category you use for words? Like Movies or Games or something like that and have it show up in the title or something so users know what kind of words they are supposed to be guessing?

that would be cool, along with a selectable list to choose from as suggested above. so that you can choose. :)

Cyricx 04-03-2004 11:05 PM

Heck ya, if they could be divided into categories would be the clencher for me :)

I love the idea and looks awesome, but definately would like a category addition. :)

deathemperor 04-04-2004 01:03 AM

OMG
I finally have this, vb3 has hangman at last ! ^^

bierhumpen 04-04-2004 07:10 PM

installed!!!
cool hack THX

blubber12 04-05-2004 12:07 AM

Love the hack as do my members...One little glitch though. Words and phrases shouldn't have apostrophe's or other punctuation, correct? I'm using one of the word lists and a few include apostrophe's, and my members are getting hung up..No pun intended LOL...Can I just remove the apostrophe's or am I missing something.

Thanks

Fi_InCogNiTo 04-05-2004 01:57 AM

Hey my movie list! Wow, that was a long time ago =D

[high]* Fi_InCogNiTo clicks install
[/high]

Nice port :)

Red Blaze 04-05-2004 02:58 AM

file is corrupt. :S Maybe it's my PC. -_-

Red Blaze 04-05-2004 03:52 AM

Is there a way where there is a winner, they can win points depending how many turns they use.

Example:

No Guesses missed = 200 rings (or points)
1 miss = 150
2 misses = 100
3 misses = 75
4 misses =50
5 misses = 25
Game Over = 0

Can it be done?

EDIT: Oops, the file became better, just refreshed and deleted cookies. Sorry for the double post, ignore the other one.

Alien 04-05-2004 06:01 AM

Wow!

Thankyouthankyouthankyouthankyou!

:banana:

GenSec 04-07-2004 09:45 AM

Quote:

Originally Posted by djohn
I guess, i have the same problem as gmarik, any way to get this awesome hack to work with cyrillic letters?

Just find in hangman.php
Code:

  $nwrong=$wrong;
Add above
Code:

$Ralpha = "@?????Ũ??????????????????????????";
$links .= "<BR><BR>";
  for ($c=0; $c<33; $c++)
  {
    if (strstr($letters, $Ralpha[$c]))
    {
      if (strstr($words[$n], $Ralpha[$c])) {$links .= "\n<B>$Ralpha[$c]</B> "; }
      else { $links .= "\n<FONT color=\"red\">$Ralpha[$c] </font>"; $wrong++; }
    }
    else
    { $links .= "\n<A HREF=\"$PHP_SELF?letters=$Ralpha[$c]$letters&n=$n\">$Ralpha[$c]</A> "; }
  }

$Ralfa="cyrillic letters"

Zelda-King 04-11-2004 10:28 PM

This hack seriously could use online locations adding. If someone's playing Hangman someone else can look in Who's Online, click on the location link and learn words that way.

Zelda-King 04-12-2004 11:41 AM

I decided to post the fix myself for any lazy or non-coder admins out there;

1) Open includes/functions_online.php

2) Find
PHP Code:

case 'modcplogin':
                        
$userinfo['action'] = $vbphrase['moderator_control_panel_login'];
                        break; 

3) Underneath add
PHP Code:

case 'hangman':
                        
$userinfo['where'] = "<a href=\"hangman.php?$session[sessionurl]\">Playing Hangman</a>";
                        break; 

4) Find
PHP Code:

case '/robots.txt':
                
$userinfo['activity'] = 'spider';
                break; 

5) Underneath add
PHP Code:

case 'hangman.php':
                
$userinfo['activity'] = 'hangman';
                break; 

6) Save and upload includes/functions_online.php

Done!

BarBeQue 04-13-2004 11:08 AM

tnx for the fix!

btw

Anybody who has a few new and upto date wordlists (like for movie, one that has a also has movie's that as less then 3 year old)

deathemperor 04-14-2004 03:24 AM

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

msimplay 04-14-2004 03:25 PM

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 second that notion

AutomatikStudio 04-15-2004 12:40 AM

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.

AutomatikStudio 04-15-2004 01:08 AM

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.

Zelda-King 04-15-2004 02:55 AM

Hmm, did you take into account them having enough money to play? We wouldn't want people going into the minus range.

AutomatikStudio 04-15-2004 03:39 AM

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.

Catch-22|BL 04-15-2004 04:10 AM

Nice and simple! Easy install and very straightforward! :)

Zelda-King 04-15-2004 12:54 PM

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.

deathemperor 04-20-2004 04:42 AM

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 ?

Zelda-King 04-20-2004 09:50 AM

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.

jancarlo 04-20-2004 12:07 PM

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

Holidazed 05-07-2004 07:11 PM

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.


All times are GMT. The time now is 04:49 PM.

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.01539 seconds
  • Memory Usage 1,846KB
  • 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_code_printable
  • (8)bbcode_php_printable
  • (8)bbcode_quote_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
  • (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