*

Recent

Author Topic: [Add On] Monster Template CSS Switcher  (Read 8616 times)

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 226
  • Force: +1/-0
    • Great Flash Games
[Add On] Monster Template CSS Switcher
« on: January 04, 2015, 05:37:54 PM »
Want to allow your users to choose any color theme they want for your arcade?



This Mod is for you!

Demo => http://demo.freearcadescript.net

Download monster-css-switcher.zip and upload style to templates/monster/
upload and replace template.php to templates/monster
upload and replace topnav.php to templates/monster/blocks
Upload contents of images to images in root of your arcade.

Includes new grey.css

Edit index.php
Find:
Code: [Select]
include ('includes/functions.php');
include ('includes/core.php');
include('includes/rating_functions.php');
include('includes/reset.php');

Add After:
Code: [Select]

if(isset($_GET['css'])){
switch ($_GET['css']) {

case 'green':
$stylesheet = '<link rel="stylesheet" type="text/css" href="'.$domain.'/templates/'.$template.'/style/green.css">';
$_SESSION['switchcss']=$stylesheet;
break;

case 'red':
$stylesheet = '<link rel="stylesheet" type="text/css" href="'.$domain.'/templates/'.$template.'/style/red.css">';
$_SESSION['switchcss']=$stylesheet;
break;

case 'grey':
$stylesheet = '<link rel="stylesheet" type="text/css" href="'.$domain.'/templates/'.$template.'/style/grey.css">';
$_SESSION['switchcss']=$stylesheet;
break;

default:
$stylesheet = '<link rel="stylesheet" type="text/css" href="'.$domain.'/templates/'.$template.'/style/teal.css">';
$_SESSION['switchcss']=$stylesheet;
}
}


Dillon

  • Developer
  • Sr. Member
  • ******
  • Posts: 340
  • Force: +3/-0
    • Arcade Freak
Re: [Add On] Monster Template CSS Switcher
« Reply #1 on: January 04, 2015, 10:03:22 PM »
Looks great! a good addition to the themes.


Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: [Add On] Monster Template CSS Switcher
« Reply #2 on: January 19, 2015, 05:24:37 AM »
It's cute when someone does something like that - Just makes it different. :)


kizinew

  • Newbie
  • *
  • Posts: 10
  • Force: +0/-0
Re: [Add On] Monster Template CSS Switcher
« Reply #3 on: June 21, 2016, 06:08:14 PM »
Thank you. this see nice.