HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Cannot get Login/Member bar to appear

Login / Search

 [ Join | More ]
 Add topic 
#104025 (In Topic #20333)

Community saint


Ok, so I have been going around in circles here :-(

I want the login/member bar to appear when in mobile mode.

On our site we use the mobile mode for forums only.

If I follow an email post notification link to a forum topic the bar to login appears at the top when not in mobile mode, allowing me to login right there on the same page. However in mobile mode it is not there, meaning that I have to go to another page login and then follow the link again - this annoys some users, especially ones that use Private browsing mode.

Looking at global_html_wrap_mobile.tpl I can see that panel_top_2 gets loaded.
panel_top_2 loads the main_member_bar for mobile or not.
Once logged in the bar appears, but not for guests.
 The Block_MAIN_MEMBER_Bar.tpl iust loads {bar}, so I am guessing that is filled with PHP code - this is where I am not too sure how to work out what code gets called, where is this related in OCP ?

Help :-)

Back to the top


Your site is heavily customised in this regard.

In GLOBAL_HTML_WRAP_mobile.tpl I spotted…


<!--   {+START,IF,{$NOT,{$IS_GUEST}}}-->
         <div id="panel_top" role="complementary">
<!--   {+END}-->

I can see the Tempcode IF directive is commented out using HTML comments. That's not going to work, as HTML is working at a later stage and has no bearing on how Tempcode is going to flow out the HTML. So, just strip out the bits you've tried to comment out there.

Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: