HTML Logo by World Wide Web Consortium (www.w3.org). 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 compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


OCF Member Bar in mobile

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#94453 (In Topic #18826)
Avatar

Community saint

Hi,

I would like to have this bar appear in mobile on the forum pages - the same as it does for the main Ocportal site.

I did a search and I could only find a thread from 2011 that suggested it was turned off when the left bar is used - this is for an earlier OCP.

I found the template file for the member bar and can see that it is explicitly turned off for mobile. I tried turning it on for mobile but nothing appeared, I guess there is a wider wrapper.

Can any one give me a clue please? Or is there a hidden switch that would turn it on ?

Cheer,
Ade
Back to the top
 
Posted
Rating:
#94475
Avatar

Community saint

Can anyone of you lovely people give me a starter for 10 on this ?

I also notice that on my iPad the member bar moves to the next line but the box is not large enough to fit the 6 options. I can remove a couple of boxes around the search button - but that is not enough to stop it wrapping.

The official OCP site is very neat with the is member bar for both mobile and no mobile - I would like to achieve the same !

Cheers
Ade
Back to the top
 
Posted
Rating:
#94476
Avatar

I would guess your GLOBAL_HTML_WRAP.tpl partly came from an earlier version's GLOBAL.tpl, so perhaps you need to reconsider moving that closer to the stock v9 one. The top panel no longer fits between the left/right panels by default.

Control of what bars to show and where is in the panel_top/panel_bottom pages, look for reference to $MOBILE in the logic. There's a lot of logic as these bars shift around according to context, and it's not quite zone context, so all the logic is in the shared panel_top/panel_bottom pages itself rather than implicitly achieved via separate per-zone panels.


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
 
Posted
Rating:
#94534
Avatar

Community saint

Hi Chris,

After much studying I cannot see why the member bar and pt stuff does not appear in the mobile version.

So we have:

(1) There is a redirect from the Welcome Panel Top to the forum one.
(2) Looking at the comcode for the Welcome Panel Top there is nothing specific for mobile - have changed the layout in here and that reflects on the main site - so I am in the right place.
(3) Looking in the Global HTML wrap template I can see where the panel_top is loaded up there are two sections one for normal and the other for mobile.
(4) The mobile section loads another template GLOBAL_HTML_WRAP_mobile.tpl and in there it just loads what ever the panel top should be

Code

   {+START,IF,{$NOT,{$IS_GUEST}}}
      {+START,IF_NON_EMPTY,{$LOAD_PANEL,panel_top}}
         <div id="panel_top" role="complementary">
            {$LOAD_PANEL,panel_top}
         </div>
      {+END}
   {+END}

So I am not a guest, the panel is not empty because it redirects to the Welcome page one.
Why does it not load in mobile !!!

It has to be something stupid - please point it out to me :-)

Cheers,
Ade
Back to the top
 
Posted
Rating:
#94535
Avatar

You seem to be using your own panel_top_2 in GLOBAL_HTML_WRAP.tpl, but the mobile global template is still defaulted.


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
 
Posted
Rating:
#94536
Avatar

Community saint

I cannot find panel_top_2 in GLOBAL_HTML_WRAP.tpl at all.

I am obviously missing something here
Back to the top
 
Posted
Rating:
#94537
Avatar

This is in your v9mk10c theme, and look for top_2 (panel_ is implied).


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
 
Posted
Rating:
#94538
Avatar

Community saint

Got it !!
Now have the Member Bar and PT's in mobile.

Not sure how the top_2 and bottom_2 got in there - I take it that they are not a default entry from the V8 template ?

I will have to speak to my colleague on this :-)

Cheers
Ade
Back to the top
 
Posted
Rating:
#94542

Non-joined user

Ade panel top 2 was added because we run a fluid theme and using the original panel top location postions the full member bar above the whole forum and the left side panel.

I moved it in global_html_wrap to a position where in our type theme it will start to the right of the side panel, which IMO looks better and was more like the old site.

It can easily be changed back to just use the original way, this is what that admin note was about all them months ago. 
There is a link to the post on here in regards to it as well.

Back to the top
 
Posted
Rating:
#94543
Avatar

Community saint

Ah man I remember that now !!

The only thing that was forgotten was that there is a separate template for the global wrap for mobile - hence why the member bar went missing as it was loading up an empty top panel in the forum area. The top panel for here is redirected.

Learnt a lot going through it though, so worth while :-)

Cheers
Ade
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: