The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mobile website plugin option?
#5
Probably the best method is to make/get a well coded responsive template.
For example lets say you would go with bootstrap (there are other frameworks but this is my favorite) then you could easily achieve the things you mentioned:
(2013-10-15, 16:55:46)stryker Wrote: 1) Only certain, select pages to be shown on the mobile device
2) Customer to only edit the one page to make changes and those changes to be seen on both the standard and mobile websites. ie not the need to make the same change twice.
3) Handle the images that are inserted by the customer for both the standard and mobile devices. ie image sizes changes depending on the device.

You would just have the usual admin panel then for the content you could do something like:

PHP Code:
<div class="hidden-xs">Your high resolution content here with a class thats hidden on phones but visible on everything above.</div

As for the images you could do:
1. Add "img-responsive" class to the image when you add it in the editor
2. Write some js to automatically add img-responsive class to all images that hasnt got it already:

PHP Code:
function makeResponsive() {
    if (!$(
'img').hasClass('img-responsive')) {
        $(
'img').addClass('img-responsive');
    }


Then fire the function once the page is loaded/ready/whenever you want.

Note: The above example is for bootstrap. More info here.

There are a lot more possibilities (awesome stuff) with these kind of frameworks so make sure you check them out Cool
Reply


Messages In This Thread
mobile website plugin option? - by Draxeiro - 2013-06-02, 04:33:14
RE: mobile website plugin option? - by Carlos - 2013-06-02, 08:03:19
RE: mobile website plugin option? - by stryker - 2013-10-15, 16:55:46
RE: mobile website plugin option? - by Oleg06 - 2013-10-15, 19:37:38
RE: mobile website plugin option? - by Kolyok - 2013-10-16, 02:07:32
RE: mobile website plugin option? - by stryker - 2013-10-17, 07:25:36
RE: mobile website plugin option? - by Timbow - 2013-10-17, 07:42:35



Users browsing this thread: 2 Guest(s)