SimplePortal
Support => English Support => Topic started by: stanyy on December 26, 2012, 02:07:24 PM
-
Hello SP. I would like to display a shoutbox in wap version. To do this, I need to obtain the full php shoutbox code. I would have called it up in a php block but blocks or pages dont work in wap2.
Before someone drops the "it's not possible" bomb on me, I can access and use the shoutbox with my mobile phone and several other old mobiles and they work perfectly (via the 'go to full version' link). The code does not need to be altered, all I need to do is enclose the shoutbox in my wap theme.
So if someone can point me to where to get the full shoutbox code i'd be grateful. Thanks
-
Welcome to Simple Portal.
The full shoutbox code is available.
The issue is that the portal disables itself off if SMF detects WAP2.
And, with the portal shut off, the shoutbox cannot be displayed.
In Subs-Portal.php, in function sportal_init, you will find
if (WIRELESS || ($standalone && (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))) || !empty($settings['disable_sp']) || empty($modSettings['sp_portal_mode']) || (!empty($maintenance) && !allowedTo('admin_forum')) || isset($_GET['debug']) || (empty($modSettings['allow_guestAccess']) && $context['user']['is_guest']))
This is the part of the code you need to carefully consider for WAP, WAP2, and imode (smart) phones.
-
Whoa.. finally, a reply after over 2 months, lol. Anyway, I really appreciate this reply and I think it may be useful to me in future.
As for the requested, I solved it by some other means and i'm glad I did. SimplePortal is very dynamic and I consider it to be one of the best Smf mods.
-
Glad you solved it. If you can, please share your solution. It may help others.