ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

multiple forums in EE1 through template

March 02, 2012 4:22pm

Subscribe [1]
  • #1 / Mar 02, 2012 4:22pm

    stubear

    114 posts

    I have a site I need to add another forum board to. There are four sections, each with their own member groups for logging in and two of these will have their own discussion forums. I also need to run these through a template so I can match the look/feel of the site and keep everything consistent. When I went to add the second forum board I assumed everything would point to the new forum URL but that doesn’t seem to be the case.

    Here’s what I did. I duplicated a template group and made adjustments to the templates to allow for the addition of a new member group. I added the forum template, discussions.php, to the template group and added {exp:forum} inside. I went to the forum module and added a new forum board so I could apply a new theme to match the section, allow for only this sections members to have access to the forum, and to keep content separate across the forums. When I go to the new forum URL I see the original forum, not the new one I created for the new group. I’m not sure why this wouldn’t work as the use of the template is supposed to tell EE to use the forum url and I assume EE would try to match the forum url being passed to a forum url for one of the boards.

    Anyone done anything similar and have a solution to this problem?

  • #2 / Mar 04, 2012 2:59pm

    Dan Decker

    7338 posts

    Hi stubear,

    The Forum tag supports a parameter for just this instance.

    {exp:forum board=“board”}

    I look forward to your reply!

    Cheers,

     

  • #3 / Mar 04, 2012 3:13pm

    stubear

    114 posts

    Thanks. One problem solved, one to go. The new theme isn’t being applied nor does it seem to be working at all. If I assign the new theme to the old board I still get the same one from before. If I make the changes to the old theme that have been made to the new one then I get what appears to be the new theme. Something in the templates isn’t calling the right theme files.

    UPDATE: The theme issue appears to be related to the system setting a cookie for the theme to use in a forum. On this site there are four user groups, two have forums (I’ll call them group A and group B, group B being the new addition), and super admins to maintain the site. Members can only login to one section of the site, they are only a member of one of the four groups. The super admins can go anywhere on the site they need to and if they’ve visited group A’s forums then the theme for group A’s forums gets applied to group B’s forums when they visit it. If a newly registered user for group B logs in and goes to the forums the proper theme is applied. Normally this wouldn’t be a problem but members from group A will eventually graduate to group B and if this cookie is on their cache there will be a problem viewing the forums.

    *** I’m assuming this is a cookie issue after running across another discussion in the EE forums about using multiple themes for one forum.

  • #4 / Mar 05, 2012 7:29pm

    Sean C. Smith

    3818 posts

    Hi stubear,

    Yes that is correct the theme value is set with a cookie. As the other thread suggested, I would look into using some javascript to set the cookie value for the theme on page load.

    Does that help?

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases