You are not logged in.
Sure.
First, I changed “new” /textpattern/index.php file (line #27):
define("txpath", $_SERVER['DOCUMENT_ROOT'].'/root/txpmobile');
Second, cause I love Robert’s remora theme, I changed some instance of the theme:
file /textpattern/lib/txplib_theme.php (line #98):
set_pref('theme_name', 'remora');
file /textpattern/txpmobile/lib/txplib_theme.php
83. $name = pluggable_ui('admin_side', 'theme_name', get_pref('theme_name', 'txpmobile'));
(...)
98. set_pref('theme_name', 'txpmobile');
So, when I log in with my browser computer after I loged with my iTouch/iPhone or iPad I recover remora theme after the theme instance error message “Theme fails to load properly from file. The default theme will be used as a fall-back. Please, refresh your page…”
Best regards,
Patrick.
Txp Tricks & Tips by french users : http://txp-fr.net | G+
@Devs : Can’t find the punched tape version of TXP and I need it!
Happy user of TXP 1.0RC1
Offline
Pretty freaking awesome, I’m running it on my iPhone and it works great!
One thing I did that you might want to consider. I modified the /textpattern/index.php a bit more.
if (!defined(‘txpath’)) { //detect whether a mobile browser or not require(dirname(FILE).’/include/mobile_detect.php’);
if ($mobile_detect == TRUE) { //is mobile, so load TXP Mobile define(“txpath”, ‘/home/wremote/www/txpmobile’); } else { // load normally define(“txpath”, dirname(FILE)); } }Then it will load the correct directory if your on your desktop or on the mobile device.
Last edited by ecklesroad (2010-07-23 21:17:34)
Offline
ecklesroad wrote:
Then it will load the correct directory if your on your desktop or on the mobile device.
Thanks,
It already does load the desktop admin if you are on desktop ; )
search half way down the index page is the else statement. I also noticed the query was far too long than it need to be and have implemented your shorter version in v0.3
Cheers – Glad you like it.
Offline
It didn’t for me initially, that’s why I did that. I’ll check the source when I get back to my desk
Offline
ah, I see it. Ya, in your 0.3 I’d do the include with the true false check. other than that, it effing rules!
Offline
Finally got a chance to try this today, really really impressed.
The design and interface are lovely, will be a pleasure to use on the move!
Offline
Any plans to get this working with a multi-site install? I just tested TXP Mobile for the first time by placing the txpmobile folder into the /textpattern folder and get the following error message:
Theme *txpmobile* (txp_mobile_theme) fails to load properly from file /users/home/me/web/textpattern/textpattern/theme/txpmobile/txpmobile.php. The Classic theme will be used as a fall-back.
Its just a blank screen with that message.
TXP Tips | @txptips | Me | @jonathanstubbs | Github
TXP Builders – finely-crafted code, design and txp @txpbuilders
Offline
jstubbs wrote:
Any plans to get this working with a multi-site install? I just tested TXP Mobile for the first time by placing the txpmobile folder into the /textpattern folder and get the following error message:
Theme *txpmobile* (txp_mobile_theme) fails to load properly from file /users/home/me/web/textpattern/textpattern/theme/txpmobile/txpmobile.php. The Classic theme will be used as a fall-back.Its just a blank screen with that message.
Suspect this is a result of Textpattern’s multi-site setup not using the textpattern directory for admin? I suspect that this has gotten hard-coded somewhere. Needs investigating…
Offline