IPad Mobile Skin

Posted By Bryan N 08/02/2012 18:07:06
Add to Favorites4
Author Message
Bryan N
 Posted 08/02/2012 18:07:06
Forum Guru

Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)

Group: Customers
Last Active: 23/02/2012 18:48:15
Posts: 2, Visits: 53
15
Hi guys.

Love your product, I just got 2012 and it is wonderful.

But we really like the forums to be used in something other than mobile for the larger tablet mobile devices. Is there a way to stop it from automatically going to the mobile skin for them?

Bryan
Ryan Healey Marked As Answer
 Posted 09/02/2012 17:16:06
I dont see much sun

I dont see much sun - (7,714 reputation)

Group: Administrators
Last Active: Yesterday @ 13:22:53
Posts: 2,339, Visits: 22,736
Hi Bryan,

Welcome to the forum. I hope your very well. Thank you for your kind comments and post. I'm pleased to hear you like the mobile skin :)

I'm afriad we don't have a quick way to do this just yet without modifying the code. We are looking to add support to allow you to target specific skins to specific popular devices. For now If you have a developer license and don't mind modifying the code you can make a small change to enable this.

You'll need to modify our central GetCurrentSkin method within the InstantASP.InstantForum\HttpContext\ForumContext.vb class.

Open this file and search for GetCurrentSkin. You would need to add the following code to the top of this method...

If System.Web.HttpContext.Current.Request.UserAgent.Contains("iPad") Then
Return InstantASP.InstantForum.Globals.Paths.SkinDirectory + "/iPad/"
End If

This will load the iPad skin in the skins folder if the user agent contains the "iPad" keyword. If your not able to modify the code please respond via email to sales@instantasp.co.uk and confirm your exact version of the forum and we'll forward a slightly modified DLL to support this for you.

I look forward to your response and assisting further,



Kindest Regards,

Ryan Healey
Founder and CTO

http://community.instantasp.co.uk/Uploads/Images/7e043dc3-463f-4f68-8ee0-f237.gif

Facebook | Twitter | Blog | Docs
12 tips to improve your customer support
Bryan N
 Posted 10/02/2012 06:10:33
Forum Guru

Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)

Group: Customers
Last Active: 23/02/2012 18:48:15
Posts: 2, Visits: 53
15
Ryan, thank you for that. We were just wanting the iPad users to actually see their default skins.

So I used some of the advice you gave and updated so I can just bypass it seeing iPads at all for the time being.


                 ' new
Dim isTablet As Boolean = False
If System.Web.HttpContext.Current.Request.UserAgent.Contains("iPad") Then
isTablet = True
End If

' do we have a hard coded skin within the web.config?
If Not InstantASP.Common.Configuration.AppSettings.Skin Is Nothing Then
Return InstantASP.Common.Configuration.AppSettings.Skin
End If

' is this a mobile device?
If Me.IsMobile And Not isTablet Then 'NEW ADDITION HERE
Return InstantASP.InstantForum.Globals.Paths.SkinDirectory + "/Mobile/"
End If



Ryan Healey
 Posted 17/02/2012 13:19:35
I dont see much sun

I dont see much sun - (7,714 reputation)

Group: Administrators
Last Active: Yesterday @ 13:22:53
Posts: 2,339, Visits: 22,736
Pleasure Bryan. Thanks for marking my response as an answer :)

I'm pleased to hear this helped. We are hoping to allow you to tailer skins more in the future to target specific skins to specific devices.

If I can assist further please don't hesitate to repsond,



Kindest Regards,

Ryan Healey
Founder and CTO

http://community.instantasp.co.uk/Uploads/Images/7e043dc3-463f-4f68-8ee0-f237.gif

Facebook | Twitter | Blog | Docs
12 tips to improve your customer support

Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top