News:

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

Main Menu

Ultimate Shoutbox

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

Previous topic - Next topic

stargazer_1017

Thanks, Col! I got it working :) You're awesome!

-Shayna

SaikoJosh

I'm using SMf 1.03 and I can't see the shoutbox on my forum. Is there an option somewhere that I need to turn on or something?

Digital Home Central - Products for the 21st century home (under construction).

SaikoJosh

Sorry I just looked through this topic and I found out why. :-[

Digital Home Central - Products for the 21st century home (under construction).

IamV

Quote from: IamV on April 22, 2005, 08:17:51 PM
Quote from: Grudge on April 22, 2005, 11:22:21 AM

IamV, you want to do exactly this. Create a blank PHP page like:

<?php
require_once('smf/SSI.php');
ssi_shout();
?>



I am still having this problem.

And set the source of the IFRAME to be this PHP page, easy as that :)

I did what you said & the iframe just loads as the full index page where the shout is located.

nameless

Grudge is there a way to make the username bold when using SSI.php?

It's hard to tell where the post begins cause all the text looks the same. TIA :)

Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together.

stargazer_1017

Just discovered something--I noticed that when I played with settings of the Shoutbox on IE, I got it to where I wanted, but I tried it on FireFox, and the shoutbox just ends up on the otherside of the screen. Is there a code I can use to fix that?

-Shayna

Col

It just sounds like you've slipped up with your html somewhere.

mrselnombre

Quote from: LiL_J on November 30, 2004, 11:01:16 PM
Hello.  i tried editing the shout.template.php script to make the shout show in 2 columns.  i want on the left the marquee window and on da right the fields to post.  this is the code i have but wen i upload it it says parse error.  can any one help me fix this?

<?php

function template_shout_archive()
{
global $context$settings$options$txt$user_info$scripturl$modSettings;

echo '
<table border="0" cellspacing="0" cellpadding="4" align="center" width="100%">
<tr>
<td class="catbg" align="center">'
$txt['shoutbox_1'], '</td>
</tr><tr>
<td class="titlebg" align="left">'
$context['page_index'], '</td>
</tr><tr>
<td class="windowbg">'
;
foreach ($context['arc_shouts'] as $shout)
{
if ($context['canDelete'])
echo '
<a href="'
$scripturl'?action=delete_shout;id='$shout['id'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
if (empty($shout['email']))
echo '
<span class="smtxt">'
$shout['time'], '</span> - <a href="'$scripturl'?action=profile;u='$shout['memberID'], '">'$shout['displayname'], '</a> -' $shout['message'] . $modSettings['shoutsep'];
// Guest?
else
echo '
<span class="smtxt">'
$shout['time'], '</span> - <a href="mailto:'$shout['email'], '">'$shout['displayname'], '</a> -' $shout['message'] . $modSettings['shoutsep'];
}
echo '
<center>'
;

if ($modSettings['enablearchiveshout'] == && $context['canPost'])
template_shout_form();

echo '
</center>
</td>
</tr>
</table>'
;

// Pull the delete options for the administrator
if ($context['canDelete'])
echo '
<table border="0" cellspacing="1" cellpadding="4" align="center" width="100%">
<tr>
<td class="catbg" align="center" colspan="2">'
$txt['shoutbox_42'], '
</td>
</tr>
<tr>
<td class="windowbg2" valign="top" width="50%">
<form action="'
$scripturl'?action=delete_shout_age" method="post">'$txt['shoutbox_2'], '
<input type="text" name="age" id="age" value="25" size="4" /> '
$txt['shoutbox_3'], '
</td>
<td class="windowbg2" valign="top">
<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />
</form><br />
</td>
</tr><tr>
<td class="windowbg2" valign="top" width="50%">
<form action="'
$scripturl'?action=delete_all_shouts" method="post">'$txt['shoutbox_4'], ' '$modSettings['shoutlimit'], '
</td>
<td class="windowbg2" valign="top">
<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />
</form>
</td>
</tr>
</table>'
;
}

function 
template_shout_box()
{
global $context$settings$options$txt$user_info$scripturl$modSettings;

echo '
<center>'
;
// Scrolling?
if ($modSettings['enablescrollshout'] == 1)
echo '
<marquee direction="'
$modSettings['shoutscrolldir'], '" width="'$modSettings['shoutscrollwidth'], '" 
height="'
$modSettings['shoutscrollheight'], '" scrollamount="'$modSettings['shoutscrollspeed'], '" 
scrolldelay="'
$modSettings['shoutscrolldelay'], '" onmouseover="this.stop()" onmouseout="this.start()">';

// Loop through the shouts!
foreach ($context['shouts'] as $shout)
{
// If it's an admin - they get the delete button...
if ($context['canDelete'])
echo '
<a href="'
$scripturl'?action=delete_shout;id='$shout['id'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
<span class="smtxt">'
$shout['time'], '</span> <a href="', ($shout['email'] == '' $scripturl '?action=profile;u=' $shout['memberID'] : 'mailto:' $shout['email']), '">'$shout['displayname'], '</a> -'$shout['message'] . $modSettings['shoutsep'];

}

// End the marquee?
if ($modSettings['enablescrollshout'] == 1)
echo '
</marquee>'
;</td>
            <
td>
echo '
<center>
<p><a href="'
$scripturl'?action=shout_archive">'$txt['shoutbox_43'], '</a></p>
</p>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>'
;
}

function 
template_shout_form()
{
global $context$settings$options$txt$user_info$scripturl$modSettings$ID_MEMBER;

echo '
<center>
<form action="'
$scripturl'?action=shout" method="post">
<input type="hidden" value="'
$context['qstr'], '" name="qstr" />
<input type="hidden" value="" name="email" />'
;

if ($user_info['is_guest'])
echo '
<input type="hidden" value="0" name="memberID" />
<input type="text" value="'
$txt['shoutbox_6'], '" name="displayname" maxlength="100" onfocus="this.value=\'\'" /><br />
<input type="text" value="'
$txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" /><br />';
else
echo '
<input type="hidden" value="'
$user_info['name'], '" name="displayname" />
<input type="hidden" value="'
$ID_MEMBER'" name="memberID" />';

echo '
<input type="text" value="'
$txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="this.value=\'\'" /><br />
<input type="submit" name="submit" value="'
$txt['shoutbox_9'], '" />
</form>
</center></td>
          </tr>
        </table>'
;

}
?>



i'd like this too.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

Grudge

I'm sorry but you've got the code quite wrong, both the PHP and HTML is up the spout. In the template_shout_box() function you'll probably want to put:

echo '<div><div style="float: left;">';

at the top, put:
echo '</div></div>';
at the very bottom.

And in that function, after this line:

if ($modSettings['enablescrollshout'] == 1)
echo '
</marquee>';


Put something like:

echo '</div><div style="float: right;">';


I'm no expert at HTML, but that should give you the starting point...
I'm only a half geek really...

mrselnombre

just modified the shoutbox template page using your suggestions and it is almost perfect.

Just need to pull the shout button over with it  and it will be fine.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

Nitro

i installed this one and i get this error:

Fatal error: Cannot redeclare smfshout() (previously declared in /homepages/20/d107436098/htdocs/bb/Sources/Subs.php:2082) in /homepages/20/d107436098/htdocs/bb/Sources/Subs.php on line 2089


now i cannot even see any topic, how do i delete this mod or fix this problem?

thank you.
MPF Rocks!!!

Nitro

so if i upload upgrade smf package this means ALL my mods will be gone? OH NO!  :( you are talkikng about the smf upgrade, right?
MPF Rocks!!!

Nitro

i thought about what you said, and it might not work for someone else, but since i could not cope the idea of upgrading the whole thing, i thought about this must have another solution! the problem was i installed this mod and unistalled it, THEN installed back again and it gave the error on the subs.php so, the solution i thought about was this:
download the updgrade version for smf
and i only uploaded the subs.php and guess what happened...
IT WORKED!!!! it was able to keep ALL my mods, game arcade, etc, etc!
it is all there, so i went to the package manager and unistalled this mode.
everything works now, MAN! i got worried for a moment!

thank you. too bad it didn't work in my forum, i'd love to have this cool MOD. i have seen it working and i like that!

-richard

Quote from: Owdy on May 17, 2005, 05:48:53 PM
You have installed it twice. Upload whole upgrade package to your forums and you should be fine.

edit: and of course, there should be uninstaller in package manager. That wont help if you have installed many times.
MPF Rocks!!!

Jerry

#393
Quote from: Owdy on May 17, 2005, 05:48:53 PM
You have installed it twice. Upload whole upgrade package to your forums and you should be fine.

edit: and of course, there should be uninstaller in package manager. That wont help if you have installed many times.
This does not mean they have installed it twice all the time, with the shoutbox for some reason the package manager modified Subs.php twice a few times on my forums .  All you need to do is open up /Sources/Subs.php and search for
function smfshout()
{
global $sourcedir;

include_once("$sourcedir/shout.php");
shout_display();
shout_form();
}

and there will be 2, and delete 1 of them -.-


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

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

Nitro

i tried that one first, and but still was giving me another error about parse or something. so i delete it the subs.php and upload an new one and it worked somehow. i wonder what is this subs.php for?
thank you
MPF Rocks!!!

the mighty gc

gosh i have tried everything in this forum to try and get shoutbox running, its installed in teh forum, but i just cant seem to add the right code.  there didnt appear to be any install instructions either.

could someone please tell me in idiot terms what i should be typing to get it running.

i have the shoutbox.php in the default folder and in the thems folder i want to use, that didnt seem to help either.

thanks

nameless

Quote from: the mighty gc on May 18, 2005, 08:17:08 AM
gosh i have tried everything in this forum to try and get shoutbox running, its installed in teh forum, but i just cant seem to add the right code.  there didnt appear to be any install instructions either.

could someone please tell me in idiot terms what i should be typing to get it running.

i have the shoutbox.php in the default folder and in the thems folder i want to use, that didnt seem to help either.

thanks

Did you follow the directions here?

Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together.

!Hachi!

i want to have  [message] view all and shout button in one line...............so please tell me how to do this.i placed it where i want now problem is to make all those " [message] view all and shout button" is one line not like this
                view all
                message
                 shout
              in singe line........
Happy Ramadan

stargazer_1017

Is there a way to possibly make a log of who posted the most in the shoutbox and so forth?

-Shayna

!Hachi!

Quote from: hassan on May 19, 2005, 03:07:46 AM
i want to have  [message] view all and shout button in one line...............so please tell me how to do this.i placed it where i want now problem is to make all those " [message] view all and shout button" is one line not like this
                view all
                message
                 shout
              in singe line........

AnyOne Please...................
Happy Ramadan

Advertisement: