Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Guess The Word (Game) [AJAX] Details »»
Guess The Word (Game) [AJAX]
Version: 1.5.0, by harmor19 harmor19 is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.3 Rating:
Released: 01-29-2007 Last Update: 03-20-2007 Installs: 23
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

I created this hack mainly for a contest I'm planning on having. It works similar to "hangman" but the user has to make a number of posts to display a letter.

If the word is "Andrew" and the number of posts is "5" the user will see a letter of the word for each 5 posts they make.

Here are the settings for "Guess the Word"
http://xenweb.net/options.png

Show Your Support

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

Comments
  #22  
Old 03-12-2007, 02:38 PM
deezelpope deezelpope is offline
 
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, that's not it either...I give up!:down:
Reply With Quote
  #23  
Old 03-15-2007, 02:09 PM
deezelpope deezelpope is offline
 
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by harmor19 View Post
This was a quick hack. If you have any suggestions I'd appreciate it.
Resolved
Reply With Quote
  #24  
Old 03-16-2007, 12:36 PM
adwade adwade is offline
 
Join Date: Aug 2006
Location: SouthEast, TN
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by harmor19 View Post
This was a quick hack. If you have any suggestions I'd appreciate it.
Along the lines of something like Random User of the Day, would be nice if the first person to guess the word or phrase of the day was somehow publicized. Maybe a banner, or an ad, or a block in vBadvanced's CMPS somewhere with their avatar or picture in it exclaiming so???

Seems like this idea has a lot of potential. Good work so far harmor19! :up:
Reply With Quote
  #25  
Old 03-20-2007, 04:21 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry for the errors and the lack of support. Right now I'm upgrading the hack to use ajax.
It will also recognize spaces in the word.
Reply With Quote
  #26  
Old 03-21-2007, 05:03 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have upgraded this hack to use ajax. If you or any of your users thinks they know the word they can click on it, type in their guess. If their guess is right it'll echo back the correct word. If they are wring it'll output "You are incorrect".

The option "New Game?" when set to 'Yes' will delete all the entries made by your users which will start a new game.
Reply With Quote
  #27  
Old 03-21-2007, 05:46 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting this error when trying to install:

Invalid SQL:
CREATE TABLE `vb_guessword` (
`guesswordid` INT( 50 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`userid` INT( 50 ) UNSIGNED NOT NULL DEFAULT '0',
`chars` SMALLINT( 6 ) UNSIGNED NOT NULL DEFAULT '0',
);;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 5
Reply With Quote
  #28  
Old 03-21-2007, 06:05 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found it. Should be --

PHP Code:
<installcode><![CDATA[$db->query_write("CREATE TABLE `" TABLE_PREFIX "guessword` (
`guesswordid` INT( 50 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`userid` INT( 50 ) UNSIGNED NOT NULL DEFAULT '0',
`chars` SMALLINT( 6 ) UNSIGNED NOT NULL DEFAULT '0',
)"
;]]></installcode
Also, you should keep a copy of your older version of Guess the Word posted since you have an "alter table" query in there. I had to dig mine up, which I had not installed. By installing the old version, fixing your new version and installing it -- everything is great!

So you should instruct people to install the old version first or make a new install that doesn't require the old version.

My members will love this. Thanks and great work!
Reply With Quote
  #29  
Old 03-21-2007, 07:33 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The error has been fixed.
Reply With Quote
  #30  
Old 03-21-2007, 02:22 PM
deezelpope deezelpope is offline
 
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed
Reply With Quote
  #31  
Old 03-21-2007, 05:41 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deezelpope View Post
Trying again...

Is there supposed to be a box like in your screenshot? Cuz there isn't.

EDIT: Got the same error message...


Database error in vBulletin 3.6.4:

Invalid SQL:
SELECT * FROM guessword WHERE userid='2';

MySQL Error : Table 'forum.guessword' doesn't exist
Error Number : 1146
Date : Wednesday, March 21st 2007 @ 03:29:01 PM

Got this one when I tried to un=install


Database error in vBulletin 3.6.4:

Invalid SQL:
DROP TABLE `guessword`;;

MySQL Error : Unknown table 'guessword'
Error Number : 1051
Date : Wednesday, March 21st 2007 @ 03:56:14 PM
Script :
In the last version I made the mistake of dropping the same table twice.
Go to your Product Manager and click "Go" to the right of 'Edit'.
Remove the uninstall code in 1.0.1
Code:
$db->query_write("DROP TABLE `" . TABLE_PREFIX . "guessword`;");
After that is deleted upload the attached file then you can uninstall both products.
Reply With Quote
Reply


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 07:22 PM.


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.05444 seconds
  • Memory Usage 2,308KB
  • 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
  • (1)bbcode_code
  • (1)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