Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Lysanda on November 30, 2004, 01:20:57 AM

Title: Shoutbox Question
Post by: Lysanda on November 30, 2004, 01:20:57 AM
I've installed the files, set up the permissions.. and been playing with the index_template.php to see where to enter the elusive shoutbox tag.. but had no luck.

Is anyone able to check out the index_template.php if I post it.. and advise me where to best place the tags?

Here's my board here http://ikonnz.com/forum .. and ideally I'd like the shoutbox to sit below (or above) the "news" feature.. if that's possible.

Thankyou in advance :)

PS.. it's Grudge's Ultimate Shoutbox.
Title: Re: Shoutbox Question
Post by: [Unknown] on November 30, 2004, 02:24:16 AM
Well, let's start with... where do you want the shoutbox?

-[Unknown]
Title: Re: Shoutbox Question
Post by: Jerry on November 30, 2004, 02:26:18 AM
I would do it in BoardIndex.template.php, since I wouldn't want my shout box to load on everypage.

http://www.raclan.org/files/BoardIndex.template.php.txt is mine ;)
Title: Re: Shoutbox Question
Post by: Lysanda on November 30, 2004, 02:35:27 AM
Quote from: [Unknown] on November 30, 2004, 02:24:16 AM
Well, let's start with... where do you want the shoutbox?

-[Unknown]

I honestly don't mind whether it's above or below the 'news' box.  Which do you think would work better?

Thankyou Jerry .. yours looks great!
Title: Re: Shoutbox Question
Post by: [Unknown] on December 02, 2004, 05:36:17 PM
I'm afraid I'm not the best person to ask about aesthetics.  Did you get this resolved already?

-[Unknown]
Title: Re: Shoutbox Question
Post by: Lysanda on December 03, 2004, 04:40:08 AM
No I haven't.. I've had a hard time trying to work out where it would best be placed, given that they scroll vertically rather than horizontally.

It's still something I'd like to add though.

Title: Re: Shoutbox Question
Post by: Grudge on December 04, 2004, 12:05:00 PM
You could force it to scroll horizontal by editing shout.template.php and chanigng the marquee tag to horizontal
Title: Re: Shoutbox Question
Post by: Lysanda on December 06, 2004, 03:53:27 AM
Quote from: Grudge on December 04, 2004, 12:05:00 PM
You could force it to scroll horizontal by editing shout.template.php and chanigng the marquee tag to horizontal

Great Grudge, thanks alot for that.. I'll give it a go right now.  Cheers!
Title: Re: Shoutbox Question
Post by: Lysanda on December 06, 2004, 04:16:30 AM
argh.. after a long day coding I'm not up to sorting this one out.. I've got as far as this http://ikonnz.com/forum   check out the state of that shoutbox.

If anyone would be interested in giving me a hand hacking this thing in I'd be soooo greatful.  I can be contact at ikonnz.com or on msn.. thankyou!

Did I mention today that php and I dont see eye to eye.. I shoulda stuck with html.  :'(
Title: Re: Shoutbox Question
Post by: Grudge on December 06, 2004, 05:40:30 AM
At least you got it to show!

I don't know where exactly you want it, but how about doing this:
In index.template.php, find:

// The main content should go here.  A table is used because IE 6 just can't handle a div.


and just above it add:

echo '
<table width="100%" align="left">
  <tr class="catbg">
    <td>
      Shoutbox
    </td>
  </tr>
  <tr>
    <td>
      ', smfshout(), '
    </td>
  </tr>
</table>';


I note that you are using a non-default template. If you can't find that text in your index.template.php then search for:

</div>';

and add the code above directly after it. As I've said before I can't really help template peoples forums, but this will put the shoutbox underneath the forum header, and put it in a table. If you want to give the arae a border then add:

class="tborder"

To the "table" tag (i.e give it that CSS class)
Title: Re: Shoutbox Question
Post by: Lysanda on December 06, 2004, 03:00:58 PM
Alrighty.. I did just what you said.. and I have it there.. and it's working.

I had on problem.. the shoutbox took up the majority of the screen so the page was scrolling horizontally by about 200%.. but I sorted that by editing the width tag within that string of code to 20% rather than 100%.

However, now the shoutbox takes up the length of the page.. but the shouts only scroll in the last wee bit of page.

Any ideas on that one?

Also.. can I slow the scroll speed down at all?
Title: Re: Shoutbox Question
Post by: Grudge on December 06, 2004, 03:26:07 PM
I went to your site and couldn't see it working, I need to see what it looks like to be able to help! The scrolling speed can be adjusted in "Feature Settings and Options" I believe?
Title: Re: Shoutbox Question
Post by: Lysanda on December 06, 2004, 03:48:50 PM
ahh sorry.. I took it out because someone said that they couldn't see the board properly in IE with it the way it was.

I'll throw it all back up.

Damn.. I'm sorry with the questions about scroll speed etc.. I didn't realise there was a whole area for Editing the Scrollbox features in the Admin panel.
Can ya tell I've never used SAF or Yabbse before? lol
Title: Re: Shoutbox Question
Post by: Grudge on December 06, 2004, 04:24:15 PM
Yea sorry,

I think you are actually best making the changes shown here:
http://www.simplemachines.org/community/index.php?topic=8415.msg168181#msg168181

I posted this after this topic and I think will work much better for you.
Title: Re: Shoutbox Question
Post by: Lysanda on December 06, 2004, 04:35:08 PM
Thanks for all your help.

I've got it in.. and sorted.  It seems to only scroll in 800 x 600 screen res, but hey.. if that's what it has to be for now.. it's fine by me.

Does it look like it's working right to you?
Title: Re: Shoutbox Question
Post by: Grudge on December 06, 2004, 05:05:46 PM
No it doesn't look right - I strongly urge you to look at the other thread as it's chopping off half of your main forum at the moment :)
Title: Re: Shoutbox Question
Post by: Lysanda on December 06, 2004, 05:13:28 PM
I'll start the other thread from the beginning again..
One big issue I have at the moment is that I can't check it out in IE because my IE's dead.. and it looks fine in Firefox.. but a member using IE says he sees it the same as you do.

What a mission  :-\
Title: Re: Shoutbox Question
Post by: Grudge on December 06, 2004, 05:29:41 PM
Just check my last post in that thread - it tells you the exact change to make and it should look fine!
Title: Re: Shoutbox Question
Post by: Lysanda on December 06, 2004, 05:37:27 PM
I did it.. exactly as you said.. and got a Parse error page.. any ideas now?

Could it be that I should be doing all these changings in the default theme rather than the one I added?

Title: Re: Shoutbox Question
Post by: Grudge on December 06, 2004, 05:41:25 PM
Did you undo the changes you made originally? That code in that thread should not give a parse error at all! Can you post the 10 lines around that area so I can check everything should be fine?
Title: Re: Shoutbox Question
Post by: Lysanda on December 06, 2004, 05:46:53 PM
I decided to start with a completely fresh index_template.php and that worked nicely.  You were right, I must have left some of the old code in there somewhere.

It seems to be working ok to me.. does it look better to you?