News: TinyPortal Release Schedule. Please read this update for More Info.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

July 16, 2019, 10:50:47 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 188515
  • Total Topics: 20736
  • Online Today: 265
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 21
Total: 21

Author Topic: SMF shoutbox  (Read 4098 times)

0 Members and 1 Guest are viewing this topic.

Bobbyplant

  • Guest
SMF shoutbox
« on: March 28, 2008, 03:58:32 AM »
Hi,

As i have SMF shout box installed on my forum is there a way to make it work on  the homepage?

Thanks

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: SMF shoutbox
« Reply #1 on: March 28, 2008, 07:18:32 AM »
What code is used to call the shoutbox? Where is the shoutbox code? Which files does it edit?

Bobbyplant

  • Guest
Re: SMF shoutbox
« Reply #2 on: March 28, 2008, 08:24:03 AM »
Im sorry you lost me?? Im very new to this. I was just wondering as i have SMF shoutbox just above the news fader on my forum is  there any way SMF shoutbox can be implemented on to my homepage say in a centre block.

JPDeni

  • Guest
Re: SMF shoutbox
« Reply #3 on: March 28, 2008, 08:33:00 AM »
Probably. But without knowing the code for it, we can't tell you how.

Offline stormlrd

  • Friends
  • *
  • Posts: 767
Re: SMF shoutbox
« Reply #4 on: March 28, 2008, 08:42:30 AM »
link to where you got your shoutbox from might be helpful :)

Bobbyplant

  • Guest
Re: SMF shoutbox
« Reply #5 on: March 28, 2008, 09:37:23 AM »
Hi thanks again for replying guys here is the url http://www.simplemachines.org/community/index.php?topic=224554.0;topicseen

JPDeni

  • Guest
Re: SMF shoutbox
« Reply #6 on: March 28, 2008, 12:58:32 PM »
Looks like you would need something like:

Code: [Select]
global $sourcedir;

require_once($sourcedir . '/sbox.php');

sbox_display();

Put this in a php block.

This is completely untested. It's just what I would try first if I was going to do what you want to do.

wdm2005

  • Guest
Re: SMF shoutbox
« Reply #7 on: March 28, 2008, 01:19:51 PM »
Code: [Select]
// display shoutbox
 if (function_exists('sbox')) sbox();


thats how i used to call it on to another page just out that in a phph box

Bobbyplant

  • Guest
Re: SMF shoutbox
« Reply #8 on: March 28, 2008, 01:53:32 PM »
Works an absolute treat guys, thanks again this is just what i was after :up: