We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Yearly Archive plugin help

Development and Programming

Kippi's avatar
Kippi
83 posts
17 years ago
Kippi's avatar Kippi

Hi, I found a thread that discusses the yearly archive plugin and category support.

It seems that if you change a few lines of code in yearly archive you can add parameter category to {exp:yearly_archives /}.

My problem is that I don´t know where to add the code to “pi.yearly_archives.php” Can someone help me out here. Would be very appreiated 😉 Cheers.

Here is the info:

Add:

$category  = $TMPL->fetch_param('category') ? $TMPL->fetch_param('category') : '';
$sql_category  = $FNS->sql_andor_string($category, 'cat_id');

and changed SQL query to include:

INNER JOIN
    exp_category_posts p
ON
    t.entry_id = p.entry_id

This adds parameter category to {exp:yearly_archives /}

[Mod Edit: Moved to the plugins development forum.]

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

Hey kippi,

Send me a quick PM using the forum with your email address. I’ll email you hacked copy of it that followed those instructions from lodewijk.

Keep in mind this hacked version comes with no warranty or guarantees in any way shape or form. 😊 For a real long term solution it would probably be best to see if lodewijk will add this feature officially.

Jamie

       
Kippi's avatar
Kippi
83 posts
17 years ago
Kippi's avatar Kippi

Hi Jamie,

After posting on Lodewijk own forum he explained to me how to get this to work. It´s only a small thing but was important for a project.

I got it to work with the inclusion of the additional code.

Thanks anyway for your reply:-)

Kippi

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

Ah, glad you got it taken care of.

Jamie

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.