What is messing up my forum page?

Post

Posted
Rating:
#7059 (In Topic #1731)
I went to my website today and clicked on some side links to forum topics and at forst I thought the forum (main part) had dissapeared. Then looking closer I see it is all scrunched up on the right side of the page! What happened?

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?

Post

Posted
Rating:
#7060
It does seem to display fine in the mobile version.

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Chris Graham)
#7061
Hi David!

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:
2021-12-11_16-07.png

Where it's supposed to be:
2021-12-11_16-09.png

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

Post

Posted
Rating:
#7063
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?

Post

Posted
Rating:
#7064

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?

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.

Post

Posted
Rating:
#7066
Well, once again that bit of code is identical on my site to what you showed me SoccerDad. No difference.

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.

Post

Posted
Rating:
#7070
I did upgrade the version to 10.0.39 but there was no change (like I had hoped) that corrected the Fourm's topics only appearing in the right column in non-mobile display. The mobile display is still showing up just fine.

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.

Post

Posted
Rating:
#7074
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.

Post

Posted
Rating:
#7075
Chris, should I be looking for that in GLOBAL_HTML_WRAP.tpl?

Is there a copy of the code as it should be somewhere that I could compare?

Post

Posted
Rating:
#7076

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.

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.

Post

Posted
Rating:
#7081
Since I have upgraded the version to the latest version and that has not fixed or repaired any issues in my Forum - it still displays all squeezed up on the right side.

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.

Post

Posted
Rating:
#7082
I'm not really sure what to suggest with any certainty, but if this is Forum specific you can uninstall the cns_forum addon from Admin Zone → Structure → Addons by clicking the red X which says Delete (it should probably say Uninstall to be clearer). Doing so will throw an error which mentions other modules which depend on the forum, just click "Remove them too" to proceed. You can reinstall these addons easily enough (they will show as uninstalled at the bottom of the addon list).

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.

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Adam Edington)
#7083
Thank you for responding to me and my problem. I read your comments about removint the forum related modules and then reinstalling them and thought, well it's something to try so I was ready to start that process... but in reading your full comment including the last 3 items saying to my self, self you purposly didnt change any of the exising code... but you mentioned the right column... and that began processing in my brain. Did I add anything to the right column except the side blocks, let me check. So I looked it over, copied the comcode to reviev it and found there was a opening div and a closing div but nothing that I had added. Then it occured to me why not remove the right blocks and see if that does anything. So I started to do that and after removing the first side block it struck me that I should do it one by one and save the changes to see if perhaps one block or two blocks, etc might make a difference. Worth a try.

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!!!

Post

Posted
Rating:
#7084
Yeah the main_screen_actions block displays under content normally, when enabled in config. Glad you solved the issue ;)
1 guest and 0 members have recently viewed this.