Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Sudoku for vBulletin Details »»
Sudoku for vBulletin
Version: 1.00, by Allan Allan is offline
Developer Last Online: Mar 2017 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 05-18-2006 Last Update: Never Installs: 43
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-20-2006, 01:30 PM
Justdave Justdave is offline
 
Join Date: May 2005
Location: Meridian Idaho
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wizardan
http://www.sodokuweb.com/

wizardan clicks install
TY
Reply With Quote
  #23  
Old 05-21-2006, 03:03 AM
MustangLisa's Avatar
MustangLisa MustangLisa is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, thanks. Some of my members will love this. Smooth, easy install.
Reply With Quote
  #24  
Old 05-21-2006, 03:08 AM
dilbert dilbert is offline
 
Join Date: Nov 2004
Location: Boston
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 05-22-2006, 01:18 AM
dashaka2 dashaka2 is offline
 
Join Date: Sep 2005
Location: Florida
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #26  
Old 05-22-2006, 01:42 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
You can access it by misc.php?do=page&template=sudoku.



*Currently testing the mod.*
Reply With Quote
  #27  
Old 05-22-2006, 03:29 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dashaka2
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?
Yes. You can replace template "custom_sudoku" with the above post (#25) or...

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>
With this one:

Code:
<iframe src="http://www.free-sudokus.com/cgi/sudoku.cgi?size=8&affiliate=1" width="450px" height="450px" name="Sudoku"></iframe>
Change the "8" to a lower or higher number. Keep in mind that if you change it you may also need to adjust the "width" and "height" settings. Also for more ways to customize it go here to the official site.

------------------------

@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". *
Reply With Quote
  #28  
Old 05-22-2006, 01:44 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 05-22-2006, 03:11 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
<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 moreon every linecolumn and region (or squared by 3 x 3).</div
Now, I guess my new question is where is the location of the opening </tbody> tag?
Reply With Quote
  #30  
Old 05-22-2006, 03:36 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
<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;">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 linecolumn 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 moreon every linecolumn 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></tbody>
</
table
Use Module Shell Template => No
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.
Reply With Quote
  #31  
Old 05-22-2006, 04:35 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cclaerhout
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.
Oui, tu a raison, j'avais compl?tement zapp?, excuse moi.

Je rajoute ton pseudo dans le premier post.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05102 seconds
  • Memory Usage 2,353KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete