Thread: Mobile Options
View Single Post
  #2  
Old 01-22-2014, 05:35 PM
richy96's Avatar
richy96 richy96 is offline
 
Join Date: Apr 2008
Location: England
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm currently battling with the same issue

I have a vbulletin 3.7.0 site (very customised) with VbA CMPS

I want to create a mobile version of the site

During various trial efforts the closest I came so far was to

Get two instances of vbulletin running in different folders on the same (test) server (and both using the same database) If this takes two licenses on a live site so be it.

So I got one instance root/forums and the other was in root/mobile and both worked fine sharing the same database

With a bit of tinkering around in global.php I then successfully got these two instances using different skins

The idea being I could then modify the files in my 'mobile' vbulletin to my hearts content

Where I was stumped though was in trying to get the two instances to use different CMPS settings - I eventually succeeded in trashing the database so no pages would display in either instance/skin and had to recover from a database backup lol

So I don't know if I am going about this in the right way at all

What is the best method to use so I can have two skins with different layouts... one my existing menu driven 3 column layout for PC users, and the other a 'button driven' single column layout for mobiles?

I am happy to have a go at the coding but would like some pointers in how best to implement what I want

My site by the way is not actually a forum (though it contains a forum) it's an adult contacts site and I used vbulletin/VbA CMPS as the engine on which to base my site

Rich

--------------- Added [DATE]1390418756[/DATE] at [TIME]1390418756[/TIME] ---------------

I've had another good think about this... and seeing the output of a php file depends on the templates it calls, and seeing as skins have their own copies of those templates, all I really need is a way of having a different VbA CMS on the mobile version, as I can edit the templates in the mobile skin however I like

However the only way I have figured out to do that is to have two copies of each file (like for example member.php and mob_member.php, so I can apply different CMS layouts to each mobile page, but that seems a bit messy to be honest so there must be a better way to implement this mobile version of my site

Still puzzling over this.....

Rich
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01248 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete