Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2010-08-25 19:21:09

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

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

#32 2010-08-26 07:52:50

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

#33 2010-08-26 13:10:39

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#34 2010-08-26 17:50:23

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: TXP Mobile

maniqui wrote:

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.

Seems like a nice fix. Thanks for sharing.

Offline

#35 2010-08-26 18:19:47

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#36 2010-08-26 19:21:58

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#37 2010-08-26 19:24:37

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#38 2010-08-26 20:19:52

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#39 2010-08-27 07:48:30

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

#40 2010-08-27 15:16:13

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#41 2010-08-30 20:31:44

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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

#42 2010-08-30 22:14:44

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

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)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#43 2010-08-31 08:44:32

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

#44 2010-08-31 12:10:12

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

Board footer

Powered by FluxBB