Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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_img
directory, 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
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
Re: The 'txp_img' directory - WTF is that for?
I’ve already deleted it :)
Offline