TinyPortal

Development => Resources => Topic started by: Bobbyplant on March 28, 2008, 09:58:32 AM

Title: SMF shoutbox
Post by: Bobbyplant on March 28, 2008, 09: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
Title: Re: SMF shoutbox
Post by: IchBin on March 28, 2008, 01:18:32 PM
What code is used to call the shoutbox? Where is the shoutbox code? Which files does it edit?
Title: Re: SMF shoutbox
Post by: Bobbyplant on March 28, 2008, 02:24:03 PM
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.
Title: Re: SMF shoutbox
Post by: JPDeni on March 28, 2008, 02:33:00 PM
Probably. But without knowing the code for it, we can't tell you how.
Title: Re: SMF shoutbox
Post by: stormlrd on March 28, 2008, 02:42:30 PM
link to where you got your shoutbox from might be helpful :)
Title: Re: SMF shoutbox
Post by: Bobbyplant on March 28, 2008, 03:37:23 PM
Hi thanks again for replying guys here is the url http://www.simplemachines.org/community/index.php?topic=224554.0;topicseen
Title: Re: SMF shoutbox
Post by: JPDeni on March 28, 2008, 06:58:32 PM
Looks like you would need something like:


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.
Title: Re: SMF shoutbox
Post by: wdm2005 on March 28, 2008, 07:19:51 PM
// 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
Title: Re: SMF shoutbox
Post by: Bobbyplant on March 28, 2008, 07:53:32 PM
Works an absolute treat guys, thanks again this is just what i was after :up: