What is messing up my forum page?


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?
Art and Imagination
of David L Friend
http://davidlfriend.com
My Business Art Gallery
powered by ocPortal



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
just peace, unity, tolerance and love" - The Beloved


Art and Imagination
of David L Friend
http://davidlfriend.com
My Business Art Gallery
powered by ocPortal


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 #8,376”, 12th December 2021, 3:16 am
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.
just peace, unity, tolerance and love" - The Beloved

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.

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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.


Is there a copy of the code as it should be somewhere that I could compare?
Art and Imagination
of David L Friend
http://davidlfriend.com
My Business Art Gallery
powered by ocPortal


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 #8,393”, 19th December 2021, 9:58 pm
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.
Art and Imagination
of David L Friend
http://davidlfriend.com
My Business Art Gallery
powered by ocPortal


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.
Art and Imagination
of David L Friend
http://davidlfriend.com
My Business Art Gallery
powered by ocPortal


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.


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!!!
Art and Imagination
of David L Friend
http://davidlfriend.com
My Business Art Gallery
powered by ocPortal


