The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Sudoku for vBulletin Details »» | |||||||||||||||||||||||||
Sudoku for vBulletin Important: This hack will not work if...you must install this hack: Custom page wrapper You must to create a new template called: page_sudoku, with in: HTML Code:
[center][left]<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">[/left] [left]<thead>[/left] [left]<tr>[/left] [left]<td class="tcat" colspan="2"><center>Sudoku</center>[/left] [left]</td>[/left] [left]</tr>[/left] [left]</thead>[/left] [left]<tr height="500">[/left] [left]<td align="center" class="alt1">[/left] [left]<IFRAME SRC = "http://www.free-sudokus.com/cgi/sudoku.cgi?affiliate=1" width="435" height="435" scrolling="no">[/left] [left]</IFRAME>[/left] [left]</td>[/left] [left]</tr>[/left] [left]<tr>[/left] [left]<td class="thead">Rules</td>[/left] [left]</tr>[/left] [left]<tr>[/left] [left]<td class="alt2">[/left] [left]<div style="font-weight: bold;">Short rules</div>[/left] [left]<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.[/left] [left]</div>[/left] [left]<br />[/left] [left]<div style="font-weight: bold;">To resume the vocabulary of the guide</div>[/left] [left]<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>[/left] [left]</tr>[/left] [left]<tr>[/left] [left]<td class="tfoot" colspan="2"><div class="smallfont"><B>Options:</B> <a href="/forum"> Home</a> | <a href="/forum/index.php?page=sudoku">Delete Railing</a></div></td></tr></tbody>[/left] [left]</table> [/left] [left][/left][/center] For play to Sudoku in vBulletin, go to: www.your-site/forum/index.php?page=sudoku Enjoy PS: don't forget to click on Install if you use this hack ^^ PS2: Idea from "cclaerhout" Show Your Support
|
Comments |
#22
|
|||
|
|||
Quote:
|
#23
|
||||
|
||||
Cool, thanks. Some of my members will love this. Smooth, easy install.
|
#24
|
|||
|
|||
I love Sudoku. Doesn't this depend on free-sudokus.com existing?
I think it would be great to have a working copy for your own site. |
#25
|
|||
|
|||
is there a way to have it checked at the end to see if it was done correctly and then go on to a new puzzle?
|
#26
|
||||
|
||||
Here is a revised code (for post #6) which adds the </body> and $stylevar[htmldoctype] bits and miscellaneous corrections:
Add a custom template "custom_sudoku" and add this entire code: Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - Sudoku</title> </head> <body> $header $navbar <br /> <table width="100%" class="tborder" align="center" border="0" cellpadding="0" cellspacing="0"> <thead> <tr> <td class="tcat" colspan="2">Sudoku</td> </tr> </thead> <tr height="500px"> <td class="alt1" style="text-align:center"> <iframe src="http://www.free-sudokus.com/cgi/sudoku.cgi?size=8&affiliate=1" width="450px" height="450px" name="Sudoku"></iframe> </td> </tr> <tr> <td class="thead">Rules</td> </tr> <tr> <td class="alt1"> <div style="font-weight:bold"> Rules from the official site <a href="http://www.free-sudokus.com/cgibin/rules.cgi" title="To Official Sudoku Rules">click here</a>.</div> <br /> <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> </td> </tr> <tr> <td class="tfoot" colspan="2"><div class="smallfont"><B>Options:</B> <a href="$vboptions[bburl]"> Home</a> | <a href="$vboptions[bburl]/misc.php?do=page&template=sudoku">Delete Railing</a></div></td></tr> </table> $footer </body> </html> *Currently testing the mod.* |
#27
|
||||
|
||||
Quote:
Replace the original <iframe> code: Code:
<iframe src="http://www.free-sudokus.com/cgi/sudoku.cgi?affiliate=1" width="435px" height="435px" border="0" scrolling="no"> </iframe> Code:
<iframe src="http://www.free-sudokus.com/cgi/sudoku.cgi?size=8&affiliate=1" width="450px" height="450px" name="Sudoku"></iframe> ------------------------ @Allan: In my previous post (#25) I've added the fix if you're interested. The attachment down below shows the player options correctly. *Now clicked "Install". * |
#28
|
||||
|
||||
J'aurai appr?ci? que tu mentionnes la source qui t'a inspir?e pour d?velopper ce hack. Ne serait-ce que par convention et politesse.
French business sorry Just a word to say that unfortunately the grid provided by free-sudokus.com are sometimes quite strange. The best way would be to generate numbers with php... but it seems no script allows to do that. |
#29
|
||||
|
||||
I'm glad to see that I wasn't the only one who was puzzle by the lack of a closing <td> tag here:
PHP Code:
|
#30
|
||||
|
||||
Hehe, just thought of this using Freestylez's code (above) - for vBadvanced
Go to admincp => Add Module => Template Module Title => Sudoku Column => Center Display Order => Your Choice Active => Yes Update all pages => Your Choice Template to Include => adv_portal_sudoku Style => Choose your top level style Template Content => PHP Code:
The next 3 choices - leave blank, adjust usergroups as needed. Next... admincp => Add Page => Template Page Title => Sudoku Page Identifier => sudoku Display Order => Your Choice Meta Keywords => Your Choice Meta Description => Your Choice Parent Page => Your Choice Custom Style for this Page => Your Choice Page Active => Yes Template Title => adv_portal_sudoku Use Module Shell Template => No Modules Enabled: I personally left all the left ones and right ones currently intact but only chose Custom Page Content for the center page. Adjust the rest of the page as suited (eg usergroup permissions). I have set it up here - http://www.christianboards.org/index.php?page=sudoku I hope I have set it visible to everyone. |
#31
|
||||
|
||||
Quote:
Je rajoute ton pseudo dans le premier post. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|