How to tweak PhpMobilzer?

Discussion in 'PHP' started by chrisj, Apr 22, 2013.

  1. #1
    Has anyone tried PhpMobilizer?
    To show my website on my iPhone, I downloaded the PhpMobilzer program and followed the instructions:

    "Create a subdomain called 'm' for your website.

    Upload the files in the m folder to the m subdomain.

    If you would like to automaticaly redirect users to the mobile site if they are accessing it with their phone, add the following to a main include file or your index.php file on your main site.
    require_once('/home/path/to/subdomain/m/mobilize.php'); "
    And now my site appears less jumbled than before. So, it is definitely readable on a mobile device now.

    However, there is alot not there, like quite a few background colors, containers and images.

    Can you tell me if there is a way to add some modifications, like adding back in some images, and tweaking a few things that have wrapped?

    In one .php file that comes with the program it shows lines of code like:

     // divs/p
      $this->_replace('/<div[^>]*>/ism', '') ;
      $this->_replace('/<\/div>/ism','<br/><br/>');
      $this->_replace('/<p[^>]*>/ism','');
      $this->_replace('/<\/p>/ism', '<br/>') 
    Code (markup):
    What code would I use to add things back in? Also, how can I tweak my <form> code for mobile?


    (I can't find any forum for support of the PhpMobilizer).



    Thanks.​
     
    chrisj, Apr 22, 2013 IP
  2. annaharris

    annaharris Active Member

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    51
    #2
    I used phpmobilizer for the same purpose, but it didn't work.
     
    annaharris, Apr 23, 2013 IP
  3. chrisj

    chrisj Well-Known Member

    Messages:
    606
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Hi,

    Thanks for that reply.

    Do you have any idea why, when i try to post in DigitaPoint Forums now, by clicking POST, all i get is the RULES page?
    Do you know how to get out of this loop?
    Thanks
     
    chrisj, May 8, 2013 IP