Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-11-15 15:02:20

hcgtv
Plugin Author
From: Miami, Florida
Registered: 2005-11-29
Posts: 2,721
Website

DreamHost and .txp file extensions

When I setup the Textpattern Themes site, rather than zip up the themes, I just linked to them on the corresponding theme page. I felt it would be informative for users to see the theme source on their screen, if they liked it then cut and paste to the backend, and it was working fine 3 years ago.

What’s happening now is that the front end is rendering the .txp file, as opposed to viewing it as a text file, of which it is.

Business Frontpage, there is a link to business-frontpage.txp in the footer, click on it, whoa right.

DreamHost upgraded my VPS from Ubuntu to Debian 10, would this be the issue? Mime types, etc.

Offline

#2 2020-11-15 15:17:17

etc
Developer
Registered: 2010-11-11
Posts: 3,989
Website

Re: DreamHost and .txp file extensions

I would rather blame themes/.htaccess:

# Inhibit direct file downloads.

RewriteRule .*\.txp$ - [R=403,L]

We don’t want site visitors to access pages et forms, they can contain private details.

Offline

#3 2020-11-15 17:12:41

hcgtv
Plugin Author
From: Miami, Florida
Registered: 2005-11-29
Posts: 2,721
Website

Re: DreamHost and .txp file extensions

Was on a support chat with Stef from DreamHost this morning.

Mime Types was the issue, added the text/plain txp to .htaccess:

<IfModule mod_mime.c>
    AddType image/svg+xml  svg svgz
    AddType text/plain	txp
    AddEncoding gzip       svgz
</IfModule>

Oleg, yes I agree, for normal situations you want to block snooping, but I is encouraging it.

Textpattern Themes is running fine now, time to add more themes from Start Bootstrap.

Offline

#4 2020-11-16 01:02:25

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,742
Website

Re: DreamHost and .txp file extensions

hcgtv wrote #326793:


Textpattern Themes is running fine now, time to add more themes from Start Bootstrap.

many thanks for your themes. I am using one here


…. texted postive

Offline

#5 2020-11-16 02:41:29

hcgtv
Plugin Author
From: Miami, Florida
Registered: 2005-11-29
Posts: 2,721
Website

Re: DreamHost and .txp file extensions

bici wrote #326797:

many thanks for your themes. I am using one here

My very first Bootstrap theme, Business Frontpage, Breaking Bad themed. Once I did that one, it was super easy to do the rest, helps that the Themes all came from one coder. Need to update all the Themes to use the latest Bootstrap CDN.

How was the installation and customization of the theme, may I ask?

Offline

#6 2020-11-16 03:52:59

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,742
Website

Re: DreamHost and .txp file extensions

hcgtv wrote #326798:

How was the installation and customization of the theme, may I ask?

it was rather straightforward. I installed in the default page. and used one form… i used a very minimal amount of the Texpattern cos…. i am planning on using the pageless sections features.


…. texted postive

Offline

Board footer

Powered by FluxBB