PDA

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


Valter
08-06-2006, 10:00 PM
vB 3.7 VERSION HERE
https://vborg.vbsupport.ru/showthread.php?t=177960

====

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.

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 is preety different. 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.


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


Click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=123287) if you like this.


Cybernetec

Neal-UK
08-07-2006, 01:10 PM
In the UK, we call that Naughts and Crosses.

Nice release.

Atakan KOC
08-07-2006, 03:52 PM
Thanks Cybernetec;

Silvio
08-07-2006, 05:33 PM
ty so much. really appreciated!:cool: *InStAlLeD*

Silvio
08-07-2006, 05:52 PM
*InStAlLeD*<---- lol on my 3.5.5 works on index page only but is really cool. I'll add this one to my new 3.6 forum installation 4sure!!.
ciao take care

Valter
08-07-2006, 06:52 PM
v1.2 - Aug 07. 2006.
- Fixed bug that game can't be opened from other pages than forumhome

iran.gs
08-07-2006, 08:22 PM
lnstalled ty very easy and simple.

Silvio
08-07-2006, 11:11 PM
Is working great also on 3.5.5. now ty.
pls note that doesent seem to worg great with user subgroups

ciao
take care

Wordplay
08-08-2006, 02:32 PM
would be cool if you could make this for that game 4 wins. where you need 4 in a row to win.

it's like an extention of tic tac toe.

bolly.beats
08-16-2006, 05:35 AM
thank you buddy but its keep sayin me choose an empty field :( what does it mean lol ?

barny
08-24-2006, 08:29 PM
as get I link in navbar of vba ?

Valter
08-24-2006, 10:51 PM
thank you buddy but its keep sayin me choose an empty field :( what does it mean lol ?
Hi bolly.beats,

Maybe you have some problem with loading images. You can't click on image - you can't play. :)

Note:
Default images 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 (one for X, one for O, and blank one).

Boots
09-02-2006, 07:07 PM
Installed... how do I get the link off my navbar though?

Stop
09-03-2006, 11:45 AM
Very nice little hack. But it seems there's a problem with the site that has the little images. Can you please attach them so I can upload them in my site ?

Valter
09-03-2006, 05:36 PM
Very nice little hack. But it seems there's a problem with the site that has the little images. Can you please attach them so I can upload them in my site ?
Attached.

Installed... how do I get the link off my navbar though?
You can't open the game without it.

And to be able to play it on any page you can move it to header/footer only, or leave it in navbar.

Stop
09-04-2006, 04:04 AM
Works fine on 3.5.4.

Thanks Cyb

BioWaffen
09-13-2006, 06:30 PM
Does only excist Tic Tac Toe with 3x3 ? It is easy to draw ;) so I mean bigger fields and you need more I mean

Senn
09-16-2006, 12:54 PM
When I click in a field I always obtain:

"Choose an empty field". All fields are empty.

Check it:
www.macosh.com/foro

Valter
09-16-2006, 04:35 PM
Upload images to your server and update their locations options in ACP.

kylek
09-28-2006, 07:31 AM
Thanks for the great game.

Is there any way to position the link in the navbar? I have added a second navbar and would like the link to appear in the second one.

Thanks!!

ReadOrDie
10-13-2006, 07:51 PM
Do you think you could get a few other multiplayer games like connect four, checkers and/or chess?

RFViet
01-18-2007, 02:16 PM
It would be great If the number of square can be customized

Charmedfan
03-14-2007, 10:37 PM
Hey,
thanks for the game but is there a solution to display the game in a separate template. I want to add it in my Games Section (I need a full link) but I do not know how to do it in a separte template.
I hope you can help me.

Thanks

Charmedfan

TVNettet
03-22-2007, 02:05 AM
In Ireland we call it x's & o's :-)
thx...
Tried installing it, can't get it to work in surge.
Found the different text in the templates than to your instructions, but then the game kept saying choose another.
Still works nice in default.

Silvio
07-03-2007, 09:23 PM
hi,

What I have to modify on xml (b4 reloading it) to avoid link on main navbar and fit it onto quick links of the same navbar?

I guess this is where $vbulletin->templatecache['navbar'] = str_replace($cyb_ttt_srch_game, $cyb_ttt_srch_game.$vbulletin->templatecache['cyb_tictactoe'], $vbulletin->templatecache['navbar']);
$cyb_ttt_srch_link = ('vbphrase[user_cp]</a></td>');
$vbulletin->templatecache['navbar'] = str_replace($cyb_ttt_srch_link, $cyb_ttt_srch_link.$vbulletin->templatecache['cyb_tictactoe_link'], $vbulletin->templatecache['navbar']);

lol but how?

ty very much for help

periphrastic
09-26-2007, 02:49 AM
hmmm...followed instructions, not working

the skin is highly customized. i made the template changes in default (not the applicable skin template), as this "vbphrase[user_cp]</a></td>" could not be found in the customized skin template. still not showing up, however.

any advisement? thanks

edit*

got it through

now there are javascript errors

ogameclub
10-13-2007, 04:29 PM
No works in Firefox

rjp0615
10-13-2007, 04:30 PM
doesn't work for me in firefox either

Butcher
04-10-2008, 01:44 PM
works fine in firefox here

one problem i have however. i want to use this but i have a modified template. ie; my navbar is located in my header. But all links are images. so how would i go about making the image open the game. i have added $cyb_tictactoe on forumhome but how do i link to it. You seem to use $cyb_tictactoe_link however it's not possible to use this inside <a href="link">image code</a>

is there a work around?

*EDIT*

Sorry really should start to look for myself first before asking. Anyway sorted this problem by simply looking.
If anyone else needs this info then simply use
<a href="#cttt" onclick="return toggle_collapse('cyb_fh_ttt')">image code</a> :)

Butcher
04-10-2008, 03:55 PM
hmmm ok this above lets me open the tic-tac-toe box but when i click in one of the boxes to play the game it says "Choose an empty field"

Butcher
04-11-2008, 04:24 PM
ok figured this out also. If anyone else has this problem then here's the fix.
Basically the problem is because my navbar is actually located within the header template. Which you'll find most custom templates/styles tend to do.

IF this is the case for you then use this product instead

xa1ax
04-11-2008, 09:30 PM
It's so nice;
thank you very much

Sgt Pepper
04-14-2008, 08:22 AM
i always get the error "Choose An Empty Field!". I have tryed adding my own images,then adding ur images but still nothing. I used the XML file from butcher but didnt work. Please Cybernetec help me im a big fan of ur products. I have installed 5 of them :D. Well anyways i will keep trying but if u have any help plz do

Thanking you in advance,
Sgt Pepper

Sgt Pepper
04-14-2008, 08:36 AM
here are 2 screenshots of what happens

Butcher
04-14-2008, 03:06 PM
you have the game above navbar
it should be below your navbar

the XML i provided will only help if you move your nav buttons/links into your header. You seem to have both. But the actual game should still show up below the original navbar

AlphaMale85
04-14-2008, 04:18 PM
So user can't play against user?

Butcher
04-14-2008, 04:29 PM
no this is just against computer