Textpattern Forum

You are not logged in. Register | Login | Help

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

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 1,574
Website

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,179
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, 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: 187
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
Registered: 2006-07-14
Posts: 4,471
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)


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

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: 187
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

#49 2010-09-07 11:34:50

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

Re: TXP Mobile

Hi Keoshi, I think I might know what the issue is. I think there is an issue in the template files. I will take a look into it later today for you.

Offline

#50 2010-09-07 11:43:48

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

Re: TXP Mobile

monkeyninja wrote:

Hi Keoshi, I think I might know what the issue is. I think there is an issue in the template files. I will take a look into it later today for you.

It currently has <?php echo $_SERVER['HTTP_HOST'] ?>/textpattern/..... to find the css files what would need to be

<?php echo $_SERVER['HTTP_HOST'] ?>/*blog*/textpattern/.....

We did have $site_url at some point but I for one don’t use site url for my mobile website on a different domain

We could just use relative links ../textpattern/txpmobile/....

Actually!
I’ve change a little bit how the template works in v4 (that i’m working on) to make it easier to make themes… So i’ll send Andy it where I am upto now and that might fix a few things.

Offline

Board footer

Powered by FluxBB