collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 60
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • BCNPalomino: lol, that search doe :O
    July 18, 2014, 09:26:27 AM
  • RohailPro23: hi all
    July 18, 2014, 08:09:00 AM
  • samborabora: sorry, thought this was search, lol
    June 29, 2014, 04:45:12 AM
  • samborabora: sp_embed_image
    June 29, 2014, 04:45:01 AM
  • stanyy: Was it merely correcting the mistake made in 2.0.7 or is 2.0.8 actually faster than 2.0.6?
    June 20, 2014, 07:51:21 AM
  • AngelinaBelle: Smf 2.0.8 has been released. -- uses less memory than 2.0.7 [link]
    June 19, 2014, 03:46:47 PM
  • iSamp: [link]
    June 14, 2014, 06:42:38 AM
  • iSamp: SiNaN Plz Help
    June 14, 2014, 06:42:12 AM
  • iSamp: I need Help Plz Help Me I posted a Thing In English Support Plz read it
    June 14, 2014, 06:21:15 AM
  • Cyberkid: hey!
    June 12, 2014, 02:29:42 AM
  • AngelinaBelle: Hello!
    June 03, 2014, 01:06:04 PM
  • kal: also, hello. :)
    June 03, 2014, 08:36:43 AM
  • kal: I haven't been here in a couple months I don't think.
    June 03, 2014, 08:36:35 AM
  • AngelinaBelle: Welcome back, David
    June 02, 2014, 06:18:46 AM
  • David: I've missed this place!
    June 02, 2014, 01:04:01 AM

* Team Blog

* Recent Posts

Re: how to remove simpleportal 100% by crshep
[Today at 07:42:30 AM]


Re: Not Working! by Atyen
[Yesterday at 11:05:56 PM]


Re: Not Working! by Underdog
[Yesterday at 10:19:06 PM]


Re: how to remove simpleportal 100% by Underdog
[Yesterday at 10:02:57 PM]


Re: Home Theme not working by oNLy1
[Yesterday at 09:57:38 PM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: Shoutbox Code  (Read 1473 times)

0 Members and 1 Guest are viewing this topic.

Offline stanyy

  • Semi Newbie
  • *
  • Posts: 16
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Shoutbox Code
« on: December 26, 2012, 01: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

Offline AngelinaBelle

  • Support
  • *
  • Posts: 4885
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox Code
« Reply #1 on: March 11, 2013, 01:07:29 PM »
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.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline stanyy

  • Semi Newbie
  • *
  • Posts: 16
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Re: Shoutbox Code
« Reply #2 on: July 19, 2013, 04:58:14 AM »
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.

Offline AngelinaBelle

  • Support
  • *
  • Posts: 4885
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox Code
« Reply #3 on: August 02, 2013, 10:31:38 AM »
Glad you solved it.  If you can, please share your solution.  It may help others.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?