Feature request: delete theme button

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Feature request: delete theme button

Post by hgoor »

Hi all,

First: Merry Xmas to all of you!

Now my question:

When I installed the latest beta of S9y I got 2 experimental themes with it that messed up my template chooser dropdown because the names where to long.

Since they where experimental, I decided to delete them. However: unlike with the plugins, there is no option to delete a theme from within the S9y administration backend. Why not?

So my feature request would be to be able to delete a theme from within the S9y admin backend :-)

Now I had to use a SSH sessionn and delete them manually, which makes no sense...
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Feature request: delete theme button

Post by yellowled »

hgoor wrote:However: unlike with the plugins, there is no option to delete a theme from within the S9y administration backend. Why not?
I suppose it's because unexperienced users could accidentially delete the default theme, which would screw up a lot. However, they can do this using ssh or ftp as well, so it's not a "good" reason :)

YL
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Feature request: delete theme button

Post by hgoor »

YellowLed wrote: I suppose it's because unexperienced users could accidentially delete the default theme, which would screw up a lot. However, they can do this using ssh or ftp as well, so it's not a "good" reason :)
YL
Well, it would not be so difficult to make at least the deafult theme (or 1 theme) un-deletable: that's what programmers are for anyway :-)
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Feature request: delete theme button

Post by yellowled »

hgoor wrote:Well, it would not be so difficult to make at least the deafult theme (or 1 theme) un-deletable: that's what programmers are for anyway :-)
Finally someone found out what programmers are for. Thanks a lot :wink:

YL
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Re: Feature request: delete theme button

Post by hgoor »

YellowLed wrote:
hgoor wrote:Well, it would not be so difficult to make at least the deafult theme (or 1 theme) un-deletable: that's what programmers are for anyway :-)
Finally someone found out what programmers are for. Thanks a lot :wink:
YL
Your welcome..

Ps: don't forget they are here also to create bugs.. Uh, "undocumented features" I mean....
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

Well, you can use PHP's rmdir() function to delete folders, so happy working on the new feature! :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The problem is that usually the 'template' directory is not chmodded so that PHP can unliunk/delete files. So in most cases the deletion would fail, making users require to go in to FTP the right permissions. But then, they could already simply delete the theme...? :)

For a first help I just shortened the experimental theme/template names...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply