Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1269
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Shoutbox in a different block.

Started by Dai Li, September 25, 2011, 05:05:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dai Li

Hokay so basically, what I'm doing is setting up ONE table... type thing with a series of different blocks attached. So far I've had much luck in including other blocks and getting the table to display them (it's a table with a single opener table and then when the user clicks the navigation links at the top the box drops extra boxes into existence underneath the first one at a time; actually really nifty).

Anyhow, I have one chatbox from a free chatbox host for the guest friendly reason, and then another from the portal that members use. Em. But I have no idea how to include the shoutbox into the code and making it work. I have it setup like this:

echo '
<div id="menu5" class="windowbg" style="display: none;">
   ', sp_shoutbox(array('display' => 1), 0), '
</div>';


And it does include the shoutbox function but I have no idea how to plug the shoutbox ID into it, annnd yeah so that's where I'm stuck xD

[SiNaN]

The call to the shoutbox function should be:

sp_shoutbox(array('shoutbox_id' => 123), 0)

Replace 123 as the id of the shoutbox you want to call.
And slowly, you come to realize... It's all as it should be...