Free Arcade Script

FAS Customization => Addons/Modifications => V3.x => : am-fs January 04, 2015, 05:37:54 PM

: [Add On] Monster Template CSS Switcher
: am-fs January 04, 2015, 05:37:54 PM
Want to allow your users to choose any color theme they want for your arcade?

(http://freearcadescript.net/images/monster-css-switcher.jpg)

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:
:
include ('includes/functions.php');
include ('includes/core.php');
include('includes/rating_functions.php');
include('includes/reset.php');

Add After:
:

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;
}
}
: Re: [Add On] Monster Template CSS Switcher
: Dillon January 04, 2015, 10:03:22 PM
Looks great! a good addition to the themes.
: Re: [Add On] Monster Template CSS Switcher
: Frank January 19, 2015, 05:24:37 AM
It's cute when someone does something like that - Just makes it different. :)
: Re: [Add On] Monster Template CSS Switcher
: kizinew June 21, 2016, 06:08:14 PM
Thank you. this see nice.
TinyPortal © 2005-2012