News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Shoutbox!

Started by LancelowDowell, July 26, 2004, 07:48:41 PM

Previous topic - Next topic

LancelowDowell

To take out the date, find the shoutbox.php file that goes in the themes directory and find this code...


while($row = mysql_fetch_array($shouts))
{
echo '[', timeformat($row["shoutDate"]), '] ', $row['realName'], ': ', doUBBC($row["pageText"], true), '<br/>';
}


and change it to this...


while($row = mysql_fetch_array($shouts))
{
echo $row['realName'], ': ', doUBBC($row["pageText"], true), '<br/>';
}


This way it will show just the name and post.

Dave Hurt
Support Specialist
[email protected]
       
Personal Signature:
www.cursedlegacy.net

Dragon Gamer

#41
Thanks a lot.

I removed it, why would you want to put that piece anyway?

just asking really.

So when are you gonna put a delete option.

Is it possible to get the messages to scroll after one has been posted???
Jason-Marc Labban
Graphic Maker...Sigs, Avatars, Banners and Buttons.



Neo Hacks

LancelowDowell

If you want to add it to all pages, just add it in to the index.template file.  Just search for template_menu() in there and add the calls to the shoutbox like you would in the boardindex.template file.

Dave Hurt
Support Specialist
[email protected]
       
Personal Signature:
www.cursedlegacy.net

LancelowDowell

Yea, I'll see about that.  Shouldn't be too hard.....

Dave Hurt
Support Specialist
[email protected]
       
Personal Signature:
www.cursedlegacy.net

umiya

does this wotk with ssi like the other oen does?

LancelowDowell

No, I didn't modify ssi like Grudge did.  Instead, to get it to work you just need to do to display the shoutbox is to add this line wherever you want it...

if(!include($settings['theme_dir'] . '/shoutbox.php'))
      echo 'Could not load shoutbox!';

You still have to follow the rest of the instructions in the install.txt file, but that will take care of it.

Dave Hurt
Support Specialist
[email protected]
       
Personal Signature:
www.cursedlegacy.net

subliminal

#46
I love this shoutbox! I'm using it on my site but it's for members only. Do I need to change anything for 1.0 RC2?

LancelowDowell

nope, shouldn't have to.  I'm running it on the 1.0 preview just fine.  Only thing to watch out for is you'll have to re-add the array entries in index.php after you upload rc2.

Dave Hurt
Support Specialist
[email protected]
       
Personal Signature:
www.cursedlegacy.net

Midgard

how working shoutbox ??? i can't... what is action url: (index.php?action=shoutbox) ? but don't work.

Advertisement: