PDA

View Full Version : Sudoku for vBulletin (without plugin)


Allan
01-06-2007, 10:00 PM
Sudoku for vBulletin
(without plugin)



Description: Add one page with Sudoku Game without plugin, juste a new template
Create a new template called: "custom_sudoku"
Add inside (work with FF and IE):
<center>
<html>
<head>
$headinclude
<title>$vboptions - Sudoku</title>
</head>
<body>
$header
<br />
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1">
<thead>
<tr>
<td class="tcat" colspan="2"><center>Sudoku</center>
</td>
</tr>
</thead>
<tr height="500">
<td align="center" class="alt1">
<IFRAME SRC = "http://www.free-sudokus.com/1/8.html" width="435" height="435" scrolling="no">
</IFRAME>
</td>
</tr>
<tr>
<td class="thead">Rules</td>
</tr>
<tr>
<td class="alt2">
<div style="font-weight: bold;">Short rules</div>
<div class="smallfont">It is necessary to fill the railing by using figures from 1 to 9. Necessarily only once in every line, column and square of 3 x 3.
</div>
<br />
<div style="font-weight: bold;">To resume the vocabulary of the guide</div>
<div class="smallfont">It is necessary to fill the railing by using 9 given symbols (Generally figures from 1 to 9, or letters indicated at the foot of the railing). Necessarily only once (but no more) on every line, column and region (or squared by 3 x 3).</div>
</tr>
<tr>
<td class="tfoot" colspan="2"><div class="smallfont"><B>Options:</B> <a href="$vboptions"> Home</a> | <a href="$vboptions[bburl]/misc.php?do=page&template=sudoku">Delete Railing</a></div></td></tr></tbody>
</table>
$footer
</html>
</center>


Url for play: .[B]./misc.php?do=page&template=sudoku[B]PS: If you use this mod, please to click on Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=135768) please ;)
PS: Idea from "cclaerhout"

Tulsa
01-07-2007, 01:34 PM
Thanks!

You will probably want to include:

$navbar beneath $header so everyone's navbar will work properly on this page.

Also if you use a drop down from your navbar as I do for my arcade or other entertainment you can add this for a menu item.

<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/misc.php?do=page&template=sudoku">Sudoku</a></td></tr>

Sooner95
01-13-2007, 07:29 PM
Nice, thx to both of you..

thuy.hack
01-16-2007, 05:46 AM
wa wa wa. i like sodoku. thank you very much. i'll install it now

Kadi
01-17-2007, 08:20 AM
Thanks Allan.

How do I translate the Sudoku title and the rules?

I tried $vbphrase[Sudoku] but it didnt work.

daz1967
07-30-2007, 04:46 PM
great hack thanks

ringleader
08-03-2007, 02:13 PM
I tried $vbphrase[Sudoku] but it didnt work.

It's written directly into the template itself:

<center>Sudoku</center>
and
<td class="thead">Rules</td>
and
<div style="font-weight: bold;">Short rules</div>

If you want, you should create your own custom phrases in the Admincp Phrase Manager, and then $vbphrase[sudoku] will work in the template.

silver surfer
12-18-2007, 03:27 PM
THNX !!!

WORKS LIKE A CHARM !!!

good work, guys.

*silver surfer clicks "installed" *

SuperTaz
12-25-2007, 08:01 AM
Very nice. Thank you.

Dabbi
01-14-2008, 12:24 PM
Sorry for what is probably a silly question (I'm a fairly new vB owner) but is this something I can give permissions to certain user groups for?

Thank you. :)

menababu
02-15-2008, 01:06 PM
i want to add this in navbar.what kind of code i need to put and where i need to put?any help?
thanks:confused:

glennybee
02-17-2008, 02:45 PM
Open the 'navbar' template and find this line...

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>

Below it, add....

<td class="vbmenu_control"><a href="http://www.domain.com/forum/misc.php?do=page&template=sudoku">Sudoku</a></td>

(insert your own domain)

Save and Close.

Exit ACP and reload.

menababu
02-21-2008, 08:14 PM
Thanks glennybee for help.

Lizbaby4
02-26-2008, 02:34 AM
OK, this is going to sound stupid, but how do I add a new template? Do I have to do it for every skin I have, or is this something different?

glennybee
02-29-2008, 03:59 PM
Go into Style Manager, click on the drop down menu for the desired style and select 'add new template'.

Deadly Assassin
07-13-2008, 07:13 AM
Excellent thanks!

I added it as a page in my CMPS, it works a treat.

Nice!!

BucWiLd
08-19-2008, 09:43 PM
worls great on vb 3.72.. would love to know how you got into your cmps? pretty please?

kiwivc
11-15-2008, 12:11 AM
Installed on 3.6.8 Pl2 and it works perfectly thanks :)
Marked as installed.

ggregg13
11-15-2008, 01:09 PM
sorry but how do l create a new template

kiwivc
11-15-2008, 06:19 PM
sorry but how do l create a new template
I had no idea either but searched using the Useful Links/Reference Manual:

http://img201.imageshack.us/img201/5317/referencemanualmj0.jpg

ggregg13
11-16-2008, 05:14 PM
made the new template but were do l add the last part the url ../misc.php?do=page&template=sudoku

ggregg13
11-25-2008, 09:30 PM
will this game slow down the rest of the site