News:

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

Main Menu

SMF Shoutbox

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

Previous topic - Next topic

Vladik

On default forum theme/english language users can see smiles, but on default theme/russian language users can not see the smiles.

Help me please.

kriskd

Quote from: onijin on June 13, 2006, 04:42:38 PM
If you change BOTH "thurday"

then in wont change.

You have to change only the output.  the second thurday.

my shoutbox is still calling "Thurday" but it's showing "Thursday"

Ugh... you're gonna love this -- I did the modification correctly, but never uploaded the correct file!  Thursday is just a few hours away for me, we'll see if it works now!
SMF 2.0.2

bicunisa

Quote from: Vladik on June 14, 2006, 05:32:02 PM
On default forum theme/english language users can see smiles, but on default theme/russian language users can not see the smiles.

Help me please.

Happens the same to me, in spanish.

It seems to be a GENERAL problem of SMF, every mod that you install, if it doesn't come with a language pack for you, then it will not show.

onijin

Quote from: kriskd on June 14, 2006, 09:21:49 PM
Quote from: onijin on June 13, 2006, 04:42:38 PM
If you change BOTH "thurday"

then in wont change.

You have to change only the output.  the second thurday.

my shoutbox is still calling "Thurday" but it's showing "Thursday"

Ugh... you're gonna love this -- I did the modification correctly, but never uploaded the correct file!  Thursday is just a few hours away for me, we'll see if it works now!

LoL~  Crazy guy~   ^_^

PrizeLive.com

How can I show the "Shoutbox" on the bottom below the last board but above the forum stats? Forum is here: http://www.moneytalkpro.com/index.php.

Which file do I edit to make this happen?

Thanks.
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

onijin

boardindex.template.php

find and delete


  // display shoutbox
  if (function_exists('sbox')) sbox();




find


// Here's where the "Info Center" starts...


add above


  // display shoutbox
  if (function_exists('sbox')) sbox();


I think that's the correct location.  It'll be right above the stats stuff.

domipedro

Hello
In the newspaper of error I board all the time the same error:

8: Undefined index: sbox_Refresh
Fichier: /var/www/html/g/gsm/PTP9/Themes/default/sbox.template.php (eval?)
Ligne: 23

I use the French language, I board this error on three different forum.
Does somebody have an idea?
thank

Penelope

#147
Hi all   :)

Is it possible to have a new highscore shout in the SMF Shoutbox like invision boards shoutbox also have?

For example:
[ Wednesday | 23:30 ] <Penelope> I am the new Champ of 1i Champi with a score of 21900!

If yes, how can i do this?

Hope someone can help me! Would be great to have this option in the SMF Shoutbox!   :D

Greets,

Penelope

tL0z

Hello,

How can I make to the shoutbox appear shrinked by default? At least, for guests.
Also, how can I put the form under the box with the shouts?

Can anyone help me to "find" the place above the info center in the code of the template 7_dana?  :(

Thanks

LazyBum

hey this shoutbox works great but i am using joomla 1.0.9 with it bridged by Orstio's bridge 1.1.4. In the shoutbox appears my joomla website -.- anyone else has this problem?

UnlimitedX

I have problem


QuoteNotice: Undefined index: action in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 66

Notice: Undefined index: sbox_smilie01_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 133

Notice: Undefined index: sbox_smilie01_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 133

Notice: Undefined index: sbox_smilie01_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 133

Notice: Undefined index: sbox_smilie01_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 133

Notice: Undefined index: sbox_smilie02_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 134

Notice: Undefined index: sbox_smilie02_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 134

Notice: Undefined index: sbox_smilie02_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 134

Notice: Undefined index: sbox_smilie02_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 134

Notice: Undefined index: sbox_smilie03_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 135

Notice: Undefined index: sbox_smilie03_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 135

Notice: Undefined index: sbox_smilie03_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 135

Notice: Undefined index: sbox_smilie03_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 135

Notice: Undefined index: sbox_smilie04_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 136

Notice: Undefined index: sbox_smilie04_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 136

Notice: Undefined index: sbox_smilie04_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 136

Notice: Undefined index: sbox_smilie04_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 136

Notice: Undefined index: sbox_smilie05_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 137

Notice: Undefined index: sbox_smilie05_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 137

Notice: Undefined index: sbox_smilie05_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 137

Notice: Undefined index: sbox_smilie05_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 137

Notice: Undefined index: sbox_smilie06_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 138

Notice: Undefined index: sbox_smilie06_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 138

Notice: Undefined index: sbox_smilie06_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 138

Notice: Undefined index: sbox_smilie06_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 138

Notice: Undefined index: sbox_smilie07_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 139

Notice: Undefined index: sbox_smilie07_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 139

Notice: Undefined index: sbox_smilie07_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 139

Notice: Undefined index: sbox_smilie07_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 139

Notice: Undefined index: sbox_smilie08_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 140

Notice: Undefined index: sbox_smilie08_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 140

Notice: Undefined index: sbox_smilie08_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 140

Notice: Undefined index: sbox_smilie08_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 140

Notice: Undefined index: sbox_smilie09_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 141

Notice: Undefined index: sbox_smilie09_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 141

Notice: Undefined index: sbox_smilie09_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 141

Notice: Undefined index: sbox_smilie09_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 141

Notice: Undefined index: sbox_smilie10_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 142

Notice: Undefined index: sbox_smilie10_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 142

Notice: Undefined index: sbox_smilie10_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 142

Notice: Undefined index: sbox_smilie10_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 142

Notice: Undefined index: sbox_smilie11_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 143

Notice: Undefined index: sbox_smilie11_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 143

Notice: Undefined index: sbox_smilie11_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 143

Notice: Undefined index: sbox_smilie11_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 143

Notice: Undefined index: sbox_smilie12_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 144

Notice: Undefined index: sbox_smilie12_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 144

Notice: Undefined index: sbox_smilie12_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 144

Notice: Undefined index: sbox_smilie12_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 144

Notice: Undefined index: sbox_smilie13_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 145

Notice: Undefined index: sbox_smilie13_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 145

Notice: Undefined index: sbox_smilie13_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 145

Notice: Undefined index: sbox_smilie13_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 145

Notice: Undefined index: sbox_smilie14_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 146

Notice: Undefined index: sbox_smilie14_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 146

Notice: Undefined index: sbox_smilie14_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 146

Notice: Undefined index: sbox_smilie14_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 146

Notice: Undefined index: sbox_smilie15_code in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 147

Notice: Undefined index: sbox_smilie15_file in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 147

Notice: Undefined index: sbox_smilie15_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 147

Notice: Undefined index: sbox_smilie15_text in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 147


Notice: Undefined index: sbox_KillShout in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 157

and emotion don't display !

littleone

Why is it E:\  That shows its coming from a computer and not a website.  Thats what its not showing, you need to have it hosted some where.  that E:\ shouldn't be there or should be your website.

Correct me anyone if I am wrong.

moTaro

Because he most probably installed this on a localhost machine.

UnlimitedX

#153
Now! i have Problem

QuoteNotice: Undefined index: action in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 66

but i can shout  and when sboxDB.php reload Notice it again

tL0z

#154
Hello,

How can I change the shoutbox backgorund color to white?
Also, when I click on a link in the forum, it also opens in the shoutbox's iframe, how can I avoid that?  ::)

Thanks

moTaro

#155
Quote from: UnlimitedX on June 17, 2006, 11:29:17 PM
Now! i have Problem

QuoteNotice: Undefined index: action in E:\Cgmrsu\webboard\Sources\sboxDB.php on line 66

but i can shout  and when sboxDB.php reload Notice it again

I have the exact SAME problem..

It is auto refresh problem, I figured that Out, but I don't know how to Patch it.. Anyone?

Bubbles

I installed the shoutbox...but how can I put it on my forums?

tL0z

The answer to your question is here.

Penelope

Quote from: Penelope on June 16, 2006, 05:02:45 AM
Hi all   :)

Is it possible to have a new highscore shout in the SMF Shoutbox like invision boards shoutbox also have?

For example:
[ Wednesday | 23:30 ] <Penelope> I am the new Champ of 1i Champi with a score of 21900!

If yes, how can i do this?

Hope someone can help me! Would be great to have this option in the SMF Shoutbox!   :D

Greets,

Penelope

I finished the code! My first own script! lol :D

Complete code for those who are interrested:

Arcade.php:
Function Arcade_submit_torney($warning,$hop)
{
        global $boardurl, $txt, $scripturl, $db_prefix, $boarddir;
        global $ID_MEMBER, $sourcedir,$language,$user_profile;
        global $context, $user_info, $db_prefix, $modSettings;

        $temp = $_SESSION['arcade']['game'];

        $time = time();
        $q = "SELECT * FROM {$db_prefix}games_tournament WHERE tid='{$temp['tourney']}'";
        $res = db_query($q,__FILE__,__LINE__);
        $x = mysql_fetch_array($res);
        $round = unserialize($x['rounddata']);
if(isset($round[$temp['round']]))
{
  $cr = $round[$temp['round']];
}
else $cr = $temp['round'];
        $q2 = "INSERT INTO {$db_prefix}games_tournament_results SET tid='{$x['tid']}', round='{$temp['round']}', member='{$ID_MEMBER}', score='{$_POST['score']}'";
        db_query($q2,__FILE__,__LINE__);

        redirectexit("action=arcade;sa=tournament;update;id={$x['tid']}");
}

Function Arcade_submit_normal($warning,$hop)
{
global $boardurl, $txt, $scripturl, $db_prefix, $boarddir;
global $ID_MEMBER, $sourcedir,$language,$user_profile;
global $context, $user_info, $db_prefix, $modSettings;

$days = array($txt['sbox_Sunday'],$txt['sbox_Monday'],$txt['sbox_Tuesday'],$txt['sbox_Wednesday'],$txt['sbox_Thursday'],$txt['sbox_Friday'],$txt['sbox_Saturday']);
$day=$days[date("w")]; // weekday
$date=$day." | ". date("G:i"); // time
$time = time();

$duration = $time - $_SESSION['arcade']['start_time'];

if(!isset($_SESSION['arcade']['submit']) || $_SESSION['arcade']['submit']['score'] != $_POST['score'])
{

$query = "INSERT INTO `{$db_prefix}games_high` (`game`, `member`, `score`, `stime`,`warning`,`duration`,`ip`) VALUES ('{$_REQUEST['game']}', '{$ID_MEMBER}', '{$_POST['score']}', '{$time}','{$warning}','{$duration}','-')";
$results = db_query($query, __FILE__, __LINE__);

$per_sivu = $modSettings['arcade_highscores_per_page'];

$game = Get_Game_Info($_POST['game']);

$b = (get_position($_REQUEST['game'],$_REQUEST['score'],$game['type'],0));

$_GET['start'] = $b;

$_SESSION['arcade']['submit'] = array
(
'game' => $_POST['game'],
'score' => $_POST['score'],
'time' => $time,
'duration' => $duration,
'start' => $b,
'warning' => $warning,
'comment' => 0,
);

update_champ($_POST['game']);


/*
* scores inserted
* now if this player subbmit a number one score
* give him credits for the shop :)
*/
$query = "SELECT `member`, `score`, `stime` FROM `{$db_prefix}games_high` WHERE `game` = '{$_REQUEST['game']}' ORDER BY `score` DESC";
$result = db_query($query, __FILE__, __LINE__);
$content = mysql_fetch_array($result);
if( $content['stime'] == $time &&
$content['member'] == $ID_MEMBER &&
$content['score'] == $_POST['score']
  ){
// first score!!!
// give player 10 points in his bank ;)
$query = "UPDATE `{$db_prefix}members` SET `moneyBank` = `moneyBank` + '10.00' WHERE `ID_MEMBER` ='{$ID_MEMBER}'";
$results = db_query($query, __FILE__, __LINE__);
}

/*
* scores inserted
* now if this player subbmit a number one score
* give him credits for the shop :)
*/
$query = "SELECT `member`, `score`, `stime` FROM `{$db_prefix}games_high` WHERE `game` = '{$_REQUEST['game']}' ORDER BY `score` DESC";
$result = db_query($query, __FILE__, __LINE__);
$content = mysql_fetch_array($result);
if( $content['stime'] == $time &&
$content['member'] == $ID_MEMBER &&
$content['score'] == $_POST['score']
  ){
// first score!!!
// give player 10 points in his bank ;)
$query = "UPDATE `{$db_prefix}members` SET `moneyBank` = `moneyBank` + '10.00' WHERE `ID_MEMBER` ='{$ID_MEMBER}'";
$results = db_query($query, __FILE__, __LINE__);

// -- SETUP EDITS ---

$db_prefix = 'smf_'; //edit this to your your database prefix - usually smf_
$no = 10; //number of top players to show

// --LANGUAGE EDITS --
$txtplay = "The Top Players"; // change "The Top Players" to your language
$txtwin = "Number Of Wins :";// change "Number Of Wins :" to your language
$txtlate = "Latest High Score by ";// change "Latest High Score set by" to your language
$txtwit = "with ";// change "with" to your language
$txton = "on ";// change "on" to your language

require('./Settings.php');


$link = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name, $link);

// --START BLOCK CODE --
$content = "";  //set blank for a start

//Get newest champ or die
$sql = "SELECT m.ID_MEMBER,m.realName,g.id, g.game, g.name,g.champion_score "
. "FROM {$db_prefix}members m , {$db_prefix}games g "
. "WHERE g.champion_score > 0 AND m.ID_MEMBER=g.champion_member "
. "ORDER BY g.champion_time DESC LIMIT 0,1";

if(!($result = mysql_query($sql,$link)))
{
die("Could not get the newest champ");
}
$row = mysql_fetch_assoc($result);
mysql_free_result($result);

//newest champ details
$playerid = $row['ID_MEMBER'];
$player = $row['realName'];
$game_id = $row['id'];
$game_name = $row['name'];
$score = $row['champion_score'];

//now get the pic for the game
$ext = array('gif','GIF','png','PNG','jpg','JPG',);
$game_pic = ""; // No thumbnail for default
foreach($ext as $ex)
{
if(file_exists($boarddir. "/Games/".$row['game'].".".$ex))
{
$game_pic = $boardurl."/Games/".$row['game'].".".$ex;
}
}


//Get the 10 best players or die
/*$sql = "SELECT m.ID_MEMBER, m.realName, count(g.id) As cnt"
. " FROM {$db_prefix}games g, {$db_prefix}members m"
. " WHERE m.ID_MEMBER=g.champion_member"
. " GROUP BY realName "
. " ORDER BY cnt DESC LIMIT 0,{$no}";
if(!($result = db_query($sql,__FILE__,__LINE__)))
{
die("Could not get the best players");
}

$row = mysql_fetch_assoc($result);*/

$score_poss=0; //players position


// new higscore!!!
// add new highscore message in shoutbox!
$sql = "insert into ".$db_prefix."sbox_content (name,content,time) values ('".$user_info['username']."','".$content."<b>I am the new Champ of <a href=\"{$scripturl}?action=arcade;sa=play;game={$game_id}\" target=\"_blank\">{$game_name}</a> {$txtwit} a score of {$score}!</b>','$date')";
db_query($sql,__FILE__,__LINE__);

}
}
}
Function Arcade_comment()


In this code is also a Shop code which gives every member which scores a new highscore in the Arcade shop points which goes into his/her's bank!


onijin

that is just WONDERFUL.

I've been wanting something like that~!!

So I can just throw that before

?>

??

Advertisement: