Page 1 of 1

Edit the Blog Administration Plug-In

Posted: Sun Dec 21, 2008 9:31 pm
by codetwists
I'm sorry if this seem like a really elementary question...

I couldn't find anywhere in the entire Serendipity package, including any of the plug-ins, where there was any kind of contact link to the administrator, such as a "Contact Administrator" label with a link to email. So, since I'd loaded the Blog Administration plug-in, I decided to add a link in the Blog Administration box in the column-right. The problem is, I can't find the files for it anywhere! I know they have to be on my server somewhere since I loaded it and it shows up on my page right where it's supposed to be.

I opened my editor, Macromedia Dreamweaver MX 2004, and searched the language file for "Blog Administrator" so that I could find the name of the variable, which it turns out is "SUPERUSER". I then searched the entire site for instances of "SUPERUSER" and found only the one in the language file.

So where are the PHP files for the plug-in?

Re: Edit the Blog Administration Plug-In

Posted: Sun Dec 21, 2008 9:33 pm
by garvinhicking
Hi!

A simple solution would be that you could add a freeform "HTML nugget" to the sidebar in which you add such a link. Often people also embed a contact form plugin and link to it from a navigation menubar or sidebar plugin.

If you want to get your hands dirty in the plugni itself, the administrator plugin is one of the intenral s9y plugins, foudn in include/plugin_internal.inc.php

Regards,
Garvin

Navigating the files in Serendipity

Posted: Sun Dec 21, 2008 10:48 pm
by codetwists
Thanks, Garvin.

I write a lot of application code, mostly C++ and not a ton of internet applications, though I have customized several osCommerce sites, an osDate site, and have written a CRM and a warehouse distribution application for eCommerce.

Serendiptiy will take a bit of getting used to if I'm going to, as you say, get my hands dirty in the code.

I appreciate your help.

Myron

Re: Navigating the files in Serendipity

Posted: Mon Dec 22, 2008 1:06 am
by garvinhicking
Hi!

Not a big problem; check that include/plugins_internal.inc.php file and search for class serendipity_superuser_plugin. go to the generate_content() method of that plugin. And there, either at the beginning or end add a

Code: Select all

echo '<a href="mailto:blabla@bbkb.sd">Contact me</a>';
Or something like that...

HTH,
Garvin

Done

Posted: Mon Dec 22, 2008 1:10 am
by codetwists
That's what I did, once I found out where to put it.

Thanks for the help.

Myron