Support Forum

Reboot Tablet, New / Updated Topics

BS BSABantam
BSABantam
Member

Just discovered an anomaly in the Reboot Theme we are using.

When viewing the Forum on an Android Tablet the ‘New / Updated Topics‘ drop down box at the top of the Forum has no wording or down arrow, if clicked on, the box changes colour but no list is displayed (the ‘Select Forum’ box works as expected), portrait or landscape view makes no difference. The ‘New / Updated Topics‘ box works fine on a Desktop and on a Mobile, though the boxes are stacked on the Mobile of course.

The ‘New / Updated Topics‘ box also works on the Tablet if the Desktop version of the Site is requested. I take that to mean that the Tablet Theme is missing something.

How can I rectify?

10 Answers

New Answer

MP Mr Papa
Mr Papa
Member

Afraid I dont have an answer for you… yet…  but I can confirm there seems to be something afoot when using the tablet setting…  I am able to replicate – though I dont have an android tablet but can replicate with other tablets and even in dev mode… so we should be able to track this down…

I will open a ticket for research and debugging…

MP Mr Papa
Mr Papa
Member

Think I have this solved… and its not related to reboot, but any table theme…  a quick change you can try…

open file simple-press/forum/content/sp-common-view-functions.php… and at the very bottom, find this code:

function populate_quicklinks_script() {
    global $spMobile;
    if ($spMobile) return;

    $out = '<div id="qlContent">';
    $out .= sp_PopulateQuickLinksTopic();
    $out .= '</div>';
    echo $out;
}

and change it to

function populate_quicklinks_script() {
    global $spDevice;
    if ($spDevice == 'mobile') return;

    $out = '<div id="qlContent">';
    $out .= sp_PopulateQuickLinksTopic();
    $out .= '</div>';
    echo $out;
}

and lets see if that gets it back for you…

BS BSABantam
BSABantam
Member

Yep, that fixed it! Thanks. Shows the same as on a Desktop, same number of Topics in both.

However, (and this may be entirely unrelated) on a Mobile, the list shows OK but if there is more than 1 Topic under a Heading, the last Topic doesn’t show although there is a blank space where it where it would be! In fact there is a blank space at the bottom of every listed Heading, even when there is only one Topic under a Heading.

MP Mr Papa
Mr Papa
Member

thanks for confirming the fix…   will open a ticket for research on the other… have not looked to see if we can recreate yet or not as I leave on a business trip early in AM…

MP Mr Papa
Mr Papa
Member

hey wait… what happened to my post????  It seems to have disappeared…

MP Mr Papa
Mr Papa
Member

found it… was in wrong topic…

took a quick look and I guess I have to ask, are you sure?  I cannot replicate it on test site or here…

however, I can say that it appears to be style much different than in tablet and desktop…  instead of the dividing line, you get a bunch of spacing after a grouping… so it looks like there is one missing, but I dont think there is…

also, by default (not sure why frankly) the mobile template displays less items than we do by default on desktop…  the default count for desktop/tablet is 20 items…  in reboot, for phones, that is changed to 15 (maybe due to real estate?)…  so check your count and see if you have 15…

you can of course, change the number displayed… or remove the extra spacing there…

BS BSABantam
BSABantam
Member

Yes, I can confirm, 15 items on Mobile and no dividing line, 20 on Desktop/Tablet, both on our Forum and here.

So non-existing problem solved!embarassed A case of different display. Thanks for looking into it.

MP Mr Papa
Mr Papa
Member

no worries…  plan to look in why we have a different number for the two and different CSS… can certainly be confusing!  I initially thought the same thing as you until I dug in further…

thanks for confirming…