Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-04-23 16:06:39

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

The 'txp_img' directory - WTF is that for?

No a feature request, more a feature removal request…

We have a ‘txp_img’ directory in the Textpattern core – why? What is it there for? Who actually uses it?

I vote it should be removed – unless there is a good reason it’s there.

Offline

#2 2014-04-23 17:25:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: The 'txp_img' directory - WTF is that for?

I guess you are suggesting to move the images within it to the images directory?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2014-04-23 17:40:30

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: The 'txp_img' directory - WTF is that for?

What would you use as an alternative location for the images which currently live there?

Offline

#4 2014-04-23 17:48:53

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: The 'txp_img' directory - WTF is that for?

Odd … But in the 10 years of using TxP I have never ever looked in that directory! Seems to contain system level images used by the core.

Speaking of images. I never use the images directory that lives at the root level with the 1.gif and 2.gif files in it. I put all my images in my assets/images/ directory. I do RESENT having those two images. are they necessary?


…. texted postive

Offline

#5 2014-04-23 17:51:24

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: The 'txp_img' directory - WTF is that for?

bici wrote #280370:

I do RESENT having those two images. are they necessary?

I guess they are there as samples for the default page templates.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2014-04-23 17:57:18

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: The 'txp_img' directory - WTF is that for?

colak wrote #280371:

I guess they are there as samples for the default page templates.

ok. makes sense.


…. texted postive

Offline

#7 2014-04-23 18:22:57

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

Re: The 'txp_img' directory - WTF is that for?

bici wrote #280372:

I do RESENT having those two images. are they necessary?

Just a heads up, those two images files were removed about two years ago!

As for txp_imgdirectory, in v4.6dev all admin theme images are now actually in their admin theme directory where they should be. That just leaves a logo image and some badges that are not used by core in any way so should be dumped.

I can load the badges into the branding repo, and one day we can provide those from the website. If you are using image files from within /textpattern directory on a public site then you really shouldn’t (and any people that used them previously – if any actually do – will still have them available if they upgrade since that wouldn’t be overwritten by an update).

Offline

#8 2014-04-23 20:43:55

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

Re: The 'txp_img' directory - WTF is that for?

philwareham wrote #280374:

will still have them available if they upgrade since that wouldn’t be overwritten by an update

Given the historical quality of those images, it’s pretty safe to assume no one is using them in their professional work. If you are, well, you are probably using red Comic Sans too. The contents of the directory has never been stable either, so removing it doesn’t really matter for backwards compatibility sake.

As the directory itself goes, anything inside textpattern is considered no-zone outside from strictly documented locations which include themes, tmp and config.php.

Offline

#9 2014-04-23 20:55:02

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

Re: The 'txp_img' directory - WTF is that for?

I’ve already deleted it :)

Offline

Board footer

Powered by FluxBB