Aqua-Soft Forums: Make Dark The Default Scheme - Aqua-Soft Forums

Jump to content

Aqua-Soft Mobile

Please keep all threads in this forum related to the Aqua-Soft Mobile skin.
Quicklinks: Purchase | Download: 2.0 - Invision Power Board 3.1 (Updated 2/14/2011) ยท 1.0 - Invision Power Board 3.0 | Additional User Agents | How to Install | Assigning User Agents
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Make Dark The Default Scheme Rate Topic: -----

#1 User is offline   theoscentral Icon

  • Group: Subscribers
  • Posts: 58
  • Joined: 18-February 10

Posted 14 March 2011 - 01:33 AM

How do I make "dark" the default theme.

Also, why do the popups load a little off screen? It causes horizontal scroll. Tested on 3 different android phones. Works on iPhone though.
0

#2 User is offline   Timan Icon

  • Group: Administrators
  • Posts: 4,741
  • Joined: 08-November 02

Posted 14 March 2011 - 02:59 AM

Change the contents of includeCSS with the following

<if test="hasimportcss:|:is_array( $css['import'] )">
	<if test="minifycss:|:$this->settings['use_minify']"><php>$this->minify = array();</php></if>
	<foreach loop="cssImport:$css['import'] as $data">
		<php>
			if( $this->settings['use_minify'] AND ( ! $data['attributes'] OR stripos( $data['attributes'], 'screen' ) !== false ) ) {
				$this->minify[] = "{$data['content']}";
			}
		</php>
		<if test="donotminifycss:|:!$this->settings['use_minify'] OR ( $data['attributes'] AND stripos( $data['attributes'], 'screen' ) === false )">
			<link rel="stylesheet" type="text/css" {$data['attributes']} href="{$data['content']}" />
		</if>
	</foreach>
	<if test="csstominify:|:$this->settings['use_minify'] AND count($this->minify)">
		<link rel="stylesheet" type="text/css" media='screen' href="{$this->settings['public_dir']}min/index.php?ipbv={parse expression="trim(ipsRegistry::$vn_full)"}&amp;f={parse expression="str_replace( $this->settings['public_dir'], 'public/', implode( ',', $this->minify ) )"}" />
	</if>
</if>
<if test="inlinecss:|:is_array( $css['inline'] ) AND count( $css['inline'] )">
	<foreach loop="cssInline:$css['inline'] as $data">
		<style type="text/css" {$data['attributes']}>
			{$data['content']}
		</style>
	</foreach>
</if>
<if test="strpos( strtolower( $this->member->user_agent ), 'windows phone os' ) != true"><link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="{$this->settings['public_dir']}style_css/{$this->registry->output->skin['_csscacheid']}/iphone4.css" /></if>
<if test="substr($this->member->user_agent, 0, 10) == 'BlackBerry' OR strpos( strtolower( $this->member->user_agent ), 'webos' ) != false OR strpos( strtolower( $this->member->user_agent ), 'presto' ) != false OR strpos( strtolower( $this->member->user_agent ), 'android 2.1' ) != false OR strpos( strtolower( $this->member->user_agent ), 'windows phone os' ) != false">
	<link rel="stylesheet" type="text/css" media="screen" href="{$this->settings['public_dir']}style_css/{$this->registry->output->skin['_csscacheid']}/legacy.css" />
</if>
<if test="strpos( strtolower( $this->member->user_agent ), 'windows phone os' ) != false">
	<link rel="stylesheet" type="text/css" media="screen" href="{$this->settings['public_dir']}style_css/{$this->registry->output->skin['_csscacheid']}/winphone.css" />
</if>
<link rel="stylesheet" type="text/css" title="dark" media="screen" href="{$this->settings['public_dir']}style_css/{$this->registry->output->skin['_csscacheid']}/color_dark.css" />
<script type="text/javascript">

	function createCookie(name,value) {
		var date = new Date();
		date.setTime(date.getTime()+(365*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
		document.cookie = name+"="+value+expires+"; path=/";
	}
	function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}
	if (readCookie('style') != (undefined || '' || null)) {
		styleName = readCookie('style');
	}
	else {
		styleName = 'dark';
	}
	var StyleFile = "color_" + styleName + ".css";
	document.writeln('<link rel="stylesheet" type="text/css" href="{$this->settings['public_dir']}style_css/{$this->registry->output->skin['_csscacheid']}/' + StyleFile + '">');
</script>

0

#3 User is offline   theoscentral Icon

  • Group: Subscribers
  • Posts: 58
  • Joined: 18-February 10

Posted 14 March 2011 - 04:35 AM

Ok, another question Tim. I have google adsense on here. How do I make them so they fit mobile but stay same size when viewing on pc?
0

#4 User is offline   Timan Icon

  • Group: Administrators
  • Posts: 4,741
  • Joined: 08-November 02

Posted 14 March 2011 - 05:31 AM

Err not really sure how to do that. The only ad's you'd be able to fit are googles mobile ones. Anything bigger could cause it to scroll.
0

#5 User is offline   theoscentral Icon

  • Group: Subscribers
  • Posts: 58
  • Joined: 18-February 10

Posted 15 March 2011 - 07:56 AM

Ok. Well on my site I have ads when viewed on a PC and on phone are same size. Which is bad on mobile since its way to big. What's a good solution? Remove ads on mobile theme? How?
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic