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.


Add Topic button in mobile mode - help

Login / Search

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

Community saint

Hi,
On our site we use mobile mode for one area, and that is the forums.

I am struggling to see where the buttons like Add Topic are rendered.

The reason is that I would like to have those buttons appear at both the top and bottom on the list of posts because people find it really annoying to have to scroll to the bottom every time to start a new post.

Any pointers greatly appreciated - I will continue to look though !!

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

Fan in training

I'm probably not the one to try and answer, but I couldn't help but look to see if I knew where to look. It's been just over three weeks that I've been working with ocPortal.  I haven't had a chance to test this, but I think it would be in OCF_FORUM.tpl or maybe OCF_FORUM_TOPIC_WRAPPER.tpl.



Back to the top
 
Posted
Rating:
#102793
Avatar

Community saint

Thanks for that, I can see that and can see that this tempcode renders the buttons:

Code

{+START,SET,BUTTONS}
   <div class="float_surrounder">
      <div class="buttons_group ocf_screen_buttons">
         {+START,IF_PASSED,ID}
            {+START,INCLUDE,NOTIFICATION_BUTTONS}
               NOTIFICATIONS_TYPE=ocf_topic
               NOTIFICATIONS_ID=forum:{ID}
               NOTIFICATIONS_PAGELINK=forum:topics:toggle_notifications_forum:forum%3A{ID}
            {+END}
         {+END}
         {BUTTONS}
      </div>
   </div>
{+END}

If I remove {BUTTONS} then the buttons disappear both above and below the forum.
So that leads me to think that this template is called twice by another wrapper - but I cannot find what that is, I would expect to see something that includes only a single call to this template for mobile and twice for no mobile - but I might be completely wrong !!

Appreciate you input :-)
Back to the top
 
Posted
Rating:
#102794
Avatar

Community saint

Ok, so I was a little wrong in the above.

The rendering of the first set of buttons is controlled by the CSS class non_accessibility_redundancy and this is set to none if using mobile.

I cannot quite see the logic here so I have changed it to the class float_surrounder and the first set of buttons appear on mobile as expected.

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

Quick reply   Contract

Your name:
Your message: