TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:28:30 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 324
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 335
  • Total: 335

SMF shoutbox

Started by Bobbyplant, March 28, 2008, 09:58:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bobbyplant

Hi,

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

Thanks

IchBin

What code is used to call the shoutbox? Where is the shoutbox code? Which files does it edit?

Bobbyplant

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

Probably. But without knowing the code for it, we can't tell you how.

stormlrd

link to where you got your shoutbox from might be helpful :)

Bobbyplant


JPDeni

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.

wdm2005

// 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

Works an absolute treat guys, thanks again this is just what i was after :up: