News:

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

Main Menu

Ultimate Shoutbox

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

Previous topic - Next topic

Igor Primera SRi

@Grudge,

I have a question.

Everything works fine, I see the ShoutBox Menu in my Admin Panel, I can change things and more.

When I put the code in my template, I get this error:

Table 'nissanforum.smf_shoutbox' doesn't exist

When I create the table in my database with this file: shoutPdb.php it works all ok. But when I look in to the tables I don't  see the table smf_shoutbox.

Can you help me? Thnx!
Met vriendelijke groet,

With kind regards,

Igor Primera SRi
Webmaster
Nissan Club Nederland
www.nissanclub.nl

Yngwiedis

AmityHost.com - The Affordable Host

Col

#1002
I'm unsure if anyone actually used this, but a few asked. Anyway, here's the updated version Grudges Shoutbox in the upshrinker. It is for Shoutbox version 1.37, the latest as I write this. Obviously, it was designed for my own needs, but it is nice that I can now call the shouts to a block in my web pages using SSI, and it displays correctly, even though it is much smaller than the it appears in the upshrinker. I made use of Grudge's latest addition to the code, where there is the option to disable the shoutform when using SSI. It would be more than I could manage for the forum to display differently to fit the dimentions I've allowed for it on the webpages. Anyway, I guess that most would only be interested in having the shoutbox on their forum. Thanks Grudge for the updates, even though you have more imprtant things to do now.




For those interested, here's Grudges shoutbox in the upshrinker, for SMF 1.1, only (but will work with earlier versions, with a small adjustment or two). It is based upon the default theme.

I've removed the call for member avatar display, as I'm sure members understand what their own avatar looks like! ::) Another silly function, "Total Time Logged in" has also been removed. I've removed the call for the forum name, as I have a banner. I've also removed the SMF logo. I've rearranged the rest in a way that I think makes more sense. News is no longer in the upshrinker part of the header, and is now always displayed, so that members who have the upshrinker collapsed, do not miss important announcements.


Go to admin, and create a new forum template, a copy of the SMF default template. Continue to use your usual template for yourself, until you are finished.

Go to the modify template page for your new shoutbox upshrinker template, and replace the third section with the following:

// The main sub template above the content.
function template_main_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   <meta name="description" content="', $context['page_title'], '" />
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2p"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "', $settings['theme_url'], '";
      var smf_images_url = "', $settings['images_url'], '";
      var smf_scripturl = "', $scripturl, '";
   // ]]></script>
   <title>', $context['page_title'], '</title>';

   // The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc2" />
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?rc2" media="print" />';

   /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   if ($context['browser']['needs_size_fix'])
      echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

   // Show all the relative links, such as help, search, contents, and the like.
   echo '
   <link rel="help" href="', $scripturl, '?action=help" target="_blank" />
   <link rel="search" href="' . $scripturl . '?action=search" />
   <link rel="contents" href="', $scripturl, '" />';

   // If RSS feeds are enabled, advertise the presence of one.
   if (!empty($modSettings['xmlnews_enable']))
      echo '
   <link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

   // If we're viewing a topic, these should be the previous and next topics, respectively.
   if (!empty($context['current_topic']))
      echo '
   <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

   // If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

   // We'll have to use the cookie to remember the header...
   if ($context['user']['is_guest'])
      $options['collapse_header'] = !empty($_COOKIE['upshrink']);

   // Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'], '

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

      function shrinkHeader(mode)
      {';

   // Guests don't have theme options!!
   if ($context['user']['is_guest'])
      echo '
         document.cookie = "upshrink=" + (mode ? 1 : 0);';
   else
      echo '
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
         document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>';

   // the routine for the info center upshrink
   echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';

         function shrinkHeaderIC(mode)
         {';

   if ($context['user']['is_guest'])
      echo '
            document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
   else
      echo '
            smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
            document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

            current_header_ic = mode;
         }
      // ]]></script>
</head>
<body>';

   echo '
   <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
      <table width="100%" cellpadding="4" cellspacing="0" border="0">
         <tr id="welcome">
            <td class="catbg">';

   // display user name
   if($context['user']['is_logged'])
      echo '

               <span style="font-size: 150%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>';

   // Otherwise they're a guest - send them a lovely greating...
   else
      echo $txt['welcome_guest'];

        echo '
            </td>

            <td align="right" class="catbg">';
           
   // If the user is logged in, display stuff like their name, new messages, etc.
   if ($context['user']['is_logged'])
{
      echo '
            <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
            <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

      // Is the forum in maintenance mode?
      if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo '
                        <b>', $txt[616], '</b><br />';

      // Are there any members waiting for approval?
      if (!empty($context['unapproved_members']))
         echo '
                        ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
   }

   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '
                        <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

                        <form action="', $scripturl, '?action=login2" method="post" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
                           <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                           <select name="cookielength">
                              <option value="60">', $txt['smf53'], '</option>
                              <option value="1440">', $txt['smf47'], '</option>
                              <option value="10080">', $txt['smf48'], '</option>
                              <option value="302400">', $txt['smf49'], '</option>
                              <option value="-1" selected="selected">', $txt['smf50'], '</option>
                           </select>
                           <input type="submit" value="', $txt[34], '" /><br />
                           <span class="middletext">', $txt['smf52'], '</span>
                           <input type="hidden" name="hash_passwrd" value="" />
                        </form>';
   }
       echo '
            </td>
         </tr>
      </table>';

   echo '
      <table width="100%" class="titlebg2" cellpadding="4" cellspacing="0" border="0" style="padding: 0px 0px 0px 0px;">
         <tr>';

   // Show a random news item? (or you could pick one from news_lines...)
   if (!empty($settings['enable_news']))
      echo '
            <td align="left" rowspan="2">
               <span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
            </td>';
   echo '
            <td align="right" nowrap="nowrap">
               <form action="', $scripturl, '?action=search2" method="post" style="margin: 0;">
                  <a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
                  <input type="text" name="search" value="" style="width: 190px;" />&nbsp;
                  <input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
                  <input type="hidden" name="advanced" value="0" />';

   // Search within current topic?
   if (!empty($context['current_topic']))
      echo '
                  <input type="hidden" name="topic" value="', $context['current_topic'], '" />';

      // If we're on a certain board, limit it to this board ;).
   elseif (!empty($context['current_board']))
      echo '
                  <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

      echo '
                  </form>
            </td>
        </tr>';

    // display the time
   echo '
   <tr><td align="right" valign="bottom">
               <span class="smalltext">' , $context['current_time'], '</span>';

   // this is the upshrink button for the user info section
   echo '
               <a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
            </td>
         </tr>
         <tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
            <td valign="top" colspan="2">
               <div class="upshrinkbox">
               <table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', 'width="100%" cellpadding="8" cellspacing="0" border="0";">';

       if (function_exists('smfshout'))
       smfshout();
   echo '
               </table>
              </div>
            </td>
         </tr>
      </table>
   </div>';

   // Show the menu here, according to the menu sub template.
   template_menu();

   // The main content should go here.
   echo '
   <div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}


Go to the CSS page for the shoutbox upshrinker template, and add the following:


/* Additional Header Code */

.upshrinkbox {
   background-color: #adadad;
   padding: 1px;
}

#welcome a:link {
text-decoration: underline;}

#welcome a:visited {
text-decoration: underline;}

#welcome a:hover {
text-decoration: underline;}


You need to modify the shout.template.php file. Create a backup, and then replace it with following:

<?php

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

echo '
<form action="'
$scripturl'?action=delete_shout'$context['url_direct'], '" method="post">
<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%" class="borderclass">
<tr>
<td class="catbg" colspan="'
, !empty($context['canDelete']) ? 1'" align="center">'$txt['shoutbox_1'], '</td>
</tr><tr>
<td class="titlebg" colspan="'
, !empty($context['canDelete']) ? 1'" align="left">'$context['page_index'], '</td>
</tr>'
;

$alternate false;
foreach ($context['arc_shouts'] as $shout)
{
echo '
<tr class="'
$alternate 'windowbg' 'windowbg2''">
<td>'
;

if (!empty($context['canDelete']))
echo '
<a href="'
$scripturl'?action=delete_shout;sesc='$context['session_id'], ';sid='$shout['id'], $context['url_direct'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
<span>'
$shout['time'], '</span> - '$shout['link'], ' -' $shout['message'];
echo '
</td>'
;

if (!empty($context['canDelete']))
echo '
<td width="4%" align="center">
<input type="checkbox" name="ind_delete[]" value="'
$shout['id'], '" class="check" />
</td>'
;
echo '
</tr>'
;

$alternate = !$alternate;
}
echo '
<tr>
<td class="titlebg" colspan="'
, !empty($context['canDelete']) ? 1'" align="left" width="100%">
<div style="float: left">'
$context['page_index'], '</div>
<div style="float: right">
'
$context['canDelete'] ? '<input type="submit" value="' $txt['shout_delete_selected'] . '" name="delete_sel" />' '''
</div>
</td>
</tr>
</table>
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
</form>'
;

if ($modSettings['enablearchiveshout'] == && $context['canPost'])
{
echo '
<p><table border="0" cellspacing="1" cellpadding="3" align="center" width="100%" class="borderclass">
<tr>
<td align="center">'
;

template_shout_form();

echo '
</td>
</tr>
</table></p>'
;
}

// Pull the delete options for the administrator
if (!empty($context['canDelete']))
echo '
<p><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'], '" />
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
</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'], '" />
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
</form>
</td>
</tr>
</table></p>'
;
}

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

// Only do auto refresh if we have it enabled!
if (!empty($modSettings['shout_enableXML']))
{
// The code for handling auto refresh
if ($forum_version 'SMF 1.1')
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script_shout.js?1.03"></script>';

echo '
<script language="JavaScript1.2" type="text/javascript"><!--
setTimeout("doAutoReload();", 5000);

function doAutoReload()
{
if (window.XMLHttpRequest)
{
getXMLDocument("'
$scripturl'?action=shout_xml;xml", onDocReceived);
setTimeout("doAutoReload();", 5000);
}
}
function onDocReceived(XMLDoc)
{
// Where we create our new shouts.
var insertData = \'\';
// Number of shouts.
var numShouts = XMLDoc.getElementsByTagName("shout").length;
// Useful vars.
var shoutID, shoutMemberName, shoutMemberID, shoutMemberEmail, shoutCanDelete, shoutTime, shoutLink, shoutMessage;

// Do each shout in turn.
for (i = 0; i < numShouts; i++)
{
shoutID = XMLDoc.getElementsByTagName("shout")[i].getAttribute("id");

// If this shout exists... continue.
if (document.getElementById("shout_" + shoutID))
continue;

shoutMemberName = XMLDoc.getElementsByTagName("shout")[i].getAttribute("member_name");
shoutMemberID = XMLDoc.getElementsByTagName("shout")[i].getAttribute("member_id");
shoutMemberEmail = XMLDoc.getElementsByTagName("shout")[i].getAttribute("member_email");
shoutCanDelete = XMLDoc.getElementsByTagName("shout")[i].getAttribute("can_delete");
shoutTime = XMLDoc.getElementsByTagName("shout")[i].getAttribute("time");
shoutMessage = XMLDoc.getElementsByTagName("shout")[i].getAttribute("message");
shoutLink = XMLDoc.getElementsByTagName("shout")[i].getAttribute("link");

insertData = 
\'<div id="shout_\' + shoutID + \'">\';
if (shoutCanDelete)
insertData += \'<a href="'
$scripturl'?action=delete_shout;sesc='$context['session_id'], ';sid=\' + shoutID + \'"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a> \';

insertData += shoutTime + \' \' + shoutLink + \' -\' + shoutMessage + \''
$modSettings['shoutsep'], '</div>\';';

// Do the actual insert.
if ($modSettings['shoutdir'] == 0)
echo '
setOuterHTML(document.getElementById("new_shout"), \'<span id="new_shout"></span>\' + insertData);'
;
else
echo '
setOuterHTML(document.getElementById("new_shout"), insertData + \'<span id="new_shout"></span>\');'
;
echo '
}
}
//--></script>'
;
}



// Are we showing the shout form?

if ($context['show_shout_form'] && function_exists('shout_form'))
    echo '
    <tr class="titlebg">
    <td valign="middle" style="padding: 5px 5px 5px 10px;">Shoutbox</td>'
shout_form(), '
                    <td valign="middle" nowrap="nowrap" align="right" style="padding: 5px 10px 5px 5px; white-space: nowrap;"><a href="'
$scripturl'?action=shout_archive">'$txt['shoutbox_43'], '</a></td></tr>';

echo '
    <tr>
<td class="windowbg" colspan="3">
<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()">';

// Insert the shouts, top or bottom depending on direction.
if ($modSettings['shoutdir'] == 0)
echo '
<span id="new_shout"></span>'
;

// Loop through the shouts!
foreach ($context['shouts'] as $shout)
{
echo '
<div id="shout_'
$shout['id'], '">';
// If it's an admin - they get the delete button...
if (!empty($context['canDelete']))
echo '
<a href="'
$scripturl'?action=delete_shout;sesc='$context['session_id'], ';sid='$shout['id'], $context['url_direct'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
'
$shout['time'], ' '$shout['link'], ' -'$shout['message'] . $modSettings['shoutsep'];
echo '
</div>'
;

}
// For inserting new shouts...
if ($modSettings['shoutdir'] != 0)
echo '
<span id="new_shout"></span>'
;

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

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

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

echo '
    <td valign="middle" style="padding: 0px 0px 0px 0px;"><center>
<form action="'
$scripturl'?action=shout" method="post" height="20" style="white-space: nowrap; padding: 0; border: 0; margin: 0;">
<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=\'\'" />';

if (empty($modSettings['shout_noGuestEmail']))
echo '
<input type="text" value="'
$txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" />';
}
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="60" maxlength="100" onfocus="if (this.value == \''$txt['shoutbox_8'], '\')this.value=\'\'" />
<input type="submit" name="submit" value="'
$txt['shoutbox_9'], '" />
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
</form>
</center>
        </td>'
;
}

// This template handles the xml refresh things...
function template_xml_shout()
{
global $context$settings$options$txt$modSettings;

echo '<''?xml version="1.0" encoding="'$context['character_set'], '"?''>
<smf>'
;
foreach ($context['shouts'] as $shout)
{
echo '
<shout id="'
$shout['id'], '" can_delete="'$context['canDelete'], '" time="'$shout['time'], '" member_email="'$shout['email'], '" member_id="'$shout['memberID'], '" member_name="'$shout['displayname'], '" message="'$shout['message'], '" link="'$shout['link'], '" />';
}
echo '
</smf>'
;
}

?>


Go to Features and Options. Click the shoutbox tab. Where it says "Scroll box width (pixels)", enter "100%". Yes that's right, percent; ignore the "pixels" instruction. Go to the next box "Scroll box height (pixels)", and enter a suitable value (I'm using "80" pixels). You will probably find that you will need to set the the scrolling speed to "slowest" because of the wide shoutbox display.

Now, go to your profile, and check the preview of the shoutbox upshrinker template. If it looks good, go with it, try it out, and then make the new template the forum default template, and apply it to all members.

If you intend to add to add the shoutbox to your webpages, it won't display properly with my code, unles it is of similar layout, and dimentions. To remove the form from the webpages, you need to make one small change in the SSI.php file.

There is a an error in the SSI code:

function ssi_shout($showform = true;)

It should read:

function ssi_shout($showform = true)

And you will need to change it to the following to remove the form from your webpages:

function ssi_shout($showform = false)
If you are going to use SSI, then edit code: ssi_shout(false);

tL0z

Hello,

Is there anyway to make the shoutbox invisible for guests? Which file should I modify to add some text to the output?

Thanks.

Tripp

I apologize if this is rude, I am not that good at coding.

Currently I am using the Windows XP theme that was created by 061.  The theme integrated the Ultimate Shoutbox feature very nicely. 

Recently I downloaded the latest version (1.37) and I can get it to work with every other theme.  On the XP theme (which is my default theme), it shows the posts but will not show the shout entry field.  If you click on the View All, you do make it to the Shout page but typing something there gets you:

Your session timed out while posting. Go back and try again.

The original XP theme is here: (where I have posted my help there too along with other users with same issue):
http://www.simplemachines.org/community/index.php?topic=46928.150

I know I may be just SOL with it, but I wondered if you have seen the error message before and if it's something I can set on my own.  The code that originally came with the XP was the:

CODE
';
if (function_exists('smfshout'))
  smfshout();
echo '
/CODE

I also tried it with the other

CODE
if (function_exists('smfshout'))
  smfshout();
/CODE

Which doens't work at all, and takes the whole theme down.  Any  help would be appreciated. 

Tripp

Maybe I could get my hands on an older version of Shoutbox. Say around version 1.31?  Is that still available? 

LostProphecy

i tried to do a search on this error but it hasn't come up with anything so please excuse me if this has already been brought up...

i have an error in my shoutbox template that i would like to get sorted out and was wondering if someone would be able to help me out :)

8: Undefined index: url_direct
File: /home/kodee/public_html/forums/Themes/default/shout.template.php (eval?)
Line: 8
Angelus Ex Quo Nox

perplexed

Quote from: perplexed on April 09, 2006, 09:47:49 AM
Quote from: perplexed on March 14, 2006, 07:34:53 AM
I am in the middle of bridging smf with joomla  1.1 rc2 and 1.0.7

Today I found a module for the shoutbox - mod_smf_ShoutBox which I have set up instead of using it directly on the forum index.

In joomla I have it set to show on 'all pages' and for registered users.

But the weird thing is that it IS showing on all pages EXCEPT when you are in the forum.  Then all it shows is title in the module and the rest of the column is blank.  there are other modules that should show underneath but none of them are showing at all, when in the forum.  Its like the shoutbox is stopping them or something.

When I had it installed in just the forum index, I had it running down the right hand side, and the code seemed to take up the whole column even though the shoutbox was defined in options as being 400px long.

Do you know how to fix this as I think maybe this is the same problem, maybe?

Its a pity as the module great but I really want users to see it when in the forum too

does anyone know how to get this smf ultimate shoutbox to display in a joomla module?

Col

Hi Perplexed,

have you tried this with the latest version of the shoutbox? - Grudge has recently made some changes to the shoutbox, including the SSI call. Just maybe the new version will work!?

perplexed

hi Col

yeah I have tried it, the problem is:

I have smf RC2 and joomla wrapped forum

I want to put the shoutbox in a joomla module down the left hand side as the only place I can put the shoutbox INSIDE the forum is at the top or the bottom as there is no room at the side due to the joomla stuff.  Having it at the bottom - no one uses it, having it at the top - annoys people.

I dont know anything about how to do this.  I found a component on joomla site that claimed was written to work with this shoutbox, but it displays on all pages BUT the forum.  When you go to the forum it doesnt show the shoutbox at all, which is kinda pointless.

So what I need to know is what code to put or how to get this shoutbox in a joomla module?  The modules have an html box where you can enter code, but I dont know what to do with them.  entering the ssi code does nothing

thanks for any help

foxxi

#1010
Hello

Please help how to install Ultimate Shoutbox manual (1.37 SMF 1.06). I'm not coder  :D

Please circumstantially amortise (write) :D

Col

#1011
Hi Perplexed,

I posted about how I placed the shoutbox in the upshrinker a few posts back. It works well, I only have the shoutbox in the upshrinker (I moved news, etc. out), and everyone seems happy with it (like you, I have some members who don't like the shoutbox).

http://www.simplemachines.org/community/index.php?topic=8415.msg607527#msg607527

I'll PM a link to you so that you can see it in operation (my site is a mess and too shameful to post a link to here!) :-[ :D

perplexed

#1012
Quote from: Col on July 12, 2006, 05:16:46 PM
Hi Perplexed,

I posted about how I placed the shoutbox in the upshrinker a few posts back. It works well, I only have the shoutbox in the upshrinker (I moved news, etc. out), and everyone seems happy with it (like you, I have some members who don't like the shoutbox).

http://www.simplemachines.org/community/index.php?topic=8415.msg607527#msg607527

I'll PM a link to you so that you can see it in operation (my site is a mess and too shameful to post a link to here!) :-[ :D

Hi col

thanks

I really would prefer to have the shoutbox in a joomla module down the side of the site. Where it is now is throwing the location mod out of whack so that all the pins are in the ocean instead of where they should be, plus the problem of some people not liking it at the top of the board.  If I could get it to work without affecting the location mod I would like to try the upshrink option :) but I really would like it in joomla and dont know how to do that.

I tried to PM grudge but he has blocked PMs



edited to add:  I managed to get this Ultimate shoutbox to work inside the Joomla module so it now appears on the left hand side of my forum.  Orstio did all the work, so its all thanks to him. If anyone else has joomla, they might want to try it, as it uses this shoutbox instead of the other joomla ones which I dont think are as good :)

perplexed

undefined index error - anyone know how to fix this as it is creating pages of errors:

8: Undefined index: images_url
File: /home/perplexed/public_html/forum/Themes/default/shout.template.php (eval?)
Line: 185

thanks for the help

tL0z

Hello,

I tried to unistall this mod but I think something was wrong because there is still the link in "Features and Options".
How can I totally remove it?

Thanks

p0w3r

hi,
is it posible to colour the nicks on the shout?
is it posible to make a board format to the shout?
how do i increase the typing text field?
Sorry if questions are repeated but i didn't found on any other post
Thank you very much!

CrazyJoe

 Is there any way to make the messages "auto delete" themselves after a certain length of time?

constantine

I have a problem with the shoutbox when I enable the auto refresh xml thing in the admin area features and options of the shoutbox.

All is working fine including the refresh, but when I logout and login in the forums, I get an error with an XML writte on it:


"This XML file does not appear to have any style information associated with it. The document tree is shown below.
     
(The following lines list all the shouts made currently.)

xxxxxxxxxxxx
"


I am using version 1.0.7 of the SMF and ver. 1.37 of the ultimate shoutbox.

No other mods installed. Thanks.


Spidy

HELLLLLLLp me please...

i installed this and now when i try to access

Admin> features and options i get this error...

Fatal error: Cannot redeclare modifyshoutboxsettings() (previously declared in /home/xjxwapc/public_html/forum/Sources/ModSettings.php:311) in /home/xjxwapc/public_html/forum/Sources/ModSettings.php on line 364

i take it i've done something wrong and need to edit something to fix it, can u tell me what i need to find andremove/edit please...

Spidy

its ok i found the problem n fixed it...

Advertisement: