Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Hide Group-/Forum icons on mobile theme
Avatar
Sander58
Member
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2012 - 2:47 pm

Hi,

 

I use the wordpress mobile pack on my website: http://www.wparea.de and everything works nice. The Forum is also okay, but the icons beside the forum/group/topic-names overlap the letters a little bit. This just occurs on mobile version of the forum and I'd like to know if there is an opportunity to hide these icons on mobile site?

 

Regards

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2012 - 7:57 pm

its your theme, so you could make a special check in your theme for mobile and not call the template tag that displays the icon.. ie:

    global $SFMOBILE;
    if (!$SFMOBILE) {
        # call icon template tag here
    }

Avatar
Sander58
Member
Free Members
sp_UserOfflineSmall Offline
Feb 9, 2012 - 2:38 pm

Thanks for the answer, but could you tell me a little bit more details about this? Do I have to add exactly

"global $SFMOBILE;

if (!$SFMOBILE) {# call icon template tag here}" in my defailt.php?? And do I have to replace "call icon template tag here" by another phrase? If yes, which one?

 

Regards

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 9, 2012 - 3:29 pm

Well - for example - in th aspForumView temlate whiuch is the liost of topics in a forum, find the line of code that displays the topic icon:

sp_TopicIndexIcon('tagClass=spRowIcon spLeft');

and wrap it with Steves suggested code above. So it becomes:

global $SFMOBILE;
if ( !$SFMOBILE ) {
      sp_TopicIndexIcon('tagClass=spRowIcon spLeft');
}

This will then not display the icon if a mobile device is being used.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sander58
Member
Free Members
sp_UserOfflineSmall Offline
Feb 9, 2012 - 3:51 pm

Thank you very much MR. Papa and Yellow Swordfish! This was wthat I need 🙂

Btw: I will change the translation of "ago" in german tomorrow. Because "vor" like it is now does not make sense. It would just make sense, if "vor" would be placed before the time specification (of latest post). I hope you will accept this.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 9, 2012 - 10:39 pm

np.glad we could help.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625