vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Cyb - Tic-Tac-Toe (https://vborg.vbsupport.ru/showthread.php?t=177960)

Valter 05-02-2008 10:00 PM

Cyb - Tic-Tac-Toe
 
Info:
Easy integration of Tic-Tac-Toe game with vBulletin forum software.

The forum user play against the computer, and it has 4 levels of difficulty that are user-selectable. It also includes history of the game. Admin can change competitor name, select usergroups who can play the game, choose different images for X, O, and BGD.

NOTE: Images are loaded from TinyPic by default (to avoid file uploads when installing hack). If you want you can upload them to your own server and then change paths in product settings. Of course, you can use your own images too.

Thanks to:
- Brian from Dynamic Drive for original version of this javascript game
- yoyoyoyo for his vB release for vB 3.0
- Atakan KOC for his vBulletin releases for vB 3.5/3.6

This version requires no file uploads nor template edits. It's easy to show/hide the game when browsing forums. It's phrased, looks little better, and integration with vB is improved. How? See screenshots and try it out.


Installation:
1. Import XML file as Product through your Admin CP
2. OPTIONAL (If you are using some very customized styles):
Open template "FORUMHOME" and add "$cyb_tictactoe" after "$navbar". Save.
Open template "navbar" and add "$cyb_tictactoe_link" after "vbphrase[user_cp]</a></td>". Save.


Note:
Default images are stored at tinypic.com (to avoid files uploads when installing hack). If you want you can upload them to your own server and then change paths in product settings. Of course, you can use your own images too (one for X, one for O, and blank one).


Versions:
v1.0 - Jun 19. 2006.
- First version (never released here :p)
v1.1 - Aug 07. 2006.
- No more files uploads required
- Added options to choose images locations. Default ones are stored at imageshack.com (to avoid files uploads when installing hack). If you want you can upload them to your own server and then change paths in product settings. Of course, you can use your own images too.
v1.2 - Aug 07. 2006.
- Fixed bug that game can't be opened from other pages than forumhome
v1.3 - May 03. 2008.
-Compatible with vBulletin 3.7
-Minor bugs fixed


Click INSTALL if you like this hack.

AlphaMale85 05-03-2008 03:11 PM

If only it was user vs. user................

BoYagoob 05-05-2008 04:13 AM

interesting .. loool ..

installed .. :)

LisaJH 05-07-2008 04:54 AM

lol yea user vs user would be good aswell

macc 05-07-2008 05:44 AM

hello!

have installed but works not for me ..no pictures and can not play... have vbulettin 3.7

reg

macc

Edit: will attach image

hellfirehooliga 05-19-2008 11:29 PM

its funny how these simple games keep you busy for hours, nice work..thanks

GateKeper 05-26-2008 03:43 PM

sometimes it says chose an empty field, then sometimes you get to play one game, but no more, even after closing, and starting it again, it comes back to the last game played, only way to get a new game is to close and refresh the page, the old version for 3.6.x worked much better, but after us going to 3.7.0 and upgrading to this version it does not work correctly.

SauravG 06-02-2008 01:31 PM

Works fine on the default vB skin.
But on a custom skin, I followed your steps but when I click on a square on the game it says "Choose An Empty Field!"

alahmed 06-17-2008 07:07 PM

same problem ..

"Choose An Empty Field!"

vitrag24 07-03-2008 09:27 PM

cool,
but user to user will be supercool.
Thanks.

Q-v-n-s-Q 07-04-2008 04:29 AM

cool, i love this game

mystic10 07-16-2008 05:12 PM

i have two navbar one i want the link to be shown on the bottom navbar how do i do that

Uegnet 07-21-2008 01:18 AM

Installed!

The link that's added to the menu, "$cyb_tictactoe_link"
Is is posible to edit how it looks? Would be nice with a white background (and no bold).

Cheers
- uegnet

SSJB_7 07-29-2008 08:11 AM

funny! but can it be SYNCRONIZED with CMPS????

gbml4u 08-28-2008 07:20 PM

can you make a multiplayer on this ? which that users can play together ?

That will make the mod be greater :)

AuroraStorm 09-01-2008 08:10 PM

Hey Cybernetec, let me ask you something seeing as how you're the man...what are the chances that you can design interactive Uno or Spades multiplayer games?

Monopoly would be AWESOME!!

I would die and go to heaven... :D

TheInsaneManiac 09-01-2008 09:43 PM

This would be cool to play with other members.

Fireproof 09-01-2008 09:59 PM

How can I remove the link that is automatically added, so that I can place the link somewhere else in my navbar?

(I have an additional navbar, and would like the link to be in a drop-down menu).

Thanks in advance.

shotkey 09-11-2008 03:46 PM

Quote:

Originally Posted by Fireproof (Post 1612368)
How can I remove the link that is automatically added, so that I can place the link somewhere else in my navbar?

(I have an additional navbar, and would like the link to be in a drop-down menu).

Thanks in advance.

I would like to be able to do this too. Did you ever get a reponse to this question?

Fireproof 09-11-2008 04:33 PM

Quote:

Originally Posted by shotkey (Post 1619936)
I would like to be able to do this too. Did you ever get a reponse to this question?

No. And that's why I have not installed this yet. :(

Valter 09-11-2008 06:24 PM

In Plug-In "Cyb - Tic-Tac-Toe - GS":
Find:
Code:

$vbulletin->templatecache['navbar'] = str_replace($cyb_ttt_srch_link, $cyb_ttt_srch_link.$vbulletin->templatecache['cyb_tictactoe_link'], $vbulletin->templatecache['navbar']);
Comment this line or remove it, then save.

To put link to another place use this variable in template:
Code:

$cyb_tictactoe_link
To change link style edit this template:
Code:

cyb_tictactoe_link

paramegsoft 09-11-2008 06:45 PM

nice mod
i will test it

binevi 09-11-2008 07:30 PM

it looks like ok but how about on CMS as a module ?

tab503 09-20-2008 06:55 PM

any chance for multiplayer? :D

tom212 10-27-2008 08:19 PM

Super easy install. Thanks!

But, I've seen a couple of folks ask about the "Empty Field" issue and I'm having the same issue. Everything I click on says "Choose an Empty Field." Any idea what causes that or what the fix might be? I've uploaded the images to my server to insure that's not part of the issue.

What I suspected was causing the problem was that I have a second navbar. The game was showing up under the first and above the second, but appeared with the standard error.

So, I removed the second navbar and uploaded the mod as is. Unfortunately I still get the same error.

Anybody have any ideas? I'm really eager to get this working!

Thanks in advance,

Tom

Problemsolver 12-23-2008 07:00 PM

Is it only for 3x3 or can u get bigger grids? Superboring in that case.

fahl 03-06-2009 03:43 PM

How can i make direct link for this.
ie
http://******.com/tic-tak-toe

so i can put it in drop down menu

PGAmerica 08-12-2009 11:49 PM

Quote:

Originally Posted by Cybernetec (Post 1620030)
In Plug-In "Cyb - Tic-Tac-Toe - GS":
Find:
$vbulletin->templatecache['navbar'] = str_replace($cyb_ttt_srch_link, $cyb_ttt_srch_link.$vbulletin->templatecache['cyb_tictactoe_link'], $vbulletin->templatecache['navbar']);[/code]
Comment this line or remove it, then save.

OK, this was easy enough.

Quote:

Originally Posted by Cybernetec (Post 1620030)
To put link to another place use this variable in template:
$cyb_tictactoe_link

I don't understand this at all. What should the <a href="???"> look like?

PGAmerica 08-16-2009 02:28 AM

Is there an answer to this?

PGAmerica 08-19-2009 02:16 PM

Is this even supported anymore?

Digital Jedi 08-22-2009 03:59 AM

Quote:

Originally Posted by PGAmerica (Post 1866198)
OK, this was easy enough.


I don't understand this at all. What should the <a href="???"> look like?

You don't use anything but the variable to create the link. No <a href="">. No nothing, other than any other special formatting you want used. Other than that, you just use the variable $cyb_tictactoe_link as is, in the templates you want it in.


All times are GMT. The time now is 12:20 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.03793 seconds
  • Memory Usage 1,777KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete