vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Sudoku for vBulletin (without plugin) (https://vborg.vbsupport.ru/showthread.php?t=135768)

Allan 01-06-2007 10:00 PM

Sudoku for vBulletin (without plugin)
 
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):
PHP Code:

<center>
<
html>
<
head>
$headinclude
<title>$vboptions[bbtitle] - 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 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>
</
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>
$footer
</html>
</
center


  • Url for play: ../misc.php?do=page&template=sudoku
PS: If you use this mod, please to click on Install 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.

Code:

<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

Quote:

Originally Posted by Kadi (Post 1161269)
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...

Code:

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

Code:

<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

Quote:

Originally Posted by ggregg13 (Post 1666093)
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/5...emanualmj0.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


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01414 seconds
  • Memory Usage 1,775KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete