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

Adding embeds to EE forum module

Development and Programming

Survivor's avatar
Survivor
8 posts
16 years ago
Survivor's avatar Survivor

Can anyone tell me the path I should use to include, navigation-type embeds to my forum?

I’ve tried adding these to the theme_index.php :

<?php include("/sys/templates/site/embeds/header.php"); ?>
<?php include("{site_url}sys/templates/site/embeds/header.php"); ?>
<?php include("{site_url}embeds/header.php"); ?>
<?php include("/embeds/header.php"); ?>
<?php include("header.php"); ?>

(Yes I know the last few are silly attempts)

Thanks S.

       
Boyink!'s avatar
Boyink!
5,011 posts
16 years ago
Boyink!'s avatar Boyink!

The easiest way is to run the forum through the regular template parser (details on how do to that are here) - and then just use standard EE embedded templates rather than the PHP includes.

       
Survivor's avatar
Survivor
8 posts
16 years ago
Survivor's avatar Survivor

Ah brilliant, works perfectly thanks. I tried setting up a template with the forum in it already. I was just missing that vital piece of code: {exp:forum}

Thanks!

       

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.