[SOLVED!] The 2 Bottom Bars Issue

twice the bug, twice the fun?
Greetings,So I have this weird issue where on certain pages the bottom bar is repeated. See screenshot.
On the actual forum/home page this doesn't happen. However I've noticed this when making a post, within a post/thread, in the chat lobby, and in a chat room thus far. I am curious, what is causing this and how do I fix it? It looks a bit silly to have it there twice.
Last edit: by mythus
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

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.

Anyway, I did add the bottom bar to the main zone and use redirects to make the forum be the home page. Perhaps that is causing it?
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

So please share if you've added the block anywhere else, and if that page has been edited away from the default.
I've just read your reply while writing this:
Anyway, I did add the bottom bar to the main zone and use redirects to make the forum be the home page. Perhaps that is causing it?
That's probably it, but we'd need to know exactly what your pages and redirects are. Every redirect and the code of every page with the block on.
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.

Redirects are:
Code
Welcome:start -> Forums:forumview to make forums be the default home page.
Forums:forumview -> Welcome:start to make forums be the default home page.
Those are the only redirects I've added.
As far as with the bottom bar, I've added it here: comcode page panel_bottom
This is the code for said page:
Code
[semihtml][block param="1,9,10,11,12,13,14,15,16,17,18,25,19,20,21,22" limit="4" hot="0" date_key="lasttime" username_key="lastusername" title="Recent Posts" check="0" defer="1"]main_forum_topics[/block][block param="1" max="8"]side_shoutbox[/block]<br />
[block]main_bottom_bar[/block]<br />
{$SET,SHOW_BOTTOM_BAR,{$AND,{$ADDON_INSTALLED,cns_forum},{$CNS},{$ADDON_INSTALLED,redirects_editor},{$OR,{$EQ,{$PAGE},chat,users_online,points,pointstore,warnings,contact_member,groups,rules,members,leader_board},{$EQ,{$ZONE},forum}}}} {+START,IF,{$GET,SHOW_BOTTOM_BAR}}{$,We load this using Tempcode so we can mark it for late-loading, for performance on pages that do not actually use it; the CSS includes are so that CSS does still always get correctly pre-processed} {$REQUIRE_CSS,{$?,{$GET,SHOW_BOTTOM_BAR},cns}} {$REQUIRE_CSS,{$?,{$GET,SHOW_BOTTOM_BAR},cns_footer}} {$BLOCK-,block=main_bottom_bar} {+END}[/semihtml]
It looks like that the forumview zone is calling a different panel_bottom page, but I've added no code to it. This is the code for the panel_bottom page forumview zone is calling:
Code
[semihtml][title]Panel Bottom[/title]
[block]main_comcode_page_children[/block][/semihtml]
And that's it really. I've added a call to a comcode page for the main forum index to show a bit of news. Need to see that? Its in CNS_FORUM.tpl so I doubt it's related to this. The rest of my work has largely been CSS for theme work, oh and that little bit with the logo.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

The default code is showing the bottom bar based on a contextualisation. Various different pages. It's kind of side-stepping the normal zone/panel structure because we're showing it on what we consider 'social pages'.
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.

I removed the second one within the tempcode since all of my site is basically social. After all, I'm not using the default home/welcome page since I have the forums as the main page. Now the evil twin of the bottom bar is gone, and I am getting only 1 bottom bar per page as desired.
Thanks Chris!
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
