PDA

View Full Version : Miscellaneous Hacks - Cyb - Tic-Tac-Toe


Valter
05-02-2008, 10:00 PM
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 (http://www.dynamicdrive.com/dynamicindex12/tictactoe.htm) from Dynamic Drive for original version of this javascript game
- yoyoyoyo (https://vborg.vbsupport.ru/member.php?u=71842) for his vB release for vB 3.0
- Atakan KOC (https://vborg.vbsupport.ru/member.php?u=130169) 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
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
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:
$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:
$cyb_tictactoe_link

To change link style edit this template:
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
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.

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
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.