News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Shoutbox Question

Started by Lysanda, November 30, 2004, 01:20:57 AM

Previous topic - Next topic

Lysanda

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.
The Online Psych Ward = http://dysfunctional101.com

[Unknown]

Well, let's start with... where do you want the shoutbox?

-[Unknown]

Jerry

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 ;)


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Lysanda

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!
The Online Psych Ward = http://dysfunctional101.com

[Unknown]

I'm afraid I'm not the best person to ask about aesthetics.  Did you get this resolved already?

-[Unknown]

Lysanda

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.

The Online Psych Ward = http://dysfunctional101.com

Grudge

You could force it to scroll horizontal by editing shout.template.php and chanigng the marquee tag to horizontal
I'm only a half geek really...

Lysanda

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!
The Online Psych Ward = http://dysfunctional101.com

Lysanda

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.  :'(
The Online Psych Ward = http://dysfunctional101.com

Grudge

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)
I'm only a half geek really...

Lysanda

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?
The Online Psych Ward = http://dysfunctional101.com

Grudge

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?
I'm only a half geek really...

Lysanda

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
The Online Psych Ward = http://dysfunctional101.com

Grudge

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.
I'm only a half geek really...

Lysanda

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?
The Online Psych Ward = http://dysfunctional101.com

Grudge

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 :)
I'm only a half geek really...

Lysanda

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  :-\
The Online Psych Ward = http://dysfunctional101.com

Grudge

Just check my last post in that thread - it tells you the exact change to make and it should look fine!
I'm only a half geek really...

Lysanda

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?

The Online Psych Ward = http://dysfunctional101.com

Grudge

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?
I'm only a half geek really...

Advertisement: