*

Recent

Author Topic: How to set up Sidebar Blocks  (Read 4062 times)

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
How to set up Sidebar Blocks
« on: October 28, 2014, 12:26:17 PM »
Monster and Tiles themes use sidebar blocks, this is a guide to help you set them up for your arcade.

templates/monster/template.php
Find:
Code: [Select]
echo'<div id="left">';
include("templates/$template/blocks/mymenu.php");
//include("templates/$template/blocks/search.php");
//include("templates/$template/blocks/bannerleft.php");
//include("templates/$template/blocks/bannersright.php");
//include("templates/$template/blocks/random.php");
//include("templates/$template/blocks/category.php");
//include("templates/$template/blocks/ad1.php");
//include("templates/$template/blocks/ad2.php");
include("templates/$template/blocks/top.php");
include("templates/$template/blocks/latest.php");
include("templates/$template/blocks/submenu2.php");
include("templates/$template/blocks/links.php");
include("templates/$template/blocks/stats.php");
echo'</div>
Comment out the ones you do not want to show, change the order, ect.

Tiles theme the block file is located in the includes folder.
includes/blocks.php
Find:
Code: [Select]
include("templates/$template/blocks/mymenu.php");
//include("templates/$template/blocks/sitemap.php");
include("templates/$template/blocks/random.php");
//include("templates/$template/blocks/bannerleft.php");
include("templates/$template/blocks/category.php");
include("templates/$template/blocks/ad1.php");
//include("templates/$template/blocks/ad2.php");
include("templates/$template/blocks/top.php");
include("templates/$template/blocks/latest.php");
include("templates/$template/blocks/links.php");
include("templates/$template/blocks/stats.php");
Same here comment out the ones you do not want to show, change the order, ect.

Here is a little mod to have different blocks on your game page.
*Note* Tiles template does not use the sidebar unless you added the sidebar game page mod.
Code: [Select]
                        if ($_GET['action'] == 'play') {
include("templates/$template/blocks/mymenu.php");
include("templates/$template/blocks/ad1.php");
include("templates/$template/blocks/top.php");
include("templates/$template/blocks/latest.php");
include("templates/$template/blocks/submenu2.php");
                        include("templates/$template/blocks/ad2.php");
include("templates/$template/blocks/stats.php");
                        } else {
include("templates/$template/blocks/mymenu.php");
include("templates/$template/blocks/ad1.php");
include("templates/$template/blocks/top.php");
include("templates/$template/blocks/latest.php");
include("templates/$template/blocks/submenu2.php");
include("templates/$template/blocks/stats.php");
                        }