Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Deep on March 15, 2006, 08:09:52 AM

Title: SMF Shoutbox
Post by: Deep on March 15, 2006, 08:09:52 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=294)

Hi there!

I wrote this shoutbox mod because of two reasons:
1. I wasn´t clever enough to modify Grudge´s Ultimate Shoutbox in the way i liked. I wanted to have a shoutbox with a little bit more "chat feeling". So i decided to program a shoutbox which exactly fits my needs.
2. I am new to PHP and to SMF, so this was a chance to improve my knowledge about these things. In fact, this was the very first time i coded PHP. I am very impressed of the clear structure of SMF.

The shoutbox appears above the board index of the default theme. You can adjust some things using the configuration / features and options menu.

Sample screenshot:
(http://deep23.de.funpic.de/shoutbox_sample.jpg)

By the way, i have stolen some source code from Grudge. Thank you, Grudge! :-)

There is an additional german language pack available.

If you find a bug, please leave a comment to me. Thank you.

Deep

PS.: Sorry for my poor english.
Title: Re: SMF Shoutbox
Post by: keith021773 on March 15, 2006, 09:13:16 AM
Installed fine even though I am not using the default theme.  I am using dark-blue.    It was visible on the main page but in the chatbox itself it was giving me a internal server error.   How can I fix this?  Thanks.
Title: Re: SMF Shoutbox
Post by: hawkie2006 on March 15, 2006, 12:29:46 PM
im getting the same internal error
what up with this ?
Title: Re: SMF Shoutbox
Post by: scoobyx on March 15, 2006, 04:32:00 PM
same problem


The requested URL /mysite/sboxDB.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at www.mysite.com Port 80

:'(
Title: Re: SMF Shoutbox
Post by: InterxWeb on March 15, 2006, 08:53:05 PM
24.     Execute Modification     ./Sources/Subs.php     Test failed

... probablly my fault somehow, lol
Title: Re: SMF Shoutbox
Post by: Deep on March 16, 2006, 09:28:08 AM
@keith021773, @hawkie2006, @scoobyx:

The problem you experienced is new to me.
Please take a look at the sources directory (by default it is /smf/Sources) of your forum. Do you find the file sboxDB.php in this directory? If not, please extract this file out of the shoutbox archive and put it manually into this directory using ftp. But if the file is already in this directory,  please check it´s permission attributes. The file must be readable for anybody. Do you get the same error after having chmod it to 777?


@InterxWeb:

Well, in deed there is a real chance, that´s it could be your fault. In Subs.php the shoutbox installer wants to add a procedure after the existing procedure template_footer(). The installer looks for the following code to identify the end of this procedure:

log_error('Copyright removed!!');
}
}


Do you have modified the procedure and removed the log_error command? Maybe because you have removed the copyright?  ;)

However. Take a look at the file sbox_v1.04.mod inside the shoutbox zip archive,
Replace the following code..

<edit file>
$sourcedir/Subs.php
</edit file>

<search for>
log_error('Copyright removed!!');
}
}
</search for>

<add after>

function sbox()
{
global $sourcedir;

include_once("$sourcedir/sbox.php");
sbox_display();
}

</add after>


..with this code:

<edit file>
$sourcedir/Subs.php
</edit file>

<search for>
// Debugging.
function db_debug_junk()
</search for>

<add before>

function sbox()
{
global $sourcedir;

include_once("$sourcedir/sbox.php");
sbox_display();
}

</add before>


After you have modified sbox_v1.04.mod inside the shoutbox archive, please upload the archive and try to install the mod again.

Deep
Title: Re: SMF Shoutbox
Post by: qtime on March 16, 2006, 04:55:13 PM
This is what I see in the shout box: Any suggestions?
'; switch ($_REQUEST['action']) { case "write": if ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1")) { // empty messages are not allowed $content=$_REQUEST['sboxText']; if(chop($content."") != "") { // get actual weekday $days = array($txt['sbox_Sunday'],$txt['sbox_Monday'],$txt['sbox_Tuesday'],$txt['sbox_Wednesday'],$txt['sbox_Thurday'],$txt['sbox_Friday'],$txt['sbox_Saturday']); $day=$days[date("w")]; // weekday $date=$day." | ". date("G:i"); // time // handle spacial characters $content=addslashes($content); // insert shout message into database $sql = "insert into ".$db_prefix."sbox_content (name,content,time) values ('".$user_info['username']."','".$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 name='".$user_info['username']."' 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__); } } break; case "kill": if ($context['user']['is_admin']) { $id = "".$_REQUEST['kill']; if ($id != "") { $sql = "delete from ".$db_prefix."sbox_content where id=".$id.""; db_query($sql,__FILE__,__LINE__); } } break; } // close header and open body echo ' '; // get smilie path $themedir = $settings['default_theme_url']; // smf theme path $imgdir = $themedir."/images/"; // smilie path // get shout messages out of database $result = db_query("select * from ".$db_prefix."sbox_content order by id desc, time asc limit ".$modSettings['sbox_MaxLines'],__FILE__,__LINE__); if(mysql_num_rows($result)) { $count=0; // counter to distinguish font color while($row = mysql_fetch_assoc($result)) { $count = $count + 1; // increase counter $name = $row["name"]; // user name $date = $row["time"]; // shouting date and time $content = stripslashes($row['content']); // shouting content // replace smilie code with path to smilie image $content = str_replace ($txt['sbox_smilie01_code'], ''.$txt['sbox_smilie01_text'].'', $content); $content = str_replace ($txt['sbox_smilie02_code'], ''.$txt['sbox_smilie02_text'].'', $content); $content = str_replace ($txt['sbox_smilie03_code'], ''.$txt['sbox_smilie03_text'].'', $content); $content = str_replace ($txt['sbox_smilie04_code'], ''.$txt['sbox_smilie04_text'].'', $content); $content = str_replace ($txt['sbox_smilie05_code'], ''.$txt['sbox_smilie05_text'].'', $content); $content = str_replace ($txt['sbox_smilie06_code'], ''.$txt['sbox_smilie06_text'].'', $content); $content = str_replace ($txt['sbox_smilie07_code'], ''.$txt['sbox_smilie07_text'].'', $content); $content = str_replace ($txt['sbox_smilie08_code'], ''.$txt['sbox_smilie08_text'].'', $content); $content = str_replace ($txt['sbox_smilie09_code'], ''.$txt['sbox_smilie09_text'].'', $content); $content = str_replace ($txt['sbox_smilie10_code'], ''.$txt['sbox_smilie10_text'].'', $content); $content = str_replace ($txt['sbox_smilie11_code'], ''.$txt['sbox_smilie11_text'].'', $content); $content = str_replace ($txt['sbox_smilie12_code'], ''.$txt['sbox_smilie12_text'].'', $content); $content = str_replace ($txt['sbox_smilie13_code'], ''.$txt['sbox_smilie13_text'].'', $content); $content = str_replace ($txt['sbox_smilie14_code'], ''.$txt['sbox_smilie14_text'].'', $content); $content = str_replace ($txt['sbox_smilie15_code'], ''.$txt['sbox_smilie15_text'].'', $content); // display shouting message and use a different color each second row if ($count % 2) echo '
'; else echo '
'; if ($context['user']['is_admin']) echo '[X]'; echo '[ '.$date.' ] <'.$name.'> '.$content.'
'; } echo ' '; } ?>


my forum error log:
Apply Filter: Only show the error messages of this URL  http://myip/test/index.php?action=packages;sa=install2;package=sbox_v1.04.zip
Apply Filter: Only show the errors with the same message
8: Undefined variable: db_name
File: C:\Program Files\Apache Group\Apache2\htdocs\test\Packages\temp\sbox_setup.php
Line: 52

http://myip/test/index.php?action=packages;sa=install2;package=sbox_v1.04.zip
Apply Filter: Only show the errors with the same message
2: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'ODBC'@'localhost' (using password: NO)
File: C:\Program Files\Apache Group\Apache2\htdocs\test\Packages\temp\sbox_setup.php
Line: 51

http://myip/test/index.php?action=packages;sa=install2;package=sbox_v1.04.zip
Apply Filter: Only show the errors with the same message
8: Undefined variable: db_passwd
File: C:\Program Files\Apache Group\Apache2\htdocs\test\Packages\temp\sbox_setup.php
Line: 51

http://myip/test/index.php?action=packages;sa=install2;package=sbox_v1.04.zip
Apply Filter: Only show the errors with the same message
8: Undefined variable: db_user
File: C:\Program Files\Apache Group\Apache2\htdocs\test\Packages\temp\sbox_setup.php
Line: 51

Apply Filter: Only show the error messages of this URL  http://myip/test/index.php?action=packages;sa=install2;package=sbox_v1.04.zip
Apply Filter: Only show the errors with the same message
8: Undefined variable: db_server
File: C:\Program Files\Apache Group\Apache2\htdocs\test\Packages\temp\sbox_setup.php
Line: 51
Title: Re: SMF Shoutbox
Post by: Deep on March 17, 2006, 04:02:02 AM
Hi qtime!

What you see in the shout box is a part of the php source code of the file sboxDB.php.
This file seems to be corrupt. Please extract sboxDB.php out of the shoutbox archive and put it into the sources directory (by default it is /smf/Sources) of your forum.

If the error still occurs after you have done this, please post the content of sboxDB.php here so that i can have a look on it.

Your forum error log sais that the automatic execution of sbox_setup.php failed. This is a very often reported problem, but i have no idea what could be the reason for it.
To fix it, please extract the file sbox_setup.php out of the shoutbox archive and put it into the main directory of you forum and run this script by typing in it´s internet address in your browser (e.g. "http://mysite.com/smf/sbox_setup.php")

Deep
Title: Re: SMF Shoutbox
Post by: jguzman on March 17, 2006, 04:09:02 AM
Deep,

i'm getting this error in the actual shoutbox box
QuoteDatabase Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: /home/flashfor/public_html/Sources/sboxDB.php
Line: 119

ps, i'm a noob

and after i install the mod package, it says this

QuoteError creating shoutbox table. SQL Error: No Database Selected
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Title: Re: SMF Shoutbox
Post by: Deep on March 17, 2006, 05:30:28 AM
Hi jguzman,

here again the automatic execution of sbox_setup.php failed.
Please extract the file sbox_setup.php out of the shoutbox archive and put it into the main directory of you forum and run this script by typing in it´s internet address in your browser (e.g. "http://mysite.com/smf/sbox_setup.php")

Deep
Title: Re: SMF Shoutbox
Post by: Sava on March 17, 2006, 05:33:18 AM
An exellent mod.
Title: Re: SMF Shoutbox
Post by: keith021773 on March 17, 2006, 08:06:14 AM
Quote from: Deep on March 16, 2006, 09:28:08 AM
@keith021773, @hawkie2006, @scoobyx:

The problem you experienced is new to me.
Please take a look at the sources directory (by default it is /smf/Sources) of your forum. Do you find the file sboxDB.php in this directory? If not, please extract this file out of the shoutbox archive and put it manually into this directory using ftp. But if the file is already in this directory,  please check it´s permission attributes. The file must be readable for anybody. Do you get the same error after having chmod it to 777?


The file sboxdb.php was in the sources directory, however the files permission was set at 666.   I changed that to 777 and I am still getting the 404 internal server error..   Anything else that might make it work?

Title: Re: SMF Shoutbox
Post by: Deep on March 17, 2006, 08:55:11 AM
keith021773,

what happens if you try to access the file sboxDB.php directly by typing it´s internet address in your browser (e.g. "http://mysite.com/smf/Sources/sboxDB.php")?

Please keep in mind that linux systems are case sensitive, so you have to use "../ Sources/sboxDB.php" and not "../sources/sboxdb.php".

If you can access the file this way, you perhaps will get some error messages - don´t panic, you can ignore them all. In that case please edit the file sbox.template.php, located in your default themes directory. In sbox.template.php replace any occurance of the string "Sources/sboxDB.php" with the address you typed into the browser to access sboxDB.php. After having saved sbox.template.php you should not get any more 404.

If you can NOT access sboxDB.php by typing it´s address into the browser, there must be something ugly wrong. Is the file really at the place you expect it to be?

Deep

PS. Thank you, Sava!
Title: Re: SMF Shoutbox
Post by: jguzman on March 17, 2006, 12:23:40 PM
Quote from: Deep on March 17, 2006, 05:30:28 AM
Hi jguzman,

here again the automatic execution of sbox_setup.php failed.
Please extract the file sbox_setup.php out of the shoutbox archive and put it into the main directory of you forum and run this script by typing in it´s internet address in your browser (e.g. "http://mysite.com/smf/sbox_setup.php")

Deep

awesome deep.  that worked like a charm.

very very cool mod.
Title: Re: SMF Shoutbox
Post by: keith021773 on March 17, 2006, 05:50:46 PM
Quote from: Deep on March 17, 2006, 08:55:11 AM
keith021773,

what happens if you try to access the file sboxDB.php directly by typing it´s internet address in your browser (e.g. "http://mysite.com/smf/Sources/sboxDB.php")?

Please keep in mind that linux systems are case sensitive, so you have to use "../ Sources/sboxDB.php" and not "../sources/sboxdb.php".

If you can access the file this way, you perhaps will get some error messages - don´t panic, you can ignore them all. In that case please edit the file sbox.template.php, located in your default themes directory. In sbox.template.php replace any occurance of the string "Sources/sboxDB.php" with the address you typed into the browser to access sboxDB.php. After having saved sbox.template.php you should not get any more 404.

If you can NOT access sboxDB.php by typing it´s address into the browser, there must be something ugly wrong. Is the file really at the place you expect it to be?

Deep

PS. Thank you, Sava!


Thanks for the help so far, but that too didn't work..  I still get the same internal server error..   I'm guessing something is very wrong.   LOL    But like I said, it installed fine.   It's just that in the chatbox itself is where the error pops up...   
Title: Re: SMF Shoutbox
Post by: qtime on March 18, 2006, 01:01:40 AM
Thx for replying!

Still have the same problem, as I write before.
Here is my sboxDB.php file:
http://rapidshare.de/files/15782233/sboxDB.php.html

I hope you have a clue, because I like to have this mod installed ;)
I tried a completely fresh install of smf 1.1 RC2 (and still have the same problem)

I am using windows xp, apache 2.0.54, PHP 5.1.0b3 (all other mods are doing well).
Title: Re: SMF Shoutbox
Post by: littleone on March 19, 2006, 02:36:17 PM
Is there a way we can get some permissions to allow moderators to delete shouts?
Title: Re: SMF Shoutbox
Post by: sprattzer on March 19, 2006, 05:19:54 PM
ANY 1.0.6 FILE?
Title: Re: SMF Shoutbox
Post by: scoobyx on March 19, 2006, 06:35:27 PM
Quote from: Deep on March 16, 2006, 09:28:08 AM
@keith021773, @hawkie2006, @scoobyx:

The problem you experienced is new to me.
Please take a look at the sources directory (by default it is /smf/Sources) of your forum. Do you find the file sboxDB.php in this directory? If not, please extract this file out of the shoutbox archive and put it manually into this directory using ftp. But if the file is already in this directory,  please check it´s permission attributes. The file must be readable for anybody. Do you get the same error after having chmod it to 777?


No sboxDB.php for me in my sources folder so extracted as mentioned and chmod to 777.

getting the following internal error

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at www.mysite.com Port 80

looks a vast improvement on the orignal mod, any help getting this working much appriciated.

cheers

Scoobyx

p.s one thing to add I have the orignal shoutbox mod installed on my site during installation, presuming this does'nt cause an issue..
Title: Re: SMF Shoutbox
Post by: ArkServer on March 20, 2006, 05:48:46 AM
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: C:\apache\htdocs\sources\sboxdb.php
Line: 119

//edit
its fixed..

but any idea how i can add an hyperlink? like www.happyserver.be (no spam intended) but when i typ the url it doesnt make it "clicky"

//edit 2..

afer some close inspection i think i'll uninstall this mod..
reason:
(http://arkserver.servehttp.com/tmp/orly.JPG)
No idea why it's creating so many processes.. they all slow our server down.
each php process is around 3 to 10mb and i got like 40 of them.. go figure..

i'm not saying that this is because of the mod, but i'm saying that the forum loads a lot slower and takes a lot more resources after i installed it.

Title: Re: SMF Shoutbox
Post by: littleone on March 21, 2006, 09:23:43 AM
as a cosmetic suggestion for your next english version...make the refresh button mouse over with "Refresh" instead of Neu laden.  I have already done it in the sbox.template.php
Title: Re: SMF Shoutbox
Post by: littleone on March 21, 2006, 09:28:16 AM
now for a question...I have members telling me the shout box is appearing as with "Central" time.  It is not defaulting it to their "profile" user selected time.  How can I do this?
Title: Re: SMF Shoutbox
Post by: daveb47 on March 22, 2006, 03:40:24 PM
Hi,installed on Fresh RC2 board,No other mods.
Get this error message when installing

Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.
Table: No database selected Already exists, skipping.


There is no existing database it is a new freshly installed database.

And Board is now showing like this

http://www.our-power.co.uk/forum/index.php (http://www.our-power.co.uk/forum/index.php)


Cheers
Dave

Now sorted thanx





Title: Re: SMF Shoutbox
Post by: daveb47 on March 26, 2006, 12:48:23 PM
Quotenow for a question...I have members telling me the shout box is appearing as with "Central" time.  It is not defaulting it to their "profile" user selected time.  How can I do this?

Getting same problem,Really need to show local time.
Shoutbox is ace btw,Really works well.
Title: Re: SMF Shoutbox
Post by: keith021773 on March 26, 2006, 02:01:11 PM
I am still getting the internal server error.  I really wish I could get this working it seems to be a great mod.   I really don't feel comfortable editing SQL stuff.  So, is there anyother way to get it working?
Title: Re: SMF Shoutbox
Post by: Stunt on March 26, 2006, 07:00:41 PM
How do I install this on my other skin? Can you please give a tutorial?
Title: Re: SMF Shoutbox
Post by: daveb47 on March 27, 2006, 10:53:35 AM
QuoteQuote
now for a question...I have members telling me the shout box is appearing as with "Central" time.  It is not defaulting it to their "profile" user selected time.  How can I do this?

Getting same problem,Really need to show local time.
Shoutbox is ace btw,Really works well.


Could really do with Time fix for this please
Thanx
Dave
Title: Re: SMF Shoutbox
Post by: qtime on March 27, 2006, 03:33:07 PM
Solved my problem my own ;)
the sboxDB.php file was corrupt indeed, I need manual add the text php after <? at the first line of the sboxDB.php file.

I hope I help some others with this information.

Many thanks for the writer of this mod!!!
Title: Re: SMF Shoutbox
Post by: Stunt on March 28, 2006, 08:29:49 PM
Quote from: Stunt on March 26, 2006, 07:00:41 PM
How do I install this on my other skin? Can you please give a tutorial?

Seriously, is anyone gonna help me with this?
Title: Re: SMF Shoutbox
Post by: AtelierGal on March 29, 2006, 09:15:02 AM
I've successfully uploaded it but I can't install it.

it gave me this:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

My forum is current: SMF 1.0.6
Title: Re: SMF Shoutbox
Post by: daveb47 on March 29, 2006, 03:38:22 PM
QuoteI've successfully uploaded it but I can't install it.

it gave me this:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

My forum is current: SMF 1.0.6

Thats because it is for 1.1rc2 version m8.

Anyone got any ideas on getting local time to show????
Title: Re: SMF Shoutbox
Post by: AtelierGal on March 29, 2006, 08:45:08 PM
so what can I do?
Any other alternative?  How can I transfer my board from 1.07 to 1.1rc2 version m8?
This SB is pretty cool..

Title: Re: SMF Shoutbox
Post by: daveb47 on March 30, 2006, 04:35:42 AM
Just download the rc2 upgrade & follow the instructions,It is quite straightforward to do.
Title: Re: SMF Shoutbox
Post by: AtelierGal on March 30, 2006, 08:16:01 AM
sorry for being troublesome  :(

I tried to upload the rc2 upgrade & all the other downloads are corrupted
http://www.simplemachines.org/download/
Title: Re: SMF Shoutbox
Post by: daveb47 on April 02, 2006, 04:48:25 AM
Can anybody fix the time problem so it shows Users local time please
Title: Re: SMF Shoutbox
Post by: Jabberwocky on April 03, 2006, 09:17:40 PM
Quote from: scoobyx on March 19, 2006, 06:35:27 PM
Quote from: Deep on March 16, 2006, 09:28:08 AM
@keith021773, @hawkie2006, @scoobyx:

The problem you experienced is new to me.
Please take a look at the sources directory (by default it is /smf/Sources) of your forum. Do you find the file sboxDB.php in this directory? If not, please extract this file out of the shoutbox archive and put it manually into this directory using ftp. But if the file is already in this directory,  please check it´s permission attributes. The file must be readable for anybody. Do you get the same error after having chmod it to 777?


No sboxDB.php for me in my sources folder so extracted as mentioned and chmod to 777.

getting the following internal error

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at www.mysite.com Port 80

looks a vast improvement on the orignal mod, any help getting this working much appriciated.

cheers

Scoobyx

p.s one thing to add I have the orignal shoutbox mod installed on my site during installation, presuming this does'nt cause an issue..


A lot of these problems stem from the fact that a lot of servers no longer support 777 and see it as a security risk.

This is the error message one can expect:

[2006-04-03 21:01:33]: error: file is writable by others: (/home/dave60fx/public_html/smf/Sources/sboxDB.php)

I had the same problem... Chmod the sboxDB.php to 644 and it should work OK! (Did for me) :)
Title: Re: SMF Shoutbox
Post by: Jabberwocky on April 03, 2006, 09:26:19 PM
One feature I would like to see added is the ability to add bbcode-url's to the window. It parses html-url's to images / smilies etc...

But BB-Code [url's] etc would be a lot better and "Safer" ?? :)
Title: Re: SMF Shoutbox
Post by: keith021773 on April 03, 2006, 11:04:30 PM
Believe it or not, but that simple thing fixed it and got it working for me.    Thanks man.    Sincerely appreciate it.
Title: Re: SMF Shoutbox
Post by: daveb47 on April 04, 2006, 09:54:35 AM
Well that acounts for why some were getting this error & not others.
Can anyone fix user time problem please.
thanx
Title: Re: SMF Shoutbox
Post by: Jabberwocky on April 06, 2006, 03:08:08 AM
Quote from: keith021773 on April 03, 2006, 11:04:30 PM
Believe it or not, but that simple thing fixed it and got it working for me.    Thanks man.    Sincerely appreciate it.

It's not actually a "simple thing" as it can be confusing to some who have never experienced the problem. A lot of servers are turning to MOD-Security, and it exempts a lot of stuff from being actioned on. It can become a pain when files have to be re-named and scripts re-written to accommodate it.

When people have problems of this nature, it is always wise to check the server "error log", as most times it shows what the problem is. One could also check the error log within the DIR using ftp... Because there will be lot more of these problems in the future. :D

PS: Files should NEVER be chmodded to 777 anyway, 666 would / should be the limit... only DIR's should go to 777 where it is absolutely required. Such as Photo-Album's that have public access etc. ;)

But not to say that that is a fixed rule anyway... :)

Cheers................ Glad  it's working for you!!

Off Topic: Now all you need to do is edit three files, add a total of 24 smilies, set the smilie span to 4, the Shout-Window to width=200, characters to 150 or 200.... Change "Neu Leaden" to "Refresh" and it's a great shoutbox! Lol!!  :)  ;D :D
Title: Re: SMF Shoutbox
Post by: keith021773 on April 10, 2006, 08:44:24 AM
I have found something that kinda bothers me about it, it keeps reloading the smilies all the  time.   Even if I navigate away from my page and go somewhere else.   It keeps refreshing them.    I can tell by the bar at the bottom of IE.    Anything I can do to get that to stop?

Thanks.
Title: Re: SMF Shoutbox
Post by: Jabberwocky on April 10, 2006, 05:29:09 PM
They all do that.. it has to refresh the whole shoutbox.. I've never seen one that didn't :)
Title: Re: SMF Shoutbox
Post by: keith021773 on April 10, 2006, 06:04:27 PM
I understand, but even if I navigate away from the page and it still does it?    Just seems wrong..   
Title: Re: SMF Shoutbox
Post by: Jabberwocky on April 10, 2006, 07:04:27 PM
So it's active away from the index page.. Something the author would need to look at..

I don't use SMF, so it's difficult to see if a "Location" change for the loading script would fix the problem.

But from what you say, it's NOT embedded in the Index Page only and continues to run wherever you go.

Minus the iframe..

Mmmmm... :(

Can't help.. I'm out'a here. :)
Title: Re: SMF Shoutbox
Post by: nitr0glic3rin4 on April 11, 2006, 12:33:28 PM
hi i'm from http://h4ckingworld.altervista.org/index.php and i use smf 1.1 rc2 this shoutbox is the best but it don't block any html tag.....

example ... an attacker can inject javascript code like this...
<script>alert("BuG");</script> ...
or a possible cookie grabber ... but the last work only with internet explorer user.........  8)

sorry my english but i'm italian ....  ;)
Title: Re: SMF Shoutbox
Post by: Jabberwocky on April 11, 2006, 05:19:55 PM
I said the same thing here... But no-one has taken it seriously... Parsing html is an invitation for destructive code to be injected. :(

http://www.simplemachines.org/community/index.php?topic=76344.msg533113#msg533113
Title: Re: SMF Shoutbox
Post by: nitr0glic3rin4 on April 11, 2006, 08:12:56 PM
...mmm ... the same bug is in the ultimate smf shoutbox....an attacker can post with any id and can inject html code in the username area...the risk is high for i.e. user ... because the script go in homepage and when the page is refreshed you are automatically redirect to any (malicious)page...... :-\

another time sorry my english ...  ;D ;D
Title: Re: SMF Shoutbox
Post by: yellow1912 on April 12, 2006, 07:25:46 PM
Quote from: Jabberwocky on April 03, 2006, 09:26:19 PM
One feature I would like to see added is the ability to add bbcode-url's to the window. It parses html-url's to images / smilies etc...

But BB-Code [url's] etc would be a lot better and "Safer" ?? :)
Definetely need

Edit:
I modified sboxDB.php to display parse BBC: http://www.megaupload.com/?d=G55CMQXD
Title: Re: SMF Shoutbox
Post by: halliday06 on April 15, 2006, 11:14:08 AM
i carnt get the shout box to show on my theme any one help me out please
Title: Re: SMF Shoutbox
Post by: coffeefix on April 24, 2006, 11:38:23 PM
Quote from: halliday06 on April 15, 2006, 11:14:08 AM
i carnt get the shout box to show on my theme any one help me out please


Find this:
Quote/* Each category in categories is made up of:

in your theme's BoardIndex template

add this above it:

/
Quote/ display shoutbox
  if (function_exists('sbox')) sbox();
Title: Re: SMF Shoutbox
Post by: Col on April 28, 2006, 11:11:51 AM
Hi,

I have a problem. I've just upgrded to RC2, and have installed this mod. I made a backup of the database, but not the files. I have no other mods installed. The foum is up the creak, and I don't know how to get it back. I just plain forgot to backup the files. What's the best way out of this?

I did expect this mod to work with an unmodified forum, or at least not to kill it!

QuoteFatal error: Cannot redeclare sbox() (previously declared in /home/xxxxxx/public_html/community/Sources/Subs.php:3330) in /home/xxxxxx/public_html/community/Sources/Subs.php on line 3337
Title: Re: SMF Shoutbox
Post by: coffeefix on April 28, 2006, 11:43:55 AM
I would go into your board index template and remove this code:

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

after that go into phpmyadmin and drop the any tables relating to the shoutbox.
Title: Re: SMF Shoutbox
Post by: Col on April 28, 2006, 12:15:39 PM
Hi Coffefix,

It appeared that the tables were not created, yet there was a small increase in the size of the database and there were no posts (the forum is very quiet at the moment), and there was only minutes between the last backup, and my correcting everything. I did what I suggested I would do, and used a back up of the DB.

Thanks for the heads-up, that piece of code was not removed by the uninstaller.

I think I will stick with Grudges Shoutbox; at least until these problems are resolved. - I note that others have had errors too. This is still a beta (at best), and should not be a 1.x.

Thanks.
Title: Re: SMF Shoutbox
Post by: squirrelof09 on April 29, 2006, 02:03:37 PM
My reuqests:

Think you can make this avalaible on all areas of the SMf? or at least have a check box for that?

Think you can move the smf Shoutbox to the bottom of the index?

Think you can add a permission to allow/prevent users' from using the SMF shout?

Edit:

Think you can make the submitable text longer? or have a text field to specify how much you can insert per shout?

Edit2:

Think you can make links submitted in the SMF shout box click-able?
Title: Re: SMF Shoutbox
Post by: briano on May 01, 2006, 11:29:12 PM
Ok I installed this and it works just fine, time works as well.  I do have a question... how do you go about emptying the shout box database?  In php I installed a shoutbox similar and in its admin panel it had a button for emptying the box.

also does the default censors in SMF cover the shoutbox as well?

thanks
B.
Title: Re: SMF Shoutbox
Post by: Him on May 02, 2006, 05:45:29 PM
Hello

i installed on RC2 default theme.
But still not have shoutbox on main page  :-\

any idee ?

i think it's because i'm using french langage & its does not edit good file...

Title: Re: SMF Shoutbox
Post by: K_4_kelly on May 05, 2006, 03:52:39 PM
 :)

i've installed the shoutbox, it works very well for me.
thanks for the kind sharing.

however i am wondering how could i change the box's top title from 'SMF shoutbox' to 'Mydomain Shoutbox' ?

thanks
Title: Re: SMF Shoutbox
Post by: K_4_kelly on May 06, 2006, 05:32:42 AM
anyone know how to change the time of the shoutbot?
i would like to change it to UK time,  the time now seems is US time,

anyone help, please, thanks!
Title: Re: SMF Shoutbox
Post by: K_4_kelly on May 07, 2006, 07:12:37 AM
anyone? please....
Title: Re: SMF Shoutbox
Post by: Arbalot on May 07, 2006, 07:19:40 AM
you open
languages/Modifications.english.php
and find
$txt['sbox_ModTitle'] = 'SMF Shoutbox';
you change
$txt['sbox_ModTitle'] = 'Mydomain Shoutbox';

-Arbalot is Here
Title: Re: SMF Shoutbox
Post by: K_4_kelly on May 07, 2006, 06:22:41 PM
thanks ^_^

how about the time then?
anyone know where to modify the time shown in the shout box?

thanks
Title: Re: SMF Shoutbox
Post by: K_4_kelly on May 09, 2006, 09:15:06 AM
anyone know how to change to local time please???
Title: Re: SMF Shoutbox
Post by: WarBirD on May 09, 2006, 11:07:39 AM
Hmm

http://img282.imageshack.us/img282/120/shoutboxproblem25kx.jpg

In this theme the Shoutbox seems not to work, my guess is the template is smaller than the SHoutbox and then all got compressed together somehow.

How to change the width of the Shoutbox template ?

The Theme is: JUNO

Need help please.
Title: Re: SMF Shoutbox
Post by: K_4_kelly on May 09, 2006, 12:39:31 PM
after u installed
u can modify the size in the admin panel
you should see a 'smf shoutbox' in menu bar of the admin panel.

Title: Re: SMF Shoutbox
Post by: WarBirD on May 09, 2006, 12:49:36 PM
Yes, i can change the height there, but I don´t see the width there. And thats what messing up the box with this theme. :(

Title: Re: SMF Shoutbox
Post by: WarBirD on May 09, 2006, 12:54:55 PM
LOL, i found the problem, in this case it has nothing to do with the Shoutbox itself. The guy who did the JUNO Design did make in addition to his theme, a GERMAN Button Set but of course not the Buttons from the Top Menu, like HOME / ADMIN / CALENDAR etc. in German.

So, when you switch to German Language in the forum with this theme, because of the missing buttons on the top Menu, the orange colored bar where the buttons should be in, is emtpy and its getting shorter  because of the missing buttons for the German Language Version.

And then the Shoutbox is ******ed. When someone makes a Theme and makes German Buttons, thne he should make them all. :(
Title: Re: SMF Shoutbox
Post by: cooky on May 13, 2006, 11:15:09 AM
any fix for the time yet???????????
Title: Re: SMF Shoutbox
Post by: cooky on May 14, 2006, 03:56:44 PM
 ???
Title: Re: SMF Shoutbox
Post by: tsivilis on May 16, 2006, 11:32:39 AM
Hello all.
I have the SMF forum ver. 1.0.7 and when i try  to install the smf shoutbox tell me that
"Sorry, but the SMF Shoutbox Mod doesn't support your SMF version!"

Can i do somethink else for this problem

thank you
Title: Re: SMF Shoutbox
Post by: cooky on May 16, 2006, 03:20:10 PM
yes upgrade to the latest smf version then install it although there seems absolutley no support for this mod so your on your own if you need help!
Title: Re: SMF Shoutbox
Post by: Col on May 16, 2006, 05:30:16 PM
This mod failed for me too (read a few posts back). I note that many others have had problems. It's a shame that the author seems to have decided not to maintain this mod, but then again, there is no reason why he should.

For those who want an upshrinking shoutbox, I modified Grudge's Ultimate Shoutbox, for SMF 1.1, the default theme. There is no reason why it won't work in earlier versions too, with some tiny tweaks. I've rearranged the forum header, so that only the shoutbox occupies the upshrinker part. I have not created a smiley block though. I imagine it would be pretty easy for a coder to add a smiley block; a bit more difficult for a hacker, like myself.

Note, this is a hack, and not a full mod. You will need to install Grudge's Shoutbox, and apply the changes I outline. If you are using the default theme, this is pretty straight forward. I hope this is useful to some of you.

http://www.simplemachines.org/community/index.php?topic=8415.msg572452#msg572452
Title: Re: SMF Shoutbox
Post by: Deep on May 17, 2006, 08:21:46 AM
Dear friends,

the shoutbox is maintained - BUT: it is just one of a lot of things i have to do. I have very very very little time to support the shoutbox.

There is a new beta version 1.05 of the shoutbox. I tried to upload this version onto the mod download area, but i did get error messages there (something like "package id error" - but i did not change the package id, i changed the version only).

Until this problem ist fixed you can download the 1.05beta here (http://deep23.de.funpic.de/sbox_v1.05.zip) and the additional german language pack here (http://deep23.de.funpic.de/sbox_v1.05_german.zip).

The follwing things have changed:
1. Code added to prevent html/script injection
2. Minor language bug fixed
3. Database installation now is done without an external script
4. Shoutings are now displayed with user local time
5. Refresh time is validated
6. BB-Code now is parsed

It is still a beta version, because i had no time to test the modified installation procedure on several systems. So it is strongly recommended not to install this version in an production environment - please use a fresh installed forum to test the installation.
It would be a very great help to me if you can report if the installation fails or not. Thanks in advance for doing so!

Quote from: nitr0glic3rin4
example ... an attacker can inject javascript code like this...
<script>alert("BuG");</script> ...

You are right. This is a serious problem.
This security hole is closed in above described 1.05beta.

If you use a previous version you can fix it by modifying sboxDB.php.
Please search for:

// handle spacial characters
$content=addslashes($content);

and replace it with:

// handle special characters
$content=addslashes($content);
// enquote html and script code to avoid html/javascript injection
$content = htmlentities($content, ENT_QUOTES);


@yellow1912:
In 1.05beta BB-Code ist parsed.

If you use a previous version you can add the feature by modifying sboxDB.php.
Please search for:

// handle spacial characters
$content=addslashes($content);

and replace it with:

// handle special characters
$content=addslashes($content);
// Enable BB-Code
$content = doUBBC($content);


It is recommended that you also also add the htmlentities command, so the final code should be:

// handle special characters
$content=addslashes($content);
// enquote html and script code to avoid html/javascript injection
$content = htmlentities($content, ENT_QUOTES);
// Enable BB-Code
$content = doUBBC($content);


Quote from: halliday06
i carnt get the shout box to show on my theme any one help me out please
Sorry, but it is impossible to me to create installations for any existing theme. Please go to the mod download page and look at the example which describes how to integrate the shoutbox into the "Classic YaBB SE Theme".

Quote from: Col
Fatal error: Cannot redeclare sbox() (previously declared in /home/xxxxxx/public_html/community/Sources/Subs.php:3330) in /home/xxxxxx/public_html/community/Sources/Subs.php on line 3337
The reported error messages indicates that you have installed the shoutbox twice.

Quote from: Col
This is still a beta (at best), and should not be a 1.x.
I have tested the shoutbox within three completely different scenarios:
1. Webspace on a free hoster;
2. a virtual server, running Suse 9.3;
3. a local windows computer, running Apache/PHP

In all those scenarios, i experienced no problems oder errors at all.
What else can i do?

Quote from: squirrelof09
Think you can make this avalaible on all areas of the SMf? or at least have a check box for that?
The shoutbox is available at any place you want. Select the place you want the shoutbox to appear and modify the appropriate theme file.
You have to insert the following two lines:

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


Quote from: squirrelof09
Think you can move the smf Shoutbox to the bottom of the index?
It is the same problem as described above. Please edit BoardIndex.template.php and move the above described code from the place it actually is to the place you want it to be.

Quote from: squirrelof09
Think you can add a permission to allow/prevent users' from using the SMF shout?
Sorry, but i don´t have the time to do so. Why do you want some users to be able to shout and others not?

Quote from: squirrelof09
Think you can make the submitable text longer? or have a text field to specify how much you can insert per shout?
This might be a good idea. I will think about it.

Quote from: squirrelof09
Think you can make links submitted in the SMF shout box click-able?
Yes. Links are clickable in 1.05beta. If you use a previous version you can add this feature by adding the doUBBC command as described above.

Quote from: briano
how do you go about emptying the shout box database?
There is no way to clear the shoutbox completely at the moment. But it is a good idea for a next version. Thank you.
But of course you can empty the shoutbox by deleting it´s database table contents.

Quote from: briano
But still not have shoutbox on main page 

any idee ?

i think it's because i'm using french langage & its does not edit good file...
Yes, I think it is because there is no french language pack. If you translate the english or german texts into french language, i will be able to add a french language pack.
Does the shoutbox appear if you use the forum in english language?


Quote from: ukwalker
anyone know how to change the time of the shoutbot?
i would like to change it to UK time,  the time now seems is US time,
I am sorry - i do not understand, what you mean. Can you define precisely, what "US time" and "UK time" is?

Quote from: ukwalker
anyone know how to change to local time please???
Is this the question above in other words?
In that case the problem is: Up to version 1.04 the displayed time is computed at the moment the shout text is written into database. At this moment, there is no information available about the local time of the users who will see the shouting.
In 1.05beta the displayed time is computed at the moment the shouting is delivered to the users, so the time is displayed using the time zone information of each user. This should fix your problem.

Deep
Title: Re: SMF Shoutbox
Post by: cooky on May 17, 2006, 09:06:14 AM
thanks thats cured the problem instantly just what we were looking for :D
Title: Re: SMF Shoutbox
Post by: Col on May 17, 2006, 01:58:17 PM
Hiya Dark,

I'm glad to see you have not abandoned your Shoutbox after all. :)

As for your shoutbox not working for me, I can assure that I installed only the once. - I am absolutely certain of this. I did note that the error message indicated that I had the shoutbox installed twice, and the only thing I could think of was that I previously had Grudge's shoutbox installed. I lost that when I upgraded to 1.1, but there are some remnants left, including the table in the DB. Do you have any file names or calls the same as Grudge's?

I installed a brand-spanking-new 1.1 SMF forum (well, an upgrade), and yours was the first mod I tried to install. I guess I could set up test forum for this, and try again.


Edit: typos.
Title: Re: SMF Shoutbox
Post by: Deep on May 18, 2006, 07:22:59 AM
Hi Col,

no, i use different file names, table names and procedure names. I developed my shoutbox out of Grudge´s shoutbox and i renamed everything, so there should be no conflict in the rare case both shoutboxes are installed.

For example, Grudge´s main procedure is "smfshout()" and my main procedure is "sbox()".

I am really confused about the error you experienced. The mod itself (the structure of it and the way it is installed) is exactly the same as Grudge´s shoutbox is. So i do not understand, why you can install Grudge´s mod and you can not install mine.

There could be the following reasons for your problem:
1. An error in the package manager, but I do not believe in this.
2. One or more files of the mod package can be corrupt.

If you try to install the mod in the test forum, please use a fresh downloaded mod.
Do you get the same error again?

Deep
Title: Re: SMF Shoutbox
Post by: littleone on May 18, 2006, 12:27:09 PM
Can you specify the coding to be placed and where it needs to be placed to get the local time.  I noticed you told us how to change everything else but that.  Thanks
Title: Re: SMF Shoutbox
Post by: x0joshua0x on May 18, 2006, 09:12:29 PM
Is there a way to make the username show as the persons display name instead of the account name.                 

Is seems that showing the persons login name gives unwanted viewers 50% of the information they need   
in order to hack a users account ?

i am being paranoid ;)

And is there a way to make it so visitors cannot even see the shoutbox unless logged in ?
Title: Re: SMF Shoutbox
Post by: littleone on May 19, 2006, 09:48:59 AM
Quote from: x0joshua0x on May 18, 2006, 09:12:29 PM
And is there a way to make it so visitors cannot even see the shoutbox unless logged in ?

Just change your forum settings to not allow guest to browse your forum.   This in effect means they have to log in to see anything at all.
Title: Re: SMF Shoutbox
Post by: kriskd on May 20, 2006, 02:52:32 PM
Quote from: littleone on May 18, 2006, 12:27:09 PM
Can you specify the coding to be placed and where it needs to be placed to get the local time.  I noticed you told us how to change everything else but that.  Thanks
Quote from: x0joshua0x on May 18, 2006, 09:12:29 PM
Is there a way to make the username show as the persons display name instead of the account name.                 

I would be interested in these two answers as well.  Thanks!
Title: Re: SMF Shoutbox
Post by: littleone on May 20, 2006, 03:26:43 PM
Id also like to see membergroup specific permissions so that I can grant my moderators the ability to delete shouts.  Currently I am the only one that can do it and with nearly 2300 members its hard to keep up with all the posts plus whats going on in the shout box 24/7 and in the event that i am gone an inappropriate shout might stay visible for an extended period of them.  I think right now (since all others issues are fixed) this would be the next biggest improvement to this mod.  If you do, make this change, could you also post the coding for this.  Thanks
Title: Re: SMF Shoutbox
Post by: Deep on May 21, 2006, 08:02:20 AM
Quote from: littleone
Can you specify the coding to be placed and where it needs to be placed to get the local time.
Please have a look on the file sboxDB.php in the package of version 1.05beta.

I want to explain the changes step by step.
First you need a new designed database table to store the shout contents. In this new table the field time (varchar(25)) is changed to shouttime (int(11)) to store a timestamp instead of a string which contains a text with the time. The PHP command to create this table is:

$result = mysql_query("
CREATE TABLE {$db_prefix}sbox_messages
(id int(11) NOT NULL auto_increment,
shouttime int(11) NOT NULL default '',
name varchar(80) NOT NULL default '',
content text NOT NULL,
PRIMARY KEY (id)) TYPE=MyISAM;");


Now in sboxDB.php you have to replace the following code:

// insert shout message into database
$sql = "insert into ".$db_prefix."sbox_content (name,content,time) values ('".$user_info['username']."','".$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 name='".$user_info['username']."' 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__);


with:

$time=time();

// insert shout message into database
$sql = "insert into ".$db_prefix."sbox_messages (name,content,shouttime) values ('".$user_info['username']."','".$content."','".$time."')";
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_messages where name='".$user_info['username']."' and content='".$content."' and shouttime='$time'",__FILE__,__LINE__);
$rows = mysql_fetch_assoc($result) ;
$sql = "delete from ".$db_prefix."sbox_messages where id < '".($rows["id"]-$modSettings['sbox_MaxLines'])."'";
db_query($sql,__FILE__,__LINE__);


Now there is a timestamp written to the database.
To display it, you have to replace in sboxDB.php the following code:

// get shout messages out of database
$result = db_query("select * from ".$db_prefix."sbox_content order by id desc, time asc limit ".$modSettings['sbox_MaxLines'],__FILE__,__LINE__);
if(mysql_num_rows($result))
{
$count=0; // counter to distinguish font color
while($row = mysql_fetch_assoc($result))
{
$count = $count + 1; // increase counter
$name = $row["name"]; // user name
$date = $row["time"]; // shouting date and time
$content = stripslashes($row['content']); // shouting content

// replace smilie code with path to smilie image
$content = str_replace ($txt['sbox_smilie01_code'], '<img src="'.$imgdir.$txt['sbox_smilie01_file'].'" alt="'.$txt['sbox_smilie01_text'].'" title="'.$txt['sbox_smilie01_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie02_code'], '<img src="'.$imgdir.$txt['sbox_smilie02_file'].'" alt="'.$txt['sbox_smilie02_text'].'" title="'.$txt['sbox_smilie02_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie03_code'], '<img src="'.$imgdir.$txt['sbox_smilie03_file'].'" alt="'.$txt['sbox_smilie03_text'].'" title="'.$txt['sbox_smilie03_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie04_code'], '<img src="'.$imgdir.$txt['sbox_smilie04_file'].'" alt="'.$txt['sbox_smilie04_text'].'" title="'.$txt['sbox_smilie04_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie05_code'], '<img src="'.$imgdir.$txt['sbox_smilie05_file'].'" alt="'.$txt['sbox_smilie05_text'].'" title="'.$txt['sbox_smilie05_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie06_code'], '<img src="'.$imgdir.$txt['sbox_smilie06_file'].'" alt="'.$txt['sbox_smilie06_text'].'" title="'.$txt['sbox_smilie06_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie07_code'], '<img src="'.$imgdir.$txt['sbox_smilie07_file'].'" alt="'.$txt['sbox_smilie07_text'].'" title="'.$txt['sbox_smilie07_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie08_code'], '<img src="'.$imgdir.$txt['sbox_smilie08_file'].'" alt="'.$txt['sbox_smilie08_text'].'" title="'.$txt['sbox_smilie08_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie09_code'], '<img src="'.$imgdir.$txt['sbox_smilie09_file'].'" alt="'.$txt['sbox_smilie09_text'].'" title="'.$txt['sbox_smilie09_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie10_code'], '<img src="'.$imgdir.$txt['sbox_smilie10_file'].'" alt="'.$txt['sbox_smilie10_text'].'" title="'.$txt['sbox_smilie10_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie11_code'], '<img src="'.$imgdir.$txt['sbox_smilie11_file'].'" alt="'.$txt['sbox_smilie11_text'].'" title="'.$txt['sbox_smilie11_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie12_code'], '<img src="'.$imgdir.$txt['sbox_smilie12_file'].'" alt="'.$txt['sbox_smilie12_text'].'" title="'.$txt['sbox_smilie12_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie13_code'], '<img src="'.$imgdir.$txt['sbox_smilie13_file'].'" alt="'.$txt['sbox_smilie13_text'].'" title="'.$txt['sbox_smilie13_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie14_code'], '<img src="'.$imgdir.$txt['sbox_smilie14_file'].'" alt="'.$txt['sbox_smilie14_text'].'" title="'.$txt['sbox_smilie14_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie15_code'], '<img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" />', $content);

// display shouting message and use a different color each second row
if ($count % 2)
echo '
<div class="OddLine">';
else
echo '
<div class="EvenLine">';
if ($context['user']['is_admin'])
echo '<a title="'.$txt['sbox_KillShout'].'" class="Kill" onclick="return killYesNo();" href="sboxDB.php?action=kill&kill='.$row['id'].'">[X]</a>';

echo '[&nbsp;'.$date.'&nbsp;]&nbsp;<b>&lt;'.$name.'&gt;</b>&nbsp;'.$content.'</div>';
}


with:

// get shout messages out of database
$result = db_query("select id,name,shouttime,content from ".$db_prefix."sbox_messages order by id desc, shouttime asc limit ".$modSettings['sbox_MaxLines'],__FILE__,__LINE__);
if(mysql_num_rows($result))
{
$count=0; // counter to distinguish font color
while($row = mysql_fetch_assoc($result))
{
$count = $count + 1; // increase counter
$name = $row["name"]; // user name
$shouttime = $row["shouttime"]; // shouting date and time
$content = stripslashes($row['content']); // shouting content

$time=$shouttime;

// replace smilie code with path to smilie image
$content = str_replace ($txt['sbox_smilie01_code'], '<img src="'.$imgdir.$txt['sbox_smilie01_file'].'" alt="'.$txt['sbox_smilie01_text'].'" title="'.$txt['sbox_smilie01_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie02_code'], '<img src="'.$imgdir.$txt['sbox_smilie02_file'].'" alt="'.$txt['sbox_smilie02_text'].'" title="'.$txt['sbox_smilie02_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie03_code'], '<img src="'.$imgdir.$txt['sbox_smilie03_file'].'" alt="'.$txt['sbox_smilie03_text'].'" title="'.$txt['sbox_smilie03_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie04_code'], '<img src="'.$imgdir.$txt['sbox_smilie04_file'].'" alt="'.$txt['sbox_smilie04_text'].'" title="'.$txt['sbox_smilie04_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie05_code'], '<img src="'.$imgdir.$txt['sbox_smilie05_file'].'" alt="'.$txt['sbox_smilie05_text'].'" title="'.$txt['sbox_smilie05_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie06_code'], '<img src="'.$imgdir.$txt['sbox_smilie06_file'].'" alt="'.$txt['sbox_smilie06_text'].'" title="'.$txt['sbox_smilie06_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie07_code'], '<img src="'.$imgdir.$txt['sbox_smilie07_file'].'" alt="'.$txt['sbox_smilie07_text'].'" title="'.$txt['sbox_smilie07_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie08_code'], '<img src="'.$imgdir.$txt['sbox_smilie08_file'].'" alt="'.$txt['sbox_smilie08_text'].'" title="'.$txt['sbox_smilie08_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie09_code'], '<img src="'.$imgdir.$txt['sbox_smilie09_file'].'" alt="'.$txt['sbox_smilie09_text'].'" title="'.$txt['sbox_smilie09_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie10_code'], '<img src="'.$imgdir.$txt['sbox_smilie10_file'].'" alt="'.$txt['sbox_smilie10_text'].'" title="'.$txt['sbox_smilie10_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie11_code'], '<img src="'.$imgdir.$txt['sbox_smilie11_file'].'" alt="'.$txt['sbox_smilie11_text'].'" title="'.$txt['sbox_smilie11_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie12_code'], '<img src="'.$imgdir.$txt['sbox_smilie12_file'].'" alt="'.$txt['sbox_smilie12_text'].'" title="'.$txt['sbox_smilie12_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie13_code'], '<img src="'.$imgdir.$txt['sbox_smilie13_file'].'" alt="'.$txt['sbox_smilie13_text'].'" title="'.$txt['sbox_smilie13_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie14_code'], '<img src="'.$imgdir.$txt['sbox_smilie14_file'].'" alt="'.$txt['sbox_smilie14_text'].'" title="'.$txt['sbox_smilie14_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie15_code'], '<img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" />', $content);

// Offset the time.
$time = $time + ($user_info['time_offset'] + $modSettings['time_offset']) * 3600;
if ($time < 0)
$time = 0;

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

// display shouting message and use a different color each second row
if ($count % 2)
echo '
<div class="OddLine">';
else
echo '
<div class="EvenLine">';
if ($context['user']['is_admin'])
echo '<a title="'.$txt['sbox_KillShout'].'" class="Kill" onclick="return killYesNo();" href="sboxDB.php?action=kill&kill='.$row['id'].'">[X]</a>';

echo '[&nbsp;'.$date.'&nbsp;]&nbsp;<b>&lt;'.$name.'&gt;</b>&nbsp;'.$content.'</div>';
}


It seems to be easier if you just replace your sboxDB.php with that one out of the 1.05beta package.


Quote from: x0joshua0x
Is there a way to make the username show as the persons display name instead of the account name.
I know there of course is a way to display the persons display name instead of the account name, but i don´t have experiences with this part of SMF.
I can not guarantee that it works, but try to replace in sboxDB.php any occurany of:

$user_info['username']


with:

$context['member']['name']

Does it work?


Quote from: littleone
Id also like to see membergroup specific permissions so that I can grant my moderators the ability to delete shouts.
I am sorry, but i do not have the time to do that.
I have no experience with this part of SMF.
I can not guarantee that it works, but if you want all moderators to be able to delete shouts, try to replace in sboxDB.php any occurany of:

$context['user']['is_admin']


with:

allowedTo('moderate_forum')


@x0joshua0x:
@littleone:
It seems to be a good idea if you ask some more experienced SMF coders to answer your questions. In both cases i can tell you what to replace, but i am not sure if i told you the right replacement.

However, have a happy sunday! :-)

Deep
Title: Re: SMF Shoutbox
Post by: littleone on May 21, 2006, 09:46:21 AM
Quote from: Deep on May 21, 2006, 08:02:20 AM

I want to explain the changes step by step.
First you need a new designed database table to store the shout contents. In this new table the field time (varchar(25)) is changed to shouttime (int(11)) to store a timestamp instead of a string which contains a text with the time. The PHP command to create this table is:

$result = mysql_query("
CREATE TABLE {$db_prefix}sbox_messages
(id int(11) NOT NULL auto_increment,
shouttime int(11) NOT NULL default '',
name varchar(80) NOT NULL default '',
content text NOT NULL,
PRIMARY KEY (id)) TYPE=MyISAM;");



Can you be more specific on this?  I don't quite understand what you mean by this.  What should the table be called, how do I create it, where does that code go?  anything will help, you've been a great help so far :)
Title: Re: SMF Shoutbox
Post by: littleone on May 21, 2006, 10:30:34 AM
disregard that.   I was able to figure it out and even learned something new :)
Title: Re: SMF Shoutbox
Post by: littleone on May 21, 2006, 10:42:40 AM
Quote from: Deep on May 21, 2006, 08:02:20 AM
Quote from: littleone
Id also like to see membergroup specific permissions so that I can grant my moderators the ability to delete shouts.
I am sorry, but i do not have the time to do that.
I have no experience with this part of SMF.
I can not guarantee that it works, but if you want all moderators to be able to delete shouts, try to replace in sboxDB.php any occurany of:

$context['user']['is_admin']


with:

allowedTo('moderate_forum')



Ok this worked fantastically except there is a case of sbox_content that also needs to be changed to sbox_messages.  It appears after the second "$context['user']['is_admin']"

At first it wasnt working so I went back and looked and that was the problem.  Just so you know for future reference and anyone else who might want to do this.

Title: Re: SMF Shoutbox
Post by: kriskd on May 21, 2006, 11:45:44 AM
Local time and showing display name are no longer of any importance to me.  I was struggling to get the Users Online Today working and in the process broke my wonderful shoutbox.  Here's a screen shot of it.  The texting works fine, but not the smileys:

Image Removed

And here's a sample error from my error log.  Can anyone assist me with this?


Apply Filter: Only show the error messages of this URL  http://www.sprechereast.com/forum/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: sbox_smilie15_code
File: /home/.cutiekins/sprechereast/sprechereast.com/forum/Themes/default/sbox.template.php (eval?)
Line: 66
Title: Re: SMF Shoutbox
Post by: kriskd on May 21, 2006, 12:07:57 PM
At this point I think I need to uninstall the shoutbox and start over, but when I go into the package manager and click uninstall I get the following:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Obviously, I'm a bit gun shy on proceeding.  Any help is appreciated.

I'm using SMF 1.1 RC2
Title: Re: SMF Shoutbox
Post by: littleone on May 21, 2006, 12:11:16 PM
Go ahead and uninstall it, regardless of what the test says.  On the file that the test failed, you will need to go into that file and remove the remaining coding (relevant to the shout box) yourself from that file.  Then do a clean install.
Title: Re: SMF Shoutbox
Post by: kriskd on May 21, 2006, 12:20:55 PM
Quote from: littleone on May 21, 2006, 12:11:16 PM
Go ahead and uninstall it, regardless of what the test says.  On the file that the test failed, you will need to go into that file and remove the remaining coding (relevant to the shout box) yourself from that file.  Then do a clean install.

Modifications.english.php and Modsettings.php are failing.  The first one is just a tiny file that I added some things too.  The second file would have been updated when I installed the shoutbox.  Could I just replace the file on the server with the original file I have locally?  Also, I have a few other mods installed.  I imagine restoring Modsettings.php could potentially cause them not to work.

And what about Boardindex?  Can that stay as is with the shoutbox code in it.  Will it hurt anything?  And what about sboxDB.php in Sources.  Do I need to do anything with that?

Sorry about the million questions... this is just quite scary for me.
Title: Re: SMF Shoutbox
Post by: littleone on May 21, 2006, 12:49:45 PM
I would recommend downloading a new version of the sbox and find the codes and remove them from the "Test Failed" files.  You might have simply removed a , or a > in there somewhere which will cause a test failed as its looking for the EXACT code, so I would suggest doing the uninstall anyway and then cleaning out the effected codes in the "Test Failed" files.

Doing a the uninstall will be best.  Just trying to play with replacing certain files can start to effect other things.  As far as the boardindex, if that wasnt set in the original install then it shouldnt be effected now.

The sboxDB would be removed in the install, and reinstalled so you wouldnt need to do anything
Title: Re: SMF Shoutbox
Post by: kriskd on May 21, 2006, 01:13:48 PM
The uninstall was successful, thank goodness!

Could I just try a re-install and see what happens?  I never manually updated Modsettings.php at all so there shouldn't have been any human changes there.  Modifications.english.php is just a tiny file that is easy enough to restore.

Let me know if you think it's safe enough just to do a fresh install.
Title: Re: SMF Shoutbox
Post by: littleone on May 21, 2006, 01:18:37 PM
I would say absolutely no.  You should go in and manually make sure no codes relating the the shout box exist.  other wise you will duplicate the codes.  Meaning some things might show up multiple times.  Like the day or the posts might show up 2 + times and its will be a pain to go back in.  In addition if some code was replaced in stead of added to, your install in will not be sucessful because the original code no longer exists.  I am not sure if this is the case, but its not worth the risk.

When I first started playing with SMF I made alot of these same mistakes.
Title: Re: SMF Shoutbox
Post by: kriskd on May 21, 2006, 02:58:06 PM
Okay, I just used MS-Word to compare what what was on my server to the original file for ModSettings.  Don't worry, of course I won't save anything within Word.  There were some additional fields for profile settings because I installed the custom profile fields mod.  Then I found this big chunk of code that appears to be specific for the shoutbox:


function ModifySboxSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array
(
array('check', 'sbox_Visible'),
array('check', 'sbox_GuestAllowed'),
array('check', 'sbox_SmiliesVisible'),
array('int', 'sbox_MaxLines'),
array('int', 'sbox_Height'),
array('int', 'sbox_RefreshTime'),
array('select', 'sbox_FontFamily1', array(
'Garamond, serif' => 'Garamond, serif',
'Times, serif' => 'Times, serif',
'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif',
'Tahoma, Helvetica, sans-sarif' => 'Tahoma, Helvetica, sans-sarif',
'Verdana, sans-serif' => 'Verdana, sans-serif',
'cursive' => 'cursive',
'Palatino, fantasy' => 'Palatino, fantasy',
'Courier, monospace' => 'Courier, monospace'
),
),
array('select', 'sbox_FontFamily2', array(
'Garamond, serif' => 'Garamond, serif',
'Times, serif' => 'Times, serif',
'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif',
'Tahoma, Helvetica, sans-sarif' => 'Tahoma, Helvetica, sans-sarif',
'Verdana, sans-serif' => 'Verdana, sans-serif',
'cursive' => 'cursive',
'Palatino, fantasy' => 'Palatino, fantasy',
'Courier, monospace' => 'Courier, monospace'
),
),
array('select', 'sbox_TextSize1', array(
'8px' => '8xp',
'9px' => '9xp',
'10px' => '10xp',
'11px' => '11xp',
'12px' => '12xp',
'13px' => '13xp',
'14px' => '14xp',
'15px' => '15xp',
'16px' => '16xp',
'xx-small' => 'xx-small',
'x-small' => 'x-small',
'small' => 'small',
'medium' => 'medium',
'large' => 'large',
'x-large' => 'x-large',
'xx-large' => 'xx-large'
),
),
array('text', 'sbox_TextColor1'),
array('select', 'sbox_TextSize2', array(
'8px' => '8xp',
'9px' => '9xp',
'10px' => '10xp',
'11px' => '11xp',
'12px' => '12xp',
'13px' => '13xp',
'14px' => '14xp',
'15px' => '15xp',
'16px' => '16xp',
'xx-small' => 'xx-small',
'x-small' => 'x-small',
'small' => 'small',
'medium' => 'medium',
'large' => 'large',
'x-large' => 'x-large',
'xx-large' => 'xx-large'
),
),
array('text', 'sbox_TextColor2'),
array('text', 'sbox_BackgroundColor')
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=sbox');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=sbox';
$context['settings_title'] = $txt['sbox_ModTitle'];

prepareDBSettingContext($config_vars);
}


Does it look like everything there?  Did I miss a comman, semi-colon, whatever?  Should I delete that bit, upload the file, ensure it works and then try to re-install the shoutbox?  Are there any other Sources or Themes files I need to check for shoutbox code?

Thanks again to littleone and anyone else who can help.
Title: Re: SMF Shoutbox
Post by: littleone on May 21, 2006, 04:25:08 PM
I would suggest your remove the custom profile mod and then remove whatever coding you have to.  You can always add the custom profile stuff back again after you get the shout box fixed.  The custom profile fields is a rather simple mod.
Title: Re: SMF Shoutbox
Post by: kriskd on May 21, 2006, 06:40:22 PM
I did as you suggested and uninstalled the custom profile mod.  I then uploaded a fresh copy of ModSettings.php and attempted to re-install the SMF shoutbox and got the same result as in my screen shot from several posts back.  :(  However, at least when I uninstalled it, I didn't have any errors so it appears to have uninstalled correctly.  I'm at a loss here as to how to get it working.
Title: Re: SMF Shoutbox
Post by: kriskd on May 21, 2006, 07:00:03 PM
To add to this mystery, I got this mod working perfectly on my test forum along with 5 other mods.  Is there anyway I can copy the working files from that domain to my real domain?
Title: Re: SMF Shoutbox
Post by: kriskd on May 21, 2006, 07:13:49 PM
Well, folks, I am seriously thinking of backing up my db, wiping this message board and doing a fresh install.  To add to my problems, my ignore boards mod is showing errors in my error log.
Title: Re: SMF Shoutbox
Post by: PostThis on May 21, 2006, 10:09:14 PM
I cannot thank you enough for this mod!

It did not install correctly on the first try, but I read through this thread and found the solution. Clickety-click, it works!

It's absolutely fabulous, the interface is perfect, everything works like it's supposed to and with the instructions you posted, I made it work on other skins as well.

Love it, two thumbs up!  :) :) :) :)
Title: Re: SMF Shoutbox
Post by: x0joshua0x on May 22, 2006, 05:25:43 PM
@Deep
thnx 4 the quick response, i tried the suggested fix but it did not work, after messing around a bit i did manage to get it here is what i did:

just replaced in shoutDB.php

$user_info['username']

with:

$user_info['name']

and it worked like a charm :)

thnx 4 the mod

cheers
Title: Re: SMF Shoutbox
Post by: squirrelof09 on May 22, 2006, 10:43:10 PM
QuoteSorry, but i don´t have the time to do so. Why do you want some users to be able to shout and others not?

Well, better say..

If a user is on the ban list they shall not be able to shout.

Edit: do you think it is possable to limit the maximum size in submitted Images in the shout box?

or have a page in Features in Options that lets you disable certain bbc code?
Title: Re: SMF Shoutbox
Post by: kriskd on May 23, 2006, 09:42:02 AM
Another question now that I have this working on my site once again.  Is there a way to turn off the refresh completely?
Title: Re: SMF Shoutbox
Post by: BeEbAcK on May 23, 2006, 04:19:01 PM
well im new at these....but my error says :

Notice: Undefined index: sbox_smilie01_file in /home/www/forum/Sources/Load.php(1656) : eval()'d code on line 44

Notice: Undefined index: sbox_smilie01_text in /home/www/forum/Sources/Load.php(1656) : eval()'d code on line 44

Notice: Undefined index: sbox_smilie01_text in /home/www/forum/Sources/Load.php(1656) : eval()'d code on line 44

Notice: Undefined index: sbox_smilie01_code in /home/www/forum/Sources/Load.php(1656) : eval()'d code on line 44

Notice: Undefined index: sbox_smilie02_file in /home/www/forum/Sources/Load.php(1656) : eval()'d code on line 45

Notice: Undefined index: sbox_smilie02_text in /home/www/forum/Sources/Load.php(1656) : eval()'d code on line 45

I can see the shoutout Box but

(http://www.digitalna-fotografija.net/error1.jpg)


Any ideas what did go wrong :<  plz help me
Title: Re: SMF Shoutbox
Post by: x0joshua0x on May 23, 2006, 05:34:23 PM
disable smileys to help with debugging ?
Title: Re: SMF Shoutbox
Post by: carlatf on May 23, 2006, 05:39:16 PM
A pretty basic question, what's the difference between a Shoutbox and a chat?.
They seem very similar to me, so I can't decite to install the Integrated chat box or this Shoutbox.
Best,
Carla
Title: Re: SMF Shoutbox
Post by: Col on May 24, 2006, 11:48:28 AM
A shoutbox is intended for quick hellos, smart-arse comments, etc. It's not organised in way that works very well for chat. Although this shoutbox seems to work pretty much in real time, most are too slow for that, refreshing only when you refresh or move page. I have both, as they serve different functions.
Title: Re: SMF Shoutbox
Post by: kriskd on May 25, 2006, 09:29:51 AM
I noticed that "Thursday" is spelled wrong in my SMF shoutbox.  Where in the code can I correct this?
Title: Re: SMF Shoutbox
Post by: kyt on May 25, 2006, 10:24:40 PM
Ok this is driving me crazy

I just upgraded to 1.1 RC2 today and I can't get any mods to install
I'm trying to install this shoutbox but the forum is gving me fits

Yesterday I installed 2 mods on 1.0.7 and I didn't have an issue
Now I'm getting "You cannot download or install new packages because the Packages directory or one of the files in it are not writable! "

Not possible! I've changed permissions on the Package folder and everything under to 777
Thinking the error message was telling me the wrong folder I went through and set everything in base folder to 777 and the sources folder.
Am I going to have to go through each and every theme folder too?

or am I missing something?
Anybody know?
Title: Re: SMF Shoutbox
Post by: K_4_kelly on May 26, 2006, 05:07:47 PM
Quote from: Deep on May 21, 2006, 08:02:20 AM
Quote from: littleone
Can you specify the coding to be placed and where it needs to be placed to get the local time.
Please have a look on the file sboxDB.php in the package of version 1.05beta.

I want to explain the changes step by step.
First you need a new designed database table to store the shout contents. In this new table the field time (varchar(25)) is changed to shouttime (int(11)) to store a timestamp instead of a string which contains a text with the time. The PHP command to create this table is:

$result = mysql_query("
CREATE TABLE {$db_prefix}sbox_messages
(id int(11) NOT NULL auto_increment,
shouttime int(11) NOT NULL default '',
name varchar(80) NOT NULL default '',
content text NOT NULL,
PRIMARY KEY (id)) TYPE=MyISAM;");


Now in sboxDB.php you have to replace the following code:

// insert shout message into database
$sql = "insert into ".$db_prefix."sbox_content (name,content,time) values ('".$user_info['username']."','".$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 name='".$user_info['username']."' 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__);


with:

$time=time();

// insert shout message into database
$sql = "insert into ".$db_prefix."sbox_messages (name,content,shouttime) values ('".$user_info['username']."','".$content."','".$time."')";
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_messages where name='".$user_info['username']."' and content='".$content."' and shouttime='$time'",__FILE__,__LINE__);
$rows = mysql_fetch_assoc($result) ;
$sql = "delete from ".$db_prefix."sbox_messages where id < '".($rows["id"]-$modSettings['sbox_MaxLines'])."'";
db_query($sql,__FILE__,__LINE__);


Now there is a timestamp written to the database.
To display it, you have to replace in sboxDB.php the following code:

// get shout messages out of database
$result = db_query("select * from ".$db_prefix."sbox_content order by id desc, time asc limit ".$modSettings['sbox_MaxLines'],__FILE__,__LINE__);
if(mysql_num_rows($result))
{
$count=0; // counter to distinguish font color
while($row = mysql_fetch_assoc($result))
{
$count = $count + 1; // increase counter
$name = $row["name"]; // user name
$date = $row["time"]; // shouting date and time
$content = stripslashes($row['content']); // shouting content

// replace smilie code with path to smilie image
$content = str_replace ($txt['sbox_smilie01_code'], '<img src="'.$imgdir.$txt['sbox_smilie01_file'].'" alt="'.$txt['sbox_smilie01_text'].'" title="'.$txt['sbox_smilie01_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie02_code'], '<img src="'.$imgdir.$txt['sbox_smilie02_file'].'" alt="'.$txt['sbox_smilie02_text'].'" title="'.$txt['sbox_smilie02_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie03_code'], '<img src="'.$imgdir.$txt['sbox_smilie03_file'].'" alt="'.$txt['sbox_smilie03_text'].'" title="'.$txt['sbox_smilie03_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie04_code'], '<img src="'.$imgdir.$txt['sbox_smilie04_file'].'" alt="'.$txt['sbox_smilie04_text'].'" title="'.$txt['sbox_smilie04_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie05_code'], '<img src="'.$imgdir.$txt['sbox_smilie05_file'].'" alt="'.$txt['sbox_smilie05_text'].'" title="'.$txt['sbox_smilie05_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie06_code'], '<img src="'.$imgdir.$txt['sbox_smilie06_file'].'" alt="'.$txt['sbox_smilie06_text'].'" title="'.$txt['sbox_smilie06_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie07_code'], '<img src="'.$imgdir.$txt['sbox_smilie07_file'].'" alt="'.$txt['sbox_smilie07_text'].'" title="'.$txt['sbox_smilie07_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie08_code'], '<img src="'.$imgdir.$txt['sbox_smilie08_file'].'" alt="'.$txt['sbox_smilie08_text'].'" title="'.$txt['sbox_smilie08_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie09_code'], '<img src="'.$imgdir.$txt['sbox_smilie09_file'].'" alt="'.$txt['sbox_smilie09_text'].'" title="'.$txt['sbox_smilie09_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie10_code'], '<img src="'.$imgdir.$txt['sbox_smilie10_file'].'" alt="'.$txt['sbox_smilie10_text'].'" title="'.$txt['sbox_smilie10_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie11_code'], '<img src="'.$imgdir.$txt['sbox_smilie11_file'].'" alt="'.$txt['sbox_smilie11_text'].'" title="'.$txt['sbox_smilie11_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie12_code'], '<img src="'.$imgdir.$txt['sbox_smilie12_file'].'" alt="'.$txt['sbox_smilie12_text'].'" title="'.$txt['sbox_smilie12_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie13_code'], '<img src="'.$imgdir.$txt['sbox_smilie13_file'].'" alt="'.$txt['sbox_smilie13_text'].'" title="'.$txt['sbox_smilie13_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie14_code'], '<img src="'.$imgdir.$txt['sbox_smilie14_file'].'" alt="'.$txt['sbox_smilie14_text'].'" title="'.$txt['sbox_smilie14_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie15_code'], '<img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" />', $content);

// display shouting message and use a different color each second row
if ($count % 2)
echo '
<div class="OddLine">';
else
echo '
<div class="EvenLine">';
if ($context['user']['is_admin'])
echo '<a title="'.$txt['sbox_KillShout'].'" class="Kill" onclick="return killYesNo();" href="sboxDB.php?action=kill&kill='.$row['id'].'">[X]</a>';

echo '[&nbsp;'.$date.'&nbsp;]&nbsp;<b>&lt;'.$name.'&gt;</b>&nbsp;'.$content.'</div>';
}


with:

// get shout messages out of database
$result = db_query("select id,name,shouttime,content from ".$db_prefix."sbox_messages order by id desc, shouttime asc limit ".$modSettings['sbox_MaxLines'],__FILE__,__LINE__);
if(mysql_num_rows($result))
{
$count=0; // counter to distinguish font color
while($row = mysql_fetch_assoc($result))
{
$count = $count + 1; // increase counter
$name = $row["name"]; // user name
$shouttime = $row["shouttime"]; // shouting date and time
$content = stripslashes($row['content']); // shouting content

$time=$shouttime;

// replace smilie code with path to smilie image
$content = str_replace ($txt['sbox_smilie01_code'], '<img src="'.$imgdir.$txt['sbox_smilie01_file'].'" alt="'.$txt['sbox_smilie01_text'].'" title="'.$txt['sbox_smilie01_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie02_code'], '<img src="'.$imgdir.$txt['sbox_smilie02_file'].'" alt="'.$txt['sbox_smilie02_text'].'" title="'.$txt['sbox_smilie02_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie03_code'], '<img src="'.$imgdir.$txt['sbox_smilie03_file'].'" alt="'.$txt['sbox_smilie03_text'].'" title="'.$txt['sbox_smilie03_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie04_code'], '<img src="'.$imgdir.$txt['sbox_smilie04_file'].'" alt="'.$txt['sbox_smilie04_text'].'" title="'.$txt['sbox_smilie04_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie05_code'], '<img src="'.$imgdir.$txt['sbox_smilie05_file'].'" alt="'.$txt['sbox_smilie05_text'].'" title="'.$txt['sbox_smilie05_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie06_code'], '<img src="'.$imgdir.$txt['sbox_smilie06_file'].'" alt="'.$txt['sbox_smilie06_text'].'" title="'.$txt['sbox_smilie06_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie07_code'], '<img src="'.$imgdir.$txt['sbox_smilie07_file'].'" alt="'.$txt['sbox_smilie07_text'].'" title="'.$txt['sbox_smilie07_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie08_code'], '<img src="'.$imgdir.$txt['sbox_smilie08_file'].'" alt="'.$txt['sbox_smilie08_text'].'" title="'.$txt['sbox_smilie08_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie09_code'], '<img src="'.$imgdir.$txt['sbox_smilie09_file'].'" alt="'.$txt['sbox_smilie09_text'].'" title="'.$txt['sbox_smilie09_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie10_code'], '<img src="'.$imgdir.$txt['sbox_smilie10_file'].'" alt="'.$txt['sbox_smilie10_text'].'" title="'.$txt['sbox_smilie10_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie11_code'], '<img src="'.$imgdir.$txt['sbox_smilie11_file'].'" alt="'.$txt['sbox_smilie11_text'].'" title="'.$txt['sbox_smilie11_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie12_code'], '<img src="'.$imgdir.$txt['sbox_smilie12_file'].'" alt="'.$txt['sbox_smilie12_text'].'" title="'.$txt['sbox_smilie12_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie13_code'], '<img src="'.$imgdir.$txt['sbox_smilie13_file'].'" alt="'.$txt['sbox_smilie13_text'].'" title="'.$txt['sbox_smilie13_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie14_code'], '<img src="'.$imgdir.$txt['sbox_smilie14_file'].'" alt="'.$txt['sbox_smilie14_text'].'" title="'.$txt['sbox_smilie14_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie15_code'], '<img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" />', $content);

// Offset the time.
$time = $time + ($user_info['time_offset'] + $modSettings['time_offset']) * 3600;
if ($time < 0)
$time = 0;

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

// display shouting message and use a different color each second row
if ($count % 2)
echo '
<div class="OddLine">';
else
echo '
<div class="EvenLine">';
if ($context['user']['is_admin'])
echo '<a title="'.$txt['sbox_KillShout'].'" class="Kill" onclick="return killYesNo();" href="sboxDB.php?action=kill&kill='.$row['id'].'">[X]</a>';

echo '[&nbsp;'.$date.'&nbsp;]&nbsp;<b>&lt;'.$name.'&gt;</b>&nbsp;'.$content.'</div>';
}


It seems to be easier if you just replace your sboxDB.php with that one out of the 1.05beta package.


Quote from: x0joshua0x
Is there a way to make the username show as the persons display name instead of the account name.
I know there of course is a way to display the persons display name instead of the account name, but i don´t have experiences with this part of SMF.
I can not guarantee that it works, but try to replace in sboxDB.php any occurany of:

$user_info['username']


with:

$context['member']['name']

Does it work?


Quote from: littleone
Id also like to see membergroup specific permissions so that I can grant my moderators the ability to delete shouts.
I am sorry, but i do not have the time to do that.
I have no experience with this part of SMF.
I can not guarantee that it works, but if you want all moderators to be able to delete shouts, try to replace in sboxDB.php any occurany of:

$context['user']['is_admin']


with:

allowedTo('moderate_forum')


@x0joshua0x:
@littleone:
It seems to be a good idea if you ask some more experienced SMF coders to answer your questions. In both cases i can tell you what to replace, but i am not sure if i told you the right replacement.

However, have a happy sunday! :-)

Deep

Thanks Deep!
it works well...we have the correct local time now!
thanks!! :)
Title: Re: SMF Shoutbox
Post by: mass on May 27, 2006, 09:14:58 AM
can we add more smiles to it? :P
Title: Re: SMF Shoutbox
Post by: Soniceffect on May 28, 2006, 07:02:23 AM
Have a problem on getting this to work with a different skin. I`ve done  the modifications that you suggested and the shoutbox seems to work without a problem. Apart from there are no smilies showing. They work fine on the default skin, but not on the skin I`m using. Also don`t know if this helps, but when I went to view source in explorer, it seems to be pointing to the dir of them, but not an actually image.

Hope someone can help :)
Title: Re: SMF Shoutbox
Post by: KingOfMyWorld on May 28, 2006, 10:34:40 PM
After installation of the shoutbox mod, I go to the default theme and this is what appears inside the shoutbox. Anyway to make it go away and get the shoutbox working? My members don't care much for the mkportal's shoutbox and would like this one so any help would be much appreciated.  :)

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

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

// global variables
global $db_connection, $context, $settings, $txt, $user_info, $modSettings, $db_prefix;

// used in test scenario
//@mysql_select_db($db_name, $db_connection);

//display html header
echo '<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="Shoutbox" />
<meta name="keywords" content="Shoutbox" />
<title>Shoutbox</title>
<meta http-equiv="refresh" content="'.$modSettings['sbox_RefreshTime'].';URL=sboxDB.php">
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc2" />
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function killYesNo()
{
return confirm("'.$txt['sbox_KillShout'].'");

}
// ]]></script>

<style type="text/css"><!-- // --><![CDATA[
<!--
.Kill
{
color: #ff0000;
}
.OddLine
{
font-family: '.$modSettings['sbox_FontFamily1'].';
font-style: normal;
font-size: '.$modSettings['sbox_TextSize1'].';
font-weight: normal;
color: '.$modSettings['sbox_TextColor1'].';
}
.EvenLine
{
font-family: '.$modSettings['sbox_FontFamily2'].';
font-style: normal;
font-size: '.$modSettings['sbox_TextSize2'].';
font-weight: normal;
color: '.$modSettings['sbox_TextColor2'].';
}
body
{
padding: 0px 0px 0px 0px;
background-color: '.$modSettings['sbox_BackgroundColor'].';
}
a:link
{
color: #ff0000;
text-decoration: none;
}
//-->
// ]]></style>';


switch ($_REQUEST['action'])
{

case "write":
if  ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1"))
{
// empty messages are not allowed
$content=$_REQUEST['sboxText'];
if(chop($content."") != "")
{
// get actual weekday
$days = array($txt['sbox_Sunday'],$txt['sbox_Monday'],$txt['sbox_Tuesday'],$txt['sbox_Wednesday'],$txt['sbox_Thurday'],$txt['sbox_Friday'],$txt['sbox_Saturday']);
$day=$days[date("w")]; // weekday
$date=$day." | ". date("G:i"); // time

// handle spacial characters
$content=addslashes($content);

// insert shout message into database
$sql = "insert into ".$db_prefix."sbox_content (name,content,time) values ('".$user_info['username']."','".$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 name='".$user_info['username']."' 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__);
}
}
break;
case "kill":
if  ($context['user']['is_admin'])
{
$id = "".$_REQUEST['kill'];
if ($id != "")
{
$sql = "delete from ".$db_prefix."sbox_content where id=".$id."";
db_query($sql,__FILE__,__LINE__);
}
}
break;
}

// close header and open body
echo '
</head>
<body>';

// get smilie path
$themedir = $settings['default_theme_url']; // smf theme path
$imgdir = $themedir."/images/"; // smilie path

// get shout messages out of database
$result = db_query("select * from ".$db_prefix."sbox_content order by id desc, time asc limit ".$modSettings['sbox_MaxLines'],__FILE__,__LINE__);
if(mysql_num_rows($result))
{
$count=0; // counter to distinguish font color
while($row = mysql_fetch_assoc($result))
{
$count = $count + 1; // increase counter
$name = $row["name"]; // user name
$date = $row["time"]; // shouting date and time
$content = stripslashes($row['content']); // shouting content

// replace smilie code with path to smilie image
$content = str_replace ($txt['sbox_smilie01_code'], '<img src="'.$imgdir.$txt['sbox_smilie01_file'].'" alt="'.$txt['sbox_smilie01_text'].'" title="'.$txt['sbox_smilie01_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie02_code'], '<img src="'.$imgdir.$txt['sbox_smilie02_file'].'" alt="'.$txt['sbox_smilie02_text'].'" title="'.$txt['sbox_smilie02_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie03_code'], '<img src="'.$imgdir.$txt['sbox_smilie03_file'].'" alt="'.$txt['sbox_smilie03_text'].'" title="'.$txt['sbox_smilie03_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie04_code'], '<img src="'.$imgdir.$txt['sbox_smilie04_file'].'" alt="'.$txt['sbox_smilie04_text'].'" title="'.$txt['sbox_smilie04_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie05_code'], '<img src="'.$imgdir.$txt['sbox_smilie05_file'].'" alt="'.$txt['sbox_smilie05_text'].'" title="'.$txt['sbox_smilie05_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie06_code'], '<img src="'.$imgdir.$txt['sbox_smilie06_file'].'" alt="'.$txt['sbox_smilie06_text'].'" title="'.$txt['sbox_smilie06_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie07_code'], '<img src="'.$imgdir.$txt['sbox_smilie07_file'].'" alt="'.$txt['sbox_smilie07_text'].'" title="'.$txt['sbox_smilie07_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie08_code'], '<img src="'.$imgdir.$txt['sbox_smilie08_file'].'" alt="'.$txt['sbox_smilie08_text'].'" title="'.$txt['sbox_smilie08_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie09_code'], '<img src="'.$imgdir.$txt['sbox_smilie09_file'].'" alt="'.$txt['sbox_smilie09_text'].'" title="'.$txt['sbox_smilie09_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie10_code'], '<img src="'.$imgdir.$txt['sbox_smilie10_file'].'" alt="'.$txt['sbox_smilie10_text'].'" title="'.$txt['sbox_smilie10_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie11_code'], '<img src="'.$imgdir.$txt['sbox_smilie11_file'].'" alt="'.$txt['sbox_smilie11_text'].'" title="'.$txt['sbox_smilie11_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie12_code'], '<img src="'.$imgdir.$txt['sbox_smilie12_file'].'" alt="'.$txt['sbox_smilie12_text'].'" title="'.$txt['sbox_smilie12_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie13_code'], '<img src="'.$imgdir.$txt['sbox_smilie13_file'].'" alt="'.$txt['sbox_smilie13_text'].'" title="'.$txt['sbox_smilie13_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie14_code'], '<img src="'.$imgdir.$txt['sbox_smilie14_file'].'" alt="'.$txt['sbox_smilie14_text'].'" title="'.$txt['sbox_smilie14_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie15_code'], '<img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" />', $content);

// display shouting message and use a different color each second row
if ($count % 2)
echo '
<div class="OddLine">';
else
echo '
<div class="EvenLine">';
if ($context['user']['is_admin'])
echo '<a title="'.$txt['sbox_KillShout'].'" class="Kill" onclick="return killYesNo();" href="sboxDB.php?action=kill&kill='.$row['id'].'">[X]</a>';

echo '[&nbsp;'.$date.'&nbsp;]&nbsp;<b>&lt;'.$name.'&gt;</b>&nbsp;'.$content.'</div>';
}

    echo '
</body>
</html>';
}
?>
                                                                                                                                                                                                                     
Title: Re: SMF Shoutbox
Post by: shela on May 29, 2006, 06:18:44 AM
Hi.

I have two little problems with shout.
It's workinf fine, but i have problem with charset. I'm not using english charset which is set to iso-8859-1 but iso-8859-2 ... i've tried to change it in many ways but i still have uglu characters in my shout ...

Second problem isn't something special ... as far as i know in my admin panel should be something to menage this shuotbox ... i can't see it on my panel with my lang set, i can't even see it on default english set ..

i hope it's easy to fix :P
Title: Re: SMF Shoutbox
Post by: talktechno on May 30, 2006, 08:32:02 AM
Hey all  8)

I installed the shout box the other day and its working perfectly on the index page but when i click on one of the sub forums it looks like this:

http://muslimessenger.com/forums/index.php/board,5.0.html

It has the whole page inside the Shoutbox  :o

any help will be appreciated  >:(
Title: small SMF Shoutbox issue...
Post by: cdonon on May 30, 2006, 10:02:11 AM
Hello....


I installed SMF 1.1RC2 on
Joomla v1.0.8 using a
Bridge by JoomlaHacks


Everything seems to be working great except the SMF Shoutbox

It works here...
http://www.showtimeweb.com/finalforum/index.php

But not here and this is where I need it to be...
http://www.showtimeweb.com/finalsite/index.php?option=com_smf&Itemid=26


and how do I change the header from "SMF Shoutbox" to what I want?

Please give me a solution to these problems

Thanks a bunch
Title: Re: SMF Shoutbox
Post by: ballboff on May 31, 2006, 04:56:08 PM
Sorry to open up an old thread, but I just have one question.  How do I change the name of the shout box to something of my own liking, something other than smf shoutbox?
Title: Re: SMF Shoutbox
Post by: liquidscythe on May 31, 2006, 07:18:23 PM
Ok I run the sbox_setup.php file and i install it but i see NOTHING ON MY ******ING FORUM(im kinda pissed ive bee messin with this for a week lol). I'm running the default green theme. And do i just put the sbox files in the root directory or the themes? I've put them in both just incase but i see nothing. Please help,

LS
Title: Re: SMF Shoutbox
Post by: tapirul on May 31, 2006, 07:38:34 PM
I've installed smf shoutbox on a test-forum and it seems to be working fine, but there are some settings I wish they were implemented
- posibility to set "how many shouts visible" based on a time variable (let's say days), along with the existing setting (number of lines). That is, "shouts older than x days are pruned"
- when an admin/moderator/user deletes a shout, a text will replace the deleted shout (like in phpbb shoutbox, something like "admin:deleted").
- possibility to open the shoutbox in a separate window/tab (in phpbb shoutbox this happens when you click on "shoutbox")

Thanks
Title: Re: SMF Shoutbox
Post by: PostThis on May 31, 2006, 10:18:42 PM
Quote from: Soniceffect on May 28, 2006, 07:02:23 AM
Have a problem on getting this to work with a different skin. I`ve done  the modifications that you suggested and the shoutbox seems to work without a problem. Apart from there are no smilies showing. They work fine on the default skin, but not on the skin I`m using. Also don`t know if this helps, but when I went to view source in explorer, it seems to be pointing to the dir of them, but not an actually image.

Hope someone can help :)

I believe I can help you with that, as I ran into the same issue. It's an easy fix though.

Unpack the smilies from the mod package, add a "moods" folder to the image directory of the theme that you ported the Shoutbox to, then copy the smileys into the "moods" folder.

Let me know if that fixes it for you.  :)
Title: Re: SMF Shoutbox
Post by: onijin on June 01, 2006, 07:38:15 PM
Quote from: kriskd on May 25, 2006, 09:29:51 AM
I noticed that "Thursday" is spelled wrong in my SMF shoutbox.  Where in the code can I correct this?

I'd like to know that as well~  ^_^
Title: Re: SMF Shoutbox
Post by: GreenToes on June 02, 2006, 12:06:33 AM
I installed this shout box and got this error.
My site is now down and will not let me access it.
What the heck?

Fatal error: Cannot redeclare sbox() (previously declared in /home/chatfest/public_html/Sources/Subs.php:3351) in /home/chatfest/public_html/Sources/Subs.php on line 3364
Title: Re: SMF Shoutbox
Post by: Deep on June 02, 2006, 08:36:13 AM
Quote from: kriskd
And here's a sample error from my error log.  Can anyone assist me with this?


Apply Filter: Only show the error messages of this URL  http://www.sprechereast.com/forum/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: sbox_smilie15_code
File: /home/.cutiekins/sprechereast/sprechereast.com/forum/Themes/default/sbox.template.php (eval?)
Line: 66


Hi kriskd,

I am sorry for not having been able to read your question earlier, because the solution seems to be very simple. The problem is that in your file Modifications.english.php (or Modifications.german.php if you use your forum in german language) some or all shoutbox text definitions has been deleted.

In that file just insert at any place you want the following code:

//SMF Shoutbox
$txt['sbox_ModTitle'] = 'SMF Shoutbox';
$txt['sbox_Visible'] = 'Shoutbox is visible';
$txt['sbox_GuestAllowed'] = 'Guests are allowed to shout';
$txt['sbox_MaxLines'] = 'Maximum number of displayed lines';
$txt['sbox_Height'] = 'Shoutbox height';
$txt['sbox_SmiliesVisible'] = 'Smilie window is visible';
$txt['sbox_smilie01_text'] = 'blblbl!';
$txt['sbox_smilie02_text'] = 'grinning';
$txt['sbox_smilie03_text'] = 'laughing';
$txt['sbox_smilie04_text'] = 'kissing';
$txt['sbox_smilie05_text'] = 'smiling';
$txt['sbox_smilie06_text'] = 'that´s okay!';
$txt['sbox_smilie07_text'] = 'smoking';
$txt['sbox_smilie08_text'] = 'greeting';
$txt['sbox_smilie09_text'] = 'cheerio!';
$txt['sbox_smilie10_text'] = 'oops';
$txt['sbox_smilie11_text'] = 'praying';
$txt['sbox_smilie12_text'] = 'crying';
$txt['sbox_smilie13_text'] = 'angry';
$txt['sbox_smilie14_text'] = 'baaaaaad';
$txt['sbox_smilie15_text'] = 'headbanging';
$txt['sbox_smilie01_code'] = ':frech:';
$txt['sbox_smilie02_code'] = ';-)';
$txt['sbox_smilie03_code'] = ':-]';
$txt['sbox_smilie04_code'] = ':-s';
$txt['sbox_smilie05_code'] = ':-)';
$txt['sbox_smilie06_code'] = ':-!';
$txt['sbox_smilie07_code'] = ':smoking:';
$txt['sbox_smilie08_code'] = ':greeting:';
$txt['sbox_smilie09_code'] = ':cheerio:';
$txt['sbox_smilie10_code'] = ':-O';
$txt['sbox_smilie11_code'] = ':praying:';
$txt['sbox_smilie12_code'] = ':crying:';
$txt['sbox_smilie13_code'] = ':-(';
$txt['sbox_smilie14_code'] = ':bad:';
$txt['sbox_smilie15_code'] = ':bang:';
$txt['sbox_smilie01_file'] = 'sbox_funny.gif';
$txt['sbox_smilie02_file'] = 'sbox_grin.gif';
$txt['sbox_smilie03_file'] = 'sbox_laugh.gif';
$txt['sbox_smilie04_file'] = 'sbox_kiss.gif';
$txt['sbox_smilie05_file'] = 'sbox_smile.gif';
$txt['sbox_smilie06_file'] = 'sbox_yeah.gif';
$txt['sbox_smilie07_file'] = 'sbox_smoke.gif';
$txt['sbox_smilie08_file'] = 'sbox_hand.gif';
$txt['sbox_smilie09_file'] = 'sbox_cheerio.gif';
$txt['sbox_smilie10_file'] = 'sbox_oops.gif';
$txt['sbox_smilie11_file'] = 'sbox_church.gif';
$txt['sbox_smilie12_file'] = 'sbox_cry.gif';
$txt['sbox_smilie13_file'] = 'sbox_angry.gif';
$txt['sbox_smilie14_file'] = 'sbox_bad.gif';
$txt['sbox_smilie15_file'] = 'sbox_bang.gif';
$txt['sbox_Monday'] = 'Monday';
$txt['sbox_Tuesday'] = 'Tuesday';
$txt['sbox_Wednesday'] = 'Wednesday';
$txt['sbox_Thurday'] = 'Thurday';
$txt['sbox_Friday'] = 'Friday';
$txt['sbox_Saturday'] = 'Saturday';
$txt['sbox_Sunday'] = 'Sunday';
$txt['sbox_KillShout'] = 'Dou you want to kill this shout?';
$txt['sbox_TextSize1'] = '1. Font size';
$txt['sbox_TextColor1'] = '1. Font color';
$txt['sbox_TextSize2'] = '2. Font size';
$txt['sbox_TextColor2'] = '2. Font color';
$txt['sbox_RefreshTime'] = 'Refresh time';
$txt['sbox_BackgroundColor'] = 'Background color';
$txt['sbox_FontFamily1'] = '1. Font family';
$txt['sbox_FontFamily2'] = '2. Font family';


But please have a look at the file before you modify it, because it is important that you only insert the missing lines. You might get an error if there are multiple identical lines.


Quote from: squirrelof09
If a user is on the ban list they shall not be able to shout.

Edit: do you think it is possable to limit the maximum size in submitted Images in the shout box?

or have a page in Features in Options that lets you disable certain bbc code?

I am really sorry. I don´t have the time to program this. But please feel free to modify the shoutbox in any way you want.


Quote from: kriskd
Another question now that I have this working on my site once again.  Is there a way to turn off the refresh completely?

Yes. To turn off the automatic refresh please remove the follwing line from sboxDB.php:


<meta http-equiv="refresh" content="'.$modSettings['sbox_RefreshTime'].';URL=sboxDB.php">



Quote from: BeEbAcK
Notice: Undefined index: sbox_smilie01_file in /home/www/forum/Sources/Load.php(1656) : eval()'d code on line 44

As descibed above in the case of kriskd your Modifications.english.php (or Modifications.german.php) may be corrupted. Please insert the above described lines in that file, if the lines are missing.

If you use your forum not in english or german you have to modify the file Modifications.yourlanguage.php.


Quote from: kriskd
I noticed that "Thursday" is spelled wrong in my SMF shoutbox.  Where in the code can I correct this?

Please replace in Modifications.english.php the follwing code

$txt['sbox_Thurday'] = 'Thurday';

with

$txt['sbox_Thurday'] = 'Thursday';


Quote from: mass
can we add more smiles to it?

To add a smilie you have to do the following steps (this example shows you how to add smilie number 16 which has the smilie code ":XYZ:" and the smilie image file "smilie16.gif":

1. Upload the smilie image (smilie16.gif) to $themedir/images (image directory inside the themes directory)

2. In Modifications.english.php you have to add the following lines:

$txt['sbox_smilie16_text'] = 'This is XYZ';
$txt['sbox_smilie16_code'] = ':XYZ:';
$txt['sbox_smilie16_file'] = 'smilie16.gif';


3. In sboxDB.php you have to replace

$content = str_replace ($txt['sbox_smilie15_code'], '<img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" />', $content);

with

$content = str_replace ($txt['sbox_smilie15_code'], '<img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" />', $content);
$content = str_replace ($txt['sbox_smilie16_code'], '<img src="'.$imgdir.$txt['sbox_smilie16_file'].'" alt="'.$txt['sbox_smilie16_text'].'" title="'.$txt['sbox_smilie16_text'].'" border="0" />', $content);


4. In sbox.template.php you have to add after the following code

<tr class="headerbodies">
  <td align="center"><img src="'.$imgdir.$txt['sbox_smilie13_file'].'" alt="'.$txt['sbox_smilie13_text'].'" title="'.$txt['sbox_smilie13_text'].'" border="0" onclick="insertSmilie(\''.$txt['sbox_smilie13_code'].'\')" onmouseover="this.style.cursor=\'hand\';" /></td>
  <td align="center"><img src="'.$imgdir.$txt['sbox_smilie14_file'].'" alt="'.$txt['sbox_smilie14_text'].'" title="'.$txt['sbox_smilie14_text'].'" border="0" onclick="insertSmilie(\''.$txt['sbox_smilie14_code'].'\')" onmouseover="this.style.cursor=\'hand\';" /></td>
  <td align="center"><img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" onclick="insertSmilie(\''.$txt['sbox_smilie15_code'].'\')" onmouseover="this.style.cursor=\'hand\';" /></td>
</tr>

this code

<tr class="headerbodies">
  <td align="center"><img src="'.$imgdir.$txt['sbox_smilie16_file'].'" alt="'.$txt['sbox_smilie16_text'].'" title="'.$txt['sbox_smilie16_text'].'" border="0" onclick="insertSmilie(\''.$txt['sbox_smilie16_code'].'\')" onmouseover="this.style.cursor=\'hand\';" /></td>
  <td align="center">&nbsp;</td>
  <td align="center">&nbsp;</td>
</tr>



Quote from: Soniceffect
Have a problem on getting this to work with a different skin. I`ve done  the modifications that you suggested and the shoutbox seems to work without a problem. Apart from there are no smilies showing. They work fine on the default skin, but not on the skin I`m using. Also don`t know if this helps, but when I went to view source in explorer, it seems to be pointing to the dir of them, but not an actually image.

The smilie images are installed in $themedir/images (image directory inside the themes directory).
Please copy the smilie images from that directory into the images directory of that theme you want to use.


Quote from: KingOfMyWorld
After installation of the shoutbox mod, I go to the default theme and this is what appears inside the shoutbox. Anyway to make it go away and get the shoutbox working? My members don't care much for the mkportal's shoutbox and would like this one so any help would be much appreciated.


Please replace the very first line

<?

with

<?php



Quote from: shela
It's workinf fine, but i have problem with charset. I'm not using english charset which is set to iso-8859-1 but iso-8859-2 ... i've tried to change it in many ways but i still have uglu characters in my shout ...

I am sorry, but i am not experienced with character sets. This may be a general SMF issue.
Can somebody help?

Quote from: shela
Second problem isn't something special ... as far as i know in my admin panel should be something to menage this shuotbox ... i can't see it on my panel with my lang set, i can't even see it on default english set ..

Yeah, in the admin panel, at Configuration->Features and Options there should be a link "SMF SHOUTBOX" between "LAYOUT AND OPTIONS" and "KARMA" - but only if you use the forum in english (or german if you have installed the optional german language pack of the shoutbox).
Did you find it?


Quote from: talktechno
Hey all 

I installed the shout box the other day and its working perfectly on the index page but when i click on one of the sub forums it looks like this:

http://muslimessenger.com/forums/index.php/board,5.0.html

It has the whole page inside the Shoutbox

I looked at you forum, but i could not find a shoutbox there.
However, if the whole forum page (i think, this is what you mean, right?) appear inside the shoutbox it indicates that there has been an error somewhere. Do you see an error message inside this forum page? Do you find an error in your forum error log?


Quote from: cdonon
It works here...
http://www.showtimeweb.com/finalforum/index.php

But not here and this is where I need it to be...
http://www.showtimeweb.com/finalsite/index.php?option=com_smf&Itemid=26


and how do I change the header from "SMF Shoutbox" to what I want?

I did not find a shoutbox on both links.
However, the shoutbox is installed in the default theme of SMF. The Forum on your second link uses another theme, so you have to modify the theme which you are using.
The way how to do that is described somewhere in this thread - and on the download page of the SMF shoutbox.

You can modify the header by modifying Modifications.english.php. In that file look for:

$txt['sbox_ModTitle'] = 'SMF Shoutbox';

For example you can replace it with

$txt['sbox_ModTitle'] = 'My very private shoutbox';



Quote from: ballboff
How do I change the name of the shout box to something of my own liking, something other than smf shoutbox?

As described just above.


Quote from: tapirul
I've installed smf shoutbox on a test-forum and it seems to be working fine, but there are some settings I wish they were implemented
- posibility to set "how many shouts visible" based on a time variable (let's say days), along with the existing setting (number of lines). That is, "shouts older than x days are pruned"
- when an admin/moderator/user deletes a shout, a text will replace the deleted shout (like in phpbb shoutbox, something like "admin:deleted").
- possibility to open the shoutbox in a separate window/tab (in phpbb shoutbox this happens when you click on "shoutbox")

I am really sorry. I don´t have the time to program this. But please feel free to modify the shoutbox in any way you want.

Quote from: onijin
Quote from: kriskd
I noticed that "Thursday" is spelled wrong in my SMF shoutbox.  Where in the code can I correct this?
I'd like to know that as well~  ^_^

Your question is answered somewhere above.


Quote from: GreenToes
Fatal error: Cannot redeclare sbox() (previously declared in /home/chatfest/public_html/Sources/Subs.php:3351) in /home/chatfest/public_html/Sources/Subs.php on line 3364

This error indicates that you have installed the shoutbox twice.
Please have a look at here.


I hope i could help.
By the way, those people who prefer german support should look here

Deep
Title: Re: SMF Shoutbox
Post by: onijin on June 02, 2006, 12:58:58 PM
thanx kriskd.

You inadvertently answered my previous question.

just changed

$txt['sbox_Thurday'] = 'Thurday';

to

$txt['sbox_Thurday'] = 'Thursday';
Title: Re: SMF Shoutbox
Post by: carola0102 on June 02, 2006, 01:41:14 PM
it's a great mod! and its working fine. I have one question:
I can only see the shoutbox on the boardindex of my forum. And I can't see it when browsing the forum. But it would be really cool when I can shout even when im in a sub category of my forum. To make this working what should I do? Could anyone help me? :)
Title: Re: SMF Shoutbox
Post by: onijin on June 02, 2006, 02:38:48 PM
not too sure if I'm right, but I would remove

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


from the BoardIndex.template.php, and place it in the index.template.php, that way it would appear on EVERY page.

I don't really have the time to test it right now though.
Title: Re: SMF Shoutbox
Post by: GreenToes on June 02, 2006, 10:57:06 PM
OK, I got my board back up finally with the help of my server guy.

Anyway now I have TWO shout boxes on my home page.

When I go into the installed packages and tried to uninstall
both but it won't let me. It says "An error has occurred! Unable to find package file."

Where is IT??

I also now have on my home page an IE popup box that says.
Out of memory at line 397
stack overflow at line 426

Any help would be greatly appreciated.
Thanks
Title: Re: SMF Shoutbox
Post by: carola0102 on June 05, 2006, 01:46:58 PM
Quote from: onijin on June 02, 2006, 02:38:48 PM
not too sure if I'm right, but I would remove

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


from the BoardIndex.template.php, and place it in the index.template.php, that way it would appear on EVERY page.

I don't really have the time to test it right now though.

thanks a lot! It's working :)
Title: Re: SMF Shoutbox
Post by: Fabiusus on June 09, 2006, 03:14:15 PM
i have one problem! i read all of this tread but i don't make the right solution!!!

in the shoutbox screen:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

i need help please!!
Title: Re: SMF Shoutbox
Post by: Fabiusus on June 10, 2006, 07:34:02 AM
up
Title: Re: SMF Shoutbox
Post by: unrelenting on June 10, 2006, 03:25:35 PM
How would I change the way messages are displayed? I'd rather the new ones appear at the bottom and scroll upward, like a chat applet, rather than new messages at the top and scrolling down.

Surely there is an easy fix for this in one of the php files. No?  ???
Title: Re: SMF Shoutbox
Post by: Igor Primera SRi on June 11, 2006, 03:02:09 PM
Great mod, thnx!

But, do you have a solution for this problem:

When someone shouts, the username disapers. Is it possible to show the Forum Name?
Title: Re: SMF Shoutbox
Post by: Igor Primera SRi on June 11, 2006, 04:02:51 PM
Found it! It works great!

Sehr gut!
Title: Re: SMF Shoutbox
Post by: cdonon on June 13, 2006, 07:04:09 AM
Thanks Deep Its working perfectlty ;D
Title: Re: SMF Shoutbox
Post by: Fabiusus on June 13, 2006, 01:20:16 PM
it don't work in my forum!!!!
Title: Re: SMF Shoutbox
Post by: onijin on June 13, 2006, 01:23:29 PM
T'would be helpful if you quoted errors or issues you came across to help explain  why  it doesn't work in your forums.
Title: Re: SMF Shoutbox
Post by: kriskd on June 13, 2006, 04:21:28 PM
Quote from: onijin on June 02, 2006, 12:58:58 PM
thanx kriskd.

You inadvertently answered my previous question.

just changed

$txt['sbox_Thurday'] = 'Thurday';

to

$txt['sbox_Thurday'] = 'Thursday';

I need to double check my code, but I think I implemented this and it didn't fix the spelling.  Anyone else?
Title: Re: SMF Shoutbox
Post by: 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"
Title: Re: SMF Shoutbox
Post by: bicunisa on June 13, 2006, 10:23:09 PM
Hello guys, I have this awesome mod working on my forums. The problem is, that this mod won't show its tab "SMF SHOUTBOX" if the language is other than English.

I think that if the language that it looks for isn't installed, it should default to English, shouldn't it?
Title: Re: SMF Shoutbox
Post by: haktanir2 on June 14, 2006, 05:57:56 AM
How can I get this to work in another theme?
Title: Re: SMF Shoutbox
Post by: onijin on June 14, 2006, 07:23:21 AM
It tells you how, right on the mod page (http://mods.simplemachines.org/index.php?mod=294).
Title: Re: SMF Shoutbox
Post by: haktanir2 on June 14, 2006, 09:19:04 AM
Quote from: onijin on June 14, 2006, 07:23:21 AM
It tells you how, right on the mod page (http://mods.simplemachines.org/index.php?mod=294).
Ok thanks, but now the images do not show. I did move the images to the other theme's folder.

I also tried editing the related files where the image and theme directory is mentioned. However unless you use the default theme, the image file names do not show up and they all link to the folder.
Title: Re: SMF Shoutbox
Post by: PrizeLive.com on June 14, 2006, 04:30:16 PM
On my forum, http://www.moneytalkpro.com/index.php, when you type a message and click shot, the message remains in the box. How can I have it erased once I submit the message?
Title: Re: SMF Shoutbox
Post by: 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.
Title: Re: SMF Shoutbox
Post by: 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!
Title: Re: SMF Shoutbox
Post by: bicunisa on June 14, 2006, 10:36:02 PM
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.
Title: Re: SMF Shoutbox
Post by: onijin on June 15, 2006, 07:12:16 AM
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~   ^_^
Title: Re: SMF Shoutbox
Post by: PrizeLive.com on June 15, 2006, 01:26:30 PM
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.
Title: Re: SMF Shoutbox
Post by: onijin on June 15, 2006, 01:55:03 PM
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.
Title: Re: SMF Shoutbox
Post by: domipedro on June 15, 2006, 05:48:12 PM
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
Title: Re: SMF Shoutbox
Post by: 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
Title: Re: SMF Shoutbox
Post by: tL0z on June 16, 2006, 10:39:39 AM
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
Title: Re: SMF Shoutbox
Post by: LazyBum on June 16, 2006, 11:36:01 AM
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?
Title: Re: SMF Shoutbox
Post by: UnlimitedX on June 17, 2006, 09:45:50 AM
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 !
Title: Re: SMF Shoutbox
Post by: littleone on June 17, 2006, 03:21:09 PM
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.
Title: Re: SMF Shoutbox
Post by: moTaro on June 17, 2006, 10:46:09 PM
Because he most probably installed this on a localhost machine.
Title: Re: SMF Shoutbox
Post by: 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
Title: Re: SMF Shoutbox
Post by: tL0z on June 18, 2006, 11:32:09 AM
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
Title: Re: SMF Shoutbox
Post by: moTaro on June 18, 2006, 11:56:39 AM
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?
Title: Re: SMF Shoutbox
Post by: Bubbles on June 19, 2006, 10:18:36 AM
I installed the shoutbox...but how can I put it on my forums?
Title: Re: SMF Shoutbox
Post by: tL0z on June 19, 2006, 04:51:57 PM
The answer to your question is here (http://mods.simplemachines.org/index.php?mod=294).
Title: Re: SMF Shoutbox
Post by: Penelope on June 19, 2006, 06:53:08 PM
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!

Title: Re: SMF Shoutbox
Post by: onijin on June 19, 2006, 08:54:54 PM
that is just WONDERFUL.

I've been wanting something like that~!!

So I can just throw that before

?>

??
Title: Re: SMF Shoutbox
Post by: Penelope on June 19, 2006, 09:13:46 PM
in Arcade.php find:


Function Arcade_submit_normal($warning,$hop)

and
Function Arcade_comment()



And copy & paste this between the 2 lines: ( Overwrite what is between it now :) )


{
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__);

}
}
}


That's the way i have it ;) :)
Title: Re: SMF Shoutbox
Post by: onijin on June 19, 2006, 10:23:00 PM
Koo~

parse errors went away.

Shout box works flawlessly.

Not too sure about the creds though...  taking trophies is a little too difficult right now (high score bastards) so I can't really test it.
Title: Re: SMF Shoutbox
Post by: Penelope on June 20, 2006, 10:31:01 AM
If your post is about the highscore code i don't get it, sry  :-[ :)

I was wondering if it is possible to have a Shoutbox Archive which stores all the shouts that is been made into the Shoubox. ( Like Ultimate Shoutbox has  :) ) Any idea's how?
Title: Re: SMF Shoutbox
Post by: littleone on June 20, 2006, 01:03:30 PM
how many tokens does it give for new high scores?  Or can we set that?
Title: Re: SMF Shoutbox
Post by: littleone on June 20, 2006, 01:25:33 PM
I also wanted to say that I am using 1.2.4b and I cant find the coding that you say your coding needs to be placed inbetween.  In neither Arcade.php or Arcade2.php
Title: Re: SMF Shoutbox
Post by: onijin on June 20, 2006, 02:23:55 PM
Quote from: Penelope on June 20, 2006, 10:31:01 AM
If your post is about the highscore code i don't get it, sry  :-[ :)

I was wondering if it is possible to have a Shoutbox Archive which stores all the shouts that is been made into the Shoubox. ( Like Ultimate Shoutbox has  :) ) Any idea's how?

Actually... That would be pretty cool.

I have my box set at 10k.  I wanted to keep all the shouts, but it takes a while to load.
Title: Re: SMF Shoutbox
Post by: Drea on June 20, 2006, 08:15:43 PM
I am trying to get this to work on safmc theme but I can't I keep tryin to add the code in different places to show on the forum but it does nothing. I know it works because when I went to default it did, and the yabb theme it also works. So its just I am unsure how to get it to work with safmc and I really want to, because this is my fave theme. Hope someone can help. Thanks in advance for whoever can.
Title: Re: SMF Shoutbox
Post by: onijin on June 20, 2006, 09:12:57 PM
hey penelope,
small question..

have you recieved this:
Quote8: Undefined index: looser
File: /home/for10001/public_html/forum/Themes/TP_helios_multi11_rc2/Arcade.template.php (eval?)
Line: 1104
Title: Re: SMF Shoutbox
Post by: Penelope on June 21, 2006, 02:35:10 PM
Hey Onijin  :)

No i haven't recieved it.
Title: Re: SMF Shoutbox
Post by: dry3210 on June 22, 2006, 12:47:00 AM
Is it possible to get this to load up on each board too?  I edited some code but it ended up being at the very top of the page (instead of after tabs like it does on the main page) and it increase the font size of the boards

Anyone?  Thanks
Title: Re: SMF Shoutbox
Post by: littleone on June 22, 2006, 12:47:05 PM
Quote from: dry3210 on June 22, 2006, 12:47:00 AM
Is it possible to get this to load up on each board too?  I edited some code but it ended up being at the very top of the page (instead of after tabs like it does on the main page) and it increase the font size of the boards

Anyone?  Thanks

If you have a large forum or are limited on bandwidth(as in your pushing it each month) I personally would not recommend doing this.  Each time it refreshes or its load (or in your case, each time its loaded cause someone is viewing a new topic) its using up bandwidth and this sure can add up after a while.

Title: Re: SMF Shoutbox
Post by: dry3210 on June 22, 2006, 12:49:40 PM
Quote from: littleone on June 22, 2006, 12:47:05 PM
If you have a large forum or are limited on bandwidth(as in your pushing it each month) I personally would not recommend doing this.  Each time it refreshes or its load (or in your case, each time its loaded cause someone is viewing a new topic) its using up bandwidth and this sure can add up after a while.

I don't want it on every topic..just the main board and the sub boards.  And I'm aware it will use more bandwidth....
Title: Re: SMF Shoutbox
Post by: Drea on June 23, 2006, 07:19:34 PM
I am still trying to get this to work on the safmc theme is there a way to do so
Title: Re: SMF Shoutbox
Post by: invisiblex on June 23, 2006, 08:19:15 PM
guyz when i click on smilies they dont work :-\

pls tell solution

i use otehr theme
Title: Re: SMF Shoutbox
Post by: carola0102 on June 24, 2006, 03:48:03 AM
Hi all,

the shotbox mod was working very well, but today I get this error every time when a page load:

Notice: Undefined index: action in /usr/local/psa/home/vhosts/tamilflowerz.net/httpdocs/forum/Sources/sboxDB.php on line 66

how can I fix it? could anyone please help?
Title: Re: SMF Shoutbox
Post by: Kettu on June 24, 2006, 07:17:26 AM
Quote from: Drea on June 23, 2006, 07:19:34 PM
I am still trying to get this to work on the safmc theme is there a way to do so
Did you add:
// display shoutbox
  if (function_exists('sbox')) sbox();

to your BoardIndex.template.php i.e. before
// Here's where the "Info Center" starts...?

I also have a question. It should be simple but currently the search function is deactivated so I can't find the answer. ::) I would like to have the shoutbox only shown for registered users not for guests.

Edit:
My boyfriend already found the solution for the guest problem. For all, who are also interested in it, just do following:
Replace at your BoardIndex.template.php
  // display shoutbox
  if (function_exists('sbox')) sbox();

with
  if (!$context['user']['is_guest'])
{
  // display shoutbox
  if (function_exists('sbox')) sbox();}


Edit2:
Well, first problem fixed but there is a new one. I can't collapse the shoutbox :( It only jumps to the head of the index page but nothing else. I haven't changed the code here.

Edit3:
Okay, it works in the default theme but not in the other themes. What do I have to change there?


Edit4:
Muahaha. I love to find out the solution by myself ;D So, for all the other who want to know. It only adds the code to the index.template.php of the default theme, so you have to add the code to the other themes by hand.

<search for>
echo $context['html_headers'], '
</search for>

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

function shrinkHeaderSB(mode)
{';

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

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

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

current_header_sb = mode;
}
// ]]></script>


But one thing I have to find fault. You shouldn't use different smiley-code for English and German. I have a bilingual board, so this causes that the other language can't see the smilies, only the code.
Title: Re: SMF Shoutbox
Post by: carola0102 on June 24, 2006, 10:44:38 AM
Hi all, I have installed a new theme: chatbubbles
now I could make the shoutbox visible on board index. but I get the following error:

Notice: Undefined index: action in /usr/local/psa/home/vhosts/tamilflowerz.net/httpdocs/forum/Sources/sboxDB.php on line 66
Title: Re: SMF Shoutbox
Post by: Drea on June 24, 2006, 12:45:49 PM
thanks Kettu  that worked! except no smilies will show, they show in the classic theme but not this one :( hope you can help or someone.
Title: Re: SMF Shoutbox
Post by: Kettu on June 24, 2006, 03:57:23 PM
Quote from: Drea on June 24, 2006, 12:45:49 PM
thanks Kettu  that worked! except no smilies will show, they show in the classic theme but not this one :( hope you can help or someone.

You also need the changes in the Modification.english.php at the your theme => languages folder

Add before ?>
//SMF Shoutbox
$txt['sbox_ModTitle'] = 'SMF Shoutbox';
$txt['sbox_Visible'] = 'Shoutbox is visible';
$txt['sbox_GuestAllowed'] = 'Guests are allowed to shout';
$txt['sbox_MaxLines'] = 'Maximum number of displayed lines';
$txt['sbox_Height'] = 'Shoutbox height';
$txt['sbox_SmiliesVisible'] = 'Smilie window is visible';
$txt['sbox_smilie01_text'] = 'blblbl!';
$txt['sbox_smilie02_text'] = 'grinning';
$txt['sbox_smilie03_text'] = 'laughing';
$txt['sbox_smilie04_text'] = 'kissing';
$txt['sbox_smilie05_text'] = 'smiling';
$txt['sbox_smilie06_text'] = 'thats okay!';
$txt['sbox_smilie07_text'] = 'smoking';
$txt['sbox_smilie08_text'] = 'greeting';
$txt['sbox_smilie09_text'] = 'cheerio!';
$txt['sbox_smilie10_text'] = 'oops';
$txt['sbox_smilie11_text'] = 'praying';
$txt['sbox_smilie12_text'] = 'crying';
$txt['sbox_smilie13_text'] = 'angry';
$txt['sbox_smilie14_text'] = 'baaaaaad';
$txt['sbox_smilie15_text'] = 'headbanging';
$txt['sbox_smilie01_code'] = ':frech:';
$txt['sbox_smilie02_code'] = ';-)';
$txt['sbox_smilie03_code'] = ':-]';
$txt['sbox_smilie04_code'] = ':-s';
$txt['sbox_smilie05_code'] = ':-)';
$txt['sbox_smilie06_code'] = ':-!';
$txt['sbox_smilie07_code'] = ':smoking:';
$txt['sbox_smilie08_code'] = ':greeting:';
$txt['sbox_smilie09_code'] = ':cheerio:';
$txt['sbox_smilie10_code'] = ':-O';
$txt['sbox_smilie11_code'] = ':praying:';
$txt['sbox_smilie12_code'] = ':crying:';
$txt['sbox_smilie13_code'] = ':-(';
$txt['sbox_smilie14_code'] = ':bad:';
$txt['sbox_smilie15_code'] = ':bang:';
$txt['sbox_smilie01_file'] = 'sbox_funny.gif';
$txt['sbox_smilie02_file'] = 'sbox_grin.gif';
$txt['sbox_smilie03_file'] = 'sbox_laugh.gif';
$txt['sbox_smilie04_file'] = 'sbox_kiss.gif';
$txt['sbox_smilie05_file'] = 'sbox_smile.gif';
$txt['sbox_smilie06_file'] = 'sbox_yeah.gif';
$txt['sbox_smilie07_file'] = 'sbox_smoke.gif';
$txt['sbox_smilie08_file'] = 'sbox_hand.gif';
$txt['sbox_smilie09_file'] = 'sbox_cheerio.gif';
$txt['sbox_smilie10_file'] = 'sbox_oops.gif';
$txt['sbox_smilie11_file'] = 'sbox_church.gif';
$txt['sbox_smilie12_file'] = 'sbox_cry.gif';
$txt['sbox_smilie13_file'] = 'sbox_angry.gif';
$txt['sbox_smilie14_file'] = 'sbox_bad.gif';
$txt['sbox_smilie15_file'] = 'sbox_bang.gif';
$txt['sbox_Monday'] = 'Monday';
$txt['sbox_Tuesday'] = 'Tuesday';
$txt['sbox_Wednesday'] = 'Wednesday';
$txt['sbox_Thurday'] = 'Thurday';
$txt['sbox_Friday'] = 'Friday';
$txt['sbox_Saturday'] = 'Saturday';
$txt['sbox_Sunday'] = 'Sunday';
$txt['sbox_KillShout'] = 'Dou you want to kill this shout?';
$txt['sbox_TextSize1'] = '1. Font size';
$txt['sbox_TextColor1'] = '1. Font color';
$txt['sbox_TextSize2'] = '2. Font size';
$txt['sbox_TextColor2'] = '2. Font color';
$txt['sbox_RefreshTime'] = 'Refresh time';
$txt['sbox_BackgroundColor'] = 'Background color';
$txt['sbox_FontFamily1'] = '1. Font family';
$txt['sbox_FontFamily2'] = '2. Font family';
Title: Re: SMF Shoutbox
Post by: Drea on June 24, 2006, 04:10:28 PM
GOT It,thanks so much for your help :D
Title: Re: SMF Shoutbox
Post by: willtaka on June 24, 2006, 06:41:19 PM
Hi have followed all the instructions but I still get the following error:

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

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

// global variables
global $db_connection, $context, $settings, $txt, $user_info, $modSettings, $db_prefix;

// used in test scenario
//@mysql_select_db($db_name, $db_connection);

//display html header
echo '<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="Shoutbox" />
   <meta name="keywords" content="Shoutbox" />
   <title>Shoutbox</title>
   <meta http-equiv="refresh" content="'.$modSettings['sbox_RefreshTime'].';URL=sboxDB.php">
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc2" />
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      function killYesNo()
      {
         return confirm("'.$txt['sbox_KillShout'].'");
         
      }
   // ]]></script>

   <style type="text/css"><!-- // --><![CDATA[
   <!--
      .Kill
      {
         color: #ff0000;
      }
      .OddLine
      {
         font-family: '.$modSettings['sbox_FontFamily1'].';
         font-style: normal;
         font-size: '.$modSettings['sbox_TextSize1'].';
         font-weight: normal;
         color: '.$modSettings['sbox_TextColor1'].';
      }
      .EvenLine
      {
         font-family: '.$modSettings['sbox_FontFamily2'].';
         font-style: normal;
         font-size: '.$modSettings['sbox_TextSize2'].';
         font-weight: normal;
         color: '.$modSettings['sbox_TextColor2'].';
      }
      body
      {
         padding: 0px 0px 0px 0px;
         background-color: '.$modSettings['sbox_BackgroundColor'].';
      }
      a:link
      {
         color: #ff0000;
         text-decoration: none;
      }
      //-->
   // ]]></style>';


switch ($_REQUEST['action'])
{

   case "write":
      if  ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1"))
      {
         // empty messages are not allowed
         $content=$_REQUEST['sboxText'];
         if(chop($content."") != "")
         {
            // get actual weekday
            $days = array($txt['sbox_Sunday'],$txt['sbox_Monday'],$txt['sbox_Tuesday'],$txt['sbox_Wednesday'],$txt['sbox_Thurday'],$txt['sbox_Friday'],$txt['sbox_Saturday']);
            $day=$days[date("w")];         // weekday
            $date=$day." | ". date("G:i");   // time
         
            // handle spacial characters
            $content=addslashes($content);
         
            // insert shout message into database
            $sql = "insert into ".$db_prefix."sbox_content (name,content,time) values ('".$user_info['username']."','".$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 name='".$user_info['username']."' 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__);
         }
      }
      break;
   case "kill":
      if  ($context['user']['is_admin'])
      {
         $id = "".$_REQUEST['kill'];
         if ($id != "")
         {
            $sql = "delete from ".$db_prefix."sbox_content where id=".$id."";
            db_query($sql,__FILE__,__LINE__);
         }
      }
      break;
}

// close header and open body
echo '
</head>
<body>';

// get smilie path
$themedir = $settings['default_theme_url'];   // smf theme path
$imgdir = $themedir."/images/";            // smilie path

// get shout messages out of database
$result = db_query("select * from ".$db_prefix."sbox_content order by id desc, time asc limit ".$modSettings['sbox_MaxLines'],__FILE__,__LINE__);
if(mysql_num_rows($result))
{
   $count=0;   // counter to distinguish font color
   while($row = mysql_fetch_assoc($result))
   {
      $count = $count + 1;                  // increase counter
      $name = $row["name"];                  // user name
      $date = $row["time"];                  // shouting date and time
      $content = stripslashes($row['content']);   // shouting content
      
      // replace smilie code with path to smilie image
      $content = str_replace ($txt['sbox_smilie01_code'], '<img src="'.$imgdir.$txt['sbox_smilie01_file'].'" alt="'.$txt['sbox_smilie01_text'].'" title="'.$txt['sbox_smilie01_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie02_code'], '<img src="'.$imgdir.$txt['sbox_smilie02_file'].'" alt="'.$txt['sbox_smilie02_text'].'" title="'.$txt['sbox_smilie02_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie03_code'], '<img src="'.$imgdir.$txt['sbox_smilie03_file'].'" alt="'.$txt['sbox_smilie03_text'].'" title="'.$txt['sbox_smilie03_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie04_code'], '<img src="'.$imgdir.$txt['sbox_smilie04_file'].'" alt="'.$txt['sbox_smilie04_text'].'" title="'.$txt['sbox_smilie04_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie05_code'], '<img src="'.$imgdir.$txt['sbox_smilie05_file'].'" alt="'.$txt['sbox_smilie05_text'].'" title="'.$txt['sbox_smilie05_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie06_code'], '<img src="'.$imgdir.$txt['sbox_smilie06_file'].'" alt="'.$txt['sbox_smilie06_text'].'" title="'.$txt['sbox_smilie06_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie07_code'], '<img src="'.$imgdir.$txt['sbox_smilie07_file'].'" alt="'.$txt['sbox_smilie07_text'].'" title="'.$txt['sbox_smilie07_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie08_code'], '<img src="'.$imgdir.$txt['sbox_smilie08_file'].'" alt="'.$txt['sbox_smilie08_text'].'" title="'.$txt['sbox_smilie08_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie09_code'], '<img src="'.$imgdir.$txt['sbox_smilie09_file'].'" alt="'.$txt['sbox_smilie09_text'].'" title="'.$txt['sbox_smilie09_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie10_code'], '<img src="'.$imgdir.$txt['sbox_smilie10_file'].'" alt="'.$txt['sbox_smilie10_text'].'" title="'.$txt['sbox_smilie10_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie11_code'], '<img src="'.$imgdir.$txt['sbox_smilie11_file'].'" alt="'.$txt['sbox_smilie11_text'].'" title="'.$txt['sbox_smilie11_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie12_code'], '<img src="'.$imgdir.$txt['sbox_smilie12_file'].'" alt="'.$txt['sbox_smilie12_text'].'" title="'.$txt['sbox_smilie12_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie13_code'], '<img src="'.$imgdir.$txt['sbox_smilie13_file'].'" alt="'.$txt['sbox_smilie13_text'].'" title="'.$txt['sbox_smilie13_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie14_code'], '<img src="'.$imgdir.$txt['sbox_smilie14_file'].'" alt="'.$txt['sbox_smilie14_text'].'" title="'.$txt['sbox_smilie14_text'].'" border="0" />', $content);
      $content = str_replace ($txt['sbox_smilie15_code'], '<img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" />', $content);

      // display shouting message and use a different color each second row
      if ($count % 2)
      echo '
   <div class="OddLine">';
      else
      echo '
   <div class="EvenLine">';
      if ($context['user']['is_admin'])
         echo '<a title="'.$txt['sbox_KillShout'].'" class="Kill" onclick="return killYesNo();" href="sboxDB.php?action=kill&kill='.$row['id'].'">[X]</a>';

      echo '[&nbsp;'.$date.'&nbsp;]&nbsp;<b>&lt;'.$name.'&gt;</b>&nbsp;'.$content.'</div>';
   }
   
    echo '
</body>
</html>';
}
?>

This appears inside the shoutbox

Link: http://cdcoverhideout.com/forum

User: test
Pass: test1

Any help would be great

Regards, will :D
Title: Re: SMF Shoutbox
Post by: Kettu on June 25, 2006, 04:08:05 AM
 :o Did you add the code by hand or by package manager?
This is almost the whole code of different files of the shoutbox. And still your smilies work. So the code is in the correct files, but also in wrong files, I think.
Title: Re: SMF Shoutbox
Post by: willtaka on June 25, 2006, 06:55:56 AM
I added the mod by package manager & then added the extra coding through the steps given on the mod page. ;D
Title: Re: SMF Shoutbox
Post by: nitecrawler on June 25, 2006, 07:38:58 AM
Quote from: squirrelof09
QuoteThink you can make the submitable text longer? or have a text field to specify how much you can insert per shout?

Find in sbox.template.php
<input class="windowbg2" type="text" name="sboxText" size="70" maxlength="100" />&nbsp;<input type="submit" class="input" value="&nbsp;shout&nbsp;" />';

You can change the shout length there. I guess the character length validation is done using the $shoutChunkSize in sbox_setup.php (not sure though). I'm not good at PHP :D

I have some issue with the time being displayed. The shout time offset is some (-) 10hours 30 minutes. Maybe if there is a provision for this setting by adding or subtracting this offset from the time being added to database would help. I think it is fetching the time from the server, but in my case, the forum is country specific, and the server is not hosted in that country.. so trouble with time.  :(
Title: Re: SMF Shoutbox
Post by: haktanir2 on June 25, 2006, 07:53:16 AM
Hi I got no answer to this question yet:

How can I make the smilies show when using another theme?
Title: Re: SMF Shoutbox
Post by: Kettu on June 25, 2006, 09:59:39 AM
Quote from: haktanir2 on June 25, 2006, 07:53:16 AM
Hi I got no answer to this question yet:

How can I make the smilies show when using another theme?
I already answered this question to Drea yesterday. See my posts before (page 12).

Quote from: willtaka on June 25, 2006, 06:55:56 AM
I added the mod by package manager & then added the extra coding through the steps given on the mod page. ;D
What kind of themes do you use? I didn't have to add the code to my themes. It is a bit confusing on the mod page. Lots of themes take the information from the default theme as Enterprise in example. So maybe you added it twice.
Title: Re: SMF Shoutbox
Post by: willtaka on June 25, 2006, 04:38:52 PM
I'm using smfox theme, in the mod page it tells that if you are using a different theme, then you need to add the additional coding :)
Title: Re: SMF Shoutbox
Post by: gasg on June 25, 2006, 05:21:39 PM
Anybody have installed it ona Joomla + SMF 1.1 RC2 + Ostrio's bridge and make it Working with all features?
Title: Re: SMF Shoutbox
Post by: Kettu on June 26, 2006, 03:12:42 AM
Quote from: willtaka on June 25, 2006, 04:38:52 PM
I'm using smfox theme, in the mod page it tells that if you are using a different theme, then you need to add the additional coding :)
Yes, thats true. But this is only for some themes. Deep should add the info that you should check after installation if this code is already there.

I would recommend: deinstall the mod and reinstall it by the package manager and then let's see, what happens. If it doesn't work, we go through the modifications step by step together. Okay?
Title: Re: SMF Shoutbox
Post by: willtaka on June 26, 2006, 07:27:46 AM
Cool, okay, I will reinstall :D
Title: Re: SMF Shoutbox
Post by: willtaka on June 26, 2006, 07:31:57 AM
Its still the same, shall I delete the coding I added the first time :D
Title: Re: SMF Shoutbox
Post by: Kettu on June 26, 2006, 10:28:10 AM
Quote from: willtaka on June 26, 2006, 07:31:57 AM
Its still the same, shall I delete the coding I added the first time :D
Yes, of course. This is very important. Then we can start new.
Title: Re: SMF Shoutbox
Post by: willtaka on June 26, 2006, 11:07:19 AM
Right I have reinstalled the mod and added the following coding to my boardindex.template.php

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

I haven't added anymore coding and Its still the same :(
Title: Re: SMF Shoutbox
Post by: Kettu on June 26, 2006, 12:22:00 PM
Quote from: willtaka on June 26, 2006, 11:07:19 AM
Right I have reinstalled the mod and added the following coding to my boardindex.template.php

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

I haven't added anymore coding and Its still the same :(
What about the default theme? Is there the same error?
Title: Re: SMF Shoutbox
Post by: willtaka on June 26, 2006, 12:24:12 PM
Yes, still get the same error :(
Title: Re: SMF Shoutbox
Post by: tL0z on June 27, 2006, 05:01:08 AM
Quote from: tL0z on June 18, 2006, 11:32:09 AM
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
help
Title: Re: SMF Shoutbox
Post by: carola0102 on June 29, 2006, 02:26:41 AM
(http://img503.imageshack.us/img503/9247/shout3ul.jpg)

It's very strange, even if we dont shout at my site, there appears a zero ::)
and also if we shout something I can only see a zero :'(

can anyone help?
Title: Re: SMF Shoutbox
Post by: carola0102 on June 30, 2006, 12:19:52 PM
Quote from: carola0102 on June 29, 2006, 02:26:41 AM
(http://img503.imageshack.us/img503/9247/shout3ul.jpg)

It's very strange, even if we dont shout at my site, there appears a zero ::)
and also if we shout something I can only see a zero :'(

can anyone help?

sorry for the trouble but can anyone help pls?

Title: Re: SMF Shoutbox
Post by: tL0z on July 01, 2006, 03:28:44 PM
Could anyone make a "Delete all shouts" function for me please?
Title: Re: SMF Shoutbox
Post by: moTaro on July 01, 2006, 06:06:08 PM
More like CLEAR all shouts.
Title: Re: SMF Shoutbox
Post by: Kettu on July 02, 2006, 04:47:31 AM
delete all shouts? You can use the X in front of the posts. And if you have lots of lines allowed, you should go to the administration before and reduce the lines to 5 i.e., than it is easier  ;)

To carola. This is no typical problem. I think it is a database problem. Sounds like it doesn't write correctly into the database. Also you could check the database field what field type there is in. Shouldn't be "INT" or similar for numbers.
Title: Re: SMF Shoutbox
Post by: carola0102 on July 02, 2006, 10:19:18 AM
Quote from: Kettu on July 02, 2006, 04:47:31 AM
delete all shouts? You can use the X in front of the posts. And if you have lots of lines allowed, you should go to the administration before and reduce the lines to 5 i.e., than it is easier  ;)

To carola. This is no typical problem. I think it is a database problem. Sounds like it doesn't write correctly into the database. Also you could check the database field what field type there is in. Shouldn't be "INT" or similar for numbers.

Hi Kettu,

first of all thanks a lot for ur reply, a database problem? yes u may be right. do u have any idea how I can fix this? Should I edit the smf_sbox_content and if so what should I edit? really all members loved the shoutbox at my site, its really a great mod! So I would be really happy if this problem could be fixed.

Regards,
Carola
Title: Re: SMF Shoutbox
Post by: Kettu on July 02, 2006, 12:59:25 PM
Quote from: carola0102 on July 02, 2006, 10:19:18 AM
Hi Kettu,

first of all thanks a lot for ur reply, a database problem? yes u may be right. do u have any idea how I can fix this? Should I edit the smf_sbox_content and if so what should I edit? really all members loved the shoutbox at my site, its really a great mod! So I would be really happy if this problem could be fixed.

Regards,
Carola
Hi Carola,
I am sorry, but I don't know. Database is my biggest problem. It is still a mystery for me. So maybe one of the other users can help with this.  It should be one who knows the specifications of SMF.
Regards,
Foxy
Title: Re: SMF Shoutbox
Post by: carola0102 on July 03, 2006, 02:01:12 AM
Quote from: Kettu on July 02, 2006, 12:59:25 PM
Quote from: carola0102 on July 02, 2006, 10:19:18 AM
Hi Kettu,

first of all thanks a lot for ur reply, a database problem? yes u may be right. do u have any idea how I can fix this? Should I edit the smf_sbox_content and if so what should I edit? really all members loved the shoutbox at my site, its really a great mod! So I would be really happy if this problem could be fixed.

Regards,
Carola
Hi Carola,
I am sorry, but I don't know. Database is my biggest problem. It is still a mystery for me. So maybe one of the other users can help with this.  It should be one who knows the specifications of SMF.
Regards,
Foxy

No problem, thanks anyway ;)
Title: Re: SMF Shoutbox
Post by: Piwaille on July 07, 2006, 06:01:20 AM
hello...

still not installed this mod (I will do so in a few minutes) but I've alredy notice an (small) thing : when I do browse mod form the admin panel, I click on install... it only D/L the german language :o

(I don't know if i'm understandable)
It's not bloquing.... but it could be improved and easyer ;)


[EDIT] i've got a pb installing :
Appliquer la modification     ./Themes/default/BoardIndex.template.php     Échec du test (failed test)

[2nd Edit] got a lot of erros while installing :
Quotehttp://www.parapentiste.info/forum/index.php?action=packages;sa=install2;package=sbox_v1.04.zip
Appliquer le filtre: Montrer les erreurs qui ont un même message
8: Undefined variable: db_server
Fichier: .../forum/Packages/temp/sbox_setup.php
Ligne: 51
+
Quotehttp://www.parapentiste.info/forum/index.php?action=packages;sa=install2;package=sbox_v1.04.zip
Appliquer le filtre: Montrer les erreurs qui ont un même message
8: Undefined variable: db_user
Fichier: .../forum/Packages/temp/sbox_setup.php
Ligne: 51
++++
then
Quote8: Undefined index: sbox_ModTitle
Fichier: ..../forum/Sources/ModSettings.php
Ligne: 144
&
Quotehttp://www.parapentiste.info/forum/index.php?action=featuresettings;sa=layout;sesc
Appliquer le filtre: Montrer les erreurs qui ont un même message
8: Undefined index: sbox_ModTitle
Fichier: ..../forum/Sources/ModSettings.php
Ligne: 144
Title: Re: SMF Shoutbox
Post by: tL0z on July 07, 2006, 06:38:03 AM
Hello,

Yesterday my forum changed servers. However, the domain is still the same. After the change, the time was six hours late. I've already put 6 in Overall time offset in Features and Options and it fixed the time in the forum. However, it is still wrong in the shoubox

How can I fix it?

Thanks
Title: Re: SMF Shoutbox
Post by: Kettu on July 07, 2006, 09:24:48 AM
@Piwaille
Please download the mod from Simple Machines Forum (http://mods.simplemachines.org/index.php?action=download;mod=294;id=15500) and upload it through the package manager.

@tL0z
The shoutbox gets the time from the server. So if the server time is still another one, it still shows it. It doesn't matter what kind of + or - hours a user has or forums standard is.
Title: Re: SMF Shoutbox
Post by: tL0z on July 07, 2006, 11:22:29 AM
How can I change the time of the server?
Title: Re: SMF Shoutbox
Post by: Kettu on July 07, 2006, 12:00:46 PM
Quote from: tL0z on July 07, 2006, 11:22:29 AM
How can I change the time of the server?
Normally you can't. Because you don't own the server ;)
Title: Re: SMF Shoutbox
Post by: Piwaille on July 07, 2006, 03:38:17 PM
Quote from: Kettu on July 07, 2006, 09:24:48 AM
@Piwaille
Please download the mod from Simple Machines Forum (http://mods.simplemachines.org/index.php?action=download;mod=294;id=15500) and upload it through the package manager.

already done... that's why I manage to install and I had the others problems (I did solve them also ... I just signal them for improving the script)

Now that the script is running on my site I've got some suggestions :

* some <![CDATA[ and // ]]> code prevent the good run of CSS. I had to remove all in sboxDB.php and it function well. I also removed every <!-- and //-->

* instead of having an iframe you could put a div with a javascript clock feeding it (ajax way). It would cut down the load on the server and be nicer on client (no flicking)

* you should replace every path hard coded (E.G. "Sources/sboxDB.php") with a nicer one so that the script could be called from everywhere (not only ..../forum/sources/XXX.php) using $boardurl or $sourcedir...

* it would be much nicer (for our users) to have every smiley that is uploaded in SMF. For doing so, it could be much usefull to use the functions of SMF... why not using function such like "parse_bbc" ? (could be nice to use BBCode also)

* it could be nice to en-light when s/o talk to you : when X write Y's name in it's message, when Y display the message if it have Y then (blink ? invert colors ? ...)

When I have some time, I will try to improve some parts
If you did not manage to understand some parts (my English is quite poor), just contact me ;D
Title: Re: SMF Shoutbox
Post by: littleone on July 07, 2006, 06:26:55 PM
Quote from: Kettu on July 07, 2006, 12:00:46 PM
Quote from: tL0z on July 07, 2006, 11:22:29 AM
How can I change the time of the server?
Normally you can't. Because you don't own the server ;)

R U on a VPS?  If not you will need to submit a support ticket and ask if they can do it.  Chances are they wont thought.
Title: Re: SMF Shoutbox
Post by: snakize on July 08, 2006, 01:52:54 AM
This mod ruined my forum. I have no idea what it did to it. As soon as I installed it, I refreshed my page and this error is coming up.

Fatal error: Cannot redeclare sbox() (previously declared in /home/parallel/public_html/forum/Sources/Subs.php:3330) in /home/parallel/public_html/forum/Sources/Subs.php on line 3337

This is my subs.php file.
Title: Re: SMF Shoutbox
Post by: Kettu on July 08, 2006, 06:36:19 AM
How did you install shoutbox? With package manager or manual?
Check your subs.php for the added code if there is an error:
<search for>
log_error('Copyright removed!!');
}
}
</search for>

<add after>

function sbox()
{
global $sourcedir;

include_once("$sourcedir/sbox.php");
sbox_display();
}

</add after>
Title: Re: SMF Shoutbox
Post by: blackoutpt on July 09, 2006, 06:42:22 PM
great mod

but there's one thing i can't solve. my language is set to portuguese. so, when i type characters like "ç or á, etc.." i get this "缯div>". i think it's a enconding issue but i have no idea wich file to save with the right encoding for me that is "ISO-8859-1"
can someone give me a clue?
Title: Re: SMF Shoutbox
Post by: blackoutpt on July 10, 2006, 03:39:28 PM
this solved my charset issueAttention please

--------------------------------------------------------------------------------
After you have installed the shoutbox please modify the file sboxDB.php.

Please search for

Código:
// handle spacial characters $content=addslashes($content);
and replace this with


Código:
// handle special characters $content=addslashes($content); // enquote html and script code to avoid html/javascript injection $content = htmlentities($content, ENT_QUOTES);
Title: Re: SMF Shoutbox
Post by: blackoutpt on July 11, 2006, 04:52:19 PM
not 100% solved  :'(
the characters in the day of the week field aren't right
please help me
Title: Re: SMF Shoutbox
Post by: otochan on July 16, 2006, 07:22:22 AM
Got it to work but how do I make it parse BBcode?
Title: Re: SMF Shoutbox
Post by: otochan on July 16, 2006, 07:32:05 AM
Quote from: yellow1912 on April 12, 2006, 07:25:46 PM
Quote from: Jabberwocky on April 03, 2006, 09:26:19 PM
One feature I would like to see added is the ability to add bbcode-url's to the window. It parses html-url's to images / smilies etc...

But BB-Code [url's] etc would be a lot better and "Safer" ?? :)
Definetely need

Edit:
I modified sboxDB.php to display parse BBC: http://www.megaupload.com/?d=G55CMQXD


Could you please post it again pretty please? Or upload it to another host? my school has banned megaupload and rapidshare so I can't download that file :(
Title: Re: SMF Shoutbox
Post by: Col on July 16, 2006, 11:56:45 AM
Otochan,

I make no guarantees about the code, but this is what was at the link to megaupload.


<?

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



if (!defined('SMF'))

die('Hacking attempt...');



// global variables

global $db_connection, $context, $settings, $txt, $user_info, $modSettings, $db_prefix;



// used in test scenario

//@mysql_select_db($db_name, $db_connection);



//display html header

echo '<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="Shoutbox" />

<meta name="keywords" content="Shoutbox" />

<title>Shoutbox</title>

<meta http-equiv="refresh" content="'.$modSettings['sbox_RefreshTime'].';URL=sboxDB.php">

<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc2" />

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

function killYesNo()

{

return confirm("'.$txt['sbox_KillShout'].'");



}

// ]]></script>



<style type="text/css"><!-- // --><![CDATA[

<!--

.Kill

{

color: #ff0000;

}

.OddLine

{

font-family: '.$modSettings['sbox_FontFamily1'].';

font-style: normal;

font-size: '.$modSettings['sbox_TextSize1'].';

font-weight: normal;

color: '.$modSettings['sbox_TextColor1'].';

}

.EvenLine

{

font-family: '.$modSettings['sbox_FontFamily2'].';

font-style: normal;

font-size: '.$modSettings['sbox_TextSize2'].';

font-weight: normal;

color: '.$modSettings['sbox_TextColor2'].';

}

body

{

padding: 0px 0px 0px 0px;

background-color: '.$modSettings['sbox_BackgroundColor'].';

}

a:link

{

color: #ff0000;

text-decoration: none;

}

//-->

// ]]></style>';





switch ($_REQUEST['action'])

{



case "write":

if  ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1"))

{

// empty messages are not allowed

$content=$_REQUEST['sboxText'];

if(chop($content."") != "")

{

// get actual weekday

$days = array($txt['sbox_Sunday'],$txt['sbox_Monday'],$txt['sbox_Tuesday'],$txt['sbox_Wednesday'],$txt['sbox_Thurday'],$txt['sbox_Friday'],$txt['sbox_Saturday']);

$day=$days[date("w")]; // weekday

$date=$day." | ". date("G:i"); // time



// handle spacial characters

include_once("Subs-Post.php");
    preparsecode(&$content);
fixTags(&$content);




// insert shout message into database

$sql = "insert into ".$db_prefix."sbox_content (name,content,time) values ('".$user_info['username']."','".$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 name='".$user_info['username']."' 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__);

}

}

break;

case "kill":

if  ($context['user']['is_admin'])

{

$id = "".$_REQUEST['kill'];

if ($id != "")

{

$sql = "delete from ".$db_prefix."sbox_content where id=".$id."";

db_query($sql,__FILE__,__LINE__);

}

}

break;

}



// close header and open body

echo '

</head>

<body>';



// get smilie path

$themedir = $settings['default_theme_url']; // smf theme path

$imgdir = $themedir."/images/"; // smilie path



// get shout messages out of database

$result = db_query("select * from ".$db_prefix."sbox_content order by id desc, time asc limit ".$modSettings['sbox_MaxLines'],__FILE__,__LINE__);

if(mysql_num_rows($result))

{

$count=0; // counter to distinguish font color

while($row = mysql_fetch_assoc($result))

{

$count = $count + 1; // increase counter

$name = $row["name"]; // user name

$date = $row["time"]; // shouting date and time

$content = $row['content']; // shouting content

include_once("Subs-Post.php");
$content = un_preparsecode($content);
$content = doUBBC ($content);
// replace smilie code with path to smilie image

$content = str_replace ($txt['sbox_smilie01_code'], '<img src="'.$imgdir.$txt['sbox_smilie01_file'].'" alt="'.$txt['sbox_smilie01_text'].'" title="'.$txt['sbox_smilie01_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie02_code'], '<img src="'.$imgdir.$txt['sbox_smilie02_file'].'" alt="'.$txt['sbox_smilie02_text'].'" title="'.$txt['sbox_smilie02_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie03_code'], '<img src="'.$imgdir.$txt['sbox_smilie03_file'].'" alt="'.$txt['sbox_smilie03_text'].'" title="'.$txt['sbox_smilie03_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie04_code'], '<img src="'.$imgdir.$txt['sbox_smilie04_file'].'" alt="'.$txt['sbox_smilie04_text'].'" title="'.$txt['sbox_smilie04_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie05_code'], '<img src="'.$imgdir.$txt['sbox_smilie05_file'].'" alt="'.$txt['sbox_smilie05_text'].'" title="'.$txt['sbox_smilie05_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie06_code'], '<img src="'.$imgdir.$txt['sbox_smilie06_file'].'" alt="'.$txt['sbox_smilie06_text'].'" title="'.$txt['sbox_smilie06_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie07_code'], '<img src="'.$imgdir.$txt['sbox_smilie07_file'].'" alt="'.$txt['sbox_smilie07_text'].'" title="'.$txt['sbox_smilie07_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie08_code'], '<img src="'.$imgdir.$txt['sbox_smilie08_file'].'" alt="'.$txt['sbox_smilie08_text'].'" title="'.$txt['sbox_smilie08_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie09_code'], '<img src="'.$imgdir.$txt['sbox_smilie09_file'].'" alt="'.$txt['sbox_smilie09_text'].'" title="'.$txt['sbox_smilie09_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie10_code'], '<img src="'.$imgdir.$txt['sbox_smilie10_file'].'" alt="'.$txt['sbox_smilie10_text'].'" title="'.$txt['sbox_smilie10_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie11_code'], '<img src="'.$imgdir.$txt['sbox_smilie11_file'].'" alt="'.$txt['sbox_smilie11_text'].'" title="'.$txt['sbox_smilie11_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie12_code'], '<img src="'.$imgdir.$txt['sbox_smilie12_file'].'" alt="'.$txt['sbox_smilie12_text'].'" title="'.$txt['sbox_smilie12_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie13_code'], '<img src="'.$imgdir.$txt['sbox_smilie13_file'].'" alt="'.$txt['sbox_smilie13_text'].'" title="'.$txt['sbox_smilie13_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie14_code'], '<img src="'.$imgdir.$txt['sbox_smilie14_file'].'" alt="'.$txt['sbox_smilie14_text'].'" title="'.$txt['sbox_smilie14_text'].'" border="0" />', $content);

$content = str_replace ($txt['sbox_smilie15_code'], '<img src="'.$imgdir.$txt['sbox_smilie15_file'].'" alt="'.$txt['sbox_smilie15_text'].'" title="'.$txt['sbox_smilie15_text'].'" border="0" />', $content);



// display shouting message and use a different color each second row

if ($count % 2)

echo '

<div class="OddLine">';

else

echo '

<div class="EvenLine">';

if ($context['user']['is_admin'])

echo '<a title="'.$txt['sbox_KillShout'].'" class="Kill" onclick="return killYesNo();" href="sboxDB.php?action=kill&kill='.$row['id'].'">[X]</a>';



echo '[&nbsp;'.$date.'&nbsp;]&nbsp;<b>&lt;'.$name.'&gt;</b>&nbsp;'.$content.'</div>';

}



    echo '

</body>

</html>';

}

?>
Title: Re: SMF Shoutbox
Post by: Dextrophobia on July 18, 2006, 10:36:15 AM
I installed. Said it was installed. And just plain doesn't work. Why why why why why do mods not work when I install them?
Title: Re: SMF Shoutbox
Post by: tL0z on July 23, 2006, 06:44:14 AM
Can anyone please make and history for this shoutbox? Also, how can I give permission to a groupe to be able to delete shouts?
Title: Re: SMF Shoutbox
Post by: Kettu on July 23, 2006, 09:27:25 AM
Quote from: Dextrophobia on July 18, 2006, 10:36:15 AM
I installed. Said it was installed. And just plain doesn't work. Why why why why why do mods not work when I install them?
Do all your mods you try to install not work? What kind of theme do you use?

Quote from: tL0z on July 23, 2006, 06:44:14 AM
Can anyone please make and history for this shoutbox? Also, how can I give permission to a groupe to be able to delete shouts?
An history? What do you mean?
The permission is given to all admins. There is no option at admin area to change this.
Title: Re: SMF Shoutbox
Post by: tL0z on July 23, 2006, 09:33:13 AM
A shoutbox history to see the previous messages. This is good to detect some abuse when I'm not online.
Title: Re: SMF Shoutbox
Post by: littleone on July 23, 2006, 02:02:13 PM
Quote from: littleone on May 21, 2006, 10:42:40 AM
Quote from: Deep on May 21, 2006, 08:02:20 AM
Quote from: littleone
Id also like to see membergroup specific permissions so that I can grant my moderators the ability to delete shouts.
I am sorry, but i do not have the time to do that.
I have no experience with this part of SMF.
I can not guarantee that it works, but if you want all moderators to be able to delete shouts, try to replace in sboxDB.php any occurany of:

$context['user']['is_admin']


with:

allowedTo('moderate_forum')



Ok this worked fantastically except there is a case of sbox_content that also needs to be changed to sbox_messages.  It appears after the second "$context['user']['is_admin']"

At first it wasnt working so I went back and looked and that was the problem.  Just so you know for future reference and anyone else who might want to do this.


Title: Re: SMF Shoutbox
Post by: Kettu on July 24, 2006, 01:14:10 AM
Quote from: tL0z on July 23, 2006, 09:33:13 AM
A shoutbox history to see the previous messages. This is good to detect some abuse when I'm not online.
You want to log it. I have no idea how this works.
But you could change the number of lines to 100 or more.
Title: Re: SMF Shoutbox
Post by: nermeen_elhelw on July 24, 2006, 05:06:25 PM
i need some help, i am using smf 1.1rc2, and installed shout box 1.04, i inserted the shout box in 2 more themes, the classic theme, and pnpn theme, it works fine on classic theme, but on pnpn the smilyes don't show, i mean the table at the right is hsown, but shown empty, but it is seen normaly on other themes !!

how is that??? and what do i do??
Title: Re: SMF Shoutbox
Post by: Kettu on July 25, 2006, 01:50:22 AM
I remember that I also had this problem. And I try to remember what I did.
I think it was a language file problem. Does the other theme has an own language file?
Title: Re: SMF Shoutbox
Post by: nermeen_elhelw on July 25, 2006, 03:35:34 AM
language file? what do u mean? it's all in english if that's what u mean, i dont have any other languages installed

url: http://boards.alexpharmacy.org  or http://www.alexpharmacy.org/smf/index.php
Title: Re: SMF Shoutbox
Post by: Kettu on July 25, 2006, 07:24:56 AM
Both addresses can't be load. Why ever.
Because your classic theme works, I think your other theme doesn't load the modifications.english.php. So the language and the address of the smilies can't be found.

Section of the modifications.english.php:
$txt['sbox_smilie01_file'] = 'sbox_funny.gif';
$txt['sbox_smilie02_file'] = 'sbox_grin.gif';
$txt['sbox_smilie03_file'] = 'sbox_laugh.gif';
$txt['sbox_smilie04_file'] = 'sbox_kiss.gif';
$txt['sbox_smilie05_file'] = 'sbox_smile.gif';
$txt['sbox_smilie06_file'] = 'sbox_yeah.gif';
$txt['sbox_smilie07_file'] = 'sbox_smoke.gif';
$txt['sbox_smilie08_file'] = 'sbox_hand.gif';
$txt['sbox_smilie09_file'] = 'sbox_cheerio.gif';
$txt['sbox_smilie10_file'] = 'sbox_oops.gif';
$txt['sbox_smilie11_file'] = 'sbox_church.gif';
$txt['sbox_smilie12_file'] = 'sbox_cry.gif';
$txt['sbox_smilie13_file'] = 'sbox_angry.gif';
$txt['sbox_smilie14_file'] = 'sbox_bad.gif';
$txt['sbox_smilie15_file'] = 'sbox_bang.gif';
Title: Re: SMF Shoutbox
Post by: Joshsux on July 25, 2006, 11:53:02 PM
Anyway you could make this for 1.7? and for the pitchblack theme? thanks? if not any urls to one that will work?
Title: Re: SMF Shoutbox
Post by: Kettu on July 26, 2006, 01:17:02 AM
Quote from: Joshsux on July 25, 2006, 11:53:02 PM
Anyway you could make this for 1.7? and for the pitchblack theme? thanks? if not any urls to one that will work?
1.0.7 is completely different than 1.1. RC2 as I know. But you can use Grudge's Ultimate Shoutbox (http://mods.simplemachines.org/index.php?mod=22). This is available for 1.0.7.
Title: Re: SMF Shoutbox
Post by: invisiblex on July 26, 2006, 09:00:44 AM
how to change time in shoutbox and

i want to display display names rather usernames

quick please

i searched this can found horrible results

so help me quick please.
Title: Re: SMF Shoutbox
Post by: Kettu on July 26, 2006, 09:23:23 AM
Quote from: invisiblex on July 26, 2006, 09:00:44 AM
how to change time in shoutbox and

i want to display display names rather usernames

quick please

i searched this can found horrible results

so help me quick please.
Hi,
I already answered a similar question.

Quote from: Kettu on July 07, 2006, 09:24:48 AM
The shoutbox gets the time from the server. So if the server time is still another one, it still shows it. It doesn't matter what kind of + or - hours a user has or forums standard is.

Names? It gets the name information from the database out of the usernames. So how should that work with names?
Title: Re: SMF Shoutbox
Post by: invisiblex on July 27, 2006, 05:32:32 AM
please repeat your answer again :)
Title: Re: SMF Shoutbox
Post by: Kettu on July 27, 2006, 07:23:42 AM
Quote from: invisiblex on July 27, 2006, 05:32:32 AM
please repeat your answer again :)
It is quotet in my last post ;)
The shoutbox gets the time from the server. It doesn't matter what kind of + or - hours a user has or forums standard is. So you can't change the time.
Title: Re: SMF Shoutbox
Post by: littleone on July 27, 2006, 11:08:19 AM
Quote from: Kettu on July 27, 2006, 07:23:42 AM
Quote from: invisiblex on July 27, 2006, 05:32:32 AM
please repeat your answer again :)
It is quotet in my last post ;)
The shoutbox gets the time from the server. It doesn't matter what kind of + or - hours a user has or forums standard is. So you can't change the time.

This is incorrect.  Somewhere in this thread there is an explanation on how to make the time based off of the users profile time.  You need to search through prior pages in this thread to find it.
Title: Re: SMF Shoutbox
Post by: denislici on July 27, 2006, 11:33:18 AM

Quote
(http://www.kralforumcu.com/ofyaws.jpg)

i have this problem.... how can i choose it ?
Title: Re: SMF Shoutbox
Post by: Kettu on July 27, 2006, 12:50:23 PM
Quote from: denislici on July 27, 2006, 11:33:18 AM
i have this problem.... how can i choose it ?
This is a CHMod problem. You have to change the CHMod of sboxDB.php to 644.
Title: Re: SMF Shoutbox
Post by: Joshsux on July 28, 2006, 01:12:58 AM
Thanks for the mod, working great right now, i've made it smaller in the settings and removed the annoying smileys and it looks stylish! thanks.
Title: Re: SMF Shoutbox
Post by: Powerhouse on July 28, 2006, 07:11:43 PM
great shoutbox. million thanks..  :D
Title: Re: SMF Shoutbox
Post by: invisiblex on July 29, 2006, 01:03:25 PM
Ok today im going to teach how to offset time in SHoutbox

Open sboxDB.php

there look for

$date = $day . " | " . date("G:i");

modify it to

$date = $day . " | " . date("G:i", mktime(date("h")+x, date("i")+y));

where  +x will offset the hours by plus x minutes.
where  +y will offset the minutes by plus y minutes.

This smf frum sucks nobody helps.
I learnt i myself from PHP by studying for 3 hours then i got it.
DOnt expect me to help furthur.

I know everybody wants to get time from user profile.  ;D
Title: Re: SMF Shoutbox
Post by: TLM on July 29, 2006, 01:11:31 PM
Wow that sounds just like what I told someone to do not to long ago...
Title: Re: SMF Shoutbox
Post by: nermeen_elhelw on July 30, 2006, 05:33:57 PM
hi again
i'm the one that was asking about the smilies of the shout box in the pnpn theme

ok i did what u posted, i added the code u provided in modifications.english.php
$txt['sbox_smilie01_file'] = 'sbox_funny.gif';
$txt['sbox_smilie02_file'] = 'sbox_grin.gif';
$txt['sbox_smilie03_file'] = 'sbox_laugh.gif';
$txt['sbox_smilie04_file'] = 'sbox_kiss.gif';
$txt['sbox_smilie05_file'] = 'sbox_smile.gif';
$txt['sbox_smilie06_file'] = 'sbox_yeah.gif';
$txt['sbox_smilie07_file'] = 'sbox_smoke.gif';
$txt['sbox_smilie08_file'] = 'sbox_hand.gif';
$txt['sbox_smilie09_file'] = 'sbox_cheerio.gif';
$txt['sbox_smilie10_file'] = 'sbox_oops.gif';
$txt['sbox_smilie11_file'] = 'sbox_church.gif';
$txt['sbox_smilie12_file'] = 'sbox_cry.gif';
$txt['sbox_smilie13_file'] = 'sbox_angry.gif';
$txt['sbox_smilie14_file'] = 'sbox_bad.gif';
$txt['sbox_smilie15_file'] = 'sbox_bang.gif';


, they now appear , thanks for that, but they are not clickable

any ideas??
Title: Re: SMF Shoutbox
Post by: LazyBum on July 30, 2006, 10:20:25 PM
ah, i posted this problem a while back but no one answered so i'll just ask again.. lol

problem:

I have joomla 1.0.9 bridged with SMF 1.1 RC2 with Orstio Bridge 1.1.4 but if i try to go to my forum through thr bridge, my joomla site would appear in the shoutbox. But if i enter the forum normally (e.g. www.example.com/forums/index.php) this doesn't happen. Any idea how to fix this?
Title: Re: SMF Shoutbox
Post by: Kettu on August 01, 2006, 03:24:05 AM
Quote from: nermeen_elhelw on July 30, 2006, 05:33:57 PM
hi again
i'm the one that was asking about the smilies of the shout box in the pnpn theme

ok i did what u posted, i added the code u provided in modifications.english.php
$txt['sbox_smilie01_file'] = 'sbox_funny.gif';
$txt['sbox_smilie02_file'] = 'sbox_grin.gif';
$txt['sbox_smilie03_file'] = 'sbox_laugh.gif';
$txt['sbox_smilie04_file'] = 'sbox_kiss.gif';
$txt['sbox_smilie05_file'] = 'sbox_smile.gif';
$txt['sbox_smilie06_file'] = 'sbox_yeah.gif';
$txt['sbox_smilie07_file'] = 'sbox_smoke.gif';
$txt['sbox_smilie08_file'] = 'sbox_hand.gif';
$txt['sbox_smilie09_file'] = 'sbox_cheerio.gif';
$txt['sbox_smilie10_file'] = 'sbox_oops.gif';
$txt['sbox_smilie11_file'] = 'sbox_church.gif';
$txt['sbox_smilie12_file'] = 'sbox_cry.gif';
$txt['sbox_smilie13_file'] = 'sbox_angry.gif';
$txt['sbox_smilie14_file'] = 'sbox_bad.gif';
$txt['sbox_smilie15_file'] = 'sbox_bang.gif';


, they now appear , thanks for that, but they are not clickable

any ideas??

Hi,
you have to add the whole part, not only the smilies. This was only an important part of the code for checking if the code was inserted. You have to add the whole code to modifications.english.php
//SMF Shoutbox
$txt['sbox_ModTitle'] = 'SMF Shoutbox';
$txt['sbox_Visible'] = 'Shoutbox is visible';
$txt['sbox_GuestAllowed'] = 'Guests are allowed to shout';
$txt['sbox_MaxLines'] = 'Maximum number of displayed lines';
$txt['sbox_Height'] = 'Shoutbox height';
$txt['sbox_SmiliesVisible'] = 'Smilie window is visible';
$txt['sbox_smilie01_text'] = 'blblbl!';
$txt['sbox_smilie02_text'] = 'grinning';
$txt['sbox_smilie03_text'] = 'laughing';
$txt['sbox_smilie04_text'] = 'kissing';
$txt['sbox_smilie05_text'] = 'smiling';
$txt['sbox_smilie06_text'] = 'thats okay!';
$txt['sbox_smilie07_text'] = 'smoking';
$txt['sbox_smilie08_text'] = 'greeting';
$txt['sbox_smilie09_text'] = 'cheerio!';
$txt['sbox_smilie10_text'] = 'oops';
$txt['sbox_smilie11_text'] = 'praying';
$txt['sbox_smilie12_text'] = 'crying';
$txt['sbox_smilie13_text'] = 'angry';
$txt['sbox_smilie14_text'] = 'baaaaaad';
$txt['sbox_smilie15_text'] = 'headbanging';
$txt['sbox_smilie01_code'] = ':frech:';
$txt['sbox_smilie02_code'] = ';-)';
$txt['sbox_smilie03_code'] = ':-]';
$txt['sbox_smilie04_code'] = ':-s';
$txt['sbox_smilie05_code'] = ':-)';
$txt['sbox_smilie06_code'] = ':-!';
$txt['sbox_smilie07_code'] = ':smoking:';
$txt['sbox_smilie08_code'] = ':greeting:';
$txt['sbox_smilie09_code'] = ':cheerio:';
$txt['sbox_smilie10_code'] = ':-O';
$txt['sbox_smilie11_code'] = ':praying:';
$txt['sbox_smilie12_code'] = ':crying:';
$txt['sbox_smilie13_code'] = ':-(';
$txt['sbox_smilie14_code'] = ':bad:';
$txt['sbox_smilie15_code'] = ':bang:';
$txt['sbox_smilie01_file'] = 'sbox_funny.gif';
$txt['sbox_smilie02_file'] = 'sbox_grin.gif';
$txt['sbox_smilie03_file'] = 'sbox_laugh.gif';
$txt['sbox_smilie04_file'] = 'sbox_kiss.gif';
$txt['sbox_smilie05_file'] = 'sbox_smile.gif';
$txt['sbox_smilie06_file'] = 'sbox_yeah.gif';
$txt['sbox_smilie07_file'] = 'sbox_smoke.gif';
$txt['sbox_smilie08_file'] = 'sbox_hand.gif';
$txt['sbox_smilie09_file'] = 'sbox_cheerio.gif';
$txt['sbox_smilie10_file'] = 'sbox_oops.gif';
$txt['sbox_smilie11_file'] = 'sbox_church.gif';
$txt['sbox_smilie12_file'] = 'sbox_cry.gif';
$txt['sbox_smilie13_file'] = 'sbox_angry.gif';
$txt['sbox_smilie14_file'] = 'sbox_bad.gif';
$txt['sbox_smilie15_file'] = 'sbox_bang.gif';
$txt['sbox_Monday'] = 'Monday';
$txt['sbox_Tuesday'] = 'Tuesday';
$txt['sbox_Wednesday'] = 'Wednesday';
$txt['sbox_Thurday'] = 'Thurday';
$txt['sbox_Friday'] = 'Friday';
$txt['sbox_Saturday'] = 'Saturday';
$txt['sbox_Sunday'] = 'Sunday';
$txt['sbox_KillShout'] = 'Dou you want to kill this shout?';
$txt['sbox_TextSize1'] = '1. Font size';
$txt['sbox_TextColor1'] = '1. Font color';
$txt['sbox_TextSize2'] = '2. Font size';
$txt['sbox_TextColor2'] = '2. Font color';
$txt['sbox_RefreshTime'] = 'Refresh time';
$txt['sbox_BackgroundColor'] = 'Background color';
$txt['sbox_FontFamily1'] = '1. Font family';
$txt['sbox_FontFamily2'] = '2. Font family';


Quote from: LazyBum on July 30, 2006, 10:20:25 PM
I have joomla 1.0.9 bridged with SMF 1.1 RC2 with Orstio Bridge 1.1.4 but if i try to go to my forum through thr bridge, my joomla site would appear in the shoutbox. But if i enter the forum normally (e.g. www.example.com/forums/index.php) this doesn't happen. Any idea how to fix this?
I really don't have an idea, because I never worked with the combination of SMF, Joomla and Orstio Bridge.
Title: Re: SMF Shoutbox
Post by: uptown on August 01, 2006, 03:38:55 AM
How to expand the shoutbox? after I edit some code, it become collapse by default.
Title: Re: SMF Shoutbox
Post by: Kettu on August 01, 2006, 03:55:06 AM
Quote from: uptown on August 01, 2006, 03:38:55 AM
How to expand the shoutbox? after I edit some code, it become collapse by default.
What have you changed?
Title: Re: SMF Shoutbox
Post by: tL0z on August 01, 2006, 05:02:52 AM
Quote from: tL0z on July 23, 2006, 06:44:14 AM
Can anyone please make and history for this shoutbox? Also, how can I give permission to a group to be able to delete shouts?
help
Title: Re: SMF Shoutbox
Post by: nermeen_elhelw on August 01, 2006, 09:12:26 AM
Quote from: Kettu on August 01, 2006, 03:24:05 AM
Quote from: nermeen_elhelw on July 30, 2006, 05:33:57 PM
hi again
i'm the one that was asking about the smilies of the shout box in the pnpn theme

ok i did what u posted, i added the code u provided in modifications.english.php
$txt['sbox_smilie01_file'] = 'sbox_funny.gif';
$txt['sbox_smilie02_file'] = 'sbox_grin.gif';
$txt['sbox_smilie03_file'] = 'sbox_laugh.gif';
$txt['sbox_smilie04_file'] = 'sbox_kiss.gif';
$txt['sbox_smilie05_file'] = 'sbox_smile.gif';
$txt['sbox_smilie06_file'] = 'sbox_yeah.gif';
$txt['sbox_smilie07_file'] = 'sbox_smoke.gif';
$txt['sbox_smilie08_file'] = 'sbox_hand.gif';
$txt['sbox_smilie09_file'] = 'sbox_cheerio.gif';
$txt['sbox_smilie10_file'] = 'sbox_oops.gif';
$txt['sbox_smilie11_file'] = 'sbox_church.gif';
$txt['sbox_smilie12_file'] = 'sbox_cry.gif';
$txt['sbox_smilie13_file'] = 'sbox_angry.gif';
$txt['sbox_smilie14_file'] = 'sbox_bad.gif';
$txt['sbox_smilie15_file'] = 'sbox_bang.gif';


, they now appear , thanks for that, but they are not clickable

any ideas??

Hi,
you have to add the whole part, not only the smilies. This was only an important part of the code for checking if the code was inserted. You have to add the whole code to modifications.english.php
//SMF Shoutbox
$txt['sbox_ModTitle'] = 'SMF Shoutbox';
$txt['sbox_Visible'] = 'Shoutbox is visible';
$txt['sbox_GuestAllowed'] = 'Guests are allowed to shout';
$txt['sbox_MaxLines'] = 'Maximum number of displayed lines';
$txt['sbox_Height'] = 'Shoutbox height';
$txt['sbox_SmiliesVisible'] = 'Smilie window is visible';
$txt['sbox_smilie01_text'] = 'blblbl!';
$txt['sbox_smilie02_text'] = 'grinning';
$txt['sbox_smilie03_text'] = 'laughing';
$txt['sbox_smilie04_text'] = 'kissing';
$txt['sbox_smilie05_text'] = 'smiling';
$txt['sbox_smilie06_text'] = 'thats okay!';
$txt['sbox_smilie07_text'] = 'smoking';
$txt['sbox_smilie08_text'] = 'greeting';
$txt['sbox_smilie09_text'] = 'cheerio!';
$txt['sbox_smilie10_text'] = 'oops';
$txt['sbox_smilie11_text'] = 'praying';
$txt['sbox_smilie12_text'] = 'crying';
$txt['sbox_smilie13_text'] = 'angry';
$txt['sbox_smilie14_text'] = 'baaaaaad';
$txt['sbox_smilie15_text'] = 'headbanging';
$txt['sbox_smilie01_code'] = ':frech:';
$txt['sbox_smilie02_code'] = ';-)';
$txt['sbox_smilie03_code'] = ':-]';
$txt['sbox_smilie04_code'] = ':-s';
$txt['sbox_smilie05_code'] = ':-)';
$txt['sbox_smilie06_code'] = ':-!';
$txt['sbox_smilie07_code'] = ':smoking:';
$txt['sbox_smilie08_code'] = ':greeting:';
$txt['sbox_smilie09_code'] = ':cheerio:';
$txt['sbox_smilie10_code'] = ':-O';
$txt['sbox_smilie11_code'] = ':praying:';
$txt['sbox_smilie12_code'] = ':crying:';
$txt['sbox_smilie13_code'] = ':-(';
$txt['sbox_smilie14_code'] = ':bad:';
$txt['sbox_smilie15_code'] = ':bang:';
$txt['sbox_smilie01_file'] = 'sbox_funny.gif';
$txt['sbox_smilie02_file'] = 'sbox_grin.gif';
$txt['sbox_smilie03_file'] = 'sbox_laugh.gif';
$txt['sbox_smilie04_file'] = 'sbox_kiss.gif';
$txt['sbox_smilie05_file'] = 'sbox_smile.gif';
$txt['sbox_smilie06_file'] = 'sbox_yeah.gif';
$txt['sbox_smilie07_file'] = 'sbox_smoke.gif';
$txt['sbox_smilie08_file'] = 'sbox_hand.gif';
$txt['sbox_smilie09_file'] = 'sbox_cheerio.gif';
$txt['sbox_smilie10_file'] = 'sbox_oops.gif';
$txt['sbox_smilie11_file'] = 'sbox_church.gif';
$txt['sbox_smilie12_file'] = 'sbox_cry.gif';
$txt['sbox_smilie13_file'] = 'sbox_angry.gif';
$txt['sbox_smilie14_file'] = 'sbox_bad.gif';
$txt['sbox_smilie15_file'] = 'sbox_bang.gif';
$txt['sbox_Monday'] = 'Monday';
$txt['sbox_Tuesday'] = 'Tuesday';
$txt['sbox_Wednesday'] = 'Wednesday';
$txt['sbox_Thurday'] = 'Thurday';
$txt['sbox_Friday'] = 'Friday';
$txt['sbox_Saturday'] = 'Saturday';
$txt['sbox_Sunday'] = 'Sunday';
$txt['sbox_KillShout'] = 'Dou you want to kill this shout?';
$txt['sbox_TextSize1'] = '1. Font size';
$txt['sbox_TextColor1'] = '1. Font color';
$txt['sbox_TextSize2'] = '2. Font size';
$txt['sbox_TextColor2'] = '2. Font color';
$txt['sbox_RefreshTime'] = 'Refresh time';
$txt['sbox_BackgroundColor'] = 'Background color';
$txt['sbox_FontFamily1'] = '1. Font family';
$txt['sbox_FontFamily2'] = '2. Font family';


Quote from: LazyBum on July 30, 2006, 10:20:25 PM
I have joomla 1.0.9 bridged with SMF 1.1 RC2 with Orstio Bridge 1.1.4 but if i try to go to my forum through thr bridge, my joomla site would appear in the shoutbox. But if i enter the forum normally (e.g. www.example.com/forums/index.php) this doesn't happen. Any idea how to fix this?
I really don't have an idea, because I never worked with the combination of SMF, Joomla and Orstio Bridge.


worked
thanks alot
  :D
Title: Re: SMF Shoutbox
Post by: Ehemm on August 02, 2006, 04:48:36 AM
Cool Mod.
Succesfull but don't know how to change the font size ?
Pls help ...  ;)
Title: Re: SMF Shoutbox
Post by: Kettu on August 02, 2006, 05:19:24 AM
Quote from: Ehemm on August 02, 2006, 04:48:36 AM
Cool Mod.
Succesfull but don't know how to change the font size ?
Pls help ...  ;)
This is easy. Go to the admin panel => Features and Options => SMF Shoutbox => 1. Font size and 2. Font size :D
Title: Re: SMF Shoutbox
Post by: MasterChief on August 04, 2006, 03:56:17 AM
Deep. I know what's the main problem.... I had problem, too as one guy more.... I had my forum wiped out... It reports error in line 3337 in Subs.php U HAVE REPLICATED THE TEXT!!!!!!!! U have 2 apsolutely the same syntax... Look


function sbox()
{
   global $sourcedir;

   include_once("$sourcedir/sbox.php");
   sbox_display();
}


function sbox()
{
   global $sourcedir;

   include_once("$sourcedir/sbox.php");
   sbox_display();
}


so i had to delete one and everything is fine now, but i get internal server error.... So i will do like u told everybody.... I' m a n00b in terms,, hope u understand me..
Title: Re: SMF Shoutbox
Post by: MasterChief on August 04, 2006, 03:57:24 AM
Deep. I know what's the main problem.... I had problem, too as one guy more.... I had my forum wiped out... It reports error in line 3337 in Subs.php U HAVE REPLICATED THE TEXT!!!!!!!! U have 2 apsolutely the same syntax... Look


function sbox()
{
   global $sourcedir;

   include_once("$sourcedir/sbox.php");
   sbox_display();
}


function sbox()
{
   global $sourcedir;

   include_once("$sourcedir/sbox.php");
   sbox_display();
}


so i had to delete one and everything is fine now, but i get internal server error.... So i will do like u told everybody.... I' m a n00b in terms,, hope u understand me..
Title: Re: SMF Shoutbox
Post by: mbirth on August 04, 2006, 05:36:43 AM
I got something for you.

I implemented the SMF Shoutbox into the SMF of my former school and added vast improvements. Now after contacting Deep, he asked me to continue support of sbox. I think I should be able to do this although please don't forget I'm doing this in my sparetime.

Nevertheless, after a coding night yesterday, I implemented most changes from Deep's 1.05 branch and some of the proposals I found here. The Changelog now reads like this (from 1.04):

+ sequential messages from one user have the same color
* character limit for one shout has been raised to 320 chars (like one long SMS ;-)
* displayed weekdays are now in the language the user has chosen in SMF and from SMF's language files
* sBox-time is kept in sync with SMF's time (including all timezone-stuff)
+ there's a bar displayed showing what's new since the last refresh
+ poster's name can be clicked to show his profile
+ your own nick is made bold and a sound is played on first occurence
+ sbox now uses SMF's smileys and BBCode, option in settings shows the smiley-row known from posting messages in SMF
+ HTML is now blocked
* now user's "Display Name"s are shown instead of usernames
* database now only stores User-ID, Unix-timestamp and message
x changed setup code to automagically find Settings.php (hopefully)
* rearranged stuff in template to use less room (set <form>-block margin to 0)
+ calculate /Sources/ directory dynamically from SMF setup

! There's some experimental code commented out - maybe someone will make it work some day. It's for showing who's viewing the shoutbox and for giving each user a specific unique distinguishable color.


Please note that I changed the database structure - but it should also work with the old one. Nevertheless you should uninstall the old version and install the new one.

Download the package from here (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.10.zip). Consider this as a beta-version since it's heavily modified and I am only able to test it on my clean experimental SMF and that one of my former school.


Cheers,
  -mARKUS

EDIT: Oh, and it now looks like this:
(http://files.birth-online.de/sbox_v1.10.jpg)
(And before anyone asks: The smiley-set is Logan which I made up of 'borrowed' smileys from here (http://addons.miranda-im.org/details.php?action=viewfile&id=2670).)
Title: Re: SMF Shoutbox
Post by: tL0z on August 05, 2006, 07:59:37 AM
Can anyone please make and history for this shoutbox? Also, how can I give permission to a group to be able to delete shouts?

Also, the shoutbox doesn't appear very well on opera and IE but its fine on Firefox. Take a look: www.NintendoPT.com/forum

Title: Re: SMF Shoutbox
Post by: mark25 on August 05, 2006, 09:11:29 AM
QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.36 Server at forum.mark25.uni.cc Port 80

help!  ???
Title: Re: SMF Shoutbox
Post by: mbirth on August 05, 2006, 09:15:16 AM
Internal Server Errors are caused by the Server software (mostly Apache), NOT by PHP scripts. Though there is a module for Apache called mod_security which sometimes produces Internal Server Errors, when it thinks, a script might be a security risk. I can only tell you to ask your hoster, sorry.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: mbirth on August 05, 2006, 09:53:43 AM
Quote from: tL0z on August 05, 2006, 07:59:37 AM
Can anyone please make and history for this shoutbox? Also, how can I give permission to a group to be able to delete shouts?

I don't see the reason for a history ... it's a simple shoutbox, no chat system. But since it should be relatively easy to implement, I'll see what I can do.

Permissions for deleting entries is one of the next things I will implement.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: Kettu on August 05, 2006, 10:21:28 AM
As already said a couple of times, the Internal Server Error is caused by a CHMod Problem. Change the CHMod of the sboxDB.php from 777 to 644.
Title: Re: SMF Shoutbox
Post by: mark25 on August 05, 2006, 11:58:32 AM
Quote from: Kettu on August 05, 2006, 10:21:28 AM
As already said a couple of times, the Internal Server Error is caused by a CHMod Problem. Change the CHMod of the sboxDB.php from 777 to 644.

thanks! its working now!  ;)
Title: Re: SMF Shoutbox
Post by: mbirth on August 05, 2006, 12:09:27 PM
Quote from: Kettu on August 05, 2006, 10:21:28 AMAs already said a couple of times, the Internal Server Error is caused by a CHMod Problem. Change the CHMod of the sboxDB.php from 777 to 644.

I rewrote the setup-script as proposed in the SMF Package SDK ... and I added a chmod(). Hope this will make things easier in the future.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: Balmung on August 05, 2006, 12:29:25 PM
Quote from: tL0z on August 05, 2006, 07:59:37 AM
Can anyone please make and history for this shoutbox? Also, how can I give permission to a group to be able to delete shouts?

Also, the shoutbox doesn't appear very well on opera and IE but its fine on Firefox. Take a look: www.NintendoPT.com/forum
You mean the Border around the iframe?

The Firefox shows standardly a border around an iframe with the optional Tag frameborder="1". The problem is that IE don't know this Tag, with frameborder="1" IE don't show any border.

Write this into the <iframe> Tag in sbox.template.php:<iframe... ... frameborder="0" style="border-width:2px; border-style:ridge;">

P.S. sorry for my bad english. :-\
Title: Re: SMF Shoutbox
Post by: tL0z on August 05, 2006, 01:53:24 PM
Here are some screenshots:

Firefox:

(http://img515.imageshack.us/img515/5523/shoutfirefoxfp9.jpg)

Opera:

(http://img319.imageshack.us/img319/3247/shoutoperasr6.jpg)

As you can see, the shouts aren't in the center in Opera.
Title: Re: SMF Shoutbox
Post by: mbirth on August 05, 2006, 02:54:59 PM
Quote from: tL0z on August 05, 2006, 01:53:24 PMAs you can see, the shouts aren't in the center in Opera.

Just centered the input line in the v1.10 beta.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: tL0z on August 05, 2006, 03:03:33 PM
That version isn't out yet right?
Title: Re: SMF Shoutbox
Post by: mbirth on August 05, 2006, 03:06:36 PM
Quote from: tL0z on August 05, 2006, 03:03:33 PMThat version isn't out yet right?

Take a look at this post (http://www.simplemachines.org/community/index.php?topic=76344.msg668579#msg668579).

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: tL0z on August 05, 2006, 03:19:25 PM
Eheh, it seems great, good job!  ;)
Should I unistall the current version first?
Title: Re: SMF Shoutbox
Post by: mbirth on August 05, 2006, 03:25:15 PM
Quote from: tL0z on August 05, 2006, 03:19:25 PMEheh, it seems great, good job!  ;)
Should I unistall the current version first?

I think so. Installing it over an old version would result in some weird things. So please remove the old version before installing the new one. :-)

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: littleone on August 05, 2006, 04:39:46 PM
Can you make your version to an upgrade mod?  I have lots of shouts and stuff and I would rather not delete it.  Is it possible to include an upgrade in your mod so that it can automatically adjust all the settings and databases as needed, so that I dont lose the shouts....

Also a history is a good thing.  Shout a forum only have 20 shouts then if someone is stupid it disappears to fast and the mods or admins might not have a chance to see it.  I have mine set to 200 lines which usually lasts about 12 to 18 hours which obviously gives us plenty of time, but I can see the need for a history ;)

Thanks
Title: Re: SMF Shoutbox
Post by: tL0z on August 05, 2006, 05:03:18 PM
I want the history for the same reason.

How can I hide the "refresh" button for the guests?

Also, there is a mistake in the portuguese translation, how can I correct it?
Title: Re: SMF Shoutbox
Post by: Kettu on August 06, 2006, 04:39:57 AM
Quote from: tL0z on August 05, 2006, 05:03:18 PM
Also, there is a mistake in the portuguese translation, how can I correct it?
Edit the modifications.portugese.php file.
Title: Re: SMF Shoutbox
Post by: mbirth on August 06, 2006, 05:37:31 AM
Quote from: littleone on August 05, 2006, 04:39:46 PMCan you make your version to an upgrade mod?  I have lots of shouts and stuff and I would rather not delete it.  Is it possible to include an upgrade in your mod so that it can automatically adjust all the settings and databases as needed, so that I dont lose the shouts....

No, I'm sorry, you'll loose at least all nicknames and times of the shouts. And writing something that converts this all would take me too much time. It's a shoutbox, not a super-nifty multi-chat-something! Don't forget that!


Quote from: littleone on August 05, 2006, 04:39:46 PMAlso a history is a good thing.  Shout a forum only have 20 shouts then if someone is stupid it disappears to fast and the mods or admins might not have a chance to see it.  I have mine set to 200 lines which usually lasts about 12 to 18 hours which obviously gives us plenty of time, but I can see the need for a history ;)

Quote from: tL0z on August 05, 2006, 05:03:18 PM
I want the history for the same reason.

This is something right on top of the list for 1.11.


Quote from: tL0z on August 05, 2006, 05:03:18 PMHow can I hide the "refresh" button for the guests?

Why do you want to do that? However, find this line (this is from the 1.10, should look somewhat different in older versions):

<a href="' . $sourceurl . '/sboxDB.php?" target="sboxframe"><img src="'.$imgdir.'sbox_refresh.gif" border="0" width="16" height="17" align="absmiddle" alt="' . $txt['sbox_Refresh'] . '" /></a>'

and move it to this place:

<?php
if ((!
$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1")) {
  echo '
         <input type="hidden" name="ts" value="'
.forum_time(true).'">
<a href="' 
$sourceurl '/sboxDB.php?" target="sboxframe"><img src="'.$imgdir.'sbox_refresh.gif" border="0" width="16" height="17" align="absmiddle" alt="' $txt['sbox_Refresh'] . '" /></a>
<input class="windowbg2" type="text" name="sboxText" size="100" maxlength="320" />&nbsp;<input type="submit" class="input" value="&nbsp;shout&nbsp;" />'
;
}
?>


Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: denislici on August 06, 2006, 06:47:08 AM

i installed the fist shoutbox but there is no shoutbox table... i mean the shoutbox is but not its table, here is http://image05.resimlerim.us/files/1/3d132f2d-Untitled-2_copy.jpg .... and how can i add smileys ???
Title: Re: SMF Shoutbox
Post by: mbirth on August 06, 2006, 05:57:13 PM
I - again - was in some hacking mood today so I implemented the HISTORY-feature.

Download here (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.10.zip)

See old changes here (http://www.simplemachines.org/community/index.php?topic=76344.msg668579#msg668579).

New changes:
* rewrote setup like in SMF's package SDK and also made it use db_query()
+ added CHMOD of sboxDB.php to 644 as some servers set it to 755 which leads to Internal Server Errors
* added frameborder="0" and a style-definition to show an own border
x JavaScript tried to set timestamp even if there was no input field in parent window ~~> lead to error message in MSIE
* moved collapsing-JavaScript to sbox.template.php (one file less to be changed by package manager)
x fixed selectable font-sizes (were "xp" instead of "px", changed them to point(pt) though)
+ added BBCode-option in settings
+ added option to switch off sbox completely for Guests
* centered input area so that the Refresh-button is also centered for Guests
+ added History-option in settings, but no code to handle it for now
+ added basic history feature with locked filewrite into .html-file
! Only Admins can see the link to history file for now - but it's readable for everyone


Have fun testing it!

Cheers,
  -mARKUS

Title: Re: SMF Shoutbox
Post by: boolprop_net on August 06, 2006, 11:43:04 PM
Quote from: mbirth on August 04, 2006, 05:36:43 AM
I got something for you.

I implemented the SMF Shoutbox into the SMF of my former school and added vast improvements. Now after contacting Deep, he asked me to continue support of sbox. I think I should be able to do this although please don't forget I'm doing this in my sparetime.

Does this have to be done manually because it won't work through the Package Manager?

SMF v1.0.7
Title: Re: SMF Shoutbox
Post by: mbirth on August 07, 2006, 02:49:09 AM
Quote from: boolprop_net on August 06, 2006, 11:43:04 PMDoes this have to be done manually because it won't work through the Package Manager?

SMF v1.0.7

It's for SMF 1.1rc2 and there is no version for 1.0.7.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: Piwaille on August 07, 2006, 05:27:57 PM
hello

I've just been spammed :(

so ... it is possible to put html codes into the shoutbox....
so a robot (I think it is one) filed my shoutbox with spam <A ....><img ></A>

I could put the function htmlentities in order to (at least) translate the < > into &lt; and &gt;
but I would rather put something to simply avoid every hmtl code....
If I find a solution, I will post it here... but if someone has got the solution It would be nice If you could post it (and It would be a great idea to changed the shoutbox in the next version)

PS: While I was writing... maybe one solution would be to put an other code for visitors (like CAPTCHA ) ?
Title: Re: SMF Shoutbox
Post by: Kettu on August 08, 2006, 01:28:10 AM
Deep published a code to add to avoid html.
QuoteAttention please
After you have installed the shoutbox please modify the file sboxDB.php.

Please search for
// handle spacial characters
$content=addslashes($content);



and replace this with
// handle special characters
$content=addslashes($content);

// enquote html and script code to avoid html/javascript injection
$content = htmlentities($content, ENT_QUOTES);


This modification will prevent your shoutbox from being injected with html code and javascript code.

Another way to be saved from bots is to deactivate guests for shouting.
Title: Re: SMF Shoutbox
Post by: mbirth on August 08, 2006, 01:55:12 AM
Quote from: piwaille on August 07, 2006, 05:27:57 PMI've just been spammed :(

Besides doing these changes mentioned by Kettu, you could also try the latest testing version as there are lots of new features including the htmlentities()-thing.


Quote from: piwaille on August 07, 2006, 05:27:57 PMPS: While I was writing... maybe one solution would be to put an other code for visitors (like CAPTCHA ) ?

Usual CAPTCHAs are easily breakable, as you can read on the Wikipedia-page (http://en.wikipedia.org/wiki/Captcha). If the spam rate doesn't increase, I see no need for such things. But maybe I will implement something so that Guests aren't allowed to post links or BBCode at all.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: MIKESS.COM on August 08, 2006, 07:35:03 AM
Can this mods be install on SMF 1.0.7 ?
Title: Re: SMF Shoutbox
Post by: mbirth on August 08, 2006, 07:40:38 AM
Quote from: kontol on August 08, 2006, 07:35:03 AM
Can this mods be install on SMF 1.0.7 ?

PLEASE, open your eyes. The answer is just 4 posts above (http://www.simplemachines.org/community/index.php?topic=76344.msg672312#msg672312) your question.

There's no version for 1.0.7 and I think there will never be one. Why don't you upgrade to SMF 1.1rc2?

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: tL0z on August 08, 2006, 08:27:39 AM
I've installed the new version. There is a bug (also in the old one). The font size is not the same for Firefox and Opera. The Opera fonts are bigger. For ex: the Firefox's smal font size is the Opera's medium font size.

Also, I noticed today that when there is a new shout the window pops-up and there is a sound. How can I avoid this?

Could you please give me the name of the new "text variables" so I can modify my modifications.portuguese.php file?
Title: Re: SMF Shoutbox
Post by: mbirth on August 08, 2006, 08:59:55 AM
Quote from: tL0z on August 08, 2006, 08:27:39 AMI've installed the new version. There is a bug (also in the old one). The font size is not the same for Firefox and Opera. The Opera fonts are bigger. For ex: the Firefox's smal font size is the Opera's medium font size.

It's not a bug, it's a feature. ;-) Just select one of the fixed font-sizes in the SMF settings. ("8pt" should be nice.)

Quote from: tL0z on August 08, 2006, 08:27:39 AMAlso, I noticed today that when there is a new shout the window pops-up and there is a sound. How can I avoid this?

Just made that switchable in Sbox-Options... Download (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.10.zip) the newest version and install it. (Uninstall old one first!)


Quote from: tL0z on August 08, 2006, 08:27:39 AMCould you please give me the name of the new "text variables" so I can modify my modifications.portuguese.php file?

Look into Modifications.english.php and search for "$txt['sbox_". Do the same with Help.english.php and "$helptxt['sbox_" and add these variables to your Help.portuguese.php.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: denislici on August 08, 2006, 09:13:36 AM
Quote from: denislici on August 06, 2006, 06:47:08 AM

i installed the fist shoutbox but there is no shoutbox table... i mean the shoutbox is but not its table, here is http://image05.resimlerim.us/files/1/3d132f2d-Untitled-2_copy.jpg .... and how can i add smileys ???
Title: Re: SMF Shoutbox
Post by: Piwaille on August 08, 2006, 11:30:30 AM
Hello !

Will the new version be on the SMF official pages ?
cause when I search it... they still propose the 1.04

:( It's useless to have a nice mod manager able to detect updates... if updates are not publiched :'(<
Title: Re: SMF Shoutbox
Post by: littleone on August 08, 2006, 05:18:31 PM
Suggestion:

All Admins and Mods to be able to delete shouts (I have this manually now) but it would be nice to see this option via the permissions...

Also how about the ability for mods and admins to edit shouts?  This would certainly be nice (or even allow members to do this, like by editting an [EDIT] by default behind all the shouts (but only mods/admins can see them on all shouts, and then the members can see it on their own shouts only.

Just some suggestions and I think this is about all this mod is still lacking.
Title: Re: SMF Shoutbox
Post by: tL0z on August 09, 2006, 06:28:00 AM
Quote from: mbirth on August 08, 2006, 08:59:55 AM
Quote from: tL0z on August 08, 2006, 08:27:39 AMAlso, I noticed today that when there is a new shout the window pops-up and there is a sound. How can I avoid this?
Just made that switchable in Sbox-Options... Download (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.10.zip) the newest version and install it. (Uninstall old one first!)
I've installed the lastest version but there isn't anything about that in the admin panel.
Title: Re: SMF Shoutbox
Post by: mbirth on August 09, 2006, 06:42:10 AM
Quote from: tL0z on August 09, 2006, 06:28:00 AMI've installed the lastest version but there isn't anything about that in the admin panel.

Maybe clear your browser's cache and redownload the package. The checkbox should be right below the font-settings.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: haeggar99 on August 10, 2006, 06:47:42 AM
Your modification of Deeps shoutbox works like a charm. Awesome job on that, Markus - thanks a lot  :)
Title: Re: SMF Shoutbox
Post by: Piwaille on August 10, 2006, 07:07:17 AM
Hello

I've jsut upgraded to 1.10...
I just can say "wow". What a nice job ;D
Title: Re: SMF Shoutbox
Post by: mbirth on August 10, 2006, 07:41:13 AM
Quote from: denislici on August 06, 2006, 06:47:08 AMi installed the fist shoutbox but there is no shoutbox table... i mean the shoutbox is but not its table, here is http://image05.resimlerim.us/files/1/3d132f2d-Untitled-2_copy.jpg .... and how can i add smileys ???

Sorry, I don't get it what you mean. The screenshot looks fine to me. And you can add smileys in the new version 1.10 (Download here (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.10.zip)) using SMF's built-in smiley manager.


Quote from: piwaille on August 08, 2006, 11:30:30 AMWill the new version be on the SMF official pages ?
cause when I search it... they still propose the 1.04

:( It's useless to have a nice mod manager able to detect updates... if updates are not publiched :'(<

There are so many new features that I wanted some feedback before releasing the new version to the rest of the world. Looks like I can post it to the official package manager soon.


Quote from: littleone on August 08, 2006, 05:18:31 PMAll Admins and Mods to be able to delete shouts (I have this manually now) but it would be nice to see this option via the permissions...

I'm trying to keep the count of need-to-be-changed-files as low as possible. Adding an extra permission just for this would be a bit too much. But maybe I'll add some field to the Sbox-Options where you can enter User-IDs who are permitted to delete shouts.
Also I'm thinking about a similar thing to disable BBCode-parsing for some people...


Quote from: littleone on August 08, 2006, 05:18:31 PMAlso how about the ability for mods and admins to edit shouts?  This would certainly be nice (or even allow members to do this, like by editting an [EDIT] by default behind all the shouts (but only mods/admins can see them on all shouts, and then the members can see it on their own shouts only.

Why? It's a shoutbox. It's for some smaller chats and mostly "Hello world!"-messages. You also cannot edit messages you sent via ICQ or MSN ... can you? ;-)


Quote from: haeggar99 on August 10, 2006, 06:47:42 AMYour modification of Deeps shoutbox works like a charm. Awesome job on that, Markus - thanks a lot  :)
Quote from: piwaille on August 10, 2006, 07:07:17 AMI've jsut upgraded to 1.10...
I just can say "wow". What a nice job ;D

Thanks a lot. I'm giving my best... ;-)

Cheers,
  -mARKUS



EDIT: I just posted the new version to the package directory: here (http://mods.simplemachines.org/index.php?mod=412).
Title: Re: SMF Shoutbox
Post by: Piwaille on August 10, 2006, 08:10:19 AM
hello once again

I've got just one litlle question... (I may have not understand the way it function)

Just after having installed it, i've made some tries...
one my forum (with default font colors : #000000 and #476c8e )(I havant changed it yet) when I post a kink (using the BBCode url)... it hard to see the link ...

So I've tried to change the CSS defintion of A into the sboxDB.php from
A {
      text-decoration: none;
    }

to
A {
      color: #FFFF00;
    }


I've tried several combinaison for my new definition of A , refreshing between each trie

so my question : how do I change CSS définition ? (for the text inside the shoutbox)
what do I do wrong ??
Title: Re: SMF Shoutbox
Post by: tL0z on August 10, 2006, 08:13:40 AM
Quote from: mbirth on August 09, 2006, 06:42:10 AM
Quote from: tL0z on August 09, 2006, 06:28:00 AMI've installed the lastest version but there isn't anything about that in the admin panel.

Maybe clear your browser's cache and redownload the package. The checkbox should be right below the font-settings.

Cheers,
  -mARKUS

The package is right because it as the new features like the history. I've cleared the cache but there isn't still nothing about that.
Title: Re: SMF Shoutbox
Post by: mbirth on August 10, 2006, 08:35:37 AM
Quote from: piwaille on August 10, 2006, 08:10:19 AMJust after having installed it, i've made some tries...
one my forum (with default font colors : #000000 and #476c8e )(I havant changed it yet) when I post a kink (using the BBCode url)... it hard to see the link ...

...

so my question : how do I change CSS définition ? (for the text inside the shoutbox)
what do I do wrong ??

Try this:

    DIV.EvenLine A[target="_blank"], DIV.OddLine A[target="_blank"] {
      text-decoration: none;
      color: blue;
    }


Looks like the DIV takes precedence over the A ... so you have to specify, that you mean links inside these DIVs. And to not also make the links to the userprofiles blue, I only selected links which open in a new window.

I think I'll leave that code so that it appears in the next version.


Quote from: tL0z on August 10, 2006, 08:13:40 AM
Quote from: mbirth on August 09, 2006, 06:42:10 AM
Quote from: tL0z on August 09, 2006, 06:28:00 AMI've installed the lastest version but there isn't anything about that in the admin panel.
Maybe clear your browser's cache and redownload the package. The checkbox should be right below the font-settings.
The package is right because it as the new features like the history. I've cleared the cache but there isn't still nothing about that.

History feature was added before the "Sound"-checkbox. Nevertheless, my package here (http://mods.simplemachines.org/index.php?mod=412) definately contains the new option.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: Piwaille on August 10, 2006, 08:59:02 AM
thanks a lot... I will try (but I don't worry... it should work)

for tl0z : maybe you use an other language (than english) ?
so you have to add the rights translation (or at least txt) from themdir/default/language/Modification.english.php to your langage file

tip for -mARKUS : If you séparate your language files, we could give you translation (for me into french) quite simply ?
it's not very difficult but it's could be helpfull ?
Title: Re: SMF Shoutbox
Post by: littleone on August 10, 2006, 07:50:08 PM
is there a way to make the history visible to everyone? but not the "Clear History" part?

just wondering.  This is fanastic.  I just upgraded to the 1.10 for 1.04, its great!
Title: Re: SMF Shoutbox
Post by: littleone on August 10, 2006, 08:02:55 PM
Quote from: Deep on May 21, 2006, 08:02:20 AM
Quote from: littleone
Id also like to see membergroup specific permissions so that I can grant my moderators the ability to delete shouts.
I am sorry, but i do not have the time to do that.
I have no experience with this part of SMF.
I can not guarantee that it works, but if you want all moderators to be able to delete shouts, try to replace in sboxDB.php any occurany of:

$context['user']['is_admin']


with:

allowedTo('moderate_forum')


This used to work before.  I tried it again on the 1.10 and it didnt work, was wondering if you could tell me what will work for my personal preferences.  My forum is entirely to large and I cant be around 24/7 so I need my mods to be able to delete shouts (should the need arise).  Thanks
Title: Re: SMF Shoutbox
Post by: tL0z on August 11, 2006, 08:20:32 AM
The link (http://mods.simplemachines.org/index.php?action=download;mod=412;id=17722) for download doesn't work  ::)
Title: Re: SMF Shoutbox
Post by: MrsZippy on August 11, 2006, 03:41:32 PM
Hello  :) I'm new to SMF, kinda stumbled across it by accident but have decided to give it a trial. Have been using PhpBB2 for a while and have just got the shoutbox working on there.

I'm trying to install this shoutbox on the SMF board that we're trialing but keep getting this error when trying to install it via the package manager
QuoteSorry, but the SMF Shoutbox Mod doesn't support your SMF version!

Any ideas as to what we're doing wrong  :(
Title: Re: SMF Shoutbox
Post by: tL0z on August 11, 2006, 04:48:25 PM
The shoutbox is only compatible with SMF 1.1 RC2. You are using another version.
Title: Re: SMF Shoutbox
Post by: aghahamidgol on August 12, 2006, 10:12:02 AM
i translated this mod to persian can you add this file to your download center of shoutbox under german lang?

this is that file :
http://mods.simplemachines.org/index.php?mod=415
Title: Re: SMF Shoutbox
Post by: shaglaptop on August 12, 2006, 02:55:33 PM
QuoteEDIT: I just posted the new version to the package directory: here (http://mods.simplemachines.org/index.php?mod=412).

Hey, just letting you know that for some reason, the mod's section don't like what you've added.  Also, awsome mod! I just hope it stays simple!  Too many mods seem to become beasts after a while.

Title: Re: SMF Shoutbox
Post by: littleone on August 12, 2006, 11:16:53 PM
(http://img151.imageshack.us/img151/3120/1he4.png)
Title: Re: SMF Shoutbox
Post by: Assistance on August 13, 2006, 06:57:45 AM

may want to have permissions for it? for user groups
Title: Re: SMF Shoutbox
Post by: kvanorsdel on August 13, 2006, 05:06:06 PM
This is exactly what I have been looking for, but it is also my first Mod so where do I install the files? so I can get it up and running.  I can foloow the place this code here and that code there but I can't seem to find where I need to place the initial files.

Thanks
Title: Re: SMF Shoutbox
Post by: Joshsux on August 13, 2006, 10:54:06 PM
Quote from: kvanorsdel on August 13, 2006, 05:06:06 PM
This is exactly what I have been looking for, but it is also my first Mod so where do I install the files? so I can get it up and running.  I can foloow the place this code here and that code there but I can't seem to find where I need to place the initial files.

Thanks

If your using the default forum just download the zip for this mod don't extract it but then go into your admin section of your site, go to packages right up the top box click new packages, then click the browse packages, locate the zip upload it then click "install mod"

That will automaticly place the  files in the right spot and edit the correct files for the default theme, "As long as you set the correct permissions for the files" but it will show a test failed or error if that happens.
Title: Re: SMF Shoutbox
Post by: icman on August 14, 2006, 12:58:05 PM
what is mod name for best of chat

PS.: Sorry for my poor english.
Title: Re: SMF Shoutbox
Post by: tutorialwizard on August 20, 2006, 12:44:16 AM
How do you resize the width on this??
Title: Re: SMF Shoutbox
Post by: littleone on August 20, 2006, 12:09:32 PM
Quote from: tutorialwizard on August 20, 2006, 12:44:16 AM
How do you resize the width on this??

Admin >> Features and Options >> SMF Shoutbox
Title: Re: SMF Shoutbox
Post by: mbirth on August 20, 2006, 01:13:00 PM
Quote from: piwaille on August 10, 2006, 08:59:02 AMtip for -mARKUS : If you séparate your language files, we could give you translation (for me into french) quite simply ?
it's not very difficult but it's could be helpfull ?

I just uploaded the German language-pack to the Mod-Page (http://mods.simplemachines.org/index.php?mod=412). Download it there, unpack it and take a look at the sbox_11rc2_german.mod. Just translate the strings there and send the file to me. If I find some time, I'll then upload the language pack.


Quote from: littleone on August 10, 2006, 07:50:08 PMis there a way to make the history visible to everyone? but not the "Clear History" part?

Somehow I knew this would come ... :-)

Oben sboxDB.php and find these lines:
<?php
  
if ($modSettings['sbox_DoHistory'] == '1') {
    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 clearYesNo();">' $txt['sbox_HistoryClear'] . '</a>]';
    } else {
      echo 
'[' $txt['sbox_HistoryNotFound'] . ']';
    }
  }
?>


Now switch the "if (file_exists(..." with the next line and voilà. Should look like this:

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



Quote from: shaglaptop on August 12, 2006, 02:55:33 PMAlso, awsome mod! I just hope it stays simple!  Too many mods seem to become beasts after a while.

I'm trying to keep it somewhat simple ... but it's not easy as many people want an "eierlegende Wollmilchsau (http://forum.wordreference.com/showthread.php?t=52187)"...


Quote from: tutorialwizard on August 20, 2006, 12:44:16 AMHow do you resize the width on this??

The WIDTH should be 100% of available space. Your browser is responsible for displaying everything correctly. However, you can change the HEIGHT in pixels in the SMF Settings.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: tutorialwizard on August 20, 2006, 03:08:30 PM
well my forum doesnt take up all of the space in the browser so the shoutbox that is 100% of the width looks very out of place...
Title: Re: SMF Shoutbox
Post by: mbirth on August 20, 2006, 03:15:25 PM
Quote from: tutorialwizard on August 20, 2006, 03:08:30 PM
well my forum doesnt take up all of the space in the browser so the shoutbox that is 100% of the width looks very out of place...

Just make a table around the sbox-part in your template ... something like this:

<?php
echo '<table border=0 cellspacing=0 cellpadding=0 width="80%"><tr><td>';
  
// display shoutbox
  
if (function_exists('sbox')) sbox();
echo 
'</td></tr></table>';
?>


This way you force the sbox to the width of the parent object.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: tutorialwizard on August 20, 2006, 03:44:24 PM
Okay I get the concept just the codes not right lol.





Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/Black_Gaming/index.template.php on line 246


245: <?php

246: echo '<table border=0 cellspacing=0 cellpadding=0 width="80%"><tr><td>';

247:   // display shoutbox
248:   if (function_exists('sbox')) sbox();
249: echo '</td></tr></table>';
250: ?>


Thanks for the help  :D.
Title: Re: SMF Shoutbox
Post by: mbirth on August 20, 2006, 03:48:19 PM
Quote from: tutorialwizard on August 20, 2006, 03:44:24 PMOkay I get the concept just the codes not right lol.

Remove the <?php and the ?> .... they are only for making SMF syntax highlight the code here...

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: tutorialwizard on August 20, 2006, 04:20:38 PM
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/Black_Gaming/index.template.php on line 245


245: echo '<table border=0 cellspacing=0 cellpadding=0 width="80%"><tr><td>';

246:   // display shoutbox
247:   if (function_exists('sbox')) sbox();
248: echo '</td></tr></table>';
249:



still an error with the '/; if i take out either one i get an error on a different section
Title: Re: SMF Shoutbox
Post by: mbirth on August 20, 2006, 04:25:14 PM
Quote from: tutorialwizard on August 20, 2006, 04:20:38 PMParse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/Black_Gaming/index.template.php on line 245

Sounds almost like you inserted the code into a string ... so try to insert '; between line 244 and 245. And omit the '; in line 249. Should look like this:

245: ';
246: echo '<table border=0 cellspacing=0 cellpadding=0 width="80%"><tr><td>';

247:   // display shoutbox
248:   if (function_exists('sbox')) sbox();
249: echo '</td></tr></table>
250:

If it still doesn't work, please post 5 lines before and 5 lines past the place where you wanted to insert the sbox.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: tutorialwizard on August 20, 2006, 04:36:58 PM
Parse error: syntax error, unexpected '<' in .../Themes/Black_Gaming/index.template.php on line 241

235: ';
236: echo '<table border=0 cellspacing=0 cellpadding=0 width="80%"><tr><td>';
237:   // display shoutbox
238:   if (function_exists('sbox')) sbox();
239: echo '</td></tr></table>';
240:

241: <!-- BEGIN content sections -->

242: <table width="1000" border="0" cellpadding="0" cellspacing="0">


Haha well I got past that part, just now theres a problem in 241...
Title: Re: SMF Shoutbox
Post by: mbirth on August 20, 2006, 04:40:10 PM
Quote from: tutorialwizard on August 20, 2006, 04:36:58 PMHaha well I got past that part, just now theres a problem in 241...

Quote from: mbirth on August 20, 2006, 04:25:14 PMSounds almost like you inserted the code into a string ... so try to insert '; between line 244 and 245. And omit the '; in line 249.

This is your line 239 now... omit the '; at the end of that line.

Cheers,
  -mARKUS

P.S.: I guess you should learn some PHP basics .... ;-)
Title: Re: SMF Shoutbox
Post by: tutorialwizard on August 20, 2006, 04:44:56 PM
Ahh there we go thanks so much...

and yeah I probably so much
Title: Re: SMF Shoutbox
Post by: guillaumelafont on August 21, 2006, 10:32:21 AM
Hello everybody,

I've just translated to french (francais) this great and very simple chatbox.
I've modified the .mod file insertSmilie function so it's working now with Mozilla :
if (browserInternetExplorer && platformWindows && (parseInt(navigator.appVersion) >= 2))
Title: Re: SMF Shoutbox
Post by: littleone on August 21, 2006, 10:59:42 AM
Quote from: mbirth on August 20, 2006, 01:13:00 PM
Quote from: littleone on August 10, 2006, 07:50:08 PMis there a way to make the history visible to everyone? but not the "Clear History" part?

Somehow I knew this would come ... :-)

Oben sboxDB.php and find these lines:
<?php
  
if ($modSettings['sbox_DoHistory'] == '1') {
    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 clearYesNo();">' $txt['sbox_HistoryClear'] . '</a>]';
    } else {
      echo 
'[' $txt['sbox_HistoryNotFound'] . ']';
    }
  }
?>


Now switch the "if (file_exists(..." with the next line and voilà. Should look like this:

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

This didnt quite work because its setting under the if user is an admin in the coding....
Title: Re: SMF Shoutbox
Post by: littleone on August 21, 2006, 11:23:41 AM
Quote from: littleone on August 10, 2006, 08:02:55 PM
Quote from: Deep on May 21, 2006, 08:02:20 AM
Quote from: littleone
Id also like to see membergroup specific permissions so that I can grant my moderators the ability to delete shouts.
I am sorry, but i do not have the time to do that.
I have no experience with this part of SMF.
I can not guarantee that it works, but if you want all moderators to be able to delete shouts, try to replace in sboxDB.php any occurany of:

$context['user']['is_admin']


with:

allowedTo('moderate_forum')


This used to work before.  I tried it again on the 1.10 and it didnt work, was wondering if you could tell me what will work for my personal preferences.  My forum is entirely to large and I cant be around 24/7 so I need my mods to be able to delete shouts (should the need arise).  Thanks
something like this possible?
Title: Re: SMF Shoutbox
Post by: littleone on August 21, 2006, 12:18:37 PM
Quote from: littleone on August 12, 2006, 11:16:53 PM
(http://img151.imageshack.us/img151/3120/1he4.png)

any clue was to what this might be?

Anyone else having this problem?
Title: Re: SMF Shoutbox
Post by: mbirth on August 22, 2006, 03:14:06 AM
Quote from: littleone on August 21, 2006, 10:59:42 AMThis didnt quite work because its setting under the if user is an admin in the coding....

This was an untested quickhack .... but I'll implement this soon so be a bit patient and there will be a checkbox in the SMF settings to let Global Mods erase shouts, too.


Quote from: littleone on August 21, 2006, 12:18:37 PMany clue was to what this might be?

Looks to me as if Internet Explorer is somewhat supercautious not letting the IFRAME access an INPUT-element of the parent frame. I used this for this nifty "new shouts are above this line"-thing. Would be interesting to know if you have some special security settings or if this also occurs with standard MSIE settings...

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: ubergeek on August 22, 2006, 03:57:31 AM
just a little heads up... seems after i upgraded from 1.1 rc2 to rc3, my shoutbox
no longer works
Title: Re: SMF Shoutbox
Post by: JonoJames on August 22, 2006, 09:36:17 AM
Also looking for a fix :<
Title: Re: SMF Shoutbox
Post by: littleone on August 22, 2006, 11:19:08 AM
Quote from: mbirth on August 22, 2006, 03:14:06 AM
Quote from: littleone on August 21, 2006, 10:59:42 AMThis didnt quite work because its setting under the if user is an admin in the coding....

This was an untested quickhack .... but I'll implement this soon so be a bit patient and there will be a checkbox in the SMF settings to let Global Mods erase shouts, too.


Quote from: littleone on August 21, 2006, 12:18:37 PMany clue was to what this might be?

Looks to me as if Internet Explorer is somewhat supercautious not letting the IFRAME access an INPUT-element of the parent frame. I used this for this nifty "new shouts are above this line"-thing. Would be interesting to know if you have some special security settings or if this also occurs with standard MSIE settings...

Cheers,
  -mARKUS


Ok sounds good on the check box thing ;)  I tried for like an hour to play with the coding and could absolutely get no where, so I made an effort :)  Not sure 100% how you would go about this but you might want to consider making it so that if they have the permission to "Moderate Forum" then they can moderate the shout box (this might be what you meant with global mods ;) )  Thanks again

As far as the IE issue, I am not 100%, but someone else mentioned it to.  Your smart than me so I rest assured you will figure it out
Title: Re: SMF Shoutbox
Post by: JonoJames on August 22, 2006, 02:11:22 PM

Anyone found a fix for this at all? Forum users being impatient as usual ;/
Title: Re: SMF Shoutbox
Post by: tL0z on August 22, 2006, 05:54:55 PM
Is the mod compatible with SMF 1.1 RC3?
Title: Re: SMF Shoutbox
Post by: JonoJames on August 22, 2006, 07:00:23 PM
Not atm, you get an error when you try to use it :(

Waiting for a fix as i don't know php enough to fix it myself.
Title: Re: SMF Shoutbox
Post by: capierno on August 22, 2006, 09:47:36 PM
Anyone have a fix to this yet? I'm looking forward to using this. :)
Title: Re: SMF Shoutbox
Post by: mbirth on August 23, 2006, 03:46:06 AM
Okay guys, sbox v1.12 is now in the repository. Get it HERE (http://mods.simplemachines.org/index.php?mod=412). Oh and btw: Can anyone tell me how to get this mod approved by the SMF team?

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: JonoJames on August 23, 2006, 06:28:29 AM
Thanks Mbirth, hurry up and approve SMF Team!
Title: Re: SMF Shoutbox
Post by: JonoJames on August 23, 2006, 06:46:00 AM
mbirth is it possible you can send me a link to your mod? rather than wait for smf to approve.
Title: Re: SMF Shoutbox
Post by: mbirth on August 23, 2006, 06:56:41 AM
Quote from: JonoJames on August 23, 2006, 06:46:00 AMmbirth is it possible you can send me a link to your mod? rather than wait for smf to approve.

That's a point! ~~> DOWNLOAD (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.12.zip).

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: JonoJames on August 23, 2006, 07:05:37 AM
Thanks ! :D
Title: Re: SMF Shoutbox
Post by: N3lson on August 23, 2006, 07:07:34 AM
and for 1.11 please?

I don´t  want to upgrade until have  all the mods updated...
Thanks
Title: Re: SMF Shoutbox
Post by: JonoJames on August 23, 2006, 07:48:25 AM
nice update mbirth, but i don't like the green bar after u type a message. Any chance u can tell me how to get rid of it? :)
Title: Re: SMF Shoutbox
Post by: mbirth on August 23, 2006, 11:18:25 AM
Quote from: N3lson on August 23, 2006, 07:07:34 AMand for 1.11 please?

Errm .... 1.11 is superseded by 1.12.


Quote from: JonoJames on August 23, 2006, 07:48:25 AMnice update mbirth, but i don't like the green bar after u type a message. Any chance u can tell me how to get rid of it? :)

QuickFix: Find this line in Sources/sboxDB.php:
        echo '<hr>' . "\n";


and comment it out like that:
//        echo '<hr>' . "\n";


I think I'll add another checkbox to the settings.... ;-)

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: N3lson on August 23, 2006, 12:39:23 PM
Ok, nice i instaled the 1.10 but one thing i want to change ... if you can help me.
The smileys of my fórum , they are big  becasue i use the 3d smileys, but i don´t want to use these smileys in the shout.
I´d like to use the small ones like the SMF Shoutbox it had the own smilyes set.
Can this be done » Use a Own smileys set to shoutbox independent of the smileys set of the fórum?
Title: Re: SMF Shoutbox
Post by: RubyNut on August 23, 2006, 05:25:03 PM
Looks Good
Title: Re: SMF Shoutbox
Post by: capierno on August 23, 2006, 06:38:53 PM
I can't get it to show up on my forum's skin. Is there something I have to do?

I'm not using the default skin, and it's only showing up there.

=\

http://ussdevestator.bravohost.org/forum


Also uh, anyway I can move it to the bottom of the forum?
Title: Re: SMF Shoutbox
Post by: JonoJames on August 23, 2006, 09:16:54 PM
You need to edit boardindex.template.php and add the following line

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

for example i added it above the news fader

// display shoutbox
  if (function_exists('sbox')) sbox();
   // Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context
              ['fader_news_lines']))


hope this helps
Title: Re: SMF Shoutbox
Post by: mbirth on August 24, 2006, 04:37:29 AM
Quote from: N3lson on August 23, 2006, 12:39:23 PMThe smileys of my fórum , they are big  becasue i use the 3d smileys, but i don´t want to use these smileys in the shout.
I´d like to use the small ones like the SMF Shoutbox it had the own smilyes set.
Can this be done » Use a Own smileys set to shoutbox independent of the smileys set of the fórum?

Since the smiley-set for the sbox is loaded using standard SMF functions, there's no way to specify a special set. This way each user can have his preferred set of smileys throughout the whole SMF. But you can disable the display of the smiley row ... smileys will still work. Most users should know the main smileys by heart anyway.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: N3lson on August 24, 2006, 05:05:24 AM
Ok but the smileys set i use are big look
(http://www.phoenixdigital.org/forum/Smileys/classic/hehehe.gif)

And in the shout box look bad
Title: Re: SMF Shoutbox
Post by: Kettu on August 24, 2006, 06:54:54 AM
Quote from: N3lson on August 24, 2006, 05:05:24 AM
Ok but the smileys set i use are big look
(http://www.phoenixdigital.org/forum/Smileys/classic/hehehe.gif)

And in the shout box look bad
Maybe there is a way to modify deeps shoutbox for RC3 and offer this one for people who'd like to use a shoutbox-smiley-set. Markus?
Title: Re: SMF Shoutbox
Post by: karras.us on August 24, 2006, 08:01:11 AM
Just something small for v1.12, but...

in - Themes/default/languages/sbox.english.php

Find:
$txt['sbox_KillShout'] = 'Dou you want to kill this shout?';

Replace with:
$txt['sbox_KillShout'] = 'Do you want to kill this shout?';

There was a "u" in "Do".  :)

Love the Mod, thank you!
Title: Re: SMF Shoutbox
Post by: WoWsagele on August 24, 2006, 09:08:21 AM
Sorry for my bad english :)

My forum is 1.1RC3 mod shoutbox 1.12

my error is

QuoteErreur de base de données
Unknown column 'sb.ID_MEMBER' in 'on clause'
Fichier: /home/quebecwe/public_html/forum/Sources/sboxDB.php
Ligne: 235

What is the problem. ???
Title: Re: SMF Shoutbox
Post by: fritpa on August 24, 2006, 02:18:23 PM
I've this for the 1.1RC2 i want to upgrade to 1.1 RC3 this mod still works with RC3?

Thanks.
Title: Re: SMF Shoutbox
Post by: Alt-Ctrl on August 24, 2006, 03:03:05 PM
Great mod.

I started on my first site ever this week, and I've allready managed to install a portal and this forum with several mods.

I have only two questions. Is it possible to get this shoutbox on the front page of my portal?
And is it possible to make it so I can see the box regardless of where I am in the forum? Not only on the main page of the forum?

You can look at my site here, www.heartofracing.com
Title: Re: SMF Shoutbox
Post by: mogadishu on August 24, 2006, 04:19:18 PM
YES..Please Upgrade it to rc3  !
regards.
Title: Re: SMF Shoutbox
Post by: Cybex on August 24, 2006, 05:39:32 PM
I uploaded the files manually and try to run sbox_setup.php, but I get errors:

Warning: Missing argument 2 for db_query() in /home/carla/domains/carlabosch.nl/public_html/newforum/Sources/Subs.php on line 237

Warning: Missing argument 3 for db_query() in /home/carla/domains/carlabosch.nl/public_html/newforum/Sources/Subs.php on line 237

Warning: Missing argument 2 for db_query() in /home/carla/domains/carlabosch.nl/public_html/newforum/Sources/Subs.php on line 237

Warning: Missing argument 3 for db_query() in /home/carla/domains/carlabosch.nl/public_html/newforum/Sources/Subs.php on line 237


What's wrong here?

Title: Re: SMF Shoutbox
Post by: Kettu on August 25, 2006, 01:31:06 AM
Quote from: mogadishu on August 24, 2006, 04:19:18 PM
YES..Please Upgrade it to rc3  !
regards.
mbirths version 1.12 (http://mods.simplemachines.org/index.php?mod=412) already is compatible with RC3. Deeps old shoutbox is currently not available for RC3, because mbirths version 1.12 is the child of deep ones. But we'll see, if there is a way to update deep ones for RC3, because it is now completely different to v1.2.
Title: Re: SMF Shoutbox
Post by: nmsmooth on August 25, 2006, 02:53:07 AM
Quote from: Cybex on August 24, 2006, 05:39:32 PM
I uploaded the files manually and try to run sbox_setup.php, but I get errors:

Warning: Missing argument 2 for db_query() in /home/carla/domains/carlabosch.nl/public_html/newforum/Sources/Subs.php on line 237

Warning: Missing argument 3 for db_query() in /home/carla/domains/carlabosch.nl/public_html/newforum/Sources/Subs.php on line 237

Warning: Missing argument 2 for db_query() in /home/carla/domains/carlabosch.nl/public_html/newforum/Sources/Subs.php on line 237

Warning: Missing argument 3 for db_query() in /home/carla/domains/carlabosch.nl/public_html/newforum/Sources/Subs.php on line 237


What's wrong here?



I get these error too:

Database Error:

8: Undefined variable: line
File: /home/nomercyc/nomercyclan.co.uk/html/forum/Sources/Subs.php
Line: 322


Apply Filter: Only show the errors with the same message
8: Undefined variable: file
File: /home/nomercyc/nomercyclan.co.uk/html/forum/Sources/Subs.php
Line: 322

8: Undefined variable: file
File: /home/nomercyc/nomercyclan.co.uk/html/forum/Sources/Subs.php
Line: 321

2: Missing argument 3 for db_query()
File: /home/nomercyc/nomercyclan.co.uk/html/forum/Sources/Subs.php
Line: 237

2: Missing argument 2 for db_query()
File: /home/nomercyc/nomercyclan.co.uk/html/forum/Sources/Subs.php
Line: 237

2: Missing argument 3 for db_query()
File: /home/nomercyc/nomercyclan.co.uk/html/forum/Sources/Subs.php
Line: 237

2: Missing argument 2 for db_query()
File: /home/nomercyc/nomercyclan.co.uk/html/forum/Sources/Subs.php
Line: 237

Wish I had time to learn or knew a bit more PHP. :S Help!! I love the shoutbox and so do my members.
Title: Re: SMF Shoutbox
Post by: tL0z on August 25, 2006, 10:41:13 AM
I've installed on 1.1 RC3 and it works great!  ;)

Here is the portuguese translation I made:

$txt['sbox_ModTitle'] = 'Shoutbox';
$txt['sbox_Visible'] = 'A shoutbox está visível';
$txt['sbox_GuestAllowed'] = 'Os visitantes podem participar';
$txt['sbox_GuestVisible'] = 'Os visitantes podem ver a shoutbox';
$txt['sbox_MaxLines'] = 'Número máximo de shouts mostradas';
$txt['sbox_Height'] = 'Altura da shoutbox (px)';
$txt['sbox_SmiliesVisible'] = 'A janela dos smileys está visível';
$txt['sbox_UserLinksVisible'] = 'Activer links de perfil';
$txt['sbox_KillShout'] = 'Deseja eliminar esta shout?';
$txt['sbox_TextSize1'] = '1. Tamanho a letra';
$txt['sbox_TextColor1'] = '1. Cor da letra';
$txt['sbox_TextSize2'] = '2. Tamanho da letra';
$txt['sbox_TextColor2'] = '2. Cor da letra';
$txt['sbox_RefreshTime'] = 'Tempo de refrescamento';
$txt['sbox_BlockRefresh'] = 'Bloquear refrescamento após inactividade (' . $modSettings['lastActive'] . ' mins)';
$txt['sbox_BackgroundColor'] = 'Cor de fundo';
$txt['sbox_FontFamily1'] = '1. Tipo de letra';
$txt['sbox_FontFamily2'] = '2. Tipo de letra';
$txt['sbox_DoHistory'] = 'Criar histórico da shoutbox';
$txt['sbox_AllowBBC'] = 'Permitir código BB';
$txt['sbox_Refresh'] = 'Actualizar';
$txt['sbox_RefreshBlocked'] = 'Actualização automática desactivada por inactividade';
$txt['sbox_History'] = 'Histórico';
$txt['sbox_HistoryClear'] = 'Apagar histórico';
$txt['sbox_HistoryNotFound'] = 'Histórico não encontrado';
$txt['sbox_EnableSounds'] = 'Activar sons';


How can I remove the date line before the shouts?
Title: Re: SMF Shoutbox
Post by: mogadishu on August 25, 2006, 11:50:28 AM
Quote from: Kettu on August 25, 2006, 01:31:06 AM
Quote from: mogadishu on August 24, 2006, 04:19:18 PM
YES..Please Upgrade it to rc3  !
regards.
mbirths version 1.12 (http://mods.simplemachines.org/index.php?mod=412) already is compatible with RC3. Deeps old shoutbox is currently not available for RC3, because mbirths version 1.12 is the child of deep ones. But we'll see, if there is a way to update deep ones for RC3, because it is now completely different to v1.2.

Thanks for the Info.

Also When we will be bale to Download this MOD ?
Title: Re: SMF Shoutbox
Post by: karras.us on August 25, 2006, 12:50:52 PM
^^^^^

Quote from: mbirth on August 23, 2006, 06:56:41 AM
Quote from: JonoJames on August 23, 2006, 06:46:00 AMmbirth is it possible you can send me a link to your mod? rather than wait for smf to approve.

That's a point! ~~> DOWNLOAD (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.12.zip).

Cheers,
  -mARKUS

Title: Re: SMF Shoutbox
Post by: mbirth on August 25, 2006, 01:32:13 PM
Quote from: Kettu on August 24, 2006, 06:54:54 AM
Quote from: N3lson on August 24, 2006, 05:05:24 AM
Ok but the smileys set i use are big look
(http://www.phoenixdigital.org/forum/Smileys/classic/hehehe.gif)

And in the shout box look bad
Maybe there is a way to modify deeps shoutbox for RC3 and offer this one for people who'd like to use a shoutbox-smiley-set. Markus?

I'm not quite sure, but maybe it's sufficient to change the "1.1 RC2" to "1.1 RC3" in the package-info.xml in sbox_v1.04.zip.


Quote from: karras.us on August 24, 2006, 08:01:11 AMJust something small for v1.12, but...

in - Themes/default/languages/sbox.english.php
[...]
There was a "u" in "Do".  :)

Thanks! Fixed it in my code.


Quote from: WoWsagele on August 24, 2006, 09:08:21 AMMy forum is 1.1RC3 mod shoutbox 1.12

my error is
QuoteErreur de base de données
Unknown column 'sb.ID_MEMBER' in 'on clause'
Fichier: /home/quebecwe/public_html/forum/Sources/sboxDB.php
Ligne: 235

What is the problem. ???

Did you have sbox 1.04 installed before the update to RC3? Looks like there is an old table structure. Please uninstall sbox 1.12 and reinstall. This should delete the table and create a new one with the correct columns.


Quote from: Cybex on August 24, 2006, 05:39:32 PMI uploaded the files manually and try to run sbox_setup.php, but I get errors:

Warning: Missing argument 2 for db_query() in /home/carla/domains/carlabosch.nl/public_html/newforum/Sources/Subs.php on line 237

What's wrong here?

These are Warnings, no Errors. There were some parameters missing ... fixed that now. Please ignore these Warnings. They should only occur during sbox_setup.php.


Quote from: tL0z on August 25, 2006, 10:41:13 AMHere is the portuguese translation I made:

Please fetch the sbox_v1.12_german.zip from your Packages directory, put your sbox.portuguese.php in there, change the package-info.xml and - most important - also translate the help strings in sbox_11rc3_german.mod (rename that to sbox_11rc3_portuguese.mod and change the filename in package-info.xml!). Then zip everything back up and ask me for my email address. :-)



Now for everyone: Maybe there will be 1.13 coming out this night, maybe not. Got some features to implement and don't know how it'll work out. Remember I'm doing this in my sparetime.

Cheers,
  -mARKUS


P.S.: @N3lson: If you keep posting here AND sending me a PM with a link to your post, I'll start to ignore your requests. I get every single post made here mailed directly to my email address, but I have a life outside the internet and so I'm not able to react instantly. Thank you.
Title: Re: SMF Shoutbox
Post by: fritpa on August 25, 2006, 09:54:05 PM
Thanks kettu :).
Title: Re: SMF Shoutbox
Post by: mbirth on August 26, 2006, 06:46:29 PM
Folks, I did it. Grab 1.13 from the Repository (http://mods.simplemachines.org/index.php?mod=412) or from my webspace (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.13.zip).

Code ("Changelog") Select
* raised version number to 1.13
* string cleanup - sorted strings by appearance
* added separator lines to settings dialog
x added missing 2nd and 3rd parameter to db_query() in sbox_setup.php
+ DROP TABLE before insert, so that updates to 1.1rc3 will be more easier
+ $sbox_NickPrefix and $sbox_NickSuffix in sboxDB.php (at the beginning of the file)
+ Guests are now shown as Guest-abcdef with abcdef being their IP in base36, this way you can differentiate guests easily
+ option to allow Global Moderators to delete shouts
+ option to disallow BBC for guests only
+ option to disable the "WhatsNew"-line


Oh, and there now is a bugtracker (http://mantis.birth-online.de). I'd like to see if it really makes things easier.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: littleone on August 26, 2006, 06:49:42 PM
Quote from: mbirth on August 26, 2006, 06:46:29 PM
Folks, I did it. Grab 1.13 from the Repository (http://mods.simplemachines.org/index.php?mod=412) or from my webspace (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.13.zip).

Code ("Changelog") Select
* raised version number to 1.13
* string cleanup - sorted strings by appearance
* added separator lines to settings dialog
x added missing 2nd and 3rd parameter to db_query() in sbox_setup.php
+ DROP TABLE before insert, so that updates to 1.1rc3 will be more easier
+ $sbox_NickPrefix and $sbox_NickSuffix in sboxDB.php (at the beginning of the file)
+ Guests are now shown as Guest-abcdef with abcdef being their IP in base36, this way you can differentiate guests easily
+ option to allow Global Moderators to delete shouts
+ option to disallow BBC for guests only
+ option to disable the "WhatsNew"-line


Oh, and there now is a bugtracker (http://mantis.birth-online.de). I'd like to see if it really makes things easier.

Cheers,
  -mARKUS


we dont have to uninstall previous version do we?  I am still using 1.10, can I just install this one or do i need to unstall 1.10 and then install 1.13?  Thanks
Title: Re: SMF Shoutbox
Post by: mbirth on August 26, 2006, 07:27:37 PM
Quote from: littleone on August 26, 2006, 06:49:42 PMwe dont have to uninstall previous version do we?  I am still using 1.10, can I just install this one or do i need to unstall 1.10 and then install 1.13?  Thanks

You have to uninstall it. SMF won't allow a direct update ...

Oh, and if you use some language pack(s) for the shoutbox, uninstall the language pack(s) first, then the shoutbox itself.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: N3lson on August 27, 2006, 02:06:04 AM
Is there a way to put the refresh only if someone wrote a message, instead of a timed refresh.
When someone wrote the message apperas (like chat)

SMF Shoutbox 1.10

Thank you
Title: Re: SMF Shoutbox
Post by: mbirth on August 27, 2006, 03:35:56 AM
Quote from: N3lson on August 27, 2006, 02:06:04 AMIs there a way to put the refresh only if someone wrote a message, instead of a timed refresh.
When someone wrote the message apperas (like chat)

No, this would be AJAX stuff and also the server would have to be queried once every few seconds anyway.

But since 1.11 refreshing stops after there were no new messages for a few minutes.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: nmsmooth on August 27, 2006, 05:14:03 AM
This version 1.13 works like a charm.

Thanks -mARKUS!! :) :)
Title: Re: SMF Shoutbox
Post by: N3lson on August 27, 2006, 06:44:14 AM
Quote from: nmsmooth on August 27, 2006, 05:14:03 AM
This version 1.13 works like a charm.

Thanks -mARKUS!! :) :)

1.13? isn´t in 1.12?
Title: Re: SMF Shoutbox
Post by: Kettu on August 27, 2006, 06:57:23 AM
Quote from: N3lson on August 27, 2006, 06:44:14 AM
1.13? isn´t in 1.12?
We currently have 1.13 out. :D
Title: Re: SMF Shoutbox
Post by: mogadishu on August 27, 2006, 08:09:01 AM
QuoteWarning: this mod is currently not approved!
Please do not use this mod unless you are completely sure of the consequences!

i can't dl. the mod.
when will be avaible for the public ?
please someone tell me ... :-[
Title: Re: SMF Shoutbox
Post by: Kettu on August 27, 2006, 09:08:39 AM
Quote from: mogadishu on August 27, 2006, 08:09:01 AM
i can't dl. the mod.
when will be avaible for the public ?
please someone tell me ... :-[

Download it from mbirths webspace.
Quote from: mbirth on August 26, 2006, 06:46:29 PM
Folks, I did it. Grab 1.13 from the Repository (http://mods.simplemachines.org/index.php?mod=412) or from my webspace (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.13.zip).
Title: Re: SMF Shoutbox
Post by: TGB on August 28, 2006, 01:53:45 AM
I got this


Fatal error: Cannot redeclare sbox() (previously declared in ../forum/Sources/Subs.php:3350) in ../forum/Sources/Subs.php on line 3363
Title: Re: SMF Shoutbox
Post by: mbirth on August 28, 2006, 02:14:14 AM
Quote from: edsloter on August 28, 2006, 01:53:45 AM
I got this

Fatal error: Cannot redeclare sbox() (previously declared in ../forum/Sources/Subs.php:3350) in ../forum/Sources/Subs.php on line 3363

Looks like you managed to install the shoutbox a second time. Search your Subs.php and find these lines:
function sbox()
{
global $sourcedir;

include_once("$sourcedir/sbox.php");
sbox_display();
}

You should find them 2 times in that file. Delete one occurance.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: tL0z on August 28, 2006, 09:24:44 AM
I also got that problem and I did unistall the old verson first. But I've already solved it. I'm going on holidays tomorrow, I will do the suff for the portuguese package when I'm back  ;)
Title: Re: SMF Shoutbox
Post by: Piwaille on August 28, 2006, 10:02:47 AM
hello !

just to say Ive noticed a funny event !

Quote[X][ Lun | 15:58 ] <piwaille>  quoi j'avais pas vu
[X][ Lun | 15:14 ] <Marc> piwaille : tu voyages dans le temps ? tu écris depuis hier soir Sourire
[X][ Dim | 00:16 ] <piwaille> Marc > chuis là si tu veux causer du wiki....
[X][ Lun | 12:03 ] <piwaille>  clown
[X][ Lun | 11:35 ] <fertito>  salut !
[X][ Lun | 11:31 ] <Juju> 'tain le lève tard, y en a qui ont la belle vie  mort de rire

I've manage to write yesterday  8)
It doesn't matter, I don't know what appened... just wanted to tell you ;D
Title: Re: SMF Shoutbox
Post by: mrbones on August 28, 2006, 11:35:20 AM
I tried to install this and I get this error:

SMF DB Editor - SMF-Shoutbox MOD - SQL INSTALL
Error creating shoutbox table. SQL Error: No Database Selected
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.

There were 14 errors when upgrading your SQL.

Any ideas on how to fix this?
Title: Re: SMF Shoutbox
Post by: slanky on August 28, 2006, 01:49:50 PM
Okay, this might be a stupid question, but...

I've installed the SMF Shoutbox with a BlackTed theme and I want to get rid of the horizontal scroll bar in the Shoutbox.  So far, all of my guesses on how to remove it have failed. 

Any suggestions?

EDIT:  Sorry, should have specified, I'm using SMF 1.1 RC2 & SMF Shoutbox 1.04.
Title: Re: SMF Shoutbox
Post by: littleone on August 28, 2006, 02:13:06 PM
Admin >> Features and Options >> SMF Shoutbox

Thats in there if you have 1.13
Title: Re: SMF Shoutbox
Post by: slanky on August 28, 2006, 02:44:15 PM
Quote from: littleone on August 28, 2006, 02:13:06 PM
Admin >> Features and Options >> SMF Shoutbox

Thats in there if you have 1.13

I'm using SMF 1.1 RC2.  Sorry - should have specified.
Title: Re: SMF Shoutbox
Post by: mrbones on August 28, 2006, 03:45:14 PM
Quote from: mrbones on August 28, 2006, 11:35:20 AM
I tried to install this and I get this error:

SMF DB Editor - SMF-Shoutbox MOD - SQL INSTALL
Error creating shoutbox table. SQL Error: No Database Selected
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.
Table: No Database Selected Already exists, skipping.

There were 14 errors when upgrading your SQL.

Any ideas on how to fix this?

I got it working. I ran 'sbox_setup.php' in the forum root dir and it fixed it.
Title: Re: SMF Shoutbox
Post by: TGB on August 28, 2006, 06:19:18 PM
Quote from: mbirth on August 28, 2006, 02:14:14 AM
Quote from: edsloter on August 28, 2006, 01:53:45 AM
I got this

Fatal error: Cannot redeclare sbox() (previously declared in ../forum/Sources/Subs.php:3350) in ../forum/Sources/Subs.php on line 3363

Looks like you managed to install the shoutbox a second time. Search your Subs.php and find these lines:
function sbox()
{
global $sourcedir;

include_once("$sourcedir/sbox.php");
sbox_display();
}

You should find them 2 times in that file. Delete one occurance.

Cheers,
  -mARKUS



got it working good now, thanks.

i now get this message all the time Automatic refresh disabled due to inactivity
even if I am active
Title: Re: SMF Shoutbox
Post by: littleone on August 28, 2006, 06:24:53 PM
Quote from: slanky on August 28, 2006, 02:44:15 PM
Quote from: littleone on August 28, 2006, 02:13:06 PM
Admin >> Features and Options >> SMF Shoutbox

Thats in there if you have 1.13

I'm using SMF 1.1 RC2.  Sorry - should have specified.

1.13 is the latest version of the shoutbox.  Uninstall your old one and install that one and then do:
Admin >> Features and Options >> SMF Shoutbox and find the check box for the line.

1.13 works on 1.1 RC2 and RC3
Title: Re: SMF Shoutbox
Post by: Kettu on August 29, 2006, 02:23:48 AM
@littleone
You have the option to change to v1.13 (mbirth's shoutbox), but think about it, it is different to 1.04 (deep's shoutbox). So first check the changes.
The options for 1.04 are at the same position like for the new one.
Title: Re: SMF Shoutbox
Post by: slanky on August 29, 2006, 07:32:19 AM
Quote from: littleone on August 28, 2006, 06:24:53 PM
Quote from: slanky on August 28, 2006, 02:44:15 PM
Quote from: littleone on August 28, 2006, 02:13:06 PM
Admin >> Features and Options >> SMF Shoutbox

Thats in there if you have 1.13

I'm using SMF 1.1 RC2.  Sorry - should have specified.

1.13 is the latest version of the shoutbox.  Uninstall your old one and install that one and then do:
Admin >> Features and Options >> SMF Shoutbox and find the check box for the line.

1.13 works on 1.1 RC2 and RC3

Okay, I've unistalled 1.04 and installed 1.13 (which looks great, BTW!) but I still do not see an option to remove the horizontal scroll bar in "Admin >> Features and Options >> SMF Shoutbox." 

Is there something I'm missing?
Title: Re: SMF Shoutbox
Post by: Kettu on August 29, 2006, 07:43:08 AM
Wait a minute. You have a horizontal scrollbar??? How can that be? It makes a break when the shout is to long, so there shouldn't be a horizontal scrollbar.
Title: Re: SMF Shoutbox
Post by: slanky on August 29, 2006, 08:20:49 AM
Quote from: Kettu on August 29, 2006, 07:43:08 AM
Wait a minute. You have a horizontal scrollbar??? How can that be? It makes a break when the shout is to long, so there shouldn't be a horizontal scrollbar.

I don't know - it always displays with a horizontal scroll, even if there are no shouts in the box.  I'm wondering if it's because of the theme I'm using for SMF - blackTed.
Title: Re: SMF Shoutbox
Post by: Kettu on August 29, 2006, 08:31:34 AM
Quote from: slanky on August 29, 2006, 08:20:49 AM
I don't know - it always displays with a horizontal scroll, even if there are no shouts in the box.  I'm wondering if it's because of the theme I'm using for SMF - blackTed.
Do you have the same problem if you use the default theme?
Title: Re: SMF Shoutbox
Post by: slanky on August 29, 2006, 08:40:04 AM
Quote from: Kettu on August 29, 2006, 08:31:34 AM
Quote from: slanky on August 29, 2006, 08:20:49 AM
I don't know - it always displays with a horizontal scroll, even if there are no shouts in the box.  I'm wondering if it's because of the theme I'm using for SMF - blackTed.
Do you have the same problem if you use the default theme?

Just checked it with the default theme - no scroll bar. 
Title: Re: SMF Shoutbox
Post by: Kettu on August 29, 2006, 08:46:24 AM
Quote from: slanky on August 29, 2006, 08:40:04 AM
Just checked it with the default theme - no scroll bar. 
Okay, now we know that it is a theme problem. One step next to the solution ;)
But, I don't know the programming for that part. I have no idea how we can fix it. So we should wait for mbirth. Maybe he has an idea or anyone else.
Title: Re: SMF Shoutbox
Post by: littleone on August 29, 2006, 12:58:27 PM
ohhhh.....i am sorry.  I thought you meant the horizontal bar that pops up after your posts (or latest posts).  I didnt understand you means a horizontal scroll bar.  That is something mbirth will have to address.  So sorry for the confusion, but atleast u got the latest version ;)
Title: Re: SMF Shoutbox
Post by: Skipdawg on August 29, 2006, 01:47:53 PM
I have not used shoutboxes much but this one is looking good.  ;D
I'll have to take another look and see whee you all are at this weekend with it.  ;)
Title: Re: SMF Shoutbox
Post by: mbirth on August 30, 2006, 07:20:22 AM
Quote from: edsloter on August 28, 2006, 06:19:18 PMi now get this message all the time Automatic refresh disabled due to inactivity
even if I am active

This message just means that there were no new shouts in the recent 5mins (or whatever you have set for User active time) ... since I didn't figure out yet how to get the activity data (which user is currently viewing what page) I only can work with those numbers I've got. This word "inactivity" means inactivity in the shoutbox, not the rest of the SMF.


Quote from: slanky on August 29, 2006, 08:20:49 AMI don't know - it always displays with a horizontal scroll, even if there are no shouts in the box.  I'm wondering if it's because of the theme I'm using for SMF - blackTed.

I justed looked into it - seems like the blackTed guys defined a BODY-width ... open up Sources/sboxDB.php and find this part:

    body {
      padding: 0px 0px 0px 0px;
      background-color: ' . $modSettings['sbox_BackgroundColor'] . ';
    }


Now just add that "width"-line so that it looks like this:

    body {
      padding: 0px 0px 0px 0px;
      width: 100%;
      background-color: ' . $modSettings['sbox_BackgroundColor'] . ';
    }


Et voilà!

This won't be neccessary in the next relase of the Shoutbox. :-)

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: slanky on August 30, 2006, 08:05:26 AM
Quote from: mbirth on August 30, 2006, 07:20:22 AM


I justed looked into it - seems like the blackTed guys defined a BODY-width ... open up Sources/sboxDB.php and find this part:

    body {
      padding: 0px 0px 0px 0px;
      background-color: ' . $modSettings['sbox_BackgroundColor'] . ';
    }


Now just add that "width"-line so that it looks like this:

    body {
      padding: 0px 0px 0px 0px;
      width: 100%;
      background-color: ' . $modSettings['sbox_BackgroundColor'] . ';
    }


Et voilà!

This won't be neccessary in the next relase of the Shoutbox. :-)

Cheers,
  -mARKUS


That worked great!  Thanks for the help!
Title: Re: SMF Shoutbox
Post by: tapirul on August 30, 2006, 05:01:14 PM
.. I wish I could search on this forum only within a topic....
Anyway, my question is, how can I make Shoutbox (I am using 1.31; BTW, great job) to work with  ISO 8859-2 (Latin-2) characters? My dbase is converted to UTF-8,  ISO 8859-2 (Latin-2), but in shouts I don't get the right characters (romanian, that is)
Thanks
Title: Re: SMF Shoutbox
Post by: TGB on August 30, 2006, 11:23:13 PM
sorry if this has been answered already.

how do I allow all global mods permission to delete shouts?
Title: Re: SMF Shoutbox
Post by: Kettu on August 31, 2006, 01:17:44 AM
Quote from: edsloter on August 30, 2006, 11:23:13 PM
sorry if this has been answered already.

how do I allow all global mods permission to delete shouts?
If you have V 1.13 go to the administration and check the second checkbox ;)

@tapirul
You mean 1.13, right?

I don't know how to help you but I tested a couple of different special characters to see what happens.
I tested ệĚěĝęņŁΛπЦйжфӔӝ and the shoutbox shows ệĚěĝęņŁΛπЦйжфӔӝ
That's your problem, right?
Title: Re: SMF Shoutbox
Post by: tapirul on August 31, 2006, 01:37:35 AM
1.13, right.

I try ăîâşţ and I get ...  something else..like
(http://img.photobucket.com/albums/v505/tapirul/shout.jpg)

I updated my forum to rc3 and I converted to UTF-8, choosing Latin2
Title: Re: SMF Shoutbox
Post by: Kettu on August 31, 2006, 02:51:54 AM
I think the problem is, that the shout tell's the sign, it will be converted but not reconverted for showing. But I think mbirth will have a kit for that. ;)
Title: Re: SMF Shoutbox
Post by: mbirth on August 31, 2006, 04:33:51 AM
Quote from: Kettu on August 31, 2006, 01:17:44 AM@tapirul
You mean 1.13, right?

I don't know how to help you but I tested a couple of different special characters to see what happens.
I tested ệĚěĝęņŁΛπЦйжфӔӝ and the shoutbox shows ệĚěĝęņŁΛπЦйжфӔӝ
That's your problem, right?

PHP4-support for Unicode / UTF-8 is more than lousy! There are some difficulties handling UTF-8 input from forms as you can read here (http://72.14.221.104/search?num=50&hs=Ov1&complete=1&hl=en&lr=&client=opera&rls=en&q=cache%3Ahttp%3A%2F%2Fppewww.ph.gla.ac.uk%2F~flavell%2Fcharset%2Fform-i18n.html&btnG=Search). I have implemented a workaround for now. Hope it'll work. But I'm afraid you have to wait a few days as I still have some coding to do before releasing 1.14.

Cheers,
 -mARKUS

P.S.: For the geeks: I applied htmlentities() before output so that there's no way to include HTML-tags in posts and also to encode special characters. Now when someone submits Unicode characters, PHP already encodes them as entities (e.g. € for the €-sign) but leaves everything else as it is. If I now apply htmlentities(), the & gets converted to &amp; ... so the browser recognises it as an ampersand followed by #8364; instead of that Unicode-entity.
Title: Re: SMF Shoutbox
Post by: ubergeek on August 31, 2006, 04:35:16 AM
just tried the latest version... works fine on my site...   ;)

more power to the developers :D
Title: Re: SMF Shoutbox
Post by: HHwarriors on August 31, 2006, 06:13:17 PM
Quote from: Deep on March 15, 2006, 08:09:52 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=294)

Hi there!

I wrote this shoutbox mod because of two reasons:
1. I wasn´t clever enough to modify Grudge´s Ultimate Shoutbox in the way i liked. I wanted to have a shoutbox with a little bit more "chat feeling". So i decided to program a shoutbox which exactly fits my needs.
2. I am new to PHP and to SMF, so this was a chance to improve my knowledge about these things. In fact, this was the very first time i coded PHP. I am very impressed of the clear structure of SMF.

The shoutbox appears above the board index of the default theme. You can adjust some things using the configuration / features and options menu.

Sample screenshot:
(http://deep23.de.funpic.de/shoutbox_sample.jpg)

By the way, i have stolen some source code from Grudge. Thank you, Grudge! :-)

There is an additional german language pack available.

If you find a bug, please leave a comment to me. Thank you.

Deep

PS.: Sorry for my poor english.
Thanc for Shout, but im new to SMF soo can anyone help me. where do i upload shout files ??
thanx
Title: Re: SMF Shoutbox
Post by: Powerhouse on August 31, 2006, 06:52:06 PM
hello guys, the shoutbox is working flawlessly with rc2 however, have upgraded to smf 1.1 rc3 and it appears it's not working as it simply wont install. is there anything that needs to be done so it will work with rc3 please. million thanks in advance.
Title: Re: SMF Shoutbox
Post by: tapirul on August 31, 2006, 07:10:25 PM
there's another shoutbox working with rc3. see below



Quote from: Kettu on August 27, 2006, 09:08:39 AM
Quote from: mogadishu on August 27, 2006, 08:09:01 AM
i can't dl. the mod.
when will be avaible for the public ?
please someone tell me ... :-[

Download it from mbirths webspace.
Quote from: mbirth on August 26, 2006, 06:46:29 PM
Folks, I did it. Grab 1.13 from the Repository (http://mods.simplemachines.org/index.php?mod=412) or from my webspace (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.13.zip).
Title: Re: SMF Shoutbox
Post by: Powerhouse on August 31, 2006, 07:19:10 PM
^thanks.. managed to make it work. have just revised the version in the xml file .. cheers :D
Title: Re: SMF Shoutbox
Post by: littleone on September 02, 2006, 10:53:15 AM
Just wondering what the Database tables were for this mbirths version?  I think I still have deeps database table for this mod and want to delete them but dont want to delete something that mbirths mod is using.

Thanks
Title: Re: SMF Shoutbox
Post by: kyt on September 03, 2006, 05:48:08 PM
got 1.13 installed on RC3
everything works great except the smilies show up as the alt text in firefox
Works fine in IE
it happens really fast, but sometimes you can catch FF displays a broken image placeholder
then just enters the alt text for the smilie instead.
I believe I sucessfully got the image link from the right click menu, but maybe not:
http://shadowrunner<b><u>kyt</u%3E%3C/b%3E.net/smf/Smileys/default/wink.gif

modified the base url in the smilie settings so it just didn't have http:// and it gave me this instead:
http://shadowrunnerkyt.net/smf/Sources/shadowrunner%3Cb%3E%3Cu%3Ekyt%3C/u%3E%3C/b%3E.net/smf/Smileys/default/grin.gif

put the http:// back on and added www. but it acts the same as it did originally
do I have a setting jacked up maybe?
the smiles work fine in the forum posts though

ideas?
Title: Re: SMF Shoutbox
Post by: apollonios on September 04, 2006, 08:59:09 AM
Thanks a lot for the great job!

I have installed the 1.13 on RC3, but i have problem with greek characters.
My DB colation is UTF-8
look at this in the picture below:

(http://www.aparadektoi.gr/apollonios/smfshout.jpg)

Thanks in advance!  :)
Title: Re: SMF Shoutbox
Post by: Kettu on September 04, 2006, 10:23:33 AM
Quote from: apollonios on September 04, 2006, 08:59:09 AM
Thanks a lot for the great job!

I have installed the 1.13 on RC3, but i have problem with greek characters.
My DB colation is UTF-8
look at this in the picture below:
I think this is the same problem we had before. Take a look at mbirths post a few posts before yours.

Quote from: HHwarriors on August 31, 2006, 06:13:17 PM
Thanc for Shout, but im new to SMF soo can anyone help me. where do i upload shout files ??
thanx
Shout files??? What do you mean?
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 04, 2006, 12:48:20 PM
I don't know if someone asked this question before... But anyway:

I just installed the Shoutbox on my website, working. But, the smilies aint working. All of the smilies are on the FTP server, but the linking on the website is not correctly I think. Does someone know how to do this right?

Kiwi
Title: Re: SMF Shoutbox
Post by: Kettu on September 04, 2006, 12:50:14 PM
Hi Kiwi,
which Shoutbox Version did you install and what SMF Version do you use?
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 04, 2006, 01:11:43 PM
Quote from: Kettu on September 04, 2006, 12:50:14 PM
Hi Kiwi,
which Shoutbox Version did you install and what SMF Version do you use?

SMF version: SMF 1.1 RC2
Shoutbox version: 1.04

Hope you can help me ;)
Title: Re: SMF Shoutbox
Post by: Kettu on September 04, 2006, 01:46:52 PM
Quote from: Kiwitje on September 04, 2006, 01:11:43 PM
SMF version: SMF 1.1 RC2
Shoutbox version: 1.04

Hope you can help me ;)
Hope so, too :)
Okay, what kind of language do you use? And are the smilies not shown in the box, or why do you think, they are not linked correctly?
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 04, 2006, 02:04:45 PM
Quote from: Kettu on September 04, 2006, 01:46:52 PM
Quote from: Kiwitje on September 04, 2006, 01:11:43 PM
SMF version: SMF 1.1 RC2
Shoutbox version: 1.04

Hope you can help me ;)
Hope so, too :)
Okay, what kind of language do you use? And are the smilies not shown in the box, or why do you think, they are not linked correctly?

I'm using the Dutch language. The pictures of the smilies are not shown in the box, no. When you click your right mouse button on a redcross and press Options, u can see it is not linked to an image, but to a directory, Images. My forum is now updating to RC3
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 04, 2006, 02:23:39 PM
Hahah, I see that the shoutbox doesn't work with RC3.. !  :-X Back to RC2, hahaha
Title: Re: SMF Shoutbox
Post by: tL0z on September 04, 2006, 05:26:10 PM
I have the 1.3 version installed on RC3 and works perfectly.
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 04, 2006, 05:30:18 PM
Got everything back already... no problem :)

Have a new theme too.. now trying to get the shoutbox somewhere I want, very difficultly.. :(
Title: Re: SMF Shoutbox
Post by: tL0z on September 04, 2006, 05:35:10 PM
You should use RC3 because of security reasons. There are some hackers out there  :-X
Title: Re: SMF Shoutbox
Post by: Launchalot on September 04, 2006, 11:33:54 PM
Very kewl , I had to upload the theme I wanted to use to the default themes folder and override to get it to work ? but oh well. Good job and thanks alot =)

http://bzfiles.net/gamealot/index.html

-Launchalot

P.S. I used the sbox_v1.13 and it took alot of reading to find it. Be nice if the download link could be put in the frist post so others have a easier time.
Title: Re: SMF Shoutbox
Post by: Kettu on September 05, 2006, 06:41:14 AM
Quote from: Kiwitje on September 04, 2006, 05:30:18 PM
Got everything back already... no problem :)

Have a new theme too.. now trying to get the shoutbox somewhere I want, very difficultly.. :(
You have to add
// display shoutbox
  if (function_exists('sbox')) sbox();

at the position you'd like to have it.

For RC3 you should use v1.13, if you still use 1.04 at RC2 than you should check your dutch.modification.php. I think there are the Smilie-codes missed.
Title: Re: SMF Shoutbox
Post by: mbirth on September 05, 2006, 07:04:26 AM
Quote from: littleone on September 02, 2006, 10:53:15 AMJust wondering what the Database tables were for this mbirths version?  I think I still have deeps database table for this mod and want to delete them but dont want to delete something that mbirths mod is using.

I didn't change the table name. It's still {$db_prefix}sbox_content.


Quote from: kyt on September 03, 2006, 05:48:08 PMgot 1.13 installed on RC3
everything works great except the smilies show up as the alt text in firefox
Works fine in IE
[...]
do I have a setting jacked up maybe?
the smiles work fine in the forum posts though

ideas?

Maybe some extension in FF which modifies pages? (Don't know the name atm, but there was something...) Or an ad-blocker. Looks like it has to be something with FF as Opera also shows everything correct.



Now for the interesting part: v1.14 is ready - and it got a neat upgrade-feature so you won't loose your shouts. At least I hope so. Grab it from the repository (http://mods.simplemachines.org/index.php?mod=412) (does anybody know how to get this mod approved finally??) or from my webspace (http://pphl.birth-online.de/dlcount.php?id=markus.birth-online.de&url=http://files.birth-online.de/sbox_v1.14.zip).

Code ("Changelog from 1.13") Select
+ added UPGRADE feature - Package Manager shows an error for some file - ignore that!
! It's because PM checks mods against current file. Upgrade works by removing old changes from current file and applying new changes - which can't be applied as long as the old changes are still there - that's why PM shows that error.
+ more configuration variables in sboxDB.php
+ made background and text color of sbox theme-dependent. Alternating colors can be specified in settings for bright and dark themes - should work for all themes where there's a properly set windowbg2-class
* rewrote uninstall-code to SMF-package-sdk-example
x fixed horizontal scrollbar in blackTed (and maybe similar) theme
x quick-fixed bug with UTF8 characters
+ added censoring of words
+ added automatic shoutbox-insertion into blackTed if installed
+ added "Type your shout"-message to input field
* simplified package-info.xml a bit
* integrated German language pack into main package (XML-style rocks!)
* raised version to 1.14
+ added modifications for the other 2 default themes (classic and babylon)
! ATTENTION: If you manually added the sbox to those themes, remove your code before installing this package!
* use people with 'moderate_board' permission instead of only Global Moderators
* transformed from boardmod to new funky XML style


Next planned things:
-maybe separate smiley set for shoutbox only
-limit image-heights for BBCode-included images in shouts
-make a proposal

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: apollonios on September 05, 2006, 10:08:14 AM
I installed the v1.14
when i go to shout something , apears this warning:
QuoteWarning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/mysite/public_html/smforum/Sources/sboxDB.php on line 91
:(
The problem with Greek characters remaining the same  :(

What is wrong?
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 05, 2006, 10:52:33 AM
Where can i download v1.13? On the Simplemachines website i get the message when i want to download:

An Error Has Occurred!
The mod you have requested has not been approved yet for downloads. 


What to do?!


Nevermind... :)
Title: Re: SMF Shoutbox
Post by: apollonios on September 05, 2006, 11:01:20 AM
It's crazy!!
When i choose the English language for the board the Greek characters appears OK!
When i choose the Greek language for the board the Greek characters appears like this:
(http://www.aparadektoi.gr/apollonios/smfshout1.jpg)

......
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 05, 2006, 11:13:16 AM
Got the RC3 installed, with v1.14, working perfect! with smilies, haha.

Thanks guys
Title: Re: SMF Shoutbox
Post by: tapirul on September 05, 2006, 12:04:06 PM
1.14 works with only one (big) problem: when I click on "Features and options" in Admin Panel, I get

QuoteFatal error: Cannot redeclare modifysboxsettings() (previously declared in  ...../public_html/vizuinasmf/Sources/ModSettings.php:311) in  ....../public_html/vizuinasmf/Sources/ModSettings.php on line 561

ModSettings.php, on line 561, has
(actually here the file ends)
551  // Saving?
552  if (isset($_GET['save'])) {
553  saveDBSettings($config_vars);
554  redirectexit('action=featuresettings;sa=sbox');
555  }
556
557 $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=sbox';
558  $context['settings_title'] = $txt['sbox_ModTitle'];
559
560  prepareDBSettingContext($config_vars);
561  }
562
563
564  ?>




what should I change and where?

PS line 311 is as follows;

309  function ModifySboxSettings()
310  {
311 global $txt, $scripturl, $context, $settings, $sc;
312
313 $config_vars = array
314 (
315 array('check', 'sbox_Visible'),
316 array('check', 'sbox_GuestVisible'),
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 05, 2006, 12:34:40 PM
When I open my Features and Options, I don't see anything from the Shoutbox... No options, nothing.
Title: Re: SMF Shoutbox
Post by: tapirul on September 05, 2006, 01:06:03 PM
okay, I solved it... The code for shoutbox appeared twice in ModSettings.php (probably the one for 1.13 and the one for 1.14). I deleted this one (hope the right one) and it works now:
loadLanguage('sbox');

function ModifySboxSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array
(
array('check', 'sbox_Visible'),
array('check', 'sbox_GuestVisible'),
array('check', 'sbox_GuestAllowed'),
array('check', 'sbox_SmiliesVisible'),
array('check', 'sbox_UserLinksVisible'),
array('check', 'sbox_AllowBBC'),
array('check', 'sbox_DoHistory'),
array('int', 'sbox_MaxLines'),
array('int', 'sbox_Height'),
array('int', 'sbox_RefreshTime'),
array('check', 'sbox_BlockRefresh'),
array('select', 'sbox_FontFamily1', array(
'Garamond, serif' => 'Garamond, serif',
'Times, serif' => 'Times, serif',
'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif',
'Tahoma, Helvetica, sans-sarif' => 'Tahoma, Helvetica, sans-sarif',
'Verdana, sans-serif' => 'Verdana, sans-serif',
'cursive' => 'cursive',
'Palatino, fantasy' => 'Palatino, fantasy',
'Courier, monospace' => 'Courier, monospace'
),
),
array('select', 'sbox_FontFamily2', array(
'Garamond, serif' => 'Garamond, serif',
'Times, serif' => 'Times, serif',
'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif',
'Tahoma, Helvetica, sans-sarif' => 'Tahoma, Helvetica, sans-sarif',
'Verdana, sans-serif' => 'Verdana, sans-serif',
'cursive' => 'cursive',
'Palatino, fantasy' => 'Palatino, fantasy',
'Courier, monospace' => 'Courier, monospace'
),
),
array('select', 'sbox_TextSize1', array(
                    '6pt' => '6pt',
                    '7pt' => '7pt',
'8pt' => '8pt',
'9pt' => '9pt',
'10pt' => '10pt',
'11pt' => '11pt',
'12pt' => '12pt',
'13pt' => '13pt',
'14pt' => '14pt',
'15pt' => '15pt',
'16pt' => '16pt',
'xx-small' => 'xx-small',
'x-small' => 'x-small',
'small' => 'small',
'medium' => 'medium',
'large' => 'large',
'x-large' => 'x-large',
'xx-large' => 'xx-large'
),
),
array('text', 'sbox_TextColor1'),
array('select', 'sbox_TextSize2', array(
                    '6pt' => '6pt',
                    '7pt' => '7pt',
'8pt' => '8pt',
'9pt' => '9pt',
'10pt' => '10pt',
'11pt' => '11pt',
'12pt' => '12pt',
'13pt' => '13pt',
'14pt' => '14pt',
'15pt' => '15pt',
'16pt' => '16pt',
'xx-small' => 'xx-small',
'x-small' => 'x-small',
'small' => 'small',
'medium' => 'medium',
'large' => 'large',
'x-large' => 'x-large',
'xx-large' => 'xx-large'
),
),
array('text', 'sbox_TextColor2'),
array('text', 'sbox_BackgroundColor'),
array('check', 'sbox_EnableSounds'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=sbox');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=sbox';
$context['settings_title'] = $txt['sbox_ModTitle'];

prepareDBSettingContext($config_vars);

}
Title: Re: SMF Shoutbox
Post by: HHwarriors on September 05, 2006, 07:22:53 PM
Quote from: Kettu on September 04, 2006, 10:23:33 AM
Quote from: apollonios on September 04, 2006, 08:59:09 AM
Thanks a lot for the great job!

I have installed the 1.13 on RC3, but i have problem with greek characters.
My DB colation is UTF-8
look at this in the picture below:
I think this is the same problem we had before. Take a look at mbirths post a few posts before yours.

Quote from: HHwarriors on August 31, 2006, 06:13:17 PM
Thanc for Shout, but im new to SMF soo can anyone help me. where do i upload shout files ??
thanx
Shout files??? What do you mean?

I know where to upload it now. but where should i putt it in index.php ??? THANX
Title: Re: SMF Shoutbox
Post by: littleone on September 05, 2006, 10:04:24 PM
Quote from: HHwarriors on September 05, 2006, 07:22:53 PM
Quote from: Kettu on September 04, 2006, 10:23:33 AM
Quote from: apollonios on September 04, 2006, 08:59:09 AM
Thanks a lot for the great job!

I have installed the 1.13 on RC3, but i have problem with greek characters.
My DB colation is UTF-8
look at this in the picture below:
I think this is the same problem we had before. Take a look at mbirths post a few posts before yours.

Quote from: HHwarriors on August 31, 2006, 06:13:17 PM
Thanc for Shout, but im new to SMF soo can anyone help me. where do i upload shout files ??
thanx
Shout files??? What do you mean?

I know where to upload it now. but where should i putt it in index.php ??? THANX

You just need to upload it via Package manager and if all goes off well u shouldnt have anything to do
Title: Re: SMF Shoutbox
Post by: Kettu on September 06, 2006, 01:34:19 AM
Quote from: HHwarriors on September 05, 2006, 07:22:53 PM
I know where to upload it now. but where should i putt it in index.php ??? THANX
Just a request, please ever explain what you are talking about. We can't read your mind.

Do you mean where you have to add the code for the shoutbox at your theme?
If yes, then you have to find a good place at your BoardIndex.template.php and add
// display shoutbox
  if (function_exists('sbox')) sbox();


Else littleone is right. Everything should be fine if you use the package manager. Only with different languages than english or German or different themes there can be some "problems"
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 06, 2006, 06:24:57 AM
Quote from: Kettu on September 06, 2006, 01:34:19 AM
Quote from: HHwarriors on September 05, 2006, 07:22:53 PM
I know where to upload it now. but where should i putt it in index.php ??? THANX
Just a request, please ever explain what you are talking about. We can't read your mind.

Do you mean where you have to add the code for the shoutbox at your theme?
If yes, then you have to find a good place at your BoardIndex.template.php and add
// display shoutbox
  if (function_exists('sbox')) sbox();


Else littleone is right. Everything should be fine if you use the package manager. Only with different languages than english or German or different themes there can be some "problems"

How do I know where is what in my BoardIndex.template.php  ? I don't understand any of the things when i open my .php, haha. Maybe someone of you can help me placing my shoutbox somewhere.
Title: Re: SMF Shoutbox
Post by: Kettu on September 06, 2006, 06:27:08 AM
Quote from: Kiwitje on September 06, 2006, 06:24:57 AM
How do I know where is what in my BoardIndex.template.php  ? I don't understand any of the things when i open my .php, haha. Maybe someone of you can help me placing my shoutbox somewhere.
Publish your BoardIndex.template.php here and we can tell you, where you could add it. :)
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 06, 2006, 08:01:46 AM
OK :)


<?php
// Version: 1.1 RC2; BoardIndex

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

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
<td><span style="font-size: 1px;">&nbsp;</span></td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;

// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<div class="tborder">
<table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr class="titlebg" align="center">
<td>'
$txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60" class="news_fader">'
;

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color?  To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

var foreColor, backEl, backColor;

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"'
implode('",
"'
$context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>
</div><div class="bdc" style="margin-bottom: 2ex;"><!-- blank --></div>'
;
}

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="5">
<tbody>
<tr>
<td colspan="4" class="boardtitle" height="18">'
;

$category['link'] = strtr($category['link'], array("\">" => "\"><!-- ""</a>" => " --></a>"));
echo '
'
$category['link'], '
<a style="float: left;" href="'
$category['href'], '">'$category['name'], '</a>
'
;

$category['href'] = strtr($category['href'], array("http" => """/" => """." => """#" => """:" => ""));
$dhtml_collapsed get_collapsed_state("category_" $category['href']);

if ($context['user']['is_guest'])
{
echo '
<a style="float:right;" href="javascript:void(0);" onclick="doCollapseObject(\'category_'
$category['href'], '\', \''$settings['csect_cookie'], '\')"><img id="img_category_'$category['href'], '" src="'$settings['images_url'], $dhtml_collapsed '/expand_b.gif' '/collapse_b.gif''" alt="*" border="0" /></a>';
}
else
{
if ($category['can_collapse'])
echo '
<a style="float:right;" href="javascript:void(0);" onclick="doCollapseObject(\'category_'
$category['href'], '\', \''$settings['csect_cookie'], '\')"><img id="img_category_'$category['href'], '" src="'$settings['images_url'], $dhtml_collapsed '/expand_b.gif' '/collapse_b.gif''" alt="*" border="0" /></a>';
}

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

if ($context['user']['is_guest'])
{
echo '
<tbody id="category_'
$category['href'], '"'$dhtml_collapsed ' style="display:none;">' '>';
}
else
{
if ($category['can_collapse'])
echo '
<tbody id="category_'
$category['href'], '"'$dhtml_collapsed ' style="display:none;">' '>';
else
echo '
<tbody id="category_'
$category['href'], '">';
}

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{

echo '
<tr class="catbg">
<td colspan="2" height="18" class="catbg_n">'
;
echo '
'
$txt[20], '
</td><td class="catbg_n" style="width: 13ex;" nowrap="nowrap"><span style="white-space: nowrap;">'
$txt[64], '/'$txt[26], '</span></td><td class="catbg_n" width="22%">'$txt[22], '</td>
</tr>'
;

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr class="windowbg2">
<td rowspan="2" class="windowbg" width="6%" align="center" valign="top"><a href="'
$scripturl'?action=unread;board='$board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// No new posts at all!  The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

echo '</a></td>
<td rowspan="2" class="windowbg2" align="left">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

// Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
$txt['parent_boards'], ': 'implode(', '$children), '</i></div>';
}

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 13ex;"><span class="smalltext">'
;

if(empty($settings['show_topics_posts_help']))
echo '
<img style="float:right; margin-right: 3px; margin-left: -12px; cursor:help;" src="' 
$settings['images_url'] . '/topics_posts_h.gif" alt="'$board['topics'], ' '$txt['topics_posts_topics'], ' '$txt['topics_posts_in'], ' '$board['name'], '" title="'$board['topics'], ' '$txt['topics_posts_topics'], ' '$txt['topics_posts_in'], ' '$board['name'], '" border="0" />';

echo '
'
$board['topics'],'
</span></td>
<td rowspan="2" class="smalltext" valign="middle" width="22%">'
;

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))

echo '
<div style="float: left;">
'
$board['last_post']['link'], '<br />'$txt[525], ' '$board['last_post']['member']['link'], '</div>';

if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))

echo '
 <br /><div style="float: right; white-space: nowrap;">'
$board['last_post']['time'], '&nbsp;<a href="'$board['last_post']['href'], '"><img src="'$settings['images_url'], '/icons/last_post.gif" alt="'$txt[111], '" title="'$txt[111], '" border="0" /></a></div>';

echo '
</td>
</tr>
    <tr>
<td class="windowbg" style="width: 13ex;" align="center" valign="middle"><span class="smalltext">'
;

if(empty($settings['show_topics_posts_help']))
echo '
<img style="float:right; margin-right: 3px; margin-left: -12px; cursor:help;" src="' 
$settings['images_url'] . '/topics_posts_h.gif" alt="'$board['posts'], ' '$txt['topics_posts_posts'], ' '$txt['topics_posts_in'], ' '$board['name'], '" title="'$board['posts'], ' '$txt['topics_posts_posts'], ' '$txt['topics_posts_in'], ' '$board['name'], '" border="0" />';

echo '
'
$board['posts'], '
</span></td>
    </tr>'
;
}
}

echo '
</tbody></table></div>
<div class="bdc"><!-- blank --></div>
<br />'
;
}

if ($context['user']['is_logged'])
{
echo '
<div class="tborder" style="padding: 3px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr class="titlebg">
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
<img src="' 
$settings['images_url'] . '/new_some.gif" alt="" border="0" align="middle" /> '$txt[333], '
<img src="' 
$settings['images_url'] . '/new_none.gif" alt="" border="0" align="middle" style="margin-left: 4ex;" /> '$txt[334], '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" class="smalltext">';
// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
<a href="'
$scripturl'?action=markasread;sa=all;sesc=' $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[452] . '" border="0" />' $txt[452]), '</a>';
echo '
</td>
</tr>
</table></div><br />'
;
}

if ($context['user']['is_guest'])
echo '
<span style="font-size: 7px"><br /></span>'
;

// Here's where the "Info Center" starts...
$dhtml_collapsed get_collapsed_state("info_center");
echo '
<div class="tborder">
<table border="0" width="100%" cellspacing="1" cellpadding="4">
<tbody><tr class="titlebg">
<td align="center" colspan="2">
<a style="float:right;" href="javascript:void(0);" onclick="doCollapseObject(\'info_center\', \''
$settings['csect_cookie'], '\')"><img class="midimage" id="img_info_center" src="'$settings['images_url'], $dhtml_collapsed '/expand_b.gif' '/collapse_b.gif''" alt="*" border="0" /></a>'$txt[685], '</td>
</tr></tbody><tbody id="info_center"'
$dhtml_collapsed ' style="display:none;" ' ' ''>';

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=recent">
<img src="'
$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" border="0" /></a>
</td>
<td class="windowbg2">'
;

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
<div class="smalltext">
'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</div>'
;
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" border="0">'
;
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">['
$post['board']['link'], ']</td>
<td valign="top">'
$post['link'], ' '$txt[525], ' '$post['poster']['link'], '</td>
<td align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
</tr>'
;
echo '
</table>'
;
}
echo '
</td>
</tr>'
;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="catbg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=calendar">
<img src="'
$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">'
;

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

// People's birthdays.  Like mine.  And yours, I guess.  Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>'
;
}

// Show a member bar.  Not heavily ornate, but functional at least.
if ($settings['show_member_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[331], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' '''<img src="'$settings['images_url'], '/icons/members.gif" alt="'$txt[332], '" border="0" />'$context['show_member_list'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">
<b>'
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' $txt[332] . '</a>' $txt[332], '</b>
<div class="smalltext">'
$txt[200], '</div>
</td>
</tr>'
;
}

// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=stats">
<img src="'
$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<table border="0" width="90%"><tr>
<td class="smalltext">
<div style="float: '
, !$context['right_to_left'] ? 'left' 'right''; width: 50%;">'$txt[490], ': <b>'$context['common_stats']['total_topics'], '</b></div>'$txt[489], ': <b>'$context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
$txt[659] . ': &quot;' $context['latest_post']['link'] . '&quot;  (' $context['latest_post']['time'] . ')<br />' '''
<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</td>
<td width="32%" class="smalltext" valign="top">
'
$txt[488], ': <b><a href="'$scripturl'?action=mlist">'$context['common_stats']['total_members'], '</a></b><br />
'
$txt[656], ': <b>'$context['common_stats']['latest_member']['link'], '</b><br />';
// If they are logged in, show their unread message count, etc..
if ($context['user']['is_logged'])
echo '
'
$txt['smf199'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['messages'], '</a></b> '$txt['newmessages3'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['unread_messages'], '</a></b>';
echo '
</td>
</tr></table>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" border="0" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

if ($context['show_who'])
echo '
<a href="'
$scripturl'?action=who">';

echo $context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

echo ')';
}

if ($context['show_who'])
echo '</a>';

echo '
<div class="smalltext">'
;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

echo '
<br />'
$context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>'
;

if (empty($settings['show_most_online']))
echo '
<div class="smalltext" style="border-width: 1px 0 0 0; border-style: solid; border-color: #FFFFFF; padding: 5px 0 2px 0; margin: 2px 0 0 0;">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</div>'
;
echo '
</td>
</tr>'
;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" border="0" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
<div class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
</div>
</td>
</tr>'
;
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="'
$scripturl'?action=login">
<img src="'
$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" border="0" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>'
$txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>'
$txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>'
$txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'$modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>'
$txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></tbody></table>
</form>
</td>
</tr>'
;
}

echo '
</tbody></table></div><div class="bdc"><!-- blank --></div>'
;
}

?>



Title: Re: SMF Shoutbox
Post by: Kettu on September 06, 2006, 09:05:20 AM
You could add it before:
// Show the news fader?  (assuming there are things to show...)

or before
// Here's where the "Info Center" starts...
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 06, 2006, 09:39:24 AM
Quote from: Kettu on September 06, 2006, 09:05:20 AM
You could add it before:
// Show the news fader?  (assuming there are things to show...)

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

Oh yeah! Working! Thanks mate ! :D:D
Title: Re: SMF Shoutbox
Post by: littleone on September 06, 2006, 01:25:08 PM
The update file in 1.14 is still a little rust.  If you dont know what you are doing with coding, I'd recommend you uninstall any previous version before updating to 1.14.  I found a couple of duplicate coding scripts (but nothing that effected the performance).  It duplicated the shout box on the board index (because I had moved it) and then there was some duplication in the help.english file.  Again nothing major, but if you dont have a good grasp on what you are doing you could get lost really quick.
Title: Re: SMF Shoutbox
Post by: Kettu on September 06, 2006, 02:29:03 PM
Hm, mysterious. Mine works fine after the upgrade from 1.13 to 1.14.
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 06, 2006, 04:04:59 PM
Now still, I can't see any options in Features and Options... Only 2 white boxes and 1 empty dropdown menu...
What to do about it ?
Title: Re: SMF Shoutbox
Post by: littleone on September 06, 2006, 04:18:14 PM
Quote from: Kiwitje on September 06, 2006, 04:04:59 PM
Now still, I can't see any options in Features and Options... Only 2 white boxes and 1 empty dropdown menu...
What to do about it ?
Check your Soruces/ModSettings.php

Make sure you didnt duplicate your code (or missing your code)
Title: Re: SMF Shoutbox
Post by: Skipdawg on September 06, 2006, 04:28:14 PM
So what is going on with this shoutbox that has it still unapproved by SMF staff?  ::)
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 06, 2006, 04:32:33 PM
Quote from: littleone on September 06, 2006, 04:18:14 PM
Quote from: Kiwitje on September 06, 2006, 04:04:59 PM
Now still, I can't see any options in Features and Options... Only 2 white boxes and 1 empty dropdown menu...
What to do about it ?
Check your Soruces/ModSettings.php

Make sure you didnt duplicate your code (or missing your code)

What code?
Title: Re: SMF Shoutbox
Post by: runescapetrades on September 06, 2006, 08:21:18 PM
Hey, love the shoutbo... but everytime someone posts we get this error..

"Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/run58720/public_html/forum/Sources/sboxDB.php on line 91"

Any ideas?

thanks,
Nick
Title: Re: SMF Shoutbox
Post by: littleone on September 07, 2006, 12:09:59 AM
Quote from: Kiwitje on September 06, 2006, 04:32:33 PM
Quote from: littleone on September 06, 2006, 04:18:14 PM
Quote from: Kiwitje on September 06, 2006, 04:04:59 PM
Now still, I can't see any options in Features and Options... Only 2 white boxes and 1 empty dropdown menu...
What to do about it ?
Check your Soruces/ModSettings.php

Make sure you didnt duplicate your code (or missing your code)

What code?

Go to your package manager, browse packages, find the shoutbox, click on List Files and then click on the install file.  Then browse down to where it says "Modification" and then the file name of sources/ModSettings.php.  There it will give you the code.  Make sure that code is in your actual ModSettings file and make sure its not duplicated (or that the old version is still there, it would be the top of the two versions)
Title: Re: SMF Shoutbox
Post by: Kettu on September 07, 2006, 01:18:09 AM
Quote from: Skipdawg on September 06, 2006, 04:28:14 PM
So what is going on with this shoutbox that has it still unapproved by SMF staff?  ::)
We have no idea. :(

Quote from: runescapetrades on September 06, 2006, 08:21:18 PM
Hey, love the shoutbo... but everytime someone posts we get this error..

"Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/run58720/public_html/forum/Sources/sboxDB.php on line 91"

Any ideas?

thanks,
Nick
Sounds like a language problem. What language do you use?
Title: Re: SMF Shoutbox
Post by: nitins60 on September 07, 2006, 01:45:53 AM
What about RC3? When will you port it to RC3. Please do it quickly
Title: Re: SMF Shoutbox
Post by: Kettu on September 07, 2006, 02:34:22 AM
Quote from: nitins60 on September 07, 2006, 01:45:53 AM
What about RC3? When will you port it to RC3. Please do it quickly
Only shoutbox 1.04 is for RC2, only. But Version 1.14 is for RC3 available \|/
Title: Re: SMF Shoutbox
Post by: nitins60 on September 07, 2006, 03:18:46 AM
How can i add custom smileys, 1.04 smileys are very nice. I just want to add them. How can i use smileys? When i click on them, nothing s happening
Title: Re: SMF Shoutbox
Post by: Kettu on September 07, 2006, 03:49:23 AM
Quote from: nitins60 on September 07, 2006, 03:18:46 AM
How can i add custom smileys, 1.04 smileys are very nice. I just want to add them. How can i use smileys? When i click on them, nothing s happening
At 1.14 there are the board smilies used. So you can add smilies through your normal administration center.
At 1.04 you can upload Smilies wherever you want and just change the adresses at modifications.yourlanguage.php.
Title: Re: SMF Shoutbox
Post by: nitins60 on September 07, 2006, 04:19:19 AM
Quote from: Kettu on September 07, 2006, 03:49:23 AM
Quote from: nitins60 on September 07, 2006, 03:18:46 AM
How can i add custom smileys, 1.04 smileys are very nice. I just want to add them. How can i use smileys? When i click on them, nothing s happening

At 1.14 there are the board smilies used. So you can add smilies through your normal administration center.
At 1.04 you can upload Smilies wherever you want and just change the adresses at modifications.yourlanguage.php.

custom smileys not possibl n rc3? I need more smileys, i liked the way in 1.04. Hope you will change it n 1.14, please, i need to use more and more smileys instead of words.
Ex: :smile: :)
Title: Re: SMF Shoutbox
Post by: Kettu on September 07, 2006, 08:00:30 AM
Quote from: nitins60 on September 07, 2006, 04:19:19 AM
custom smileys not possibl n rc3? I need more smileys, i liked the way in 1.04. Hope you will change it n 1.14, please, i need to use more and more smileys instead of words.
Ex: :smile: :)
Well, what do YOU mean with custom smilies? I mean, that the shoutbox 1.14 uses the custom smilies of the board (those you are also using for posting and where you can add as many as you want).
Title: Re: SMF Shoutbox
Post by: Azmodan on September 07, 2006, 08:30:59 AM
Quote from: Kettu on September 07, 2006, 01:18:09 AM
Quote from: runescapetrades on September 06, 2006, 08:21:18 PM
Hey, love the shoutbo... but everytime someone posts we get this error..

"Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/run58720/public_html/forum/Sources/sboxDB.php on line 91"

Any ideas?

thanks,
Nick
Sounds like a language problem. What language do you use?


I am having the same problem.  I use English.  This is what we get:

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /var/www/html/blackwolf/Sources/sboxDB.php on line 91
[X][Thu 08:29] <Azmo> This is the problem we are having when we post.


It posts the message, but puts the warning right above it.  Any ideas how to fix it?
Title: Re: SMF Shoutbox
Post by: Kettu on September 07, 2006, 08:54:43 AM
Quote from: Azmodan on September 07, 2006, 08:30:59 AM
I am having the same problem.  I use English.  This is what we get:

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /var/www/html/blackwolf/Sources/sboxDB.php on line 91
[X][Thu 08:29] <Azmo> This is the problem we are having when we post.


It posts the message, but puts the warning right above it.  Any ideas how to fix it?
Is it only a problem you have or does all have this message?
Title: Re: SMF Shoutbox
Post by: nitins60 on September 07, 2006, 09:15:41 AM
Quote from: Kettu on September 07, 2006, 08:00:30 AM
Quote from: nitins60 on September 07, 2006, 04:19:19 AM
custom smileys not possibl n rc3? I need more smileys, i liked the way in 1.04. Hope you will change it n 1.14, please, i need to use more and more smileys instead of words.
Ex: :smile: :)

Well, what do YOU mean with custom smilies? I mean, that the shoutbox 1.14 uses the custom smilies of the board (those you are also using for posting and where you can add as many as you want). 


forum needs some good/cool smileys, but in shout box, i need lot of smileys which i don't want them in posts. Any idea about increasing smileys in forum/board?
Title: Re: SMF Shoutbox
Post by: Kettu on September 07, 2006, 10:47:31 AM
Quote from: nitins60 on September 07, 2006, 09:15:41 AM
forum needs some good/cool smileys, but in shout box, i need lot of smileys which i don't want them in posts. Any idea about increasing smileys in forum/board?

Okay, now I know what you mean. And I have a good message. It is planned for 1.15 to add separate smilies for the shoutbox.

Quote from: mbirth on September 05, 2006, 07:04:26 AM
Next planned things:
-maybe separate smiley set for shoutbox only
-limit image-heights for BBCode-included images in shouts
-make a proposal
Title: Re: SMF Shoutbox
Post by: Azmodan on September 07, 2006, 11:35:03 AM
Quote from: Kettu on September 07, 2006, 08:54:43 AM
Quote from: Azmodan on September 07, 2006, 08:30:59 AM
I am having the same problem.  I use English.  This is what we get:

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /var/www/html/blackwolf/Sources/sboxDB.php on line 91
[X][Thu 08:29] <Azmo> This is the problem we are having when we post.


It posts the message, but puts the warning right above it.  Any ideas how to fix it?
Is it only a problem you have or does all have this message?

So far everyone gets it and sees it.
Title: Re: SMF Shoutbox
Post by: nitins60 on September 07, 2006, 02:03:15 PM
Quote from: Kettu on September 07, 2006, 10:47:31 AM
Quote from: nitins60 on September 07, 2006, 09:15:41 AM
forum needs some good/cool smileys, but in shout box, i need lot of smileys which i don't want them in posts. Any idea about increasing smileys in forum/board?


Okay, now I know what you mean. And I have a good message. It is planned for 1.15 to add separate smilies for the shoutbox.


Quote from: mbirth on September 05, 2006, 07:04:26 AM
Next planned things:
-maybe separate smiley set for shoutbox only
-limit image-heights for BBCode-included images in shouts
-make a proposal
when are you planning/going to release it? Can you make one mod - Reputation Mod, which is available in vB. Just like karma, but i love that feature with custom quotes..Simply good
Title: Re: SMF Shoutbox
Post by: Kettu on September 07, 2006, 02:58:03 PM
Quote from: nitins60 on September 07, 2006, 02:03:15 PM
when are you planning/going to release it? Can you make one mod - Reputation Mod, which is available in vB. Just like karma, but i love that feature with custom quotes..Simply good
I am just a shoutbox supporter, mbirth is the programmer.
Title: Re: SMF Shoutbox
Post by: runescapetrades on September 08, 2006, 06:16:12 AM
Quote from: Kettu on September 07, 2006, 08:54:43 AM
Quote from: Azmodan on September 07, 2006, 08:30:59 AM
I am having the same problem.  I use English.  This is what we get:

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /var/www/html/blackwolf/Sources/sboxDB.php on line 91
[X][Thu 08:29] <Azmo> This is the problem we are having when we post.


It posts the message, but puts the warning right above it.  Any ideas how to fix it?
Is it only a problem you have or does all have this message?

IVE FOUND THE ANSWER
ok, open up sboxdb.php in your forum directory, under "sources". Open up that file, go to line 181.. and look for this "      $result .= htmlentities($s, ENT_NOQUOTES, $context['character_set']);
    } else {"

Take that out, save the file, and replace it with the old sboxdb.php and then its fixed.. =) hope this has helped..
Nick
Title: Re: SMF Shoutbox
Post by: Tuan on September 09, 2006, 12:47:35 AM

Fatal error: Cannot redeclare sbox() (previously declared in /home/xxx/public_html/xxx/Sources/Subs.php:3437) in /home/xxx/public_html/xxx/Sources/Subs.php on line 3444


hi all ! i got that thing! when i was installs a sbox mod !

:) plz help me out ?
Title: Re: SMF Shoutbox
Post by: littleone on September 09, 2006, 10:12:10 AM
Quote from: Tuan on September 09, 2006, 12:47:35 AM

Fatal error: Cannot redeclare sbox() (previously declared in /home/xxx/public_html/xxx/Sources/Subs.php:3437) in /home/xxx/public_html/xxx/Sources/Subs.php on line 3444


hi all ! i got that thing! when i was installs a sbox mod !

:) plz help me out ?

the code that is in the sources/subs.php files is in there two times.  Find it and delete one of the two (the whole section of the code)
Title: Re: SMF Shoutbox
Post by: kyt on September 09, 2006, 01:48:33 PM
Quote from: mbirth on September 05, 2006, 07:04:26 AM
Quote from: kyt on September 03, 2006, 05:48:08 PMgot 1.13 installed on RC3
everything works great except the smilies show up as the alt text in firefox
Works fine in IE
[...]
do I have a setting jacked up maybe?
the smiles work fine in the forum posts though

ideas?

Maybe some extension in FF which modifies pages? (Don't know the name atm, but there was something...) Or an ad-blocker. Looks like it has to be something with FF as Opera also shows everything correct.

I do use the Adblock extension on all 3 of my FF installations (PC, laptop, and portable app (http://portableapps.com/apps/internet/firefox_portable) on thumbdrive).
I whitelisted my entire site on my PC installation, and it still only shows the alt text for the image.
If I switch to the IE Tab (https://addons.mozilla.org/firefox/1419/) view emulation it shows the images.
So you're saying its just a problem with the browser itself?
Does anyone else's site have this problem when viewed with FF?
If the images show up in forum posts, and they show up in the bar above the shoutbox, why would they not show up in the actual shout?

I'm on lunch right now, I'll try to the 1.14 update (if i have time  :'( ) once I get back to work.
Title: Re: SMF Shoutbox
Post by: TGB on September 10, 2006, 02:08:20 AM
where can i change the border class so it will use a different border image?
Title: Re: SMF Shoutbox
Post by: Kiwitje on September 10, 2006, 09:38:26 AM
How can i get the shoutbox in every board? So everywhere the user is on the forum, he/she can see the shoutbox. Now it's only on the main template.
Title: Re: SMF Shoutbox
Post by: Hack on September 10, 2006, 03:34:07 PM
Quote from: runescapetrades on September 08, 2006, 06:16:12 AM
IVE FOUND THE ANSWER
ok, open up sboxdb.php in your forum directory, under "sources". Open up that file, go to line 181.. and look for this "      $result .= htmlentities($s, ENT_NOQUOTES, $context['character_set']);
    } else {"

Take that out, save the file, and replace it with the old sboxdb.php and then its fixed.. =) hope this has helped..
Nick

Just did what runescape suggested above and my chatbox is now functioning correctly on my RC3 forum. Was having the error on line 91 previously reported beforehand
Title: Re: SMF Shoutbox
Post by: Tuan on September 11, 2006, 02:32:21 AM

Fatal error: Call to undefined function: template_shout_box() in /home/xxx/public_html/xxx/Sources/sbox.php on line 35

:( what do i do now?  :P
Title: Re: SMF Shoutbox
Post by: Kettu on September 11, 2006, 01:40:22 PM
Quote from: kyt on September 09, 2006, 01:48:33 PM
Does anyone else's site have this problem when viewed with FF?
I never have problems with my Firefox. All works fine.

Quote from: Kiwitje on September 10, 2006, 09:38:26 AM
How can i get the shoutbox in every board? So everywhere the user is on the forum, he/she can see the shoutbox. Now it's only on the main template.
It is on the main page because you added it to the boardindex.template.php. You can try to add it to other templates.

Quote from: Tuan on September 11, 2006, 02:32:21 AM

Fatal error: Call to undefined function: template_shout_box() in /home/xxx/public_html/xxx/Sources/sbox.php on line 35

:( what do i do now?  :P
As littleone already said: look if the shoutbox code is there twice.
Did you deinstall the old shoutbox before installing your current version?
Title: Re: SMF Shoutbox
Post by: Nic- on September 11, 2006, 02:12:01 PM
it worked fine but can not display utf-8 ( especially vietnamese )

(http://img129.imageshack.us/img129/9788/untitledkf3.jpg)

is there a way to fix it ?

thanks
Title: Re: SMF Shoutbox
Post by: Kettu on September 11, 2006, 03:34:46 PM
Quote from: Nic- on September 11, 2006, 02:12:01 PM
it worked fine but can not display utf-8 ( especially vietnamese )

(http://img129.imageshack.us/img129/9788/untitledkf3.jpg)

is there a way to fix it ?

thanks

I think mbirth is working on that problem. But maybe that helps with your problem, too. Just try it.

Quote from: runescapetrades on September 08, 2006, 06:16:12 AM
Quote from: Kettu on September 07, 2006, 08:54:43 AM
Quote from: Azmodan on September 07, 2006, 08:30:59 AM
I am having the same problem.  I use English.  This is what we get:

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /var/www/html/blackwolf/Sources/sboxDB.php on line 91
[X][Thu 08:29] <Azmo> This is the problem we are having when we post.


It posts the message, but puts the warning right above it.  Any ideas how to fix it?
Is it only a problem you have or does all have this message?

IVE FOUND THE ANSWER
ok, open up sboxdb.php in your forum directory, under "sources". Open up that file, go to line 181.. and look for this "      $result .= htmlentities($s, ENT_NOQUOTES, $context['character_set']);
    } else {"

Take that out, save the file, and replace it with the old sboxdb.php and then its fixed.. =) hope this has helped..
Nick
Title: Re: SMF Shoutbox
Post by: littleone on September 11, 2006, 04:40:42 PM
Quote from: Tuan on September 11, 2006, 02:32:21 AM

Fatal error: Call to undefined function: template_shout_box() in /home/xxx/public_html/xxx/Sources/sbox.php on line 35

:( what do i do now?  :P

Your missing something in their now at least thats what it looks like.  If you want my opinion, you need to completely uninstall the shoutbox, go back into the fills that get modified and make sure that all the relavent shout box codes are out, and then do a clean reinstall.  Thats just my suggestion.....

-OR-

if you are using a custom theme, you might be missing some of the code.  The packaged sbox only modifies the default themes, so if you have a custom theme, you need to manually add the code, to you Themes/CustomTheme/modified files
Title: Re: SMF Shoutbox
Post by: Hack on September 13, 2006, 06:18:45 AM
Is it possible to add custom bbcode to shoutbox? Me and the rest of the forum users are avid world of warcraft players so as you can imagine I have added a mod called itemstats to my forum. This allows us to link some of the game items within forums posts. Would it be possible to make other mods work in the shoutbox?

Itemstats uses
[wowitem]ITEM NAME[/wowitem]
to insert links in. Once the link is in users simply mouse over the words and it shows the result in a javascript floaty window thing.
Title: Re: SMF Shoutbox
Post by: Kettu on September 13, 2006, 06:44:43 AM
Normally the BBCode of your forum should work. So if you have it for your whole board it should work, in my opinion.
Title: Re: SMF Shoutbox
Post by: Hack on September 13, 2006, 06:58:04 AM
ok, well thanks for the reply. it doesnt work for the shoutbox, but does for posts. nevermind i am sure I am make the other members stop moaning evetunally ;)

UPDATE
This is the actual error message when I try and use the bbcode I listed a post or two ago:
Fatal error: Call to undefined function: itemstats_parse() in /ADDRESS TO SITE/forum/Sources/Subs.php(1101) : runtime-created function on line 1

Does this mean anything to you? :)
Title: Re: SMF Shoutbox
Post by: Kettu on September 13, 2006, 09:36:27 AM
Quote from: Hack on September 13, 2006, 06:58:04 AM
Does this mean anything to you? :)
To me not, but maybe to mbirth, he's the programmer of the team. ;)
Title: Re: SMF Shoutbox
Post by: tL0z on September 13, 2006, 05:36:08 PM
Hi,

How can I allow a Group to delete shouts?

Thanks
Title: Re: SMF Shoutbox
Post by: littleone on September 13, 2006, 11:54:59 PM
Quote from: tL0z on September 13, 2006, 05:36:08 PM
Hi,

How can I allow a Group to delete shouts?

Thanks

The most recent version allows anyone with the permission of "Allowed to Moderate Forum" to be able to delete shouts.  This is the only way.  mbirth didnt want to make the shout box so large as to include modifications to the permissions, so this is the only way you can have others, besides admins be able to delete shouts.
Title: Re: SMF Shoutbox
Post by: fleek on September 14, 2006, 03:04:45 AM
Can I make a request for user ability to change the color of their shout text?
Title: Re: SMF Shoutbox
Post by: fleek on September 14, 2006, 03:08:22 AM
Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /var/www/html/blackwolf/Sources/sboxDB.php on line 91
[X][Thu 08:29] <Azmo> This is the problem we are having when we post.



I solved the problem by replacing $context['character_set'] with "UTF-8".
Title: Re: SMF Shoutbox
Post by: Piwaille on September 14, 2006, 09:29:06 AM
Hello

Just to say I've made a very little mod on the mod :
when a guest visit the shoutbox, is allowed to see it but not to post, I put a little message to say "sorry but you should register or connect"

in sbox.template.php, look for
if ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1")) {
  echo '
        <input type="hidden" name="ts" value="'.forum_time(true).'">
<input class="windowbg2" type="text" name="sboxText" size="100" maxlength="320" />&nbsp;<input type="submit" class="input" value="&nbsp;flood&nbsp;" />';
}

add after
else
{
echo('
Depuis le passage d\'un certain robot spammeur, les invités ne peuvent plus poster dans le (t)chat<BR>
Merci de vous <A HREF="/forum/index.php?action=register">enregistrer</A> ou de vous <A HREF="/forum/index.php?action=login">connecter</A><BR>'
);
}

(my text is in french and should be putted in Modifications.french.php but I'm much too lazy :( )
Title: Re: SMF Shoutbox
Post by: chadk on September 14, 2006, 12:24:56 PM
When I have extra emotes enabled (via the popup window) and a user is trying to post a message, the emote characters are placed in the shoutbox, not the topic post.  I have modified my shoutbox to display under the main_content of the site instead of above the Boardindex because my users like it on every page. http://www.aviary.info
Title: Re: SMF Shoutbox
Post by: littleone on September 14, 2006, 05:10:01 PM
Quote from: fleek on September 14, 2006, 03:04:45 AM
Can I make a request for user ability to change the color of their shout text?

They already can.  They can use bbc to do it.
Title: Re: SMF Shoutbox
Post by: fous on September 14, 2006, 05:52:22 PM
We need an RC3 version bro!!! Please update
Title: Re: SMF Shoutbox
Post by: Kettu on September 15, 2006, 03:02:53 AM
Quote from: fous on September 14, 2006, 05:52:22 PM
We need an RC3 version bro!!! Please update
You should read before talking. We already HAVE a version for RC3. \||/
Title: Re: SMF Shoutbox
Post by: sipko on September 16, 2006, 10:34:22 AM
Is there any way to remove the "<Type your message and press ENTER>?" I love this mod, but often people forget to click it off and it appears in the message like this:

<Type your message and press ENTER>  :)

How can I remove it?

Thanks in advance for any help.     
Title: Re: SMF Shoutbox
Post by: Kettu on September 16, 2006, 11:17:53 AM
Quote from: sipko on September 16, 2006, 10:34:22 AM
Is there any way to remove the "<Type your message and press ENTER>?" I love this mod, but often people forget to click it off and it appears in the message like this:

<Type your message and press ENTER>  :)

How can I remove it?

Thanks in advance for any help.     
Of course. I don't know which file it is exactly, but check all files for that text (via search function) and than just delete it ;D
Title: Re: SMF Shoutbox
Post by: sipko on September 16, 2006, 12:51:59 PM
Thanks. I tried this already without success. Found it in sbox.english.php. Took  out $txt['sbox_TypeShout'] = '<Type your message and press ENTER>';, which didn't remove it.


Went to sbox.template.php and the other files but didn't see that text; so removed references to ['sbox_TypeShout'], in the sbox.template.php but still no luck.
Title: Re: SMF Shoutbox
Post by: Arska on September 16, 2006, 02:04:35 PM
Hi,

When I try to execute sbox_setup.php, I get an error:

Incorrect table name ''
File: /home/www/something.com/forum/sbox_setup.php
Row: 83


Please help me! What should I do?

Thanks.
Title: Re: SMF Shoutbox
Post by: Kettu on September 16, 2006, 06:49:49 PM
Quote from: sipko on September 16, 2006, 12:51:59 PM
Thanks. I tried this already without success. Found it in sbox.english.php. Took  out $txt['sbox_TypeShout'] = '<Type your message and press ENTER>';, which didn't remove it.


Went to sbox.template.php and the other files but didn't see that text; so removed references to ['sbox_TypeShout'], in the sbox.template.php but still no luck.
Delete only that language part not the code:
$txt['sbox_TypeShout'] = ' '

@Arska
Sorry, I have not idea.
Title: Re: SMF Shoutbox
Post by: sipko on September 16, 2006, 08:17:34 PM
Did this:

Quote$txt['sbox_HistoryNotFound'] = 'No history found.';
$txt['sbox_Guest'] = 'Guest';
$txt['sbox_TypeShout'] = ' '; <--

But, still get the '<Type your message and press ENTER>'.

Removed every 'sbox_TypeShout'] code in the template file to try to find what triggers the text, but it didn't remove the '<Type you message ...'>.

Example:

Quote<form name="sbox" action="' . $sourceurl . '/sboxDB.php?action=write" method="post" target="sboxframe" style="margin: 0;" onsubmit="if (this.sboxText.value == \'' . $txt['sbox_TypeShout'] . '\') return false; else setTimeout(\'clearSbox()\', 500);" enctype="multipart/form-data" accept-charset="' . $context['character_set'] . '">


The Shoutbox still worked and the text remained.

So, I'm wondering if something in the sboxDB.php has to be removed, or something else?

Title: Re: SMF Shoutbox
Post by: SageAttar on September 17, 2006, 09:02:08 AM
ah, this is a nice mod.. and this my 1st time to install a mod for smf.. so plz help.. where i upload all files? in root directory of my forum or theme dir?

ps.. here is 33 pages.. and this is very difficult to me read all posts & replies.. lol  :D ;)
Title: Re: SMF Shoutbox
Post by: Hack on September 19, 2006, 03:14:32 PM
Hello again..

I have been playing with this mod trying to get it running nicely alongside tinyportal. I have had some succes (thanks to some help from TP forums) but am still getting another error and I am unsure which direction to look in to fix it. The error is as follows:

Warning: htmlentities(): charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /PATH TO SITE/Sources/sboxDB.php on line 91

Does that make sense to anyone and if so does anyone know where I need to look to actually fix the problem?
Title: Re: SMF Shoutbox
Post by: Kettu on September 20, 2006, 01:39:21 AM
Quote from: sipko on September 16, 2006, 08:17:34 PM
Did this:

Quote$txt['sbox_HistoryNotFound'] = 'No history found.';
$txt['sbox_Guest'] = 'Guest';
$txt['sbox_TypeShout'] = ' '; <--

But, still get the '<Type your message and press ENTER>'.
Good morning,
you only have to change your language file(s) i.e. sbox.english.php to:
$txt['sbox_Guest'] = 'Guest';
$txt['sbox_TypeShout'] = ' ';

// Settings

This is enough! I did it and it works fine.

@SageAttar

Why don't you use your package manager?

@Hack
This is a charset problem. Check a few posts before there someone had an idea for a solution.
Title: Re: SMF Shoutbox
Post by: SageAttar on September 20, 2006, 10:00:24 AM
Quote from: Kettu on September 20, 2006, 01:39:21 AM
@SageAttar[/b]
Why don't you use your package manager?

Dear how i use package manager for mod installation.. please some help me..
Title: Re: SMF Shoutbox
Post by: SageAttar on September 20, 2006, 10:17:20 AM
 :D i upload it.. but when i apply.. i get 2 error msgs  :'(

Installation Readme
Sorry, but the SMF Shoutbox Mod doesn't support your SMF version!

Package Manager - Install Actions
Install Actions for archive sbox_v11.04.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 

so how shout box work? this version is not for SMF 1.0.7?
Title: Re: SMF Shoutbox
Post by: Kettu on September 20, 2006, 12:29:58 PM
Quote from: SageAttar on September 20, 2006, 10:17:20 AM
so how shout box work? this version is not for SMF 1.0.7?
I am sorry, but version 1.04 is for 1.1 RC2, only. We currently have version 1.14 running for RC2 and RC3. There is no version for 1.0.7.
As sawz already said, you can use the Ultimate shoutbox for 1.0.7.
Title: Re: SMF Shoutbox
Post by: SageAttar on September 20, 2006, 04:33:27 PM
Thanx Dear for help.. do u tell me what is Rc 1,2,3?
Title: Re: SMF Shoutbox
Post by: Kettu on September 21, 2006, 01:38:19 AM
Quote from: SageAttar on September 20, 2006, 04:33:27 PM
Thanx Dear for help.. do u tell me what is Rc 1,2,3?
Good morning. RC means Release Candidate. Because there where so many changes after making RC1, RC2 followed and the same was with RC3. It is not final but SMF 1.1 RC3 works fine. :)
Title: Re: SMF Shoutbox
Post by: littleone on September 21, 2006, 10:41:05 PM
FIX for MAJOR security flaw in this shout box!

Find this in sboxDB.php (forum/sources)
if (!defined('SMF'))
  die('Hacking attempt...');


Right after that line (its like one of the top few lines) add this after it:
is_not_banned(true);


This will prevent banned user from post.  Currently without this fix, users can be banned and as long as they dont refresh their page, they can continue to shout all day long.  So the above fix will give them an error and not allow them to post :)

Thanks to Jay the Code Monkey who gave this to me on the fly!!!  This has been a major problem for me the last week, with some rude people.  Glad its fixed now.  thanks for the help jay!

---------------------------------------------------------
This is only a temp fix!  But until mbirth can look into and and give the correct fix, this will do the job. It might cause an error in the error log, but that should only be one error anything u have an issue with a banned user shouting ;)  Its a rare occurance but my forum trouble makers found the loop whole in that, so they strickly target the shout box.
------------------------------------------------------

MBIRTH:
if you get a chance please look into this.  Making it check if user is banned before shout is posted :D  thanks
Title: Re: SMF Shoutbox
Post by: grloula on September 24, 2006, 04:47:45 PM
the letters that they grow????
Title: Re: SMF Shoutbox
Post by: Kettu on September 25, 2006, 02:27:30 AM
Quote from: grloula on September 24, 2006, 04:47:45 PM
the letters that they grow????
What?
Title: Re: SMF Shoutbox
Post by: ProtoMan.EXE on September 25, 2006, 06:31:12 AM
I have a question need to ask : How can I make the Shout Box to be appeared on all page , I mean not only the board index ? (I am talking about mbirth 's Shout Box) , thank you.
Title: Re: SMF Shoutbox
Post by: del_piero_3 on September 25, 2006, 06:49:13 AM
Hi,

Firstly this is a EXCELLENT mod, thank you very much for the hard work you have put in.

Secondly I am trying to have more similies, like shown at the bottom of this printscreen shot: http://mods.simplemachines.org/index.php?mod=412

How would I go about doing this. Thanks
Title: Re: SMF Shoutbox
Post by: Kettu on September 25, 2006, 07:03:30 AM
@del_piero_3
What kind of Mod do you use? deeps version 1.04 or mbirth's version 1.14?

@ProtoMan.EXE
Just add the code to your index.template.php

Edit:
@del_piero_3
You use deep's old shoutbox. If you still want to use this and don't want to change to mbirth's, just check the language file. There are the links to the smilies in and you can change it.
Title: Re: SMF Shoutbox
Post by: ProtoMan.EXE on September 25, 2006, 07:29:01 AM
Sorry , but add what codes ? If I have to replace , please tell me where to replace , thank you.
Title: Re: SMF Shoutbox
Post by: littleone on September 25, 2006, 11:04:38 AM
Quote from: del_piero_3 on September 25, 2006, 06:49:13 AM
Hi,

Firstly this is a EXCELLENT mod, thank you very much for the hard work you have put in.

Secondly I am trying to have more similies, like shown at the bottom of this printscreen shot: http://mods.simplemachines.org/index.php?mod=412

How would I go about doing this. Thanks


You should use mbirths 1.14 instead of Deeps.  1.14 uses ur forum smilies.  ;)
Title: Re: SMF Shoutbox
Post by: grloula on September 25, 2006, 04:54:33 PM
Quote from: Kettu on September 25, 2006, 02:27:30 AM
Quote from: grloula on September 24, 2006, 04:47:45 PM
the letters that they grow????
What?

the letters SMF Shoutbox is small

that you become big?
Title: Re: SMF Shoutbox
Post by: littleone on September 25, 2006, 05:43:15 PM
Quote from: grloula on September 25, 2006, 04:54:33 PM
Quote from: Kettu on September 25, 2006, 02:27:30 AM
Quote from: grloula on September 24, 2006, 04:47:45 PM
the letters that they grow????
What?

the letters SMF Shoutbox is small

that you become big?

Admin >> Features and Option >> SMF Shoutbox
Title: Re: SMF Shoutbox
Post by: GB! on September 26, 2006, 04:12:32 AM
Quote from: littleone on September 25, 2006, 11:04:38 AM
You should use mbirths 1.14 instead of Deeps.  1.14 uses ur forum smilies.  ;)
Am I missing something? I just installed 1.15 and my smileys still look like colons and parenthesis... I would like to use my forum's smileys.
Title: Re: SMF Shoutbox
Post by: Kettu on September 26, 2006, 06:39:03 AM
Quote from: GB! on September 26, 2006, 04:12:32 AM
Quote from: littleone on September 25, 2006, 11:04:38 AM
You should use mbirths 1.14 instead of Deeps.  1.14 uses ur forum smilies.  ;)
Am I missing something? I just installed 1.15 and my smileys still look like colons and parenthesis... I would like to use my forum's smileys.

Huh? that I don't understand. Normally there should still be your forum smileys used. This is standard. And I can't find any changes about this at the changes list.
QuoteChanges for 1.15
+ added filtering of "<Enter shout and press ENTER>"-text
+ added "Please login or register to shout."-message for guests if they are not allowed to shout
x hopefully fixed bug with smileys-insertion into sbox instead of posts if sbox was included into all pages in SMF
x hopefully fixed bug with "ANSI_X3.4-1968"-charset, which is just ASCII and seems to be used for UTF-8, also suppressed error messages from htmlentities()
+ added is_not_banned()-check before a post is inserted
+ added disable/re-enable automatic refresh
+ added filtering of [img]-BBCode (may get a switch in settings soon)
! if you don't like it, remove line #308 in sboxDB.php
And I still use 1.14.

Edit:
Could it be, that you've installed 1.04, deeps shoutbox? Or didn't deinstall his shoutbox before installing 1.15?
Title: Re: SMF Shoutbox
Post by: ProtoMan.EXE on September 26, 2006, 07:33:22 AM
Can some one answer my question , please ?  :'(
Title: Re: SMF Shoutbox
Post by: Kettu on September 26, 2006, 08:01:11 AM
Quote from: ProtoMan.EXE on September 25, 2006, 07:29:01 AM
Sorry , but add what codes ? If I have to replace , please tell me where to replace , thank you.
Quote from: ProtoMan.EXE on September 26, 2006, 07:33:22 AM
Can some one answer my question , please ?  :'(
I am sorry, but OPEN YOUR EYES!!! You find the code at the same page where you got the shoutbox from (http://mods.simplemachines.org/index.php?mod=412). ::)
I am tired to write this every few days again and again.
Title: Re: SMF Shoutbox
Post by: ProtoMan.EXE on September 26, 2006, 08:05:58 AM
Quote from: Kettu on September 26, 2006, 08:01:11 AM
Quote from: ProtoMan.EXE on September 25, 2006, 07:29:01 AM
Sorry , but add what codes ? If I have to replace , please tell me where to replace , thank you.
Quote from: ProtoMan.EXE on September 26, 2006, 07:33:22 AM
Can some one answer my question , please ?  :'(
I am sorry, but OPEN YOUR EYES!!! You find the code at the same page where you got the shoutbox from (http://mods.simplemachines.org/index.php?mod=412). ::)
I am tired to write this every few days again and again.
Sorry but I can't find the code for the shout box to appear on all pages not only the board index there , please help me  :'(
Title: Re: SMF Shoutbox
Post by: Kettu on September 26, 2006, 08:42:45 AM
Quote from: ProtoMan.EXE on September 26, 2006, 08:05:58 AM
Sorry but I can't find the code for the shout box to appear on all pages not only the board index there , please help me  :'(
As I already told you, you have to add the code to your index.template.php on that position where you would like to show it, before or behind the news etc.
Quote from: Kettu on September 25, 2006, 07:03:30 AM
@ProtoMan.EXE
Just add the code to your index.template.php
Title: Re: SMF Shoutbox
Post by: ProtoMan.EXE on September 26, 2006, 08:56:00 AM
Sorry , but that is not what I meant , I didn't mean its position on the board index , I mean how can I make it visible while I am reading my members' posts or viewing the topics etc. Please help me  :)
Title: Re: SMF Shoutbox
Post by: grloula on September 26, 2006, 04:27:54 PM
Quote from: littleone on September 25, 2006, 05:43:15 PM
Quote from: grloula on September 25, 2006, 04:54:33 PM
Quote from: Kettu on September 25, 2006, 02:27:30 AM
Quote from: grloula on September 24, 2006, 04:47:45 PM
the letters that they grow????
What?

the letters SMF Shoutbox is small

that you become big?

Admin >> Features and Option >> SMF Shoutbox

ok thanks
Title: Re: SMF Shoutbox
Post by: GB! on September 27, 2006, 02:07:55 AM
Quote from: GB! on September 26, 2006, 04:12:32 AM
Quote from: littleone on September 25, 2006, 11:04:38 AM
You should use mbirths 1.14 instead of Deeps.  1.14 uses ur forum smilies.  ;)
Am I missing something? I just installed 1.15 and my smileys still look like colons and parenthesis... I would like to use my forum's smileys.

Huh? that I don't understand. Normally there should still be your forum smileys used. This is standard. And I can't find any changes about this at the changes list.
[/quote]
could it be because I changed smiley sets?
Title: Re: SMF Shoutbox
Post by: Kettu on September 27, 2006, 05:27:25 AM
Quote from: GB! on September 27, 2006, 02:07:55 AM
could it be because I changed smiley sets?
No. Are you sure you use mbirth's version?

Quote from: ProtoMan.EXE on September 26, 2006, 08:56:00 AM
Sorry , but that is not what I meant , I didn't mean its position on the board index , I mean how can I make it visible while I am reading my members' posts or viewing the topics etc. Please help me  :)
index.template.php control's the WHOLE page including header and footer. If you add the code to header or footer you'll see it on every page.
Title: Re: SMF Shoutbox
Post by: GB! on September 27, 2006, 05:36:11 AM
Yes. I'm using v1.15, which is his.
Title: Re: SMF Shoutbox
Post by: Kettu on September 27, 2006, 06:21:42 AM
Quote from: GB! on September 27, 2006, 05:36:11 AM
Yes. I'm using v1.15, which is his.
I am sorry, but I can't understand it. Can you make a screenshot of it, please?
Title: Re: SMF Shoutbox
Post by: ProtoMan.EXE on September 27, 2006, 09:37:13 AM
Sorry , but I run into another problem :

When I tried to add the code , and yes , the Shout Box appeared on all pages (Not only the board index) butthen all the smileys and BBC were disabled. What should I do now ? Maybe I entered the code wrong , can you give me its exact location in that file  :) Thank you.
Title: Re: SMF Shoutbox
Post by: GB! on September 27, 2006, 09:47:53 AM
Quote from: Kettu on September 27, 2006, 06:21:42 AM
I am sorry, but I can't understand it. Can you make a screenshot of it, please?
this is the mod i'm using:
http://mods.simplemachines.org/index.php?mod=412
Title: Re: SMF Shoutbox
Post by: DevineJustice on September 27, 2006, 10:41:26 AM
I'm having some issues. I downloaded and installed and this is what I get:

(http://img.photobucket.com/albums/v286/XcaelumdeaX/shoutbox1.jpg)

can I get some assist. on how to make it look like it is supposed to?

I should warn you...I don't know TOO MUCH about this kinda stuff so any idiot's direction sheets are appreciated!

Thanks
Title: Re: SMF Shoutbox
Post by: Kettu on September 28, 2006, 05:47:48 AM
Quote from: DevineJustice on September 27, 2006, 10:41:26 AM
I'm having some issues. I downloaded and installed and this is what I get:

can I get some assist. on how to make it look like it is supposed to?

I should warn you...I don't know TOO MUCH about this kinda stuff so any idiot's direction sheets are appreciated!

Thanks
Looks like a template problem. What kind of version did you install?

Quote from: GB! on September 27, 2006, 09:47:53 AM
Quote from: Kettu on September 27, 2006, 06:21:42 AM
I am sorry, but I can't understand it. Can you make a screenshot of it, please?
this is the mod i'm using:
http://mods.simplemachines.org/index.php?mod=412
You already told me. But I need a screenshot of your running shoutbox!

Quote from: ProtoMan.EXE on September 27, 2006, 09:37:13 AM
Sorry , but I run into another problem :

When I tried to add the code , and yes , the Shout Box appeared on all pages (Not only the board index) butthen all the smileys and BBC were disabled. What should I do now ? Maybe I entered the code wrong , can you give me its exact location in that file  :) Thank you.
I need the complete code of your index.template.php to help you.

@all
I'll be away for at least a week, so I can't support for this time.
Title: Re: SMF Shoutbox
Post by: kok3n on September 28, 2006, 11:54:23 AM
guys i need some serious help here.. i'm new to forum stuff and don't have any knowledge about php's..

after installing the shoutbox in my forum, i can no longer access it.. this is the error that i'm getting..

Fatal error: Cannot redeclare smfshout() (previously declared in /home/mindanao/public_html/Sources/Subs.php:1883) in /home/mindanao/public_html/Sources/Subs.php on line 1889


btw, my site's URL is www.mindanao-online.com

please help..
Title: Re: SMF Shoutbox
Post by: Chad on September 28, 2006, 12:04:37 PM
Quote from: bisrock on September 28, 2006, 11:54:23 AM
guys i need some serious help here.. i'm new to forum stuff and don't have any knowledge about php's..

after installing the shoutbox in my forum, i can no longer access it.. this is the error that i'm getting..

Fatal error: Cannot redeclare smfshout() (previously declared in /home/mindanao/public_html/Sources/Subs.php:1883) in /home/mindanao/public_html/Sources/Subs.php on line 1889


btw, my site's URL is www.mindanao-online.com

please help..

This means you have smfshout in more than one place in Subs.php.  Edit that file and pick one place or the other and you'll be fine.
Title: Re: SMF Shoutbox
Post by: kok3n on September 28, 2006, 12:13:12 PM
Quote from: Chad on September 28, 2006, 12:04:37 PM
Quote from: bisrock on September 28, 2006, 11:54:23 AM
guys i need some serious help here.. i'm new to forum stuff and don't have any knowledge about php's..

after installing the shoutbox in my forum, i can no longer access it.. this is the error that i'm getting..

Fatal error: Cannot redeclare smfshout() (previously declared in /home/mindanao/public_html/Sources/Subs.php:1883) in /home/mindanao/public_html/Sources/Subs.php on line 1889


btw, my site's URL is www.mindanao-online.com

please help..

This means you have smfshout in more than one place in Subs.php.  Edit that file and pick one place or the other and you'll be fine.

how do i edit it? do i need to login to my ftp server? i'm sorry sir, i'm just dumb when it comes to this stuff.. i'm still trying to learn a lot of things..
Title: Re: SMF Shoutbox
Post by: Chad on September 28, 2006, 12:56:36 PM
Yep, log into your ftp server, download the file, open it in a text editor (notepad for windows, gedit for linux) and find smfshout().  you'll see it in more than one place.  Place // in front all but one of the instances you find.
Title: Re: SMF Shoutbox
Post by: kok3n on September 28, 2006, 01:04:54 PM
can i download the file from my cpanel? i'm at the office right now and i don't have an ftp client installed since my computer is not allowing me to..
Title: Re: SMF Shoutbox
Post by: Chad on September 28, 2006, 02:20:22 PM
Sorry, I ran to lunch.  Yes, if you have cpanel you should have a File Manager.  Click that then browse to public_html/Sources/ and click on Subs.php then hit EDIT on the upper right of the screen.
Copy the entire text into a text editor and do the changes I talked about then paste the entire text back into the cpanel window and hit SAVE.
Title: Re: SMF Shoutbox
Post by: kok3n on September 28, 2006, 02:41:30 PM
this is what i found..


}
function smfshout()
{
   global $sourcedir;

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

function smfshout()
{
   global $sourcedir;

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




what should i do?
Title: Re: SMF Shoutbox
Post by: Chad on September 28, 2006, 03:13:59 PM
Quote from: bisrock on September 28, 2006, 02:41:30 PM
this is what i found..


}
function smfshout()
{
   global $sourcedir;

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

function smfshout()
{
   global $sourcedir;

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




what should i do?
Delete everything from function smfshout() down to the } symbol so you just have:
function smfshout()
{
global $sourcedir;

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

One time.
Title: Re: SMF Shoutbox
Post by: kok3n on September 28, 2006, 03:37:26 PM
whew.. that solves it.. thank you so much.. you've been a great help.. :)
Title: Re: SMF Shoutbox
Post by: AZNmodder on September 28, 2006, 03:54:20 PM
Hi, I'm getting this error on the shoutbox (1.1 RC3 using standard theme right now but going to use different one later)

Notice: Undefined index: sbox_RefreshDisable in /home/providenceforums/public_html/Sources/sboxDB.php on line 273
[]


Overall the shoutbox works just fine though...just that error is ALWAYS on top
Title: Re: SMF Shoutbox
Post by: AZNmodder on September 28, 2006, 10:24:49 PM
sorry for the double post, I fixed the problem and everything seems to work fine now, so I tried it on another theme.

Everything works but the text is centered and the background and text colors don't match the theme.  I'm sure someone has posted this somewhere in the 36 pages so I'll search around if I need to, but if anyone knows off the top of their hand what to do, I would deeply be in your debt.
Title: Re: SMF Shoutbox
Post by: kok3n on September 28, 2006, 10:54:41 PM
good day... i need help with the installation of ultimate shoutbox..

i am getting this error

2: copy(/home/mindanao/public_html/Themes/default/languages/Modifications.english.php~): failed to open stream: Permission denied
File: /home/mindanao/public_html/Sources/Subs-Package.php
Line: 1307

after clicking on apply mod.. what should i do?
Title: Re: SMF Shoutbox
Post by: AZNmodder on September 28, 2006, 11:45:02 PM
Quote from: bisrock on September 28, 2006, 10:54:41 PM
good day... i need help with the installation of ultimate shoutbox..

i am getting this error

2: copy(/home/mindanao/public_html/Themes/default/languages/Modifications.english.php~): failed to open stream: Permission denied
File: /home/mindanao/public_html/Sources/Subs-Package.php
Line: 1307

after clicking on apply mod.. what should i do?

try this thread http://www.simplemachines.org/community/index.php?topic=8415.0 (ultimate shoutbox was made by grudge I think, this is a different shoutbox)

someone help me with my problem 2 posts up?
Title: Re: SMF Shoutbox
Post by: kok3n on September 28, 2006, 11:55:03 PM
Quote from: AZNmodder on September 28, 2006, 11:45:02 PM
Quote from: bisrock on September 28, 2006, 10:54:41 PM
good day... i need help with the installation of ultimate shoutbox..

i am getting this error

2: copy(/home/mindanao/public_html/Themes/default/languages/Modifications.english.php~): failed to open stream: Permission denied
File: /home/mindanao/public_html/Sources/Subs-Package.php
Line: 1307

after clicking on apply mod.. what should i do?

try this thread http://www.simplemachines.org/community/index.php?topic=8415.0 (ultimate shoutbox was made by grudge I think, this is a different shoutbox)

someone help me with my problem 2 posts up?

ok.. thanks!  :)
Title: Re: SMF Shoutbox
Post by: del_piero_3 on October 01, 2006, 07:56:36 AM
Quote from: Kettu on September 25, 2006, 07:03:30 AM
@del_piero_3
What kind of Mod do you use? deeps version 1.04 or mbirth's version 1.14?

@del_piero_3
You use deep's old shoutbox. If you still want to use this and don't want to change to mbirth's, just check the language file. There are the links to the smilies in and you can change it.

Am sorry I got busy with few things....I am using mbirth's sbox_v1.15. Running 1.1 RC3 using Classic YaBB SE Theme.
Title: Re: SMF Shoutbox
Post by: NicolaUK on October 01, 2006, 10:29:50 AM
I wonder if anyone can help, had to move hosts and am finally up and running - thanks to Fizzy and Trekkie  :D - but am unable to install this mod.

I'm getting

QuoteFatal error: Call to undefined function: sbox_display() in /home/disney00/public_html/caliberowners/Sources/Subs.php on line 3568

Can anyone advise please?

Oh and I'm using RC3 and Shoutbox 1.15  :)
Title: Re: SMF Shoutbox
Post by: littleone on October 01, 2006, 10:38:06 AM
Quote from: AZNmodder on September 28, 2006, 10:24:49 PM
sorry for the double post, I fixed the problem and everything seems to work fine now, so I tried it on another theme.

Everything works but the text is centered and the background and text colors don't match the theme.  I'm sure someone has posted this somewhere in the 36 pages so I'll search around if I need to, but if anyone knows off the top of their hand what to do, I would deeply be in your debt.

Admin >> Features and Options>> SMF Shoutbox.

That will fix your color issue, not sure about your centering issue.  It might require you to go in and add an align="left" in the shout box code or on your index page.

Quote from: NicolaUK on October 01, 2006, 10:29:50 AM
I wonder if anyone can help, had to move hosts and am finally up and running - thanks to Fizzy and Trekkie  :D - but am unable to install this mod.

I'm getting

QuoteFatal error: Call to undefined function: sbox_display() in /home/disney00/public_html/caliberowners/Sources/Subs.php on line 3568

Can anyone advise please?

Oh and I'm using RC3 and Shoutbox 1.15  :)

You need to open us the Subs.php file and find the sbox display code.  You have it in there twice.  You need to remove one of those two.  That will clear up your problem.
Title: Re: SMF Shoutbox
Post by: NicolaUK on October 01, 2006, 11:20:15 AM
I can only see it once, right at the bottom ::)

Quotefunction sbox() {
  global $sourcedir;

  include_once("$sourcedir/sbox.php");
  sbox_display();
}
Title: Re: SMF Shoutbox
Post by: AZNmodder on October 01, 2006, 01:25:17 PM
Quote from: littleone on October 01, 2006, 10:38:06 AM
Admin >> Features and Options>> SMF Shoutbox.

That will fix your color issue, not sure about your centering issue.  It might require you to go in and add an align="left" in the shout box code or on your index page.

that only fixes the text color, the background color cant be changed from there...either that or i'm missing it
Title: Re: SMF Shoutbox
Post by: AZNmodder on October 01, 2006, 02:30:51 PM
sorry for double post...maybe this image will explain the problem better than words.

(http://img412.imageshack.us/img412/1641/shoutbox2pz3.gif)

I want the background to be gray and the text to match the background.  When I set font color in Admin>Features and options>SMF Shoutbox it makes some of the text yellow.  I have no idea where the purple (and normal users appear blue) is coming from.  I definitely didn't set the admin or any other user group to that color of purple.

I also would like it to be left aligned.  Anyone know where in the code to change that from center to left?
Title: Re: SMF Shoutbox
Post by: GB! on October 02, 2006, 01:43:59 AM
Quote from: Kettu on September 27, 2006, 06:21:42 AM
You already told me. But I need a screenshot of your running shoutbox!
I was able to fix it last night. I didn't know that BBC needs to be activated for smileys to work. Thanks!
Title: Re: SMF Shoutbox
Post by: Chad on October 03, 2006, 10:29:35 PM
When someone posts a shout with a " symbol, it comes out &quot;  Any way to fix this?
Title: Re: SMF Shoutbox
Post by: p0w3r on October 05, 2006, 02:25:43 PM
Hello,

I've a little problem. Some options on admin panel does not appear. Already copy the content of Modifications.english.php to Modifications.portuguese.php and ModSettings.english.php to ModSettings.portuguese.php and nothing. I'm I missing something?
Any help would be appreciated. Thanks

(http://img70.imageshack.us/img70/9695/shoutio9.jpg)

PS: Great mod! Congratulations!
Title: Re: SMF Shoutbox
Post by: ballboff on October 07, 2006, 06:44:19 AM
I get a 404 page not found error in my shoutbox, any ideas why this would be?  I installed the shoutbox after removing the old one.  Think I need a history file, which was obviously removed from the old version removal process. 

Maybe this might help....

(http://i40.photobucket.com/albums/e204/ballboff/screen1.jpg)

As you can see, I get my hosters home page, which means there's a page not found.  What page though?
Title: Re: SMF Shoutbox
Post by: Aran on October 07, 2006, 07:58:08 AM
I dont really get it.
I downloaded the right shoutbox, installed it and putted a mod on it but still it aint visible on the forum.. what else is there to do?
Title: Re: SMF Shoutbox
Post by: Chad on October 07, 2006, 08:42:02 AM
Quote from: Chad on October 03, 2006, 10:29:35 PM
When someone posts a shout with a " symbol, it comes out &quot;  Any way to fix this?

Anything?
Title: Re: SMF Shoutbox
Post by: ballboff on October 08, 2006, 06:37:29 AM
Quote from: Aran on October 07, 2006, 07:58:08 AM
I dont really get it.
I downloaded the right shoutbox, installed it and putted a mod on it but still it aint visible on the forum.. what else is there to do?

You need to put the code in the boardindex.template as follows...

Add the code
  // display shoutbox
  if (function_exists('sbox')) sbox();

For some reason this nearly always has to be input manually, I'm guessing so that you can put it where you want it.  You need to input this same code in each theme that you want it to appear in.  I think it installs correctly in the default theme (the one named default, and not necessarily your defalt forum theme)

Title: Re: SMF Shoutbox
Post by: Aran on October 08, 2006, 05:44:06 PM
Thanks :) that did it.
Another question about the shoutbox.
Is there a specification needed to put in the code to put the shoutbox on the left side in the forum.
In the demo of the theme we are running they have some stuff like a shoutbox and add's on the left, any idea how to do that? (Mercury theme)

Thanks
Aran~
Title: Re: SMF Shoutbox
Post by: p0w3r on October 08, 2006, 07:36:00 PM
re
http://www.simplemachines.org/community/index.php?topic=76344.msg755240#msg755240 (http://www.simplemachines.org/community/index.php?topic=76344.msg755240#msg755240)
Title: Re: SMF Shoutbox
Post by: xcrazyxfrogx on October 08, 2006, 08:14:46 PM
Those who use Helios multi theme 1.1RC2 or RC3 add this to ur BoardIndex.template.php
look for
Quote// Show the news fader?  (assuming there are things to show...)
        if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
        {
                echo $topbox;
                echo '

replace with
Quote
// display shoutbox
  if (function_exists('sbox')) sbox();
// Show the news fader?  (assuming there are things to show...)
        if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
        {
                echo $topbox;
                echo '
and u will get it above News Fader Box :) Enjoy buds :D
Title: Re: SMF Shoutbox
Post by: tL0z on October 09, 2006, 07:48:49 AM
Hello,

I'm trying to remove the 1.13 version to install the 1.15. However it says it can't modify the modsettings.php file. Can anyone please tell me the changes I have to do to the file?

Thanks
Title: Re: SMF Shoutbox
Post by: ballboff on October 09, 2006, 08:32:20 AM
Quote from: tL0z on October 09, 2006, 07:48:49 AM
Hello,

I'm trying to remove the 1.13 version to install the 1.15. However it says it can't modify the modsettings.php file. Can anyone please tell me the changes I have to do to the file?

Thanks

You could just edit the file yourself, all it's doing is removing the sbox references from that file as far as I'm aware.

It starts with ...   

loadLanguage('sbox');

and ends with 

prepareDBSettingContext($config_vars);
}
Title: Re: SMF Shoutbox
Post by: Kettu on October 11, 2006, 04:46:56 AM
Quote from: del_piero_3 on October 01, 2006, 07:56:36 AM
Am sorry I got busy with few things....I am using mbirth's sbox_v1.15. Running 1.1 RC3 using Classic YaBB SE Theme.
So if you want to have more Smilies, just add some more smilies to your forum. These are the same smilies shown in the shoutbox.

Quote from: AZNmodder on October 01, 2006, 01:25:17 PM
Quote from: littleone on October 01, 2006, 10:38:06 AM
Admin >> Features and Options>> SMF Shoutbox.

That will fix your color issue, not sure about your centering issue.  It might require you to go in and add an align="left" in the shout box code or on your index page.

that only fixes the text color, the background color cant be changed from there...either that or i'm missing it
Have you added the correct name of your theme to the list of dark themes?
Your other problem is a problem of your theme css. There is a code that says to show the text centered.

Quote from: p0w3r on October 05, 2006, 02:25:43 PM
Hello,

I've a little problem. Some options on admin panel does not appear. Already copy the content of Modifications.english.php to Modifications.portuguese.php and ModSettings.english.php to ModSettings.portuguese.php and nothing. I'm I missing something?
Any help would be appreciated. Thanks
Please check the language files of the mod. All files that have an .english.php in its name have to be changed to .portuguese.php
Title: Re: SMF Shoutbox
Post by: ballboff on October 11, 2006, 04:51:51 AM
Quote from: ballboff on October 07, 2006, 06:44:19 AM
I get a 404 page not found error in my shoutbox, any ideas why this would be?  I installed the shoutbox after removing the old one.  Think I need a history file, which was obviously removed from the old version removal process. 

Maybe this might help....

(http://i40.photobucket.com/albums/e204/ballboff/screen1.jpg)

As you can see, I get my hosters home page, which means there's a page not found.  What page though?

Anybody?  I've got a page missing, what bloody page though?  Don't understand.
Title: Re: SMF Shoutbox
Post by: Kettu on October 11, 2006, 06:02:42 AM
Quote from: ballboff on October 11, 2006, 04:51:51 AM
Anybody?  I've got a page missing, what bloody page though?  Don't understand.
I am not sure if this is the same problem we had with Internal Server Error, but you should check it.
Go to your file sbBox.php and change the CHMod from 777 to 644.
Title: Re: SMF Shoutbox
Post by: tL0z on October 12, 2006, 05:32:48 AM
I've just removed the 1.13 version and installed the 1.15 one. However, I got an error on the top of the page after installing it:

Error: CHMOD for sboxDB.php failed!

The file currently is as 0777
Title: Re: SMF Shoutbox
Post by: littleone on October 12, 2006, 07:29:23 AM
Quote from: tL0z on October 12, 2006, 05:32:48 AM
The file currently is as 0777

Read the post right about yours

Quote from: Kettu on October 11, 2006, 06:02:42 AM
Go to your file sbBox.php and change the CHMod from 777 to 644.
Title: Re: SMF Shoutbox
Post by: ballboff on October 14, 2006, 06:33:41 AM
Quote from: Kettu on October 11, 2006, 06:02:42 AM
Quote from: ballboff on October 11, 2006, 04:51:51 AM
Anybody?  I've got a page missing, what bloody page though?  Don't understand.
I am not sure if this is the same problem we had with Internal Server Error, but you should check it.
Go to your file sbBox.php and change the CHMod from 777 to 644.

Mmm... mine is already set to 644.  Thanks anyway.
Title: Re: SMF Shoutbox
Post by: Chad on October 14, 2006, 09:42:43 AM
Ok, I've modified my shoutbox to post a reply to a topic in a specific forum with the contents of the shout.
This is fun for several reasons.  It allows everyone to see the history and it allows my post count to rise a LOT and finally, it makes shout box stuff searchable since a lot of my members use it for quick Q&A.
... see next post
Title: Re: SMF Shoutbox
Post by: Chad on October 14, 2006, 10:15:04 AM
I got it...
I've set this to REPLY to a previous shout/post if it's less than 5 minutes old.  If it's more than 5 minutes, it will create a new topic.  This  will boost my post count A LOT. ;)

In Sources/sboxDB.php
FIND:
      // 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__);


ADD AFTER the text you found:
// Post shouts to a new topic in category 92
require_once(dirname(__FILE__) . '/Subs-Post.php');
global $user_info, $ID_MEMBER;

$result = db_query("SELECT max(subject) as subj, max(ID_MSG) as maxmsg, max(ID_TOPIC) as maxtopic, max(posterTime) AS maxtime, ID_BOARD FROM {$db_prefix}messages GROUP BY ID_BOARD HAVING ID_BOARD=92", __FILE__, __LINE__); //Get the last post in the forum
$row = mysql_fetch_assoc($result);
$timelimit = time()-300; //# of seconds to wait for a NEW topic or a REPLY : 300=5 mins, 900=15 minutes

if ($row['maxtime']>$timelimit) {
$topicOptions['id'] = $row['maxtopic']; //Get the last new topic and set it as the reply id
$msgOptions['subject'] = addslashes("RE: ".$row['subj']); //set the subject as a reply to the previous subject
} else {
$topicOptions['id']=0; //It's been more than 5 minutes, post a new topic
$msgOptions['subject'] = substr($_REQUEST['sboxText'], 0, 100); //Use the left 100 chars from the shout as the subject
}
$topicOptions['board'] = 92; //shoutbox history forum, make sure you create one and change this number
$msgOptions['body'] = $_REQUEST['sboxText']; //the shouted text
$posterOptions['id']=$context['user']['id']; //user's ID
createPost(&$msgOptions, &$topicOptions, &$posterOptions); //create the post using the SMF posting function
// end posting shouts to category mod


This code isn't FULLY tested.  It seems to be working but I'm open for feedback on security and stability! Thanks!
Title: Re: SMF Shoutbox
Post by: Chad on October 14, 2006, 12:20:00 PM
make sure you create a forum for these posts to end up in and edit the php code after you paste it into your file so use the proper forum ID number.  Mine is 92, yours will be different.
Title: Re: SMF Shoutbox
Post by: dewayne on October 15, 2006, 04:57:57 PM
i get this error (i didnt see it in this thread) when trying to add the shoutbox to my forum...

Fatal error: Cannot redeclare template_shout_box() (previously declared in /home/blazin/public_html/staffforum/Sources/Load.php(1703) : eval()'d code:127) in /home/blazin/public_html/staffforum/Sources/Load.php(1703) : eval()'d code on line 3

i'm using version 1.15 with a theme other than the default.  i added 

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

to the BoardIndex.template.php file


anyone have an idea ???
Title: Re: SMF Shoutbox
Post by: Kettu on October 15, 2006, 05:15:09 PM
Quote from: dewayne on October 15, 2006, 04:57:57 PM
i get this error (i didnt see it in this thread) when trying to add the shoutbox to my forum...

Fatal error: Cannot redeclare template_shout_box() (previously declared in /home/blazin/public_html/staffforum/Sources/Load.php(1703) : eval()'d code:127) in /home/blazin/public_html/staffforum/Sources/Load.php(1703) : eval()'d code on line 3

i'm using version 1.15 with a theme other than the default.  i added 

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

to the BoardIndex.template.php file


anyone have an idea ???

Hi, you have the shoutbox code at least twice in your Subs.php. Check it for this code and delete all except one.

function sbox()
{
global $sourcedir;

include_once("$sourcedir/sbox.php");
sbox_display();
}
Title: Re: SMF Shoutbox
Post by: dewayne on October 15, 2006, 05:49:43 PM
i only see it once in the /Source/Subs.php file  :(

Title: Re: SMF Shoutbox
Post by: Kettu on October 16, 2006, 04:55:21 AM
Quote from: dewayne on October 15, 2006, 05:49:43 PM
i only see it once in the /Source/Subs.php file  :(
Okay, redeclare means something is double. But maybe at ModSettings.php. Check this one for double sbox code. I currently haven't it by hand.
Title: Re: SMF Shoutbox
Post by: scrap yourself silly on October 16, 2006, 10:40:55 AM
Apologies if this has been answered already...

Would like this to appear on all my forum pages.  Would I just add the code

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

to my index.template.php or something?

Thanks  :)
Title: Re: SMF Shoutbox
Post by: Chad on October 16, 2006, 02:46:04 PM
scrap: Yes.
that's what I've done here: http://www.aviary.info  It's on the bottom of every page.
Title: Re: SMF Shoutbox
Post by: littleone on October 16, 2006, 03:57:35 PM
Quote from: Chad on October 16, 2006, 02:46:04 PM
scrap: Yes.
that's what I've done here: http://www.aviary.info  It's on the bottom of every page.

Chad call me stupid but how did you get your forum background to change to an image without using a custom theme?  I know its off topic, so if you feel more appropriate to respond via PM that is fine to lol ;)
Title: Re: SMF Shoutbox
Post by: Chad on October 17, 2006, 07:24:05 PM
I'll put the answer here in case someone's searching for the answer as well (some moderator can split the topic for us hopefully).

I just editted the Themes/default/style.css

Find this:
/* The main body of the entire forum. */
body
{
background-color: #3366CC;
margin: 0px;
padding: 12px 30px 4px 30px;


Add after:
background-image:url(images/webbackgrounds/colour-05.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;


So you should have:
/* The main body of the entire forum. */
body
{
background-color: #3366CC;
margin: 0px;
padding: 12px 30px 4px 30px;
background-image:url(images/webbackgrounds/colour-05.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
}


Change the image url to your own image and you're done. ;)
Title: Re: SMF Shoutbox
Post by: tvdoc on October 18, 2006, 10:54:04 AM
This thing works beautifully but, on any resolution higher than 800x600, the text is too small to read. If this question's been touched on, I apologize. I'm also sorry that I don't know code that well and need to know how to enlarge the text size. Did find in the sbox-setup.php' where it says 'text=xx-small'. Any help is greatly appreciated. Thanks.
Title: Re: SMF Shoutbox
Post by: Kettu on October 18, 2006, 11:53:57 AM
Just check your administration center. There you can easy change the size.
Title: Re: SMF Shoutbox
Post by: geniusofthecrowd on October 18, 2006, 07:59:09 PM
sorry if this has already been addressed, but is there a way to get the shoutbox to show usernames and not real names? I am using a joomla/smf integration.
Title: Re: SMF Shoutbox
Post by: CanadianLatitude on October 18, 2006, 11:28:42 PM
WhenI try to install the 1.15 I get these messages:

Sorry, but the SMF Shoutbox Mod doesn't support your SMF version!


The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Just downloaded this SMF yesterday (1.08)so I do not see why it won't work.

Any suggestions would be greatly appreciated.  :D Thanks.
Title: Re: SMF Shoutbox
Post by: Kettu on October 19, 2006, 04:36:55 AM
Quote from: geniusofthecrowd on October 18, 2006, 07:59:09 PM
sorry if this has already been addressed, but is there a way to get the shoutbox to show usernames and not real names? I am using a joomla/smf integration.
Normally the shoutbox shows usernames only.

Quote from: CanadianLatitude on October 18, 2006, 11:28:42 PM
WhenI try to install the 1.15 I get these messages:

Sorry, but the SMF Shoutbox Mod doesn't support your SMF version!


The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Just downloaded this SMF yesterday (1.08)so I do not see why it won't work.

Any suggestions would be greatly appreciated.  :D Thanks.
Of course. This shoutbox is made for SMF 1.1 RC2 and 3. If you use 1.0.8 than you should use the Ultimate Shoutbox not this one.
Title: Re: SMF Shoutbox
Post by: geniusofthecrowd on October 19, 2006, 10:34:23 AM
It looks like the shoutbox showing the "display name" instead of the username.  I suppose this is how it is supposed to be setup if running SMF alone.  But with running the joomlahacks integration, it puts the realname in joomla as the "displayname" and the username as "username".  Is there a hack I can do for it show the usernames instead of displaynames?

Quote from: Kettu on October 19, 2006, 04:36:55 AM
Quote from: geniusofthecrowd on October 18, 2006, 07:59:09 PM
sorry if this has already been addressed, but is there a way to get the shoutbox to show usernames and not real names? I am using a joomla/smf integration.
Normally the shoutbox shows usernames only.

Title: Re: SMF Shoutbox
Post by: Kettu on October 19, 2006, 12:23:44 PM
Well Shoutbox is programmed for SMF. So it uses its settings.
If you have any knowledge about programming this should be the "affected" code at the sboxDB.php:

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>';
Title: Re: SMF Shoutbox
Post by: geniusofthecrowd on October 19, 2006, 02:49:06 PM
Hey Kettu,
Thanks for pointing me in the right direction, I am not a programmer or anything but found what I needed to change.  I will post what I changed just in case someone else has the same issue.

sboxDB.php around line 741 just changed realName to username

echo $sbox_NickInnerPrefix . ((!empty($row['realName']))?$row['realName']:$row['memberName']) . $sbox_NickInnerSuffix;

changed to

echo $sbox_NickInnerPrefix . ((!empty($row['username']))?$row['username']:$row['memberName']) . $sbox_NickInnerSuffix;
Title: Re: SMF Shoutbox
Post by: blitzchic on October 20, 2006, 11:09:31 AM
Are you able to change the font colour on your shouts??
Title: Re: SMF Shoutbox
Post by: Kettu on October 20, 2006, 12:55:21 PM
Quote from: blitzchic on October 20, 2006, 11:09:31 AM
Are you able to change the font colour on your shouts??
You can do it at your Administration Center.
Title: Re: SMF Shoutbox
Post by: SteelEagle on October 21, 2006, 07:33:12 AM
Hey really nice mod  :)
But it has some problems with languages other with English... I have shoutbox on my Polish forum and it doesn't work perfectly  :(

1) Verison 1.15 produces script error when trying to shout and displays nasty window with break script option... So I'm using 1.14
2) It doesn't work well with Polish characters http://img179.imageshack.us/img179/6335/clipboard02jy9.jpg
3) It doesn't displays header bar properly as seen on screenshot.
4) //EDIT And doesn't shows options in admin panel unless I switch to English

With English language all works very fine, but I don't want it for this forum  :) Is there any way to fix those problems?
Title: Re: SMF Shoutbox
Post by: Geezer on October 21, 2006, 11:24:31 AM
Hi can the width of shoutbox be altered?
Title: Re: SMF Shoutbox
Post by: SteelEagle on October 21, 2006, 12:49:06 PM
I created sbox.polish.php and it fixed problems no 3 and 4, now let's see if i can make proper character coding ;)

//edit: I have no good idea how to do it... help plz
//I.m using v1.15. Error with wrong coding appears only when forum language is set to Polish. When switching to English all is fine... Anyone any ideas?

//yes i've read whole topic but it didn't help me...

//@Geezer: probably yes. Alter tables width in sbox.template.php and see if it works
Title: Re: SMF Shoutbox
Post by: PSNick on October 27, 2006, 07:16:58 PM
Hey!, i installed the SMF shoutbox perfectly today in the Helios Multi theme and it's everything ok, except because i want to edit the text in the top that sais: "SMF Shoutbox" I want to put another thing in there like "My Shoutbox", but directly from the settings...

EDIT: I'm so stupid... what i mean is that you should add that to the settings as an option... to change the name.
I already did that, but it was a suggestion lol.
Title: Re: SMF Shoutbox
Post by: Kettu on October 28, 2006, 06:27:51 AM
Sorry, but that's so easy to change. It would be a joke to make a special option for that.
Just change the text at the sbox.english.php from
$txt['sbox_ModTitle'] = 'SMF Shoutbox';
to
$txt['sbox_ModTitle'] = 'My Shoutbox';
Title: Re: SMF Shoutbox
Post by: PSNick on October 28, 2006, 09:05:10 AM
I know, i already did that before sugesting... but the thing is that you have to change that before uploading the shoutbox. And if you add the option, unexperienced members will be able to change it from the forum directly... besides that way will be even easier lol.
Thanks for your answer anyways ^^
Title: Re: SMF Shoutbox
Post by: Kettu on October 29, 2006, 04:06:52 AM
You can change it everytime later, too. Just download the file, edit it and upload it. It will change the text immediately :)
Title: Re: SMF Shoutbox
Post by: tapirul on October 29, 2006, 05:49:21 PM
I post here too,

I am in a big hurry so i didn't have time to read the thread for a possible answer.
There it goes:
Quote from: tapirul on October 29, 2006, 05:47:21 PM
a wonderful mod

the only thing that bothers me is the default text in the shouting area ("press ENTER" etc); that's because if I click on a emoticon (without any other text), that thing does not get replaced, the emoticon will be appended only, even if I selected the default text and deleted it before.


I tried to change the code in sbox.english.php

$txt['sbox_TypeShout'] = '*';

The thing is, whatever you put instead of the default text (there is a star now), that thing will NOT be posted in the shout,  if you happen to type it. I tried initially with a space, but then all shoutscameoutlikethiswithnospaces. I changed with a period but then i got shouts like this: http://wwwsimplemachinesorg/community/indexphp?action=post;topic=115579.15;num_replies=16
If you don't put anything, like
$txt['sbox_TypeShout'] = '';

then there are problems with the script.. I get a message from my browser (after a while): a script is busy, uatev, continue/cancel

I settled for a star now (I imagine there won't be any shouts containing stars).

Is there any way to get around this? I mean, if I take out that line in sbox.english.php, where else shoud I make modifications?
thanks a lot
Title: Re: SMF Shoutbox
Post by: Kettu on October 30, 2006, 04:58:57 AM
Replace
$txt['sbox_TypeShout'] = '<Type your message and press ENTER>';
with
$txt['sbox_TypeShout'] = ' ';
There should be a space between ' and ';

It works fine for me, because I have it at my shoutbox.
Title: Re: SMF Shoutbox
Post by: moysys on October 30, 2006, 05:07:48 PM
ποσ 8α βαλο τα  ελλινικα στο  προγραμα sbox_v1.15.zip ? αν μποριτε να με βοηθισετε

ευχαριστο

[email protected]
Title: Re: SMF Shoutbox
Post by: Kettu on October 31, 2006, 12:46:27 AM
Quote from: moysys on October 30, 2006, 05:07:48 PM
ποσ 8α βαλο τα  ελλινικα στο  προγραμα sbox_v1.15.zip ? αν μποριτε να με βοηθισετε

ευχαριστο

[email protected]
We don't speak greek. This is the English part. So please speak English. If you speak German use the German Thread.
Title: Re: SMF Shoutbox
Post by: Zorn on October 31, 2006, 05:43:43 AM
Hi!
I have installed the 1.1RC3 with the 2 secury update.
I try to instal smf shoutbox 1.15, but i recived the "Internal Server Error"
I try to follow the Kettu's instruction "Go to your file sbBox.php and change the CHMod from 777 to 644."

but mine sbox.php contain only:
...
...
...

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

function sbox_display()
{
global $user_info, $db_prefix, $modSettings, $settings, $sourcedir, $scripturl, $txt, $context;

if ($modSettings['sbox_Visible'] != '0')
{
  loadLanguage('sbox');
loadTemplate('sbox');
template_shout_box();
}
}

?>


can you help me?

thx
Title: Re: SMF Shoutbox
Post by: Kettu on October 31, 2006, 08:06:37 AM
Quote from: Zorn on October 31, 2006, 05:43:43 AM
Hi!
I have installed the 1.1RC3 with the 2 secury update.
I try to instal smf shoutbox 1.15, but i recived the "Internal Server Error"
I try to follow the Kettu's instruction "Go to your file sbBox.php and change the CHMod from 777 to 644."

but mine sbox.php contain only:

can you help me?
ChMod isn't a part of the code. ChMod means file access rights. Click on your sbBox.php an check the given rights.
Title: Re: SMF Shoutbox
Post by: agridoc on November 03, 2006, 01:13:44 AM
Quote from: moysys on October 30, 2006, 05:07:48 PM
ποσ 8α βαλο τα  ελλινικα στο  προγραμα sbox_v1.15.zip ? αν μποριτε να με βοηθισετε

ευχαριστο

[email protected]

This is a translation

How can I use Greek with sbox_v1.15.zip ? If you can please help me.

Thank you

[email protected]


moysys has posted in the Greek support. mforum, has made a greek language file but Greek chars were not properly displayed. apollonios reported that works OK with UTF-8.
http://www.simplemachines.org/community/index.php?topic=123810.0

So there is a problem with foreign languages if a non UTF-8 codepage is used.
http://www.simplemachines.org/community/index.php?topic=115579.msg793648#msg793648
Quote from: agridoc on November 02, 2006, 02:21:34 PM
After a quick glance, I believe that the problem for non UTF-8 encoding is this part of code in sboxDB.php

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;
}


However some more points might need examining.

I see in the topic interest from another Greek and a Turkish about codepage conflict problem of SMF Shoutbox.

The above were posted in the new SMF Shoutbox support board. BTW which is the right board?
Title: Re: SMF Shoutbox
Post by: Kettu on November 03, 2006, 01:18:13 AM
Good morning,
this is the English Support Thread of deep AND mbirth's SMF Shoutbox. We also have a German Support Thread for it. There is another English Support Thread for the Ultimate Shoutbox of Grudge.

About the foreign characters. I think mbirth is still working on that problem. Currently we don't really know what this problem causes. :(
Title: 9. Execute Modification w/ 1.15 and 1.1RC3
Post by: G0ldT00th on November 03, 2006, 02:43:27 AM
Hi,

I did some searching but didn't find an answer so I apologize if this is a repeat.  I am running SMF 1.1.RC3 with the template Slick Pro: Graphite.  When I go to "Apply Mod" I get this error.

Quote9.  Execute Modification  /home/killerba/public_html/smf/Themes/default/BoardIndex.template.php

This is a forum being run a development site with CMS Joomla 1.011 using the Joomla Hacks bridge (not sure if this is important or not).

All of the other tests are listed as "successful."  Any idea of what I am doing wrong?  I tried install when using the default theme but it gives the same error.

Any help would be appreciated. 

Thanks.

Link to development site
Killer [Bananas] Devsite Forums (http://www.killerbananas.org/devsite//index.php?option=com_smf&Itemid=26)
Title: Re: SMF Shoutbox
Post by: Kettu on November 03, 2006, 04:07:03 AM
Maybe the CHMod of your default/BoardIndex.template.php isn't correct.
Just add the code by hand.
Add
  // display shoutbox
  if (function_exists('sbox')) sbox();

before
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))

If you want to have it above your Newsfader

or before
// Here's where the "Info Center" starts...
If you'd like to have it above your Info Center.
Title: Re: SMF Shoutbox
Post by: G0ldT00th on November 03, 2006, 04:36:42 AM
Hhhmm.  No I thought that was the issue too and tried various spots but just tried the one you listed as well and got the same result.  Here is what the Boardindex.template.php looked like after the cut and pasted.

I also checked the CHMod and it is 666.

I am scratching my head now. :o

<?php
/// Version: 1.1 RC3; BoardIndex
function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom"></td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], '  •  '$txt[95], ': '$context['common_stats']['total_posts'], '  •  '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;
  
// display shoutbox
  
if (function_exists('sbox')) sbox();
// Show the news fader?  (assuming there are things to show...)
Title: Re: SMF Shoutbox
Post by: Kettu on November 03, 2006, 06:56:51 AM
Well, BoardIndex.template.php is correct. Is it not shown now?
I know it works for Slick Pro, because a friend didn't have problems with installing.
Title: Re: SMF Shoutbox
Post by: G0ldT00th on November 03, 2006, 10:30:42 AM
Showing, I am sorry, let me clarify, once I got that error 9, I didn't actually proceeded, I stopped and posted here.  So you think I am safe to ignore the warning and go ahead and complete the installation?
Title: Re: SMF Shoutbox
Post by: G0ldT00th on November 03, 2006, 10:36:19 AM
Ok I went and tried to complete it.  Maybe I am wrong, maybe this mod is just not compatible with a Joomla SMF Forum Bridge (Joomla Hacks).  It failed to install and gave me this error.

QuoteIncorrect table name ''
File: /home/killerba/public_html/devsite/smf/Packages/temp/sbox_setup.php
Line: 83

This is the bit of code that is failing.

// drop table if it exists. Should make SMF-update 1.1rc2 -> 1.1rc3 easier.
$result = mysql_query("DROP TABLE `{$db_prefix}sbox_content`");

$result = db_query("
        CREATE TABLE `{$db_prefix}sbox_content` (
        `id` int(11) unsigned NOT NULL auto_increment,
        `time` int(10) unsigned NOT NULL,
        `ID_MEMBER` mediumint(8) unsigned NOT NULL,
          `content` text NOT NULL,
          PRIMARY KEY (`id`))", __FILE__, __LINE__);


83 is the last line.
Title: Re: SMF Shoutbox
Post by: Kettu on November 03, 2006, 12:41:05 PM
I think so, yes. If this is the only one it tells an error.
But before all modifications you should make a backup of your board  ;)
Title: Re: SMF Shoutbox
Post by: G0ldT00th on November 03, 2006, 12:42:19 PM
No worries this is a devsite sub domain so nothing to lose.  Its for experimenting.
Title: Re: SMF Shoutbox
Post by: Kettu on November 04, 2006, 03:26:54 AM
Quote from: G0ldT00th on November 03, 2006, 12:42:19 PM
No worries this is a devsite sub domain so nothing to lose.  Its for experimenting.
Well, then try it :D
Title: Re: SMF Shoutbox
Post by: kok3n on November 04, 2006, 01:24:27 PM
i had been trying to install different shoutbox mod in my forum and was never been successful except for this one.. and i like it a lot..

now my question is..

1. is it possible to make the shoutbox appear even if i go to other boards inside the forum?

2. is it also possible to tranfer the ENTER TEXT HERE field at the bottom? thanks!
Title: Re: SMF Shoutbox
Post by: Kettu on November 04, 2006, 03:08:45 PM
Quote from: bisrock on November 04, 2006, 01:24:27 PM
1. is it possible to make the shoutbox appear even if i go to other boards inside the forum?
Just add the code to your index.template.php
  // display shoutbox
  if (function_exists('sbox')) sbox();
Title: Re: SMF Shoutbox
Post by: kok3n on November 04, 2006, 03:41:11 PM
Quote from: Kettu on November 04, 2006, 03:08:45 PM
Quote from: bisrock on November 04, 2006, 01:24:27 PM
1. is it possible to make the shoutbox appear even if i go to other boards inside the forum?
Just add the code to your index.template.php
  // display shoutbox
  if (function_exists('sbox')) sbox();


can you please tell me where exactly in index.template.php should i place it? i'm sorry but i don't know how to read languages and codes.. :(
Title: Re: SMF Shoutbox
Post by: Kettu on November 05, 2006, 05:55:04 AM
publish the code of your index.template.php here and I'll tell you.
Title: Re: SMF Shoutbox
Post by: kok3n on November 05, 2006, 09:28:29 AM
Quote from: Kettu on November 05, 2006, 05:55:04 AM
publish the code of your index.template.php here and I'll tell you.

as requested.. thanks in advance..



<?php
// Version: 1.1 RC2; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1 RC2';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// 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[</