Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Mar 2012, 19:41
DetroitYES's Avatar
DetroitYES DetroitYES is offline
 
Join Date: Mar 2009
Package a mobile template into a custom product?

I want the custom page that my product uses ( DIR /atdasd.php) to have its own mobile template as well as its default full screen display. Much the way showthread or any of the templates work in mobile.

I know that I could go into the mobile style, and reconfigure the template manually, but is there anyway to package this with the install?

The most user friendly method i have come up with is to include the mobile template in the master style and then instruct users to copy this code, and paste it into the appropriate template on the mobile style...

Is there a more streamlined way of including this? Thanks.


Edit... I've figured out how to hack this into the actual script using the 'bb_skipmobilestyle' cookie. It is not as pretty as having the mobile template stored in the mobile style, but is more user friendly...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And a further question, can anyone explain to me why the above code works, but this will not? Am I somehow breaking the array syntax?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by DetroitYES; 27 Mar 2012 at 22:25.
Reply With Quote
  #2  
Old 28 Mar 2012, 19:39
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Not exactly sure what you mean here, but you include mobile [master] templates in a product like this ;


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #3  
Old 29 Mar 2012, 18:57
DetroitYES's Avatar
DetroitYES DetroitYES is offline
 
Join Date: Mar 2009
I'm not sure i did this correctly, will this allow me to make a template with the same name in the mobile skin?

The main template I use is ATDASD, I have that functioning and it installs correclty for the full screen via the xml. Then I added this to the xml (creating a template with the mobile syntax using the same name as the full screen template)... with hopes of overriding the code in the template for the mobile skin... I would like the page using the ATDASD template to automatically use the mobile version of the the template when the user is in the mobile skin...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

is that correct? If so, it may be a vbulletin version issue, I'm testing on v 4.1.8...

--------------- Added 29 Mar 2012 at 20:31 ---------------

Okay, I upgraded to 4.1.11 and this worked fine now that they separate skins into mobile and full screen.

thanks
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:23.

Layout Options | Width: Wide Color: