What is messing up my forum page?

Post

Posted
Rating:
#8372 (In Topic #2754)
Avatar
Standard member
friendly is in the usergroup ‘Community saint’
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?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#8373
Avatar
Standard member
David L. Friend is in the usergroup ‘Fan in training’
It does seem to display fine in the mobile version.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris Graham)
#8374
Avatar
Standard member
SoccerDad is in the usergroup ‘Community saint’
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

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved
Online now: No Back to the top

Post

Posted
Rating:
#8376
Avatar
Standard member
friendly is in the usergroup ‘Community saint’
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?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#8377
Avatar
Standard member
SoccerDad is in the usergroup ‘Community saint’

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.

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved
Online now: No Back to the top

Post

Posted
Rating:
#8385
Avatar
Standard member
David L. Friend is in the usergroup ‘Fan in training’
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.
Online now: No Back to the top

Post

Posted
Rating:
#8389
Avatar
Standard member
David L. Friend is in the usergroup ‘Fan in training’
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.
Online now: No Back to the top

Post

Posted
Rating:
#8393
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
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.


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

Was I helpful?
  • 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.
Online now: No Back to the top

Post

Posted
Rating:
#8394
Avatar
Standard member
friendly is in the usergroup ‘Community saint’
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?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#8395
Avatar
Standard member
friendly is in the usergroup ‘Community saint’

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.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#8401
Avatar
Standard member
friendly is in the usergroup ‘Community saint’
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.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#8402
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
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.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#8403
Avatar
Standard member
friendly is in the usergroup ‘Community saint’
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!!!


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#8404
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Yeah the main_screen_actions block displays under content normally, when enabled in config. Glad you solved the issue ;)
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,051 topics, 7,194 posts, 10,824 members
  • Our newest member is gracenayjanjoh
Birthdays:
Back to Top