SMF Shoutbox

Started by Deep, March 15, 2006, 08:09:52 AM

Previous topic - Next topic

0warning0

QuoteHi,

I get this error when trying to use type a msg, this error comes up and disappers in like 5 secs.

Im using it on  RC3


Code:
Notice: Undefined variable: divclass in /var/www/vhosts/XXXX.com/httpdocs/forum/Sources/sboxDB.php on line 206

Try uploading and replace sboxDB.php again to your Sources Folder

I've got the same error and can't figure it out. I tried replacing sboxDB.php as suggested but still had the same problem. I was wondering if anyone was able to find a solution for this. 

Kettu

Quote from: 0warning0 on November 16, 2006, 10:02:26 AM
QuoteHi,

I get this error when trying to use type a msg, this error comes up and disappers in like 5 secs.

Im using it on  RC3


Code:
Notice: Undefined variable: divclass in /var/www/vhosts/XXXX.com/httpdocs/forum/Sources/sboxDB.php on line 206

Try uploading and replace sboxDB.php again to your Sources Folder

I've got the same error and can't figure it out. I tried replacing sboxDB.php as suggested but still had the same problem. I was wondering if anyone was able to find a solution for this. 
Please load your sboxDB.php as own page: yourforum.com/Source/sboxDB.php, then show your source code, copy it and paste it here.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

nikus

Hi there , my ShoutBox its working good , but only with mozilla FireFox , with IE ( internet Explorer ) dont work , i type an message and click "Shout" and dont do nothing :\





other thing , Why , with IE , letters size are bigger then Mozilla ? :|  :-\

Have a good day and sorry :D

Kettu

Quote from: nikus on November 19, 2006, 10:39:21 AM
Hi there , my ShoutBox its working good , but only with mozilla FireFox , with IE ( internet Explorer ) dont work , i type an message and click "Shout" and dont do nothing :\
Huh? That's mysterious. Don't understand that.

Quote from: nikus on November 19, 2006, 10:39:21 AM
other thing , Why , with IE , letters size are bigger then Mozilla ? :|  :-\
That's normal. You can change the font size of each browser itself.
The difference mostly depends on the small, x-small, xx-small etc. definition. I prefer pure pixel codes, but most programmers use the definitions.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

dry3210

My forum members are so addicted to the shoutbox that they want it to be on the board pages too and not just the main page.  I know what code to get it to show up, just can't figure out what file and where in the file to post it to get it to show up and look right.

Anyone?

Kettu

Why does none read the previous posts?
It was so often asked for and also answered. ::)
Just use your index.template.php
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

littleone

Quote from: Kettu on November 20, 2006, 04:50:54 AM
Why does none read the previous posts?
It was so often asked for and also answered. ::)
Just use your index.template.php
lol there are 44 pages in this thread and this question (and answer) appears on like 35 of them.  ::)

0warning0

QuotePlease load your sboxDB.php as own page: hxxp:yourforum.com/Source/sboxDB.php [nonactive], then show your source code, copy it and paste it here.


Notice: Undefined variable: divclass in C:\Websites\motogrouprides.com\forum\Sources\sboxDB.php on line 206

[November 20, 2006, 04:22:49 PM]
[History] [Clear history] [Disable refresh]
[X][Mon 16:22] <warning> hi





<?php
header('Pragma: no-cache');
header('Expires: 0');
header('Cache-control: none');

require("../SSI.php");

if (!defined('SMF'))
  die('Hacking attempt...');

loadLanguage('sbox');

/***[ BEGIN CONFIGURATION ]***************************************************/

$sbox_HistoryFile = $boarddir . '/sbox.history.html';

$sbox_NickPrefix = '&lt;';       // this won't be linked to the profile page
$sbox_NickInnerPrefix = '<b>';   // this will be linked to the profile page, use formatting tags (<B>) here
$sbox_NickInnerSuffix = '</b>';  // so that they are applied inside the <A>, otherwise they won't work
$sbox_NickSuffix = '&gt;';

$sbox_DatePrefix = '[';
$sbox_DateSeparator = '&nbsp;';    // separates weekday from time
$sbox_DateSuffix = ']';

/***[ END CONFIGURATION ]*****************************************************/

// BEGIN: BORROWED FROM hxxp:de2.php.net/manual/en/function.flock.php [nonactive]
/*
* I hope this is usefull.
* If mkdir() is atomic,
* then we do not need to worry about race conditions while trying to make the lockDir,
* unless of course we're writing to NFS, for which this function will be useless.
* so thats why i pulled out the usleep(rand()) piece from the last version
*
* Again, its important to tailor some of the parameters to ones indivdual usage
* I set the default $timeLimit to 3/10th's of a second (maximum time allowed to achieve a lock),
* but if you're writing some extrememly large files, and/or your server is very slow, you may need to increase it.
* Obviously, the $staleAge of the lock directory will be important to consider as well if the writing operations might take a while.
* My defaults are extrememly general and you're encouraged to set your own
*
* $timeLimit is in microseconds
* $staleAge is in seconds
*/

function microtime_float() {
   list($usec, $sec) = explode(' ', microtime());
   return ((float)$usec + (float)$sec);
}

function locked_filewrite($filename, $data, $timeLimit = 300000, $staleAge = 5) {
   ignore_user_abort(1);
   $lockDir = $filename . '.lock';

   if (is_dir($lockDir)) {
     if ((time() - filemtime($lockDir)) > $staleAge) {
       rmdir($lockDir);
     }
   }

   $locked = @mkdir($lockDir);

   if ($locked === false) {
     $timeStart = microtime_float();
     do {
       if ((microtime_float() - $timeStart) > $timeLimit) break;
       $locked = @mkdir($lockDir);
     } while ($locked === false);
   }

   $success = false;

   if ($locked === true) {
     $fp = @fopen($filename, 'at');
     if (@fwrite($fp, $data)) $success = true;
     @fclose($fp);
     rmdir($lockDir);
   }

   ignore_user_abort(0);
   return $success;
}
// END: BORROWED FROM hxxp:de2.php.net/manual/en/function.flock.php [nonactive]

function missinghtmlentities($text) {
  global $context;
  // entitify missing characters, ignore entities already there (Unicode / UTF8) (hopefully in {-notation)
  $split = preg_split('/(&#[\d]+;)/', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
  $result = '';
  foreach ($split as $s) {
    if (substr($s, 0, 2) != '&#' || substr($s, -1, 1) != ';') {
      // filter out "ANSI_X3.4-1968" charset, which just means plain old ASCII ... replace by UTF-8
      if (strpos($context['character_set'], 'ANSI_') !== false) $charset = 'UTF-8'; else $charset = $context['character_set'];
      $result .= @htmlentities($s, ENT_NOQUOTES, $charset);
    } else {
      $result .= $s;
    }
  }
  return $result;
}

//display html header
echo '<html xmlns="hxxp:www.w3.org/1999/xhtml"' [nonactive]; . ($context['right_to_left']?' dir="rtl"':'') . '>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />';
 
$result = db_query("SELECT time FROM {$db_prefix}sbox_content ORDER BY time DESC LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($result);
$refreshBlocked = false;
$delta = time() - $row['time'];
if ((!empty($_REQUEST['action'])) && ($_REQUEST['action'] == 'write')) $dontblock = true; else $dontblock = false;
if (($delta > $modSettings['lastActive']*60) && ($modSettings['sbox_BlockRefresh'] == '1') && (!$dontblock)) {
  $refreshBlocked = true;
} elseif (empty($_REQUEST['action']) || ($_REQUEST['action'] != 'stoprefresh')) {
  echo '
  <meta http-equiv="refresh" content="' . $modSettings['sbox_RefreshTime'] . ';URL=sboxDB.php?ts=' . time() . '">';
}

$sbox_CurTheme = strtolower(substr($settings['theme_url'], strrpos($settings['theme_url'], '/')+1));
$sbox_DarkThemes = explode('|', strtolower($modSettings['sbox_DarkThemes']));
if (in_array($sbox_CurTheme, $sbox_DarkThemes)) {
  $sbox_TextColor2 = $modSettings['sbox_TextColor2'];
} else {
  $sbox_TextColor2 = $modSettings['sbox_TextColor1'];
}

echo '
  <link rel="stylesheet" type="text/css" href="' . $settings['theme_url'] . '/style.css?rc2" />
  <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
    function kill() { return confirm("' . $txt['sbox_KillShout'] . '"); }
    function clearHist() { return confirm("' . $txt['quickmod_confirm'] . '"); }

    // get SMF-time including time zone corrections (system+user)
    if (parent && parent.document.sbox.ts) {
      parent.document.sbox.ts.value = ' . forum_time(true) . ';
    }
    // ]]></script>
  <style type="text/css">
 
    .windowbg2 {
      font-family: ' . $modSettings['sbox_FontFamily'] . ';
      font-style: normal;
      font-size: ' . $modSettings['sbox_TextSize'] . ';
      font-weight: normal;
      text-decoration: none;
    }

    .Even {
      color: ' . $sbox_TextColor2 . ';
      font-weight: normal;
      text-decoration: none;
    }
   
    body {
      width: 100%;
      padding: 0;
      margin: 0;
      border: 0;
    }

    .Kill, A.Kill {
      color: #ff0000;
    }
  </style>';


if (!empty($_REQUEST['action'])) switch ($_REQUEST['action']) {

  case 'write':
    if  (((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == '1')) && !empty($_REQUEST['sboxText'])) {
      is_not_banned(true);  // die with message, if user is banned, let him read everything though
      $content = $_REQUEST['sboxText'];
      // get current timestamp
      $date = time();
   
      $posterip = $user_info['ip'];
      $pip = explode('.', $posterip);
      $piph = sprintf("%02s%02s%02s%02s", dechex($pip[0]), dechex($pip[1]), dechex($pip[2]), dechex($pip[3]));
   
      // handle special characters
      $content = addslashes($piph . $content);
   
      // insert shout message into database
      $sql = "INSERT INTO " . $db_prefix . "sbox_content (ID_MEMBER, content, time) VALUES ('" . $context['user']['id'] . "', '" . $content . "', '$date')";
      db_query($sql, __FILE__, __LINE__);
   
      // delete old shout messages (get id of last shouting and delete all shoutings as defined in settings
      $result = db_query("SELECT id FROM " . $db_prefix . "sbox_content WHERE ID_MEMBER='" . $context['user']['id'] . "' AND content='" . $content . "' AND time='$date'", __FILE__, __LINE__);
      $rows = mysql_fetch_assoc($result);
      $sql = 'DELETE FROM ' . $db_prefix . "sbox_content WHERE id < '" . ($rows["id"]-$modSettings['sbox_MaxLines']) . "'";
      db_query($sql, __FILE__, __LINE__);
     
      // write into history if needed
      if ($modSettings['sbox_DoHistory'] == '1') {
        $ds = $sbox_DatePrefix . date('Y-m-d', $date) . $sbox_DateSeparator . date('H:i.s', $date) . $sbox_DateSuffix;
       
        $content = stripslashes($content); // shouting content
        $content = substr($content, 8);
        $content = missinghtmlentities($content);
        if ($modSettings['sbox_AllowBBC'] == '1' && ($context['user']['id'] > 0 || $modSettings['sbox_GuestBBC'] == '1')) {
          $content = parse_bbc($content);
        }
       
        $output = $ds . '&nbsp;' . $sbox_NickPrefix;
        if ($context['user']['id'] > 0) {
          $output .= '<a href="' . $scripturl . '?action=profile;u=' . $context['user']['id'] . '" target="_blank" class="' . $divclass . '">';
          $output .= $sbox_NickInnerPrefix . ((!empty($context['user']['name']))?$context['user']['name']:$context['user']['username']) . $sbox_NickInnerSuffix;
          $output .= '</a>';
        } else {
          $output .= $sbox_NickInnerPrefix . 'Guest-' . base_convert($piph, 16, 36) . $sbox_NickInnerSuffix;
        }
        $output .= $sbox_NickSuffix . '&nbsp;' . $content . '</div><br />' . "\n";
       
        if (!file_exists($sbox_HistoryFile)) {
          // TODO: Prepare file ... HTML-header, stylesheet, etc.
        }
       
        locked_filewrite($sbox_HistoryFile, $output);
      }
    }
    break;
   
  case 'clearhist':
    if ($context['user']['is_admin']) {
      if (file_exists($sbox_HistoryFile)) {
        $lockDir = $sbox_HistoryFile . '.lock';
        $start = time();
        while ((is_dir($lockDir)) && ((time() - $start) < 5)) {
          usleep(100000);  // sleep 1/10th of a second (for a PC these are ages!)
        }
        if (!is_dir($lockDir)) @unlink($sbox_HistoryFile);
      }
    }
    break;

  case 'kill':
    if  (!empty($_REQUEST['kill']) && ($context['user']['is_admin'] || ($modSettings['sbox_ModsRule'] && count(boardsAllowedTo('moderate_board'))>0))) {
      $sql = 'DELETE FROM ' . $db_prefix . 'sbox_content WHERE id=' . intval($_REQUEST['kill']);
      db_query($sql, __FILE__, __LINE__);
    }
    break;
   
}

// close header and open body
echo '
</head>
<body class="windowbg2"><div class="windowbg2">';

echo "\n" . '<b>' . $sbox_DatePrefix . strftime($user_info['time_format'], forum_time(true)) . $sbox_DateSuffix;
if ($refreshBlocked) {
  echo ' ' . $txt['sbox_RefreshBlocked'];
}
echo '</b><br />';

if ($context['user']['is_admin']) {
  if ($modSettings['sbox_DoHistory'] == '1') {
    echo "\n";
    if (file_exists($sbox_HistoryFile)) {
      echo '[<a href="' . str_replace($boarddir, $boardurl, $sbox_HistoryFile) . '" target="_blank">' . $txt['sbox_History'] . '</a>]';
      echo ' [<a href="' . $_SERVER['PHP_SELF'] . '?action=clearhist" class="Kill" onClick="return clearHist();">' . $txt['sbox_HistoryClear'] . '</a>]';
    } else {
      echo '[' . $txt['sbox_HistoryNotFound'] . ']';
    }
    echo '';
  }
}

if (!$refreshBlocked) {
  if (!empty($_REQUEST['action']) && ($_REQUEST['action'] == 'stoprefresh')) {
    echo ' [<a href="' . $_SERVER['PHP_SELF'] . '">' . $txt['sbox_RefreshEnable'] . '</a>]';
  } else {
    echo ' [<a href="' . $_SERVER['PHP_SELF'] . '?action=stoprefresh">' . $txt['sbox_RefreshDisable'] . '</a>]';
  }
}

/*
if (!empty($settings['display_who_viewing'])) {
  echo '<small>';
  if ($settings['display_who_viewing'] == 1)
    echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
  else
    echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
  echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '</small>';
}
*/

// get shout messages out of database
$result = db_query("
  SELECT *
  FROM {$db_prefix}sbox_content AS sb
    LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = hxxp:sb.id [nonactive]_MEMBER)
  ORDER BY id DESC, time ASC LIMIT " . $modSettings['sbox_MaxLines'], __FILE__, __LINE__);
if(mysql_num_rows($result)) {
  $lname = '';
  $count = 0;
  $div = false;
  $alert = false;
  while($row = mysql_fetch_assoc($result)) {
    $name = $row['ID_MEMBER'];           // user name
    $date = forum_time(true, $row['time']);           // shouting date and time
    $content = stripslashes($row['content']); // shouting content
    $piph = substr($content, 0, 8);
    $content = substr($content, 8);
    censorText($content);
    $content = missinghtmlentities($content);
    if ($modSettings['sbox_AllowBBC'] == '1' && ($name > 0 || $modSettings['sbox_GuestBBC'] == '1')) {
      $content = preg_replace('/(\[img)(.*?)(\[\/img\])/i', '', $content);   // filter out [img]-BBC
      $content = parse_bbc($content);
    }

    if (!empty($_REQUEST['ts']) && !$div && $date<$_REQUEST['ts']) {
      if ($count > 0 && $modSettings['sbox_NewShoutsBar'] == '1') {
        echo '<hr>' . "\n";
      }
      $div = true;
    }
   
    if ($name != $lname) {
      $count++;           // increase counter
    }
    $lname = $name;

    // display shouting message and use a different color each second row
    if ($count % 2 == 0) {
      $divclass = 'windowbg2';
    } else {
      $divclass = 'Even';
    }

/*    $r = $g = $b = 0;
    for ($i=0;$i<strlen($name);$i++) {
      $x = ord(substr($name, $i, 1));
      switch ($i % 3) {
        case 0: $r += $x; break;
        case 1: $g += $x; break;
        case 2: $b += $x; break;
      }
    }
    $r = dechex($r % 192);
    $g = dechex($g % 192);
    $b = dechex($b % 192);
    if (strlen($r)<2) $r = '0' . $r;
    if (strlen($g)<2) $g = '0' . $g;
    if (strlen($b)<2) $b = '0' . $b;
    $colh = $r . $g . $b;

    echo "\n" . '<div class="' . $divclass . '" style="color: #' . $colh . '">'; */
    echo "\n" . '<div class="' . $divclass . '">';
   
    if ($context['user']['is_admin'] || ($modSettings['sbox_ModsRule'] && count(boardsAllowedTo('moderate_board'))>0)) {
      echo '[<a title="' . $txt['sbox_KillShout'] . '" class="Kill" onClick="return kill();" href="' . $_SERVER['PHP_SELF'] . '?action=kill&kill=' . $row['id'] . '">X</a>]';
    }
   
    $wd = $txt['days_short'][date('w', $date)];
    $ts = date('H:i', $date);
    $ds = $sbox_DatePrefix . $wd . $sbox_DateSeparator . $ts . $sbox_DateSuffix;
   
    // highlight username, realname and make sound
    if (!empty($context['user']['name']) && strpos($content, $context['user']['name']) !== false) {
      if ($div === false) $alert = true;
      $content = str_replace($context['user']['name'], '<b><u>' . $context['user']['name'] . '</u></b>', $content);
    }
    if (!empty($user_info['username']) && $user_info['username'] != $context['user']['name'] && strpos($content, $user_info['username']) !== false) {
      if ($div === false) $alert = true;
      $content = str_replace($user_info['username'], '<b><u>' . $user_info['username'] . '</u></b>', $content);
    }
   
    echo $ds . '&nbsp;' . $sbox_NickPrefix;
    if ($name > 0) {
      if ($modSettings['sbox_UserLinksVisible'] == '1') echo '<a href="' . $scripturl . '?action=profile;u=' . $name . '" target="_top" style="text-decoration: none;"><span class="' . $divclass . '">';
      echo $sbox_NickInnerPrefix . ((!empty($row['realName']))?$row['realName']:$row['memberName']) . $sbox_NickInnerSuffix;
      if ($modSettings['sbox_UserLinksVisible'] == '1') echo '</span></a>';
    } else {
      echo $sbox_NickInnerPrefix . $txt['sbox_Guest'] . '-' . base_convert($piph, 16, 36) . $sbox_NickInnerSuffix;
    }
    echo $sbox_NickSuffix . '&nbsp;' . $content . '</div>';
  }
  if (($modSettings['sbox_EnableSounds']) && ($alert === true) && ($div === true)) {
    echo '<embed src="' . $boardurl . '/chat-inbound_GSM.wav" hidden="true" autostart="true" loop="false"></embed>' . "\n";
  }
}

?>
</div>
</body>
</html>

Kettu

#648
 :o If you add code from a page please put it between [code][/code] For the future. ;)

Okay, the problematic code is
$output .= '<a href="' . $scripturl . '?action=profile;u=' . $context['user']['id'] . '" target="_blank" class="' . $divclass . '">';
And it is caused bei $divclass . I have to look for it.

Edit2:
Okay, I have no idea why this variable causes the error. It is defined on your page. Did you add a second colour füor your shoutbox (administration center)?
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kok3n

i'm trying to install smf shoutbox on my other forum but i can no longer find the download link for SMF Shoutbox  version 1.15

please tell me where i could download it.. thanks..

Kettu

Quote from: bisrock on November 22, 2006, 04:11:32 AM
i'm trying to install smf shoutbox on my other forum but i can no longer find the download link for SMF Shoutbox  version 1.15

please tell me where i could download it.. thanks..
Take a look at my signature. ;)
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

machaanz

is there any way to hide the path of the refresh button? Now the path to shoutDB.php is showing in browser when we put the mouse on it.

nikus

Quote from: Kettu on November 19, 2006, 04:38:55 PM
Quote from: nikus on November 19, 2006, 10:39:21 AM
Hi there , my ShoutBox its working good , but only with mozilla FireFox , with IE ( internet Explorer ) dont work , i type an message and click "Shout" and dont do nothing :\
Huh? That's mysterious. Don't understand that.

Quote from: nikus on November 19, 2006, 10:39:21 AM
other thing , Why , with IE , letters size are bigger then Mozilla ? :|  :-\
That's normal. You can change the font size of each browser itself.
The difference mostly depends on the small, x-small, xx-small etc. definition. I prefer pure pixel codes, but most programmers use the definitions.

My frinds are using IE , and with IE , shoutBox dont work...i type an message and dont apear nothing  :( :-\

Kettu

Quote from: nikus on November 22, 2006, 03:02:22 PM
My frinds are using IE , and with IE , shoutBox dont work...i type an message and dont apear nothing  :( :-\
Do they press shout or click enter?
Well, 1.14 works fine with IE. That's what I use.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

_simon_

#654
Is there anyway to remove the horizontal scroll bar?

Also, every other "message" is inset from the last and it looks messy. Can this be altered?

Kettu

Quote from: _simon_ on November 23, 2006, 11:35:54 AM
Is there anyway to remove the horizontal scroll bar?
Check your administration center!

Quote from: _simon_ on November 23, 2006, 11:35:54 AMAlso, every other "message" is inset from the last and it looks messy. Can this be altered?
I don't understand what you mean.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

_simon_

#656
Quote from: Kettu on November 24, 2006, 05:56:09 PM
Quote from: _simon_ on November 23, 2006, 11:35:54 AM
Is there anyway to remove the horizontal scroll bar?
Check your administration center!

Quote from: _simon_ on November 23, 2006, 11:35:54 AMAlso, every other "message" is inset from the last and it looks messy. Can this be altered?
I don't understand what you mean.

Hi,

Thanks for the reply.

There is no option in the admin center to disable horizontal scroll, maybe you thought I meant the line marker?
I'm running 1280x1024 and even with the window maximised I can't get rid of the horizontal scroll.

What I meant about messages in the shoutbox being inset was it looks like this:

Person 1 (message)
Person 3 (message)
Person 2 (Message)
Person 1 (message)

They aren't left aligned.

Solidus

Quote from: w3b on November 12, 2006, 09:59:05 AM
Hello folks !

I'm going to be mad..
I've installed this mod (http://mods.simplemachines.org/index.php?mod=412 ) after a clean new installation of SMF RC3 with package manager. I've inserted the code into index.template, but the shoutbox doesn't appear anywhere  :'(

I'm asking you.. where can I find my mistake ? I don't see any error :/

Hi! I'm having the same problem. Has it any solution? Thanks for the mod!

Kettu

Quote from: _simon_ on November 25, 2006, 03:20:40 AM
There is no option in the admin center to disable horizontal scroll, maybe you thought I meant the line marker?
I'm running 1280x1024 and even with the window maximised I can't get rid of the horizontal scroll.
Yes, I did. The horizontal scrollbar is no part of the shoutbox. It is made by your theme. So you have to check your theme. I remember there was another user with the same problem a few pages before. Check it.

Quote from: _simon_ on November 25, 2006, 03:20:40 AMWhat I meant about messages in the shoutbox being inset was it looks like this:

Person 1 (message)
Person 3 (message)
Person 2 (Message)
Person 1 (message)

They aren't left aligned.
I think this is also a problem of your theme, because it doesn't happen at my shoutbox. What kind of theme do you use?

Quote from: Solidus on November 25, 2006, 06:26:50 AM
Quote from: w3b on November 12, 2006, 09:59:05 AM
Hello folks !

I'm going to be mad..
I've installed this mod (http://mods.simplemachines.org/index.php?mod=412 ) after a clean new installation of SMF RC3 with package manager. I've inserted the code into index.template, but the shoutbox doesn't appear anywhere  :'(

I'm asking you.. where can I find my mistake ? I don't see any error :/

Hi! I'm having the same problem. Has it any solution? Thanks for the mod!
What about more information?
Also what you've quoted includes a simple error. The shoutbox has to be at BoardIndex.template.php!!! Only if you want to show it on every page of your board, then you use index.template.php. And then it is important, where you add the code.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

Solidus

I put it in both board.index and index.template.php but it doesn't appear anywhere

Advertisement: