Search found 44 matches

by codetwists
Sun Dec 28, 2008 7:03 pm
Forum: Plugins
Topic: Authors List
Replies: 21
Views: 28968

Re: Page Count in Footer

garvinhicking wrote:use the $footer_* variables I pointed out earlies immediately.
Thanks, but I don't understand.

Myron
by codetwists
Sun Dec 28, 2008 6:32 pm
Forum: Plugins
Topic: Authors List
Replies: 21
Views: 28968

Re: Page Count in Footer


I don't understand why you say it counts the pages wrong? You get X entries per page with a total of Y entries (thus ceil(Y/X) is Z = amount of pages) all for an author. Usually X is smaller than Y, if you have more than one page.

Which of X, Y or Z is not properly counted for you?


In the ...
by codetwists
Sun Dec 28, 2008 4:45 pm
Forum: Plugins
Topic: Login Form - Changing Constants
Replies: 11
Views: 6029

Does the application look for language files on the templates directories as well? Since I've created a new page template, if I want to have language constants for it should I create an additional language file or use the existing one in the lang directory?

Myron
by codetwists
Sun Dec 28, 2008 4:34 pm
Forum: Plugins
Topic: Authors List
Replies: 21
Views: 28968

Page Count in Footer

Thanks, Garvin.

$totalPages = ceil($totalEntries / $serendipity['fetchLimit']);

$serendipity['smarty']->assign('footer_info', sprintf(PAGE_BROWSE_ENTRIES, (int)$serendipity['GET']['page'], $totalPages, $totalEntries));

Here's the problem I have with respect to my new page, info.tpl, which lists ...
by codetwists
Sun Dec 28, 2008 2:53 am
Forum: Plugins
Topic: Authors List
Replies: 21
Views: 28968

OK. I'm getting it.

The next piece in this puzzle is the $footer_info. Can you tell me where that gets put together?

Thanks,

Myron
by codetwists
Sat Dec 27, 2008 6:34 pm
Forum: Plugins
Topic: Authors List
Replies: 21
Views: 28968

Re: Authors List

...viewing entry by author is a core functionality of serendipity. The plugin only addresses core functionality, it is not responsible for any entry output; the sole purpose of the plugin is to create a linklist to all existing authors, there are no functions provided by the plugin, as the core ...
by codetwists
Sat Dec 27, 2008 8:30 am
Forum: Plugins
Topic: Authors List
Replies: 21
Views: 28968

Re: Authors List

Hi!

So, really the Authors plug-in actually does what I want it to do.

That is not the doing of the plugin! Thise is core s9y functionality, the plugin does not touch it. It simply emits a sidebar with links to that.

Thus, you cannot simply modify a plugin to modify your author view. To do ...
by codetwists
Fri Dec 26, 2008 9:13 pm
Forum: Plugins
Topic: Authors List
Replies: 21
Views: 28968

Re: Authors List

Sadly you're not so close. :-)

I'm trying...

So, really the Authors plug-in actually does what I want it to do. The results are that it shows all of the entries for the author selected. I'd like to do the same thing, except that I don't want to show the body of the entry, just a list of all of ...
by codetwists
Fri Dec 26, 2008 7:51 pm
Forum: Plugins
Topic: Authors List
Replies: 21
Views: 28968

Re: Authors List

But that is what the plugin should do. What's your URL? When clicking on an author link, it should go to something like http://yourblog/authors/1-authorOne and this should only show blog entries by that author.

Yep, that's exactly what it does in the default setup. I want it to do something ...
by codetwists
Fri Dec 26, 2008 4:12 pm
Forum: Plugins
Topic: Login Form - Changing Constants
Replies: 11
Views: 6029

Looks like I'm lacking knowledge on this subject. How can you tell which I'm using? Where can I learn more?

Thanks for your help!

Myron
by codetwists
Fri Dec 26, 2008 4:01 pm
Forum: Plugins
Topic: Login Form - Changing Constants
Replies: 11
Views: 6029

by codetwists
Fri Dec 26, 2008 3:15 pm
Forum: Plugins
Topic: Login Form - Changing Constants
Replies: 11
Views: 6029

When I installed s9y it created a diretory called lang with a file called serendipity_lang_en.inc.php. It also has a subdirectory UTF-8 with a file called serendipity_lang_en.inc.php. I've added constants to each of the. Sometimes it uses one, sometimes it uses the other. That's pretty confusing. If ...
by codetwists
Wed Dec 24, 2008 7:31 pm
Forum: Plugins
Topic: Login Form - Changing Constants
Replies: 11
Views: 6029

Did you try changing the lang/UTF-8/serendipity_lang_en.inc.php as well ?

Actually, no. When I searched on the terms NEW_ENTRY and "New Entry" using the search functions of Macromedia Dreamweaver MX 2004 it only came up with the files I listed in the previous post. I'm wondering a couple of ...
by codetwists
Wed Dec 24, 2008 4:12 pm
Forum: Plugins
Topic: Login Form - Changing Constants
Replies: 11
Views: 6029

Login Form - Changing Constants

I'm using the Login Plugin. In admin it says it's v1.07, but in the serendipity_plugin_loginform.php it says "serendipity_plugin_loginform.php,v 1.15 2008/08/21 08:37:40"

In line 105 there's a constant NEW_ENTRY.

The plugin has a language file lang_en.inc.php. This language file has no constant ...
by codetwists
Wed Dec 24, 2008 1:08 am
Forum: General discussions
Topic: list ALL posts in one page!
Replies: 13
Views: 6524

You guys are good! That's doing EXACTLY what I'd hoped for.

Thanks,

Myron