Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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,564
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

#46 2010-09-07 07:48:53

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

Re: TXP Mobile

keoshi wrote:

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

The only thing I can think of is the theme in preferences has defaulted to classic, you can change it to what you like for desktop, but the latest version uses its own theme system.

Or have you got the latest index.php file on there?

Last edited by oliverker (2010-09-07 07:51:34)

Offline

#47 2010-09-07 08:37:12

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

Re: TXP Mobile

keoshi wrote:

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

Could you check the source code of one of the admin pages for the stylesheet url (<link rel="stylesheet" ... />) in relation to the url for your Textpattern directory. I think I’ve noticed a similar problem myself for certain installs.

Offline

#48 2010-09-07 11:28:46

keoshi
Member
From: Portugal
Registered: 2006-04-30
Posts: 53

Re: TXP Mobile

Oliver: nope, it’s using txpmobile. I renamed the folder for the sake of testing and I got an error, so I’m sure it’s using txpmobile.

Andy: obviously that’s it. For some reason it’s fetching the CSS from the wrong folder. I have TXP installed in xxxx.com/blog and the stylesheet link points to xxxx.com

Offline

Board footer

Powered by FluxBB