What is messing up my forum page?
Posted
#7059
(In Topic #1731)
Here is a link to the forum page and you can see for yourself. I totally don't understand what happened? it was working just fine last time I checked it out, but what could have done this?
Posted
Posted
Unfortunately I can't speak to how it happened but it appears that your 'global_middle' article element has somehow found it's way inside your 'panel_right' div element. The first image is the troubled site and the second is your other site that is working. As far as I know, this would take some template editing to have this happen.
Inside panel_right:
Where it's supposed to be:
Hava peak at your GLOBAL_HTML_WRAP.tpl; it should look something like this:
{+START,IF_NON_EMPTY,{$TRIM,{$LOAD_PANEL,right}}}
<div id="panel_right" class="global_side_panel" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">
{+START,IF_NON_EMPTY,{$TRIM,{$LOAD_PANEL,right}}}
<div class="stuck_nav">{$LOAD_PANEL,right}</div>
{+END}
</div>
{+END}
<article class="global_middle" role="main">
We can see here that panel_right is opened and closed before global_middle is started.
I hope this helps!
Be well, SD
Posted
Posted
friendly said
My GLOBAL_HTML_WRAP.tpl looks EXACTLY like what you showed. So does this mean that GLOBAL_HTML_WRAP.tpl on my site is as it should be or not?
From “Post #8376”, 16th Dec 2024
Interesting David! Do you also have the following just up a bit from there:
{+START,IF,{$NOT,{$MOBILE}}}
{$,By default the top panel contains the admin menu, community menu, member bar, etc}
{+START,IF_NON_EMPTY,{$TRIM,{$LOAD_PANEL,top}}}
<div id="panel_top">
{$LOAD_PANEL,top}
</div>
{+END}
The key bit is the start if not mobile. Just want to make sure that is there as well or the entire section will not load.
Further, if you'd like to upload your running copy of GLOBAL_HTML_WRAP.tpl, I'll drop it into my test installation and see if I get the same results.
Posted
I've been thinking if I upgraded my current version (10.0.33) to 10.0.39 if that might correct the problem? Just a thought.
Posted
I purposely did not do changes to templates or even the CSS, trying to keep all but the themes fairly stock. I hoped to minimize problems with future upgrades because of my fiddling with the internals. So how this part of the software got broken, I have not a clue.
Posted
Posted
Is there a copy of the code as it should be somewhere that I could compare?
Posted
Chris Graham said
I suspect somehow there is a <div> being opened in the panel_right which is not closed. Hence the panel never closes and the contents of the site leaks into it.
From “Post #8393”, 30th Dec 2024
After looking the GLOBAL_HTML_WRAP.tpl code and counting the number of <div> commands I see there are 23 of them with 23 </div> commands.
Posted
I checked the opening div's and closing div's and they total 23 of each command in the GLOBAL_HTML_WRAP.tpl
Will deleting (not sure how I do that) the forum module then reinstalling it help? or should I just scrap this site and remake it from a new install of Composr?
How this happened in the first place I have no idea because I have purposely stayed away from modifying any of the templates or even the CSS files… so again, how this 'just happened' I don't know.
Posted
Before you potentially waste your time doing that though:-
- Check that you don't have custom templates in templates_custom/ which are causing this issue?
- Check if you have edited the Forum sidebar panel as the suspected unclosed div might be in there?
- Here is the current GLOBAL_HTML_WRAP.tpl @GitLab if you still want to compare it against your version.
Posted
So the first block removed and the modification saved, I reloaded the page and it was no longer broken. It was now displaying just fine. Back to how it was.
I do remember the block I had just removed was the last block that I had added and then moved it to the top of the blocks. That side block was the "main_screen_actions" block. From the time it was added, I had noticed it did not fit well but left it there anyway.
So to this point... this wierd forum problem is fixed!
Thank you Adam, you supplied me with a bread crumb trail which led to the way to fix my issue without deleting and reinstalling modules or just starting over to rebuild the website.
Now if you could just show me how to fix my webhost Arvixe... but then, that's not your problem. Thanks!!!
Posted
0 guests and 0 members have recently viewed this.