Ultimate Shoutbox

Started by Grudge, March 28, 2004, 09:11:20 AM

Previous topic - Next topic

Grudge

', smfshout(), ' does depend on where you put it. Basically you can try these two things, one will definetly work:

' . smfshout() . '

OR

smfshout();


Just depends where you are putting it.
I'm only a half geek really...

Perti

so where I must put it in BoardIndex.tempöate.php

Grudge

If you put it in boardindex.template.php it will only be shown on the main page of the forum, put it in index.template.php otherwise. The best thing to do is trial and error - I can't tell you how to template your forum. Basically, load up whichever file you want to use, and put in the smfshout() code I put above "somewhere". Then load up the page and see how it looks, once you have it working you can think about where you want to position it (Down the left, up the top etc).
I'm only a half geek really...

Midgard


Ravey76

@ Grudge:

Nice mod; I got it installed finally. But unfortunately I don't know how to "design" (don't know other word) the ShoutBox.

-> If I place the ShoutBox in a table cell, it "destroys" the whole table (of "InfoCenter" on the bottom of my forum)
-> If I create a separate cell (and set ShoutBox in AdminArea to small for testing purposes; 50*100 pixels) -> even in this case it breaks my  table construction

Then I placed an additional vertical column and placed the shoutbox-code there -> whole table breaks up ...

What can I do?

I saw a nice page with the shoutbox on the left side (I think it was yours); shoutbox was in a small, vertical box -> how do you solve this problem?

Thanks in advance,
Ravey76

Grudge

Easiest way, open up index.template.php and find:

<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';


Change to:

<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td width="120">', smfshout(), '</td>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';

My template is more complicated that this but you get the idea.
I'm only a half geek really...

Midgard

hey Grudge,

how this shoutbox with <iframe></iframe> tags?

please, can you help me?

Ex.:
<iframe src="SSI.php?ssi_shoutbox"></iframe>

But don't work these example...

Grudge

Not sure why you'd really want this, but anyway. You'd have to make a dummy PHP page called, for example, shout.php containing:

<?php
include('SSI.php');
ssi_shoutbox();
?>


(May not be exactly right but you get the idea, basically enough to just show shoutbox on an SSI page)

Then link to this with the iframe.


EDIT: Ignore me! The problem is it has to be SSI.php?ssi_function=shoutbox not what you put
I'm only a half geek really...

Midgard

Oh no. I not want this. Ex.: i click the "shout" button, but page didn't refesh. can this?

Grudge

If you put it in an iframe then it wouldn't refresh, that's the whole point of it. Or do you mean the shoutbox doesn't refresh?
I'm only a half geek really...

Midgard

Quote from: Grudge on December 16, 2004, 07:44:03 AM
If you put it in an iframe then it wouldn't refresh, that's the whole point of it. Or do you mean the shoutbox doesn't refresh?

Ups, now working... Thanks Matt

Jerry

#91
I think Midgard means that they want to be able to make a shout without it refreshing the whole page.. .


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

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

erzon

shoutbox dont work with mine. my version is rc2

Grudge

What does it say? Bear in mind all my mods are now verified for 1.0 Final, and not the current RC version - although they should still work.
I'm only a half geek really...

erzon

nothing says it just there no effect after i upload the shoutbox mod nothing happen i dont see any shoubox in my forum

Jerry

Did you manually edit the theme file where you want to add it? you need to add ', smfshout() ,' or '. smfshout() .' some where in your themes( a spot you choose.)


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

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

erzon

oh i didnt do that lol i dont know it should put that code. by the way where do i put that?

Jerry

I recommend BoardIndex.template.php, I would check the rest of this post for more specific info ;)


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

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

erzon


Grudge

I was wondering - as this gets asked all the time is there anyone who would mind posting the code that they changed on their install in the end, along with maybe a screenshot? I'd love to start a thread with maybe 5 example imlpementations of the shoutbox in different places with the corresponding code to help people. The problem is I can't make adding it part of the package as it just won't work in like 50% of cases because people use different themes and/or at the very least aren't using the "default" directory one. So if anyone has some code snippets and a screenshot if you could post them here (OR email me) I'll open a "Showcase" type thread somewhere and link to it from my mod install screen.
I'm only a half geek really...

Advertisement: