Jump to content


Photo

Mobile skin?


  • Please log in to reply
15 replies to this topic

#1 paulobrien

paulobrien

    IPB Full Member

  • +Clients
  • 117 posts

Posted 01 May 2012 - 09:41 AM

At the moment, I don't see an obvious way to define a mobile skin for front page and article views in IP.Content. This means that when people hit the front page of my site (IP.Content), they get a munged up view of the mobile forum skin and my desktop article view.

A fix for this would be really useful (or i'll have to roll my own I guess!).

P

#2 WD.

WD.

    ⊙﹏⊙

  • Members
  • PipPipPipPipPipPip
  • 1,574 posts

Posted 07 May 2012 - 07:05 PM

Yes, something like this http://community.inv...te-mobile-skin/ for content would be ideal!
Posted Image

#3 bfarber

bfarber

    RBT-KS

  • IPS Management
  • 27,023 posts

Posted 07 May 2012 - 08:08 PM

Yes, something like this http://community.inv...te-mobile-skin/ for content would be ideal!


It's not really that simple, I'm afraid, since administrators set the page content and the database templates in the ACP.

Nevertheless, mobile support is something on our agenda.
Brandon Farber
Developer / Senior Support

If it sounds like fun, it's not allowed on the bus!

Posted Image     Posted Image

Invision Power Services, Inc.

#4 WD.

WD.

    ⊙﹏⊙

  • Members
  • PipPipPipPipPipPip
  • 1,574 posts

Posted 07 May 2012 - 11:26 PM

It's not really that simple, I'm afraid, since administrators set the page content and the database templates in the ACP.

Nevertheless, mobile support is something on our agenda.


I suppose... I just thought IP.Content could come with a default mobile skin as it does for a desktop version as such: Pages would probably need to adopt the default ipb wrapper (mobile version) as database templates probably should. But of course you and other staff would have more insight. I find the default ip.suite architecture well formatted regardless. A solution I had wondered in the past was for article, page, and database templates have a separate demo mobile template that could be tied to a global mobile wrapper (and "untied" if desired via coding). In regards to a pages, each page could have a "mobile" tab for the HTML to be inserted. Obviously a single column layout would be advised as a simple solution for small devices, phones, to large devices, tablets.
Posted Image

#5 paulobrien

paulobrien

    IPB Full Member

  • +Clients
  • 117 posts

Posted 08 May 2012 - 03:48 AM

A way to detect whether using the mobile skin in a page would be a useful start so we could at least define our own template differences...

P

#6 bfarber

bfarber

    RBT-KS

  • IPS Management
  • 27,023 posts

Posted 08 May 2012 - 09:19 AM

There is a way already (post in the help forum if you need assistance with that).
Brandon Farber
Developer / Senior Support

If it sounds like fun, it's not allowed on the bus!

Posted Image     Posted Image

Invision Power Services, Inc.

#7 Rimi

Rimi

    Strip Me

  • +Clients
  • 5,774 posts

Posted 08 May 2012 - 09:45 AM

It's something like

<if test="$this->registry->output->skin['set_id']==2">Code</if>
Of course that won't work on pages. You need a page template or block.
And your mobile skin's ID should be 2. Don't see why it wouldn't be.

#8 Stenis

Stenis

    IPB Full Member

  • +Clients
  • 178 posts

Posted 09 May 2012 - 03:24 AM

I vote for fixing mobile support for IP.Content ASAP. One way of doing it can be a landing page saying "welcome, this page does not yet support mobile browsers. You have two options: Proceed to mobile version for forums, gallery etc or use the full version skin to access the content".

#9 alexp999

alexp999

    Advanced Member

  • +Clients
  • 269 posts

Posted 09 May 2012 - 06:05 AM

I have mobile support working great with IP.Content.

The problem is with the page content and not the skin or the app.

While I agree more could be done with the default templates, I just make a copy of them and make a few edits so it works nicely. Like only showing the sidebar and blocks if it not the mobile skin using code similar to above.

#10 WD.

WD.

    ⊙﹏⊙

  • Members
  • PipPipPipPipPipPip
  • 1,574 posts

Posted 09 May 2012 - 10:43 AM

I have mobile support working great with IP.Content.

The problem is with the page content and not the skin or the app.

While I agree more could be done with the default templates, I just make a copy of them and make a few edits so it works nicely. Like only showing the sidebar and blocks if it not the mobile skin using code similar to above.


Isn't the solution to have a different page content for mobile versions?
Posted Image

#11 Rimi

Rimi

    Strip Me

  • +Clients
  • 5,774 posts

Posted 09 May 2012 - 10:52 AM

Isn't the solution to have a different page content for mobile versions?

Best solution is amazing css techniques.

#12 alexp999

alexp999

    Advanced Member

  • +Clients
  • 269 posts

Posted 10 May 2012 - 03:30 AM

Isn't the solution to have a different page content for mobile versions?


Yeah, thats what I meant, I use conditionals on the page content mainly, and then a few conditional tweaks to the article templates so they show correctly.

#13 paulobrien

paulobrien

    IPB Full Member

  • +Clients
  • 117 posts

Posted 10 May 2012 - 09:00 AM

So which variable / technique are you using to detect the mobile skin? The things I tried in the page templates didn't work...?/

#14 alexp999

alexp999

    Advanced Member

  • +Clients
  • 269 posts

Posted 10 May 2012 - 12:29 PM

Right, well I use the following for my main index page, you will need to make sure the page is set to Raw PHP though:

if ( $this->registry->output->skin['set_key'] == 'mobile' ) {
	echo '{parse articles}';
} else {
	echo '
<div class="ipsLayout ipsLayout_withright ipsLayout_largeright clearfix">
	<div class="ipsLayout_right">
		{parse block="latest_posts"}
   	 ...
   	 ... // More blocks here
   	 ...
	</div>
	<div class="ipsLayout_content">
	   {parse articles}
	</div>
</div>';
}

Then in the article/database/page/block templates, I use the following to control whether certain parts get shown:

<if test="$this->registry->output->skin['set_key'] == 'mobile'">...Stuff Here to only Show on Mobile...</if>

<if test="$this->registry->output->skin['set_key'] != 'mobile'">...Stuff Here to NOT Show on Mobile...</if>


#15 gxgEric

gxgEric

    IPB Full Member

  • +Clients
  • 194 posts

Posted 12 October 2012 - 09:48 AM

This really seems old fashioned. Why not just make the entire default template responsive?


my ips powered website: http://www.genxglow.com/

#16 GreenLinks

GreenLinks

    Advanced Member

  • +Clients
  • 461 posts

Posted 12 October 2012 - 10:37 AM

This really seems old fashioned. Why not just make the entire default template responsive?

 

I personally don't like responsive designs. Instead of responsive , i prefer direct mobile style or mobile app.


  • TSP likes this

Mert Gokceimam
CTO / Greenlinks Bv

http://www.420network.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users