I’ve just upgraded a second site running EE1 to EE2, and while the main EE upgrade went relatively well, the Forum Module upgrade has gone less well.
Upgrade was a 1.69 to 2.52 with corresponding forum builds.
The forum itself is working when used with one of the prepackaged theme, the issue have is with a custom theme.
I used the script to convert all the Module 2.* themes to the 3.* standard, but I am having a few problems with a couple of custom includes.
Trying to access the forum homepage:
The following errors were encountered
The page you requested was not found
<hyperlink to my forums homepage>
In my forum_index folder my forum_homepage.html looks like this:
{include:html_header}
{include:page_header}
{include:main_forum_list}
{include:bottom_panel}
</div>
{include:right_panel}
</div>
{include:html_footer}Trial and error shows me that it’s the bottom_panel and right_panel causing the issues (these are custom). The page renders fine without these. However, I am not sure how these are causing issues.
Both these files reside in the forum_global folder, and contain HTML like the below (i.e. nothing special):
<div class="content_right fltright">
{if logged_in}
<div class="welcome">
<h2>Welcome Back</h2>
<p> </p><h3>{screen_name}</h3>
<p> <ul><br />
<li><a href="http://{path:your_profile}">{lang:your_profile}</a></li><br />
<li><a href="http://{path:your_control_panel}">{lang:your_control_panel}</a></li><br />
<li class="active"><a href="http://{path:logout}">{lang:logout}</a></li><br />
</ul><br />
</div><br />
{/if}<br />
{if logged_out}<br />
{include:login_form_mini} <br />
{/if}<br />
<br />
{include:quick_search_form}<br />
<br />
<div class="right_social"><br />
Connect:<br><br />
</div><br />
<div class="forum_right_add"><br />
[removed]<!--<br />
/* Snowboard-Review Forums WSKY */<br />
//--><br />
[removed]<br />
[removed]<br />
[removed]<br />
</div><br />
</div><br />
<div class="clrflt"><br />
</div>I tried moving them to the forum_index folder, but that doesn’t work.
The upgrade notes covering this subject are a little brief when it comes to what happens if you “deviate”. From looking at the themes bundled with Forum 3.* I am not doing anything untoward.
One things that springs to mind, is how EE “knows” which of the folders to look for the various includes in, but I assumed an array was built from all the *.html names and the folder structure is just an organisation medium.
So, what do I need to do?
Thanks,
DJB
2.5.2 - Build: 20120606
3.1.8 Build 20120507
Extensions: Accessible Captcha
Plugins: TrunchHTML, Super Geekery Tag Stripper, Low Replace,
Edit: For what it’s worth, I’ve switched back to a flat structure for those files, which has solved my problem, even if it means duplicate code in many places, but the urgency has gone. I still want to know what I am doing wrong.