Aqua-Soft Forums: Mobile Skin - Aqua-Soft Forums

Jump to content

Aqua-Soft Skin

Please keep all threads in this forum related to the Aqua-Soft skin.
Quicklinks: Purchase | Download: 4.5 - vBulletin 3.8, Invision Power Board 2.3 & phpBB 3 · 4.0 - vBulletin 3.7 & phpBB 3 · 3.0 - vBulletin 3.5, vBulletin 3.6 & phpBB 2
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Mobile Skin Rate Topic: -----

#1 User is offline   paulf10 Icon

  • Group: Subscribers
  • Posts: 11
  • Joined: 10-January 09

Posted 28 April 2009 - 12:17 AM

Hey all,

Sense many of my forum's users have an ipod touch or iPhone i was wondering what is required to have a mobile skin for my VB forum.

Similar to http://www.vbulletin...ad.php?t=171947 ?

Or any other skins you guys are aware of?

I'm pretty much asking what it would take to implement, and if you guys have any suggestions on how to do so, i'd be very much appreciated.

Thanks!
0

#2 User is offline   Timan Icon

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

Posted 28 April 2009 - 08:49 AM

I plan on making one, but it'll be for IPB3 first (since its what we use here).

I'm not really sure how to setup browser detection, but I'm sure there is a mod at vbulletin.org for that.
0

#3 User is offline   paulf10 Icon

  • Group: Subscribers
  • Posts: 11
  • Joined: 10-January 09

Posted 29 April 2009 - 02:20 AM

thanks for the help.

An unrelated question;
I was working on the navbar, and am not sure the name of the image you are using for "Guidelines"
The help logo is "faq", "calendar" "newposts" etc.
btw, where are those files located?
0

#4 User is offline   Timan Icon

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

Posted 29 April 2009 - 10:45 AM

images/as4/global/toolbar_icons.png
0

#5 User is offline   foxofinfinety Icon

  • Group: Subscribers
  • Posts: 72
  • Joined: 15-April 08

Posted 29 April 2009 - 07:11 PM

View PostTiman, on Apr 28th 2009, 10:49 AM, said:

I'm not really sure how to setup browser detection, but I'm sure there is a mod at vbulletin.org for that.
you won't need one
just use
<link rel="stylesheet" media="only screen and (max-device-width:260) and (max-device-height:356)" href="iphone.css" />
<!-- css3 media query, iphone/ipod touch will recognize this and use it as it's there screen size,
other devices and webbrowser that don't support media-querys will ingore it thanks to the "only" key-word,
as they don't know that either -->
<link rel="stylesheet" media="screen" href="desktop.css" />
<!-- but they do know this -->

mobile safari (and with that the iphone and ipod touch) will recognize the media-query and use iphone.css
other devices and web browsers that don't support media-queries will use desktop.css
0

#6 User is offline   paulf10 Icon

  • Group: Subscribers
  • Posts: 11
  • Joined: 10-January 09

Posted 30 April 2009 - 12:48 AM

thanks all
sorry for the "n00b" questions but, VB design isn't quite "my thing"

How can i go about making an image that is not in toolbar_icons.png appear in my navbar?
I have it in the same directory as toolbar_icons.png. I don't know if i need to modify toolbar_icons.png or what.

Thanks
0

#7 User is offline   Timan Icon

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

Posted 30 April 2009 - 11:50 AM

View Postfoxofinfinety, on Apr 29th 2009, 03:11 PM, said:

you won't need one
just use
<link rel="stylesheet" media="only screen and (max-device-width:260) and (max-device-height:356)" href="iphone.css" />
<!-- css3 media query, iphone/ipod touch will recognize this and use it as it's there screen size,
other devices and webbrowser that don't support media-querys will ingore it thanks to the "only" key-word,
as they don't know that either -->
<link rel="stylesheet" media="screen" href="desktop.css" />
<!-- but they do know this -->

mobile safari (and with that the iphone and ipod touch) will recognize the media-query and use iphone.css
other devices and web browsers that don't support media-queries will use desktop.css



Theres one big problem with this tho.

The templates would remain the same. If I was to do a mobile skin, I would have every single template redone to just have the most basic functionality. (check out my windows-mobile skin at www.neowin.net/forum/)
0

#8 User is offline   Timan Icon

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

Posted 30 April 2009 - 11:55 AM

View Postpaulf10, on Apr 29th 2009, 08:48 PM, said:

thanks all
sorry for the "n00b" questions but, VB design isn't quite "my thing"

How can i go about making an image that is not in toolbar_icons.png appear in my navbar?
I have it in the same directory as toolbar_icons.png. I don't know if i need to modify toolbar_icons.png or what.

Thanks



You'll need to modify the css for whatever icon you want to change. Example

img.tb-itemname {
	background: url(as4/global/icon_file_name.png) no-repeat;
}



And to add extra icons do something like this (from previous post).

Navigation / Breadcrumb Templates > navbar
Look for:
<ul id="tb-icons">

	<li id="tb-logo"><a href="$vboptions[homeurl]" title="$vboptions[bbtitle]"></a></li>


Then add your toolbar icon where you want it, with the following (change to fit your needs)
<li id="tb-itemname"><a href="link.html"><img src="$stylevar[imgdir_misc]/blank.gif" alt="" />
Link Name</a></li>

0

#9 User is offline   foxofinfinety Icon

  • Group: Subscribers
  • Posts: 72
  • Joined: 15-April 08

Posted 30 April 2009 - 05:16 PM

View PostTiman, on Apr 30th 2009, 01:50 PM, said:

Theres one big problem with this tho.

The templates would remain the same. If I was to do a mobile skin, I would have every single template redone to just have the most basic functionality. (check out my windows-mobile skin at www.neowin.net/forum/)

eh ok, how about checking the user agent string?
something like this (can use some inprovement):
<?php
$browser = $_SERVER['HTTP_USER_AGENT'];
if($browser == 'Mozilla/5.0 (iPod; U; CPU iPhone OS 2_2_1 like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5H11 Safari/525.20'){
//ipod touch with safari 2.2.1
}elseif($browser == 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2_1 like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5H11 Safari/525.20'){
//iphone with safari 2.2.1
}elseif($browser == 'Mozilla/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A102 Safari/419.3'){
//ipod touch with safari 1.1.4
}elseif($browser == 'Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A102 Safari/419.3'){
//iphone with safari 1.1.4
}
//else we'll assume a desktop.
?>
these are the correct browser agent strings but the problem with this is,
you can set them to be like this in some browsers, even if you don't have a iphone/ipod touch
0

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