collapse

* User Info

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

* Who's Online

  • Dot Guests: 42
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • ♦ Ninja ZX-10RR ♦: I'm not admin nor a staff member... I tried connecting with a different IP and via proxy. No errors...
    Today at 01:15:06 pm
  • SeeingBlue: You've just been lucky, Ninja. There is a problem. Check your stats and see how many 500 error hits you've been getting.
    Today at 08:08:56 am
  • ♦ Ninja ZX-10RR ♦: The server might be have a high load but it still works here...
    Yesterday at 03:13:51 pm
  • sanb: i cant post a reply(
    Yesterday at 01:36:59 pm
  • SeeingBlue: It's intermittent. I bet if the admin logs into the cpanel they'll find either CPU or Ram hitting it's limit.
    Yesterday at 09:11:07 am
  • ♦ Ninja ZX-10RR ♦: The site works fine here...
    December 16, 2014, 11:01:27 am
  • SeeingBlue: I was finally able to make 1 post, but I can't edit it or make another. I'm frustrated, I give up.
    December 16, 2014, 08:49:37 am
  • SeeingBlue: I even tried a different browser. I'm just getting a 500 Internal Server Error.
    December 16, 2014, 08:30:15 am
  • SeeingBlue: When I "hit" post, sorry.
    December 16, 2014, 08:26:04 am
  • SeeingBlue: I'm trying to reply to my thread "Loading custom JS files" and when I get post it just loads a blank page.
    December 16, 2014, 08:25:43 am
  • Eliana Tamerin: Let's kick this over to his support topic, folks.
    December 03, 2014, 10:16:21 pm
  • Underdog: what is the issue with it? the naviagtion links? look here: [link]
    December 03, 2014, 09:54:07 pm
  • [SiNaN]: Oh! I didn't even see that. The author seems to have posted some instructions at the theme support topic at sm.org: [link]
    December 03, 2014, 02:11:58 pm
  • WhiteEagle: No the menu on top... the one that comes down when you mouse over it. ;)
    December 03, 2014, 02:02:35 pm
  • [SiNaN]: I already posted it!
    December 03, 2014, 01:51:11 pm
  • WhiteEagle: Any idea what I can do with the menu on top in that theme [SiNaN]?
    December 03, 2014, 01:28:25 pm
  • [SiNaN]: It's a pity that the theme author did that unusual thing for a rare good looking theme.
    December 03, 2014, 12:37:47 pm
  • WhiteEagle: *growls* It's annoying... I can't get SP working with my current theme at LS (Pulse) :(
    December 02, 2014, 10:48:34 pm
  • ♦ Ninja ZX-10RR ♦: SiNaN ftw :)
    November 29, 2014, 06:40:31 pm
  • k1mo0o: hi
    November 28, 2014, 08:54:15 pm

* Recent Posts

Re: New Staff Block by WhiteEagle
[Today at 06:23:44 pm]


Re: php code by Oldcrow
[Yesterday at 10:12:38 pm]


Re: php code by Underdog
[Yesterday at 09:55:54 pm]


Re: [Block] Advanced Who's Online by stanyy
[Yesterday at 03:50:13 pm]


Re: php code by Oldcrow
[Yesterday at 03:45:50 pm]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Shoutbox Code  (Read 1566 times)

0 Members and 1 Guest are viewing this topic.

Offline stanyy

  • Semi Newbie
  • *
  • Posts: 17
  • 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: 17
  • 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?