Blog Administration -> allow title change

Creating and modifying plugins.
Post Reply
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Blog Administration -> allow title change

Post by Don Chambers »

Many of the sidebar plugins allow the title to be changed. Can that be added to this one?
=Don=
mad-manne
Regular
Posts: 42
Joined: Wed Jan 23, 2008 4:56 pm
Location: Marl, Germany
Contact:

Post by mad-manne »

Hi Don,
sounds interesting to me too 8)

Just to make sure we're talking about the same thing ... you'd like to see this in the "Blog Administration" config-screen:
Image
*Click for big version(649 x 227px, 24KB)*
which turns out like this in the frontend?!
Image

But why do *I* put my hands on this ??
I am well aware, that Garvin can easily add the required changes. It's just a challenge for me, while I am trying to get a better understanding of how things work in s9y! So I have already prepared a patchfile to make Garvin's task even a bit easier(hopefully), in case that he considers adding this to the core-code anyway :roll:

Cheers,
Manfred.
Try not. Do or do not. There is no try. (YODA)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I am actually against this change. The reason: The title, once entered, will have a fixed language.

But this is a internal core plugin with a high importance. For foreign readers with different languages (like browser-autodetect) the title of the login nugget should vary with their login. Once you enter a language, this is fixed for everyone, and the recognizability will no longer be given.

The patch itself is perfectly fine, though!

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/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

@ Manfred - that was exactly what I was after.

@ Garvin - what I object to most, at least in the English version, is use of the word "blog" in "blog administration". Serendipity is capable of being much more than a "blog". At minimum, how about simply "Administration" in the language file.
=Don=
mad-manne
Regular
Posts: 42
Joined: Wed Jan 23, 2008 4:56 pm
Location: Marl, Germany
Contact:

Post by mad-manne »

@Garvin: I don't really see the danger of "misguiding" the user, because the real link to the admin-panel stays untouched and still reads "Open administration" (in english). Secondly it's the administrator himself who would actually change this(in case he wants to), so he should be able to think of a label, that will not confuse him and other authors of his blog.

On the other hand I don't want to start arguing with you, and I do understand that this could probably cause unneeded support-requests of users that "lock" themselves out of their admin-panel :wink:

@Don: I'm pretty sure, that you know you could just change the language-files instead of applying my patch, to reach your goal ?!

Cheers,
Manfred.
Try not. Do or do not. There is no try. (YODA)
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Yes - I know I can change the language file... but those changes would be lost in an s9y upgrade. I was proposing the source language file for s9y be modified. I use s9y in a few ways that are very non-blog-like, and I know others do to..... so I wanted the language to be less blog-centric.

I personally do not see the harm in making the change as originally proposed.... plenty of other plugins do it, and odds are that most blogs are only written in a single language, so the fact that the title for "blog administration" is written in english (my site) probably matches the language I use everywhere else on my site. In my case, I do not even have "Use visitor's browser language as default" set to "yes"... in fact, I believe that defaults to "no" at installation.

Anyway, I didn't want to push too hard on this one issue. At minimum, I'd like to see the word "blog" removed.... "Administration" is fine by itself. Even "site administration" would be an improvement IMHO.
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Don!

Then we would need to rename Serendipity Blog to Serendipity CMS as well?

Just kidding, but: Serendipity is a blog. To change the wording at one place might simply be confusing. Either it should be unified everywhere, or we should keep it the current way that users are used to. My personal goal for s9y is still for it to be a perfect blog; if people want to use it as a CMS, that's cool...but they might have to live with "blog vocabulary". :)

You can change the title of that specific plugin in your template sidebar.tpl as well, if you want to retain the original s9y code...

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/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Think outside the "blog".!!!! :lol: :lol: :lol: :lol:
=Don=
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Don: I can see the problem in losing your changes in an upgrade, especially for those of us who try to keep up with upgrades. It would be nice if we had some Debian-esque means of allowing upgrades but keeping user changes (like the BulletProof user.css, for instance).

However, since the title is a constant, it's going to be tough to change. (Refer to: Definition of "constant".) But maybe, just maybe...

Yes. If you *really* want to change anything at all, and have it stay across upgrades, you can change it in the serendipity_config_local.inc.php. This gets called early in the s9y lifecycle. I'm having trouble figuring it out for sure, but I think it's called before the language files.

Since the constant for the blog administration sidebar is SUPERUSER, you could try adding "@define('SUPERUSER', 'Site Administration');" to serendipity_config_local.inc.php. If I'm right, it will replace the title in question, won't change with language, and won't be overwritten on any update.
Judebert
---
Website | Wishlist | PayPal
kizilelma
Posts: 4
Joined: Sun Mar 16, 2008 5:38 pm

everything is subject to change

Post by kizilelma »

there are things i agree and disagree with u guys. garvin it is ok to keep s9y a blog based application but i believe it can do more than that which would cause a rapid growing of users. for instance is it possible to integrate flash animations to the templates.
Post Reply