On Tue, Sep 16, 2008 at 12:26 PM, Opa114 <[EMAIL PROTECTED]> wrote:

> I have no Tags like "act_display_post" or "act_display_home" in my
> theme.php. If it is useful: i used the k2 theme as source for my own
> theme.

You may need to add an act_display_home to your theme.php. Here's what I have:

public function act_display_home( $user_filters = array() )
{
   [snipped]
   parent::act_display_home();
}

The snipped part is what I've copied from act_display_post in
system/classes/theme.php (NOT your theme's theme.php; the one in
system that defines the base Theme class.) I took everything from the
line that says "Handle comment submissions and default commenter id
values" to the line about comments_require_id.

As Arthus pointed out, your add_template_vars may be a better place to put this.

In either case, this is a pretty quick-and-dirty solution -- ideally
this would be changed in system/classes/theme.php in Habari itself so
that you don't have cut-and-pasted code in your theme which may stop
working if something changes with the session stuff in the future --
but it will work.

Thanks,
--Eli

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/habari-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to