Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: TXP Mobile
Thanks for the reply Andy
Is it in the index file where we have specified the normal textpattern folder for the txpmobile file that might need looking at?
Offline
Re: TXP Mobile
oliverker wrote:
Thanks for the reply Andy
Is it in the index file where we have specified the normal textpattern folder for the txpmobile file that might need looking at?
Doesn’t appear to be the issue as we’ve only made a slight modification to the way Textpattern sets the textpattern directory, that was part of my original thinking behind shifting the txpmobile directory into there. Jonathan’s error actually looks to be related to the theme. Perhaps something in there is wrong?
Offline
Re: TXP Mobile
In the past, I’ve solved some /textpattern vs /admin issues (mainly related to plugins) on multi-site installs by adding this line to the .htaccess file
Redirect 301 /textpattern /admin
(before the <IfModule... line).
Hope it helps.
Offline
Re: TXP Mobile
maniqui wrote:
In the past, I’ve solved some
/textpatternvs/adminissues (mainly related to plugins) on multi-site installs by adding this line to the .htaccess file
Redirect 301 /textpattern /admin(before the
<IfModule...line).
Hope it helps.
Seems like a nice fix. Thanks for sharing.
Offline
Re: TXP Mobile
Thanks Julián but that does not work for me, even a 302 which I used for testing. Placed the line in the /public .htaccess file as well as the /textpattern .htaccess file just to be sure. Neither worked.
Offline
Re: TXP Mobile
Hi Jonathan,
when you said it didn’t work, do you mean that the redirect doesn’t happen?
or the redirect works OK, but related issues are still happening?
Offline
Re: TXP Mobile
Jonathan,
you could also try this
RewriteRule ^textpattern/(.*) /admin/$1 [R=301,L]
inside the <IfModule... block, right after the RewriteEngine on line.
Offline
Re: TXP Mobile
No, what I mean is that the same error message as I posted above results. No change. And the same with your RewriteRule above.
Offline
Re: TXP Mobile
jstubbs wrote:
No, what I mean is that the same error message as I posted above results. No change. And the same with your RewriteRule above.
Is the path you posted right: /users/home/me/web/textpattern/textpattern/theme/txpmobile/txpmobile.php? Just wondering if you actually have it setup with two textpattern directories? It looks like it fails when trying to include the mobile theme, which would suggest that either it can’t find it or there is something wrong with the theme directory on your install.
Offline
Re: TXP Mobile
I wondered about that myself, but to be honest I initially ran Sam Weiss’ Joyent multi-site install script (I host on Joyent) and that seems to be the way the script works. I did ask him about this in the multi-site thread but he did not reply (as I recall).
Attempting to install TXP Mobile in the base directory.
Offline
Re: TXP Mobile
This looks really nice, one question if I may: The replacement textpattern/index.php file, I’m using newer builds from textpattern SVN which contains (minor) changes to that index.php file already – any chance soon of a version of that file’s changes combined with the txpmobile version being available for the 0.0001% of us on SVN builds?
I’d attempt it myself but don’t want to bork my textpattern by blindly copying and pasting stuff I don’t really know about in the first place.
Offline
Re: TXP Mobile
Isn’t there some way that what is being done in that file can be done in a plugin instead?
Actually now that I’ve looked further it looks like this duplicates tons of textpattern files in the include folder. Are they modified versions?
Last edited by MattD (2010-08-30 22:17:10)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: TXP Mobile
MattD wrote:
Isn’t there some way that what is being done in that file can be done in a plugin instead?
Actually now that I’ve looked further it looks like this duplicates tons of textpattern files in the include folder. Are they modified versions?
Oliver had to modify the textpattern files in order for them to work for the mobile version (not sure exactly what he did though). As for a plugin, I couldn’t see how this could be done as the txpmobile files need including before textpattern is initiated.
Offline
Re: TXP Mobile
I can’t see how this couldn’t be a plugin, plus I don’t know why this should be included before Textpattern is initialed. But maybe that’s just me. Any specific examples why this wouldn’t work as a plugin?
Including the replicated/modified files is just one of the ways you could replace, or slightly tweak, the panes. You could also modify the files on fly with output buffer play, or you could also replace the panes entirely from the plugin or a theme.
Nonetheless, great work Oliver and Andy :-)
Last edited by Gocom (2010-08-31 12:33:54)
Offline
#45 2010-09-07 02:43:51
- keoshi
- Member

- From: Portugal
- Registered: 2006-04-30
- Posts: 53
Re: TXP Mobile
I’m having some problems with 0.3b.
Installed it fresh and the CSS doesn’t seem to want to join the party.
The structure is correctly formatted but no style at all…am I missing something?
It worked fine with 0.2
Offline