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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fdeep23.de.funpic.de%2Fshoutbox_sample.jpg&hash=0f8bfc30e5dae436b4dd51564a5c82c56f0cefd0)

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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Farkserver.servehttp.com%2Ftmp%2Forly.JPG&hash=744d7ff633c1dea77b59a4a857aef731b1af5182)
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

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.digitalna-fotografija.net%2Ferror1.jpg&hash=a4fcf7eb8d6c55a5fafe7ffe8991c4bd06bc9806)


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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg503.imageshack.us%2Fimg503%2F9247%2Fshout3ul.jpg&hash=7b12dbb08bdb18b42dc9d5e55c49c8251353bde2)

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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg503.imageshack.us%2Fimg503%2F9247%2Fshout3ul.jpg&hash=7b12dbb08bdb18b42dc9d5e55c49c8251353bde2)

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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.kralforumcu.com%2Fofyaws.jpg&hash=4ebf530ea5aee74282df08457b8dd7d2fbd37713)

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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffiles.birth-online.de%2Fsbox_v1.10.jpg&hash=816ff62453e921d24ab8e076b65aa1a2b2d8fc24)
(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:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg515.imageshack.us%2Fimg515%2F5523%2Fshoutfirefoxfp9.jpg&hash=ad623b43e06472edd7b0bdf85e58b53d5b20b583)

Opera:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg319.imageshack.us%2Fimg319%2F3247%2Fshoutoperasr6.jpg&hash=47c36fb69c0e0c2640275793150bc89455ac8098)

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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg151.imageshack.us%2Fimg151%2F3120%2F1he4.png&hash=10a206b6ef0e56e019546f146e3aa9f6e4df4eb1)
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg151.imageshack.us%2Fimg151%2F3120%2F1he4.png&hash=10a206b6ef0e56e019546f146e3aa9f6e4df4eb1)

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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.phoenixdigital.org%2Fforum%2FSmileys%2Fclassic%2Fhehehe.gif&hash=c6be32fd6d4f8b033fad4d56719911a4ace63e6c)

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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.phoenixdigital.org%2Fforum%2FSmileys%2Fclassic%2Fhehehe.gif&hash=c6be32fd6d4f8b033fad4d56719911a4ace63e6c)

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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.phoenixdigital.org%2Fforum%2FSmileys%2Fclassic%2Fhehehe.gif&hash=c6be32fd6d4f8b033fad4d56719911a4ace63e6c)

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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv505%2Ftapirul%2Fshout.jpg&hash=4ccc3359565cc1af75578b190b7c14d766e607b7)

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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fdeep23.de.funpic.de%2Fshoutbox_sample.jpg&hash=0f8bfc30e5dae436b4dd51564a5c82c56f0cefd0)

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:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aparadektoi.gr%2Fapollonios%2Fsmfshout.jpg&hash=325acccfa51a2dea7dffe691f12394ba40388880)

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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aparadektoi.gr%2Fapollonios%2Fsmfshout1.jpg&hash=e06419e4e1f51a99cf62297224c0ac4bace043db)

......
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 )

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg129.imageshack.us%2Fimg129%2F9788%2Funtitledkf3.jpg&hash=cd5913377c9e526c9eccfa6f621a8e7af0762a6d)

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 )

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg129.imageshack.us%2Fimg129%2F9788%2Funtitledkf3.jpg&hash=cd5913377c9e526c9eccfa6f621a8e7af0762a6d)

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:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv286%2FXcaelumdeaX%2Fshoutbox1.jpg&hash=763cba1121c77a22a1dd09cb7d7e757f5e69505a)

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.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg412.imageshack.us%2Fimg412%2F1641%2Fshoutbox2pz3.gif&hash=28123e5f8f0918c7a18da503d7bc1c56950026a9)

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

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg70.imageshack.us%2Fimg70%2F9695%2Fshoutio9.jpg&hash=110fe2f6bacac186672eb342643a18b456a7d8b8)

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....

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.photobucket.com%2Falbums%2Fe204%2Fballboff%2Fscreen1.jpg&hash=cf45b1baea786e5f6a376727c3deb6cab9cd19ff)

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....

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.photobucket.com%2Falbums%2Fe204%2Fballboff%2Fscreen1.jpg&hash=cf45b1baea786e5f6a376727c3deb6cab9cd19ff)

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['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

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

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

function shrinkHeader(mode)
{'
;

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

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

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

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

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

function shrinkHeaderIC(mode)
{'
;

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

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

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

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

echo '
<div align="center">
<table class="forum-width" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" align="left" valign="top">
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<img src="'
$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="'
$settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>'
;


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

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

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

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

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

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

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

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

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

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

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

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

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

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

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


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


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

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
<a href="http://www.m3talc0re.com/" style="font-size:10px;">Theme by m3talc0re.com</a> &nbsp;|&nbsp;
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>
</td>
</tr>
</table>
</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>




i wasnt my shoutbox to appear on the top..

just below these tabs :
Home            Help       Search       Admin       Profile       My Messages       Calendar       Members       Logout
Title: Re: SMF Shoutbox
Post by: Kettu on November 05, 2006, 03:15:59 PM
Try to add the code before
// The main content should go here.
This should be right below the menu.
Title: Re: SMF Shoutbox
Post by: zetouf on November 05, 2006, 08:32:34 PM
Hello,

I installed your mod on 1.1RC3 with french (I tried both ISO ant unicode...) and as long as the board language is french, the shoutbox freeze the browser (an alert message shows up and asks wether I want to stop the script).

Anyway, if I switch the board language to english, everything works fine...

Any idea to get this working in french mod ?
Title: Re: SMF Shoutbox
Post by: kok3n on November 05, 2006, 11:15:07 PM
Quote from: Kettu on November 05, 2006, 03:15:59 PM
Try to add the code before
// The main content should go here.
This should be right below the menu.

i did that and it makes the shoutbox appear if i'm inside the boards. however, when i go outside the boards or on the main page of my forum, it gives me 2 shoutbox... :(
Title: Re: SMF Shoutbox
Post by: littleone on November 06, 2006, 01:45:32 AM
Take out the call to sbox() in your boardindex.template
Title: Re: SMF Shoutbox
Post by: Kettu on November 06, 2006, 02:06:20 AM
Quote from: littleone on November 06, 2006, 01:45:32 AM
Take out the call to sbox() in your boardindex.template
That means you have to delete the code at your BoardIndex.template.php
  // display shoutbox
  if (function_exists('sbox')) sbox();
Title: Re: SMF Shoutbox
Post by: kok3n on November 06, 2006, 04:10:15 AM
it's now working!

big thanks to you Kettu and to you littleone..
Title: Re: SMF Shoutbox
Post by: kok3n on November 06, 2006, 09:55:20 AM
is there a way i could change the time format into 12-hour instead of 24-hour?
Title: Re: SMF Shoutbox
Post by: littleone on November 06, 2006, 10:42:42 AM
Quote from: Kettu on November 06, 2006, 02:06:20 AM
Quote from: littleone on November 06, 2006, 01:45:32 AM
Take out the call to sbox() in your boardindex.template
That means you have to delete the code at your BoardIndex.template.php
  // display shoutbox
  if (function_exists('sbox')) sbox();


Yup thats what I meant,  It was late and I didnt feel like looking it up but I figured they get it :P

Quote from: bisrock on November 06, 2006, 04:10:15 AM
it's now working!

big thanks to you Kettu and to you littleone..

NP.  I dont know much about im glad when I do know something to help ;)
Title: Re: SMF Shoutbox
Post by: morgwen on November 06, 2006, 06:38:21 PM
this is my prob

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.



qhat can i do?
Title: Re: SMF Shoutbox
Post by: littleone on November 06, 2006, 10:54:16 PM
Quote from: morgwen on November 06, 2006, 06:38:21 PM
this is my prob

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.



qhat can i do?

I beleive this issue has been addressed countless times in the previous pages of this thread.  You need to change a CHMOD on one of the files.  Sorry I dont know off hand and you can just as easily scroll back to find it as I could, so I'll let you work for it ;)
Title: Re: SMF Shoutbox
Post by: Kettu on November 07, 2006, 01:02:13 AM
Change CHMod of your sboxDB.php from 777 to 644.
Title: Re: SMF Shoutbox
Post by: morgwen on November 07, 2006, 05:42:43 AM
i am so sorry but can u help me making writable the CHMod?


I read all the tutorial but it's too difficult to me.
Title: Re: SMF Shoutbox
Post by: Kettu on November 07, 2006, 08:25:47 AM
Quote from: morgwen on November 07, 2006, 05:42:43 AM
i am so sorry but can u help me making writable the CHMod?


I read all the tutorial but it's too difficult to me.
Just change the Rights for your SBoxDB.php from 777 to 644, use your FTP program
Title: Re: SMF Shoutbox
Post by: justafishermen on November 07, 2006, 09:49:46 AM
I tried doing a search and came up blank. How do I set the shoutbox to stay on every page rather just the main board index?
Title: Re: SMF Shoutbox
Post by: Kettu on November 07, 2006, 01:48:20 PM
Quote from: justafishermen on November 07, 2006, 09:49:46 AM
I tried doing a search and came up blank. How do I set the shoutbox to stay on every page rather just the main board index?
Just take a look at the posts of the last days here in this topic.
Title: Re: SMF Shoutbox
Post by: kupkes on November 09, 2006, 08:16:54 AM
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?
I am going to expand on this question (and most likely ask the impossible)
I managed to get it showing on every page, but I would like a entirely different shoutbox showing on only some pages, for example, the board index contains shoutbox 1, and then general discussion contains shoutbox 2 (which is a different install with different names saving to a different table in the sql database).
I am guessing if it can be done it would be by calling the piece of code when the board number equals a certain number (eg. 1 for me with general discussion).
Just though I would ask here before I start spending time on it, and get some thought from people who actually know how to code php :P

Thanks
Title: Re: SMF Shoutbox
Post by: littleone on November 09, 2006, 12:41:14 PM
Quote from: kupkes on November 09, 2006, 08:16:54 AM
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?
I am going to expand on this question (and most likely ask the impossible)
I managed to get it showing on every page, but I would like a entirely different shoutbox showing on only some pages, for example, the board index contains shoutbox 1, and then general discussion contains shoutbox 2 (which is a different install with different names saving to a different table in the sql database).
I am guessing if it can be done it would be by calling the piece of code when the board number equals a certain number (eg. 1 for me with general discussion).
Just though I would ask here before I start spending time on it, and get some thought from people who actually know how to code php :P

Thanks

Of course.  In coding everything is possible one way or another.  Now figuring it out is something completely different.  I can see good uses for your idea but not sure how useful it would be overall but good luck in figuring it out or getting someone to help you with that.  I for one would even know where to start. Besides taking the shout box, and renaming the vital components of it and the shoutbox itself, and then when calling it, you call the renamed version that would call on the other shoutbox which would call on the other database table for those shouts.  I see it being alot of work.
Title: Re: SMF Shoutbox
Post by: w3b on November 12, 2006, 09:59:05 AM
Hello folks !

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

I'm asking you.. where can I find my mistake ? I don't see any error :/
Title: Re: SMF Shoutbox
Post by: Kettu on November 12, 2006, 10:23:17 AM
Quote from: w3b on November 12, 2006, 09:59:05 AM
Hello folks !

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

I'm asking you.. where can I find my mistake ? I don't see any error :/
Hi,
what kind of Theme do you use? Did you add the code to your boardindex.template.php of your theme (if it isn't using default theme as "fallback")?
Title: Re: SMF Shoutbox
Post by: w3b on November 12, 2006, 10:27:31 AM
Default theme.

I've tried to put the code into boardindex, but it doesn't change anything

I don't understand why I don't get any errors
Title: Re: SMF Shoutbox
Post by: kriskd on November 12, 2006, 11:33:16 AM
Quote from: bisrock on November 06, 2006, 09:55:20 AM
is there a way i could change the time format into 12-hour instead of 24-hour?

I'd be interested in this too.

Also, it appears the shoutbox isn't connected to permissions.  I'd be interested in allowing access to it based on my posting groups.  Let me know if that exists and I'm missing it, otherwise, I'd like to suggest it for a future version.  :)
Title: Re: SMF Shoutbox
Post by: Kettu on November 12, 2006, 06:15:19 PM
Quote from: w3b on November 12, 2006, 10:27:31 AM
Default theme.

I've tried to put the code into boardindex, but it doesn't change anything

I don't understand why I don't get any errors
If you use the default theme shoutbox should be installed automatically.
Please post the code of your boardindex.template.php.

Quote from: kriskd on November 12, 2006, 11:33:16 AM
Quote from: bisrock on November 06, 2006, 09:55:20 AM
is there a way i could change the time format into 12-hour instead of 24-hour?

I'd be interested in this too.

Also, it appears the shoutbox isn't connected to permissions.  I'd be interested in allowing access to it based on my posting groups.  Let me know if that exists and I'm missing it, otherwise, I'd like to suggest it for a future version.  :)
First thing: I have no idea.
Second thing: there was an answer a while ago. Just check the older posts.
Title: Re: SMF Shoutbox
Post by: w3b on November 13, 2006, 09:46:45 AM
Quote from: Kettu on November 12, 2006, 06:15:19 PM

If you use the default theme shoutbox should be installed automatically.
Please post the code of your boardindex.template.php.


<?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">'
theme_linktree(), '</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>'
;


  
// 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 '
<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;'
$txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">'
;

// 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>'
;
}

/* 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.) */
$first true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">
<div class="catbg'
$category['new'] ? '2' '''" style="padding: 5px 5px 5px 10px;">';
$first false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">'
;

/* 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>
<td ' 
, !empty($board['children']) ? '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], '" />';
// 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], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<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 some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' <br />
'
$board['topics'],' '$txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">'
;

/* 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 '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// 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 '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
<span class="smalltext"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>'
;
}
echo '
</div>'
;
}

if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
<img src="' 
$settings['images_url'] . '/new_some.gif" alt="" align="middle" /> '$txt[333], '
<img src="' 
$settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> '$txt[334], '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';

// Mark read button.
$mark_read_button = array('markread' => array('text' => 452'image' => 'markread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=all;sesc=' $context['session_id']));

// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
 '
template_button_strip($mark_read_button'top'), '
</tr>
</table>'
;
echo '
</td>
</tr>
</table>'
;
}
  
// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
'
$txt[685], '
</div>
<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" 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], '" /></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 cellpadding="0" cellspacing="0" 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 class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" 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="titlebg" 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'], '" /></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 YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" 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], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $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>' '''
</span>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" 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], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$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 ')';
}

echo $context['show_who'] ? '</a>' '''
<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>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</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="titlebg" 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], '" />'$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="titlebg" 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], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" 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></table>
</form>
</td>
</tr>'
;
}

echo '
</table>
</div>
</div>'
;
}


?>
Title: Re: SMF Shoutbox
Post by: Kettu on November 13, 2006, 03:46:53 PM
Hmmm, the code is in the right position added. :-\ I don't understand why it isn't shown. Is there an entry at your administration center?
Title: Re: SMF Shoutbox
Post by: w3b on November 13, 2006, 06:28:15 PM
Quote from: Kettu on November 13, 2006, 03:46:53 PM
Hmmm, the code is in the right position added. :-\ I don't understand why it isn't shown. Is there an entry at your administration center?

Nothing.

Do you want to take a look ?
Title: Re: SMF Shoutbox
Post by: Kettu on November 14, 2006, 02:54:05 AM
Quote from: w3b on November 13, 2006, 06:28:15 PM
Quote from: Kettu on November 13, 2006, 03:46:53 PM
Hmmm, the code is in the right position added. :-\ I don't understand why it isn't shown. Is there an entry at your administration center?
Do you want to take a look ?
Would be the best. Send me a PM.
Title: Re: SMF Shoutbox
Post by: GaMeR on November 14, 2006, 01:54:10 PM
Any info on missing chars on different charsets?
I'm using ISO-8859-9, I can't get the special Turkish chars. Thanks for the mod.
Title: Re: SMF Shoutbox
Post by: Sonic_Reducer on November 14, 2006, 04:10:59 PM
Is there a way to adjust the height on this?
Title: Re: SMF Shoutbox
Post by: Kettu on November 14, 2006, 04:26:09 PM
Quote from: GaMeR on November 14, 2006, 01:54:10 PM
Any info on missing chars on different charsets?
I'm using ISO-8859-9, I can't get the special Turkish chars. Thanks for the mod.
I am sorry, I have no new information on this problem :(

Quote from: Sonic_Reducer on November 14, 2006, 04:10:59 PM
Is there a way to adjust the height on this?
Of course. Check your Shoutbox administration center. There you can enter the height in px.
Title: Re: SMF Shoutbox
Post by: Sonic_Reducer on November 15, 2006, 02:31:31 PM
Thanks for the help.
I feel like an idiot, for not seeing that before I posted. 

Thanks again! ;)
Title: Re: SMF Shoutbox
Post by: Sonic_Reducer on November 15, 2006, 07:52:52 PM
Quote from: 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 :)

I was looking for the sbox.english.php file, but can't find it except for in the uploaded zip file.  What directory would it be in?
Title: Re: SMF Shoutbox
Post by: agridoc on November 16, 2006, 12:45:29 AM
Languages files are stored in /Themes/default/languages.
Title: Re: SMF Shoutbox
Post by: 0warning0 on November 16, 2006, 10:02:26 AM
QuoteHi,

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

Im using it on  RC3


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

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

I've got the same error and can't figure it out. I tried replacing sboxDB.php as suggested but still had the same problem. I was wondering if anyone was able to find a solution for this. 
Title: Re: SMF Shoutbox
Post by: Kettu on November 17, 2006, 01:00:32 AM
Quote from: 0warning0 on November 16, 2006, 10:02:26 AM
QuoteHi,

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

Im using it on  RC3


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

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

I've got the same error and can't figure it out. I tried replacing sboxDB.php as suggested but still had the same problem. I was wondering if anyone was able to find a solution for this. 
Please load your sboxDB.php as own page: yourforum.com/Source/sboxDB.php, then show your source code, copy it and paste it here.
Title: Re: SMF Shoutbox
Post by: nikus on November 19, 2006, 10:39:21 AM
Hi there , my ShoutBox its working good , but only with mozilla FireFox , with IE ( internet Explorer ) dont work , i type an message and click "Shout" and dont do nothing :\





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

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

Quote from: nikus on November 19, 2006, 10:39:21 AM
other thing , Why , with IE , letters size are bigger then Mozilla ? :|  :-\
That's normal. You can change the font size of each browser itself.
The difference mostly depends on the small, x-small, xx-small etc. definition. I prefer pure pixel codes, but most programmers use the definitions.
Title: Re: SMF Shoutbox
Post by: dry3210 on November 19, 2006, 08:57:40 PM
My forum members are so addicted to the shoutbox that they want it to be on the board pages too and not just the main page.  I know what code to get it to show up, just can't figure out what file and where in the file to post it to get it to show up and look right.

Anyone?
Title: Re: SMF Shoutbox
Post by: Kettu on November 20, 2006, 04:50:54 AM
Why does none read the previous posts?
It was so often asked for and also answered. ::)
Just use your index.template.php
Title: Re: SMF Shoutbox
Post by: littleone on November 20, 2006, 01:30:23 PM
Quote from: Kettu on November 20, 2006, 04:50:54 AM
Why does none read the previous posts?
It was so often asked for and also answered. ::)
Just use your index.template.php
lol there are 44 pages in this thread and this question (and answer) appears on like 35 of them.  ::)
Title: Re: SMF Shoutbox
Post by: 0warning0 on November 20, 2006, 07:24:22 PM
QuotePlease load your sboxDB.php as own page: yourforum.com/Source/sboxDB.php, then show your source code, copy it and paste it here.


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

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





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

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

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

loadLanguage('sbox');

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

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

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

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

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

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

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

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

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

   $locked = @mkdir($lockDir);

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

   $success = false;

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

   ignore_user_abort(0);
   return $success;
}
// END: BORROWED FROM http://de2.php.net/manual/en/function.flock.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;
}

//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'], '" />';
 
$result = db_query("SELECT time FROM {$db_prefix}sbox_content ORDER BY time DESC LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($result);
$refreshBlocked = false;
$delta = time() - $row['time'];
if ((!empty($_REQUEST['action'])) && ($_REQUEST['action'] == 'write')) $dontblock = true; else $dontblock = false;
if (($delta > $modSettings['lastActive']*60) && ($modSettings['sbox_BlockRefresh'] == '1') && (!$dontblock)) {
  $refreshBlocked = true;
} elseif (empty($_REQUEST['action']) || ($_REQUEST['action'] != 'stoprefresh')) {
  echo '
  <meta http-equiv="refresh" content="' . $modSettings['sbox_RefreshTime'] . ';URL=sboxDB.php?ts=' . time() . '">';
}

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

?>
</div>
</body>
</html>
Title: Re: SMF Shoutbox
Post by: Kettu on November 21, 2006, 09:14:12 AM
 :o If you add code from a page please put it between [code][/code] For the future. ;)

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

Edit2:
Okay, I have no idea why this variable causes the error. It is defined on your page. Did you add a second colour füor your shoutbox (administration center)?
Title: Re: SMF Shoutbox
Post by: kok3n on November 22, 2006, 04:11:32 AM
i'm trying to install smf shoutbox on my other forum but i can no longer find the download link for SMF Shoutbox  version 1.15

please tell me where i could download it.. thanks..
Title: Re: SMF Shoutbox
Post by: Kettu on November 22, 2006, 07:49:07 AM
Quote from: bisrock on November 22, 2006, 04:11:32 AM
i'm trying to install smf shoutbox on my other forum but i can no longer find the download link for SMF Shoutbox  version 1.15

please tell me where i could download it.. thanks..
Take a look at my signature. ;)
Title: Re: SMF Shoutbox
Post by: machaanz on November 22, 2006, 12:33:46 PM
is there any way to hide the path of the refresh button? Now the path to shoutDB.php is showing in browser when we put the mouse on it.
Title: Re: SMF Shoutbox
Post by: nikus on November 22, 2006, 03:02:22 PM
Quote from: Kettu on November 19, 2006, 04:38:55 PM
Quote from: nikus on November 19, 2006, 10:39:21 AM
Hi there , my ShoutBox its working good , but only with mozilla FireFox , with IE ( internet Explorer ) dont work , i type an message and click "Shout" and dont do nothing :\
Huh? That's mysterious. Don't understand that.

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

My frinds are using IE , and with IE , shoutBox dont work...i type an message and dont apear nothing  :( :-\
Title: Re: SMF Shoutbox
Post by: Kettu on November 23, 2006, 10:24:39 AM
Quote from: nikus on November 22, 2006, 03:02:22 PM
My frinds are using IE , and with IE , shoutBox dont work...i type an message and dont apear nothing  :( :-\
Do they press shout or click enter?
Well, 1.14 works fine with IE. That's what I use.
Title: Re: SMF Shoutbox
Post by: _simon_ on November 23, 2006, 11:35:54 AM
Is there anyway to remove the horizontal scroll bar?

Also, every other "message" is inset from the last and it looks messy. Can this be altered?
Title: Re: SMF Shoutbox
Post by: Kettu on November 24, 2006, 05:56:09 PM
Quote from: _simon_ on November 23, 2006, 11:35:54 AM
Is there anyway to remove the horizontal scroll bar?
Check your administration center!

Quote from: _simon_ on November 23, 2006, 11:35:54 AMAlso, every other "message" is inset from the last and it looks messy. Can this be altered?
I don't understand what you mean.
Title: Re: SMF Shoutbox
Post by: _simon_ on November 25, 2006, 03:20:40 AM
Quote from: Kettu on November 24, 2006, 05:56:09 PM
Quote from: _simon_ on November 23, 2006, 11:35:54 AM
Is there anyway to remove the horizontal scroll bar?
Check your administration center!

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

Hi,

Thanks for the reply.

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

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

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

They aren't left aligned.
Title: Re: SMF Shoutbox
Post by: Solidus on November 25, 2006, 06:26:50 AM
Quote from: w3b on November 12, 2006, 09:59:05 AM
Hello folks !

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

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

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

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

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

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

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

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

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

Hi! I'm having the same problem. Has it any solution? Thanks for the mod!
What about more information?
Also what you've quoted includes a simple error. The shoutbox has to be at BoardIndex.template.php!!! Only if you want to show it on every page of your board, then you use index.template.php. And then it is important, where you add the code.
Title: Re: SMF Shoutbox
Post by: Solidus on November 25, 2006, 07:58:53 AM
I put it in both board.index and index.template.php but it doesn't appear anywhere
Title: Re: SMF Shoutbox
Post by: _simon_ on November 25, 2006, 01:45:27 PM
Quote from: Kettu on November 25, 2006, 07:54:21 AM
Quote from: _simon_ on November 25, 2006, 03:20:40 AM
There is no option in the admin center to disable horizontal scroll, maybe you thought I meant the line marker?
I'm running 1280x1024 and even with the window maximised I can't get rid of the horizontal scroll.
Yes, I did. The horizontal scrollbar is no part of the shoutbox. It is made by your theme. So you have to check your theme. I remember there was another user with the same problem a few pages before. Check it.

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

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

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



Ok I'll have a poke around the theme - thank you.

I am using Bloc's Amber theme for TP + SMF.

Edit: It's fine using the default theme.

Any idea as to where I should be looking and what i should be looking for to resolve this issue in other themes?
Title: Re: SMF Shoutbox
Post by: Kettu on November 25, 2006, 04:30:24 PM
Quote from: Solidus on November 25, 2006, 07:58:53 AM
I put it in both board.index and index.template.php but it doesn't appear anywhere
Please publish your code here with the shoutbox code. Please do it inside [code][/code].

Quote from: _simon_ on November 25, 2006, 01:45:27 PM
Any idea as to where I should be looking and what i should be looking for to resolve this issue in other themes?
I would do the same like you can do. Search this thread for the answer. It is here, I know it.
Title: Re: SMF Shoutbox
Post by: Solidus on November 25, 2006, 05:46:18 PM
<?php
// Version: 1.1 RC3; BoardIndex

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



  
// 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 '
<div class="tborder" style="margin-bottom: 2ex;">
<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" style="height: 60px;">'
;

// 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>'
;
}

/* 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 '
<table border="0" width="100%" cellspacing="1" cellpadding="5">
<tr>
<td colspan="2" class="titlebg" height="18">'
;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</td>
                <td width="4%" class="titlebg"><b>' 
,$txt[21], '</b></td>
                <td width="4%" class="titlebg"><b>' 
,$txt[330], '</b></td>
                <td width="22%" align="center" class="titlebg"> '
$txt[22], '</td>
</tr>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
/* 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 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',$context['mycolor'],'.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',$context['mycolor'],'.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
// No new posts at all!  The agony!!
else
echo '<img src="'$settings['images_url'], '/off',$context['mycolor'],'.gif" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

echo '</a></td>
<td>
<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="small2text" valign="middle" width="4%" align="center">
                 '
$board['posts'], '</td><td class="smalltext" valign="middle" width="4%" align="center">
                        '
$board['topics'],'</td><td class="smalltext" valign="middle" width="22%">';

                 if (!empty(
$board['last_post']['id']))
                                        echo 
'
                        <a href="'
$board['last_post']['href'], '"><img alt="go" src="'$settings['images_url'], '/icons/last_post.gif" align="right" hspace="3" border="0" /></a>
                        '
$board['last_post']['time'], '
                        '
$txt['smf88'], ' <b>'$board['last_post']['link'], '</b> '$txt[525], ' '$board['last_post']['member']['link'],
                        
' ' ;





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

echo '
</table>
<br />'
;
}

if ($context['user']['is_logged'])
{
echo '
<div style="padding: 3px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr class="windowbg">
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
<img src="' 
$settings['images_url'] . '/new_some',$context['mycolor'],'.gif" alt="" border="0" align="middle" /> '$txt[333], '
<img src="' 
$settings['images_url'] . '/new_none',$context['mycolor'],'.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'] . '">'$txt[452], '</a>';
echo '
</td>
</tr>
</table></div>'
;
}


  
// Here's where the "Info Center" starts...
echo '
<br />
<div><table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr>
<td class="blocktitle" align="center" colspan="2"><b>'
$txt[685], '</b></td>
</tr>'
;

// 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>
</td>
</tr>
<tr>
<td class="windowbg2" colspan="2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</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" 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></table>
</form>
</td>
</tr>'
;
}

echo '
</table></div>'
;
}

?>



It doesn't appear. I wanna put it in the left side, but first i put there to try. If you considerer that left side is easier then do it there.

(Sorry for my english, it isn't my born languaje :) )
Title: Re: SMF Shoutbox
Post by: Kettu on November 26, 2006, 04:27:02 AM
Don't you have a link tree on top?
The code is correct and on a correct position. What kind of theme is this? And did you check if you have all files including language files? Do you have the shoutbox part at your administration center?

Quote from: Solidus on November 25, 2006, 05:46:18 PM
It doesn't appear. I wanna put it in the left side, but first i put there to try. If you considerer that left side is easier then do it there.

(Sorry for my english, it isn't my born languaje :) )
What do you mean with left side?
Title: Re: SMF Shoutbox
Post by: Solidus on November 26, 2006, 04:35:01 AM
The theme i use is Aero79, with Spanish language, all works perfectly. Where is it suppose to have the part at administration center? i don't see anything there.

With left side I mean like here (http://www.magickalkingdom.com/smf/index.php?topic=12930.msg511139) for example. I've seen it in some websites
Title: Re: SMF Shoutbox
Post by: Serenity on November 26, 2006, 02:33:33 PM
Great mod!

but i would really apreciate it if someone let me know how i can make it work with arabic characters!

thanks
Title: Re: SMF Shoutbox
Post by: Kettu on November 27, 2006, 04:13:23 AM
Quote from: Solidus on November 26, 2006, 04:35:01 AM
The theme i use is Aero79, with Spanish language, all works perfectly. Where is it suppose to have the part at administration center? i don't see anything there.
Well, normally it works with Aero79. You should see the Shoutbox administration at Features and Options => register SMF Shoutbox
What happens if you open the page http://yourpage.com/board/Sources/sboxDB.php ?

Quote from: Solidus on November 26, 2006, 04:35:01 AM
With left side I mean like here (http://www.magickalkingdom.com/smf/index.php?topic=12930.msg511139) for example. I've seen it in some websites
Looks like a portal. Shoutbox wouldn't work very good on the left side, because it is to large for it. Also it is in an iframe.

Quote from: Serenity on November 26, 2006, 02:33:33 PM
but i would really apreciate it if someone let me know how i can make it work with arabic characters!
I think mbirth is still working on it. But currently we don't have any solution.
Title: Re: SMF Shoutbox
Post by: Solidus on November 27, 2006, 04:55:47 AM
I tried to reinstall and now al least it says "Can't load sbox template" but in spanish.
With ../Sources/sboxDB.php it only says in a white page:

[noviembre 26, 2006, 10:55:22 ]
[]


(The date and hour in spanish)
Title: Re: SMF Shoutbox
Post by: Solidus on November 27, 2006, 05:20:02 AM
Hey! It's near to work lol.
It now appears but.... when i click on shout it blocks the browser (IE and Firefox), and then the browser says something like "A script is making your PC goes slower ...... Stop Script?"
When stop the script and refresh the web i see the message i send.

Any idea?
Title: Re: SMF Shoutbox
Post by: Kettu on November 27, 2006, 07:18:39 AM
Quote from: Solidus on November 27, 2006, 04:55:47 AM
I tried to reinstall and now al least it says "Can't load sbox template" but in spanish.
With ../Sources/sboxDB.php it only says in a white page:

[noviembre 26, 2006, 10:55:22 ]
[]


(The date and hour in spanish)
That means, the shoutbox works. Did you look for your administration center?

Quote from: Solidus on November 27, 2006, 05:20:02 AM
Hey! It's near to work lol.
It now appears but.... when i click on shout it blocks the browser (IE and Firefox), and then the browser says something like "A script is making your PC goes slower ...... Stop Script?"
When stop the script and refresh the web i see the message i send.

Any idea?
No, this is new. I have no idea.
Title: Re: SMF Shoutbox
Post by: Solidus on November 27, 2006, 07:22:42 AM
Quote from: Kettu on November 27, 2006, 07:18:39 AM
That means, the shoutbox works. Did you look for your administration center?

No, this is new. I have no idea.

I looked, but there is the same, nothing of Shoutbox.

I don't understand why it blocks the browser  :'(
Title: Re: SMF Shoutbox
Post by: Solidus on November 27, 2006, 07:39:38 AM
HEY! Now it works!! The problema was sbox.languaje.php
I tried in english and works, the i copy sbox.english.php and rename it to sbox.spanish.php  :D
i could translate it if you wanna put it in the package.
Title: Re: SMF Shoutbox
Post by: Kettu on November 27, 2006, 08:53:12 AM
Quote from: Solidus on November 27, 2006, 07:39:38 AM
HEY! Now it works!! The problema was sbox.languaje.php
I tried in english and works, the i copy sbox.english.php and rename it to sbox.spanish.php  :D
i could translate it if you wanna put it in the package.
Oh, I thought you already had done this. Well okay, good to know it works now :)
Title: Re: SMF Shoutbox
Post by: MySQASI on November 27, 2006, 07:05:41 PM
hi all,

i was successfully install shoutbox v1.15 on my RC3 forum... but the problem is when i type some text and then hit ENTER, the text if take more that 7 second to appear on the chat box. i've set the refresh time to 5 second but still doesn't fix this problem. is anyone can help me to solve this?

oh, if i'm login with admin account, then the delay problem doesn't appear (work faster...). but the problem is happen when other that admin account been use (regular member, moderator, global moderator, etc...). pls help me to solve this out...

TQ
Title: Re: SMF Shoutbox
Post by: vik on November 27, 2006, 07:51:15 PM
i installed SMF Shoutbox but it appears only for the default there

sbox_v1.15.zip is he verion i installed

i want it to appe on the oxygen theme



To make the shoutbox work with other themes, you have to do the following:

QuoteAdd the code
  // display shoutbox
  if (function_exists('sbox')) sbox();

at the position you want the shoutbox to appear. (Mostly you will put this into BoardIndex.template.php.)

i dont know where to put this to bring the theme in use

can anyone help
Title: Re: SMF Shoutbox
Post by: mark25 on November 27, 2006, 10:57:40 PM
what theme are you using right now vik?

add this in your BoardIndex.template.php

look for
Quote// Show the news fader?  (assuming there are things to show...)
replace
Quote// display shoutbox
  if (function_exists('sbox')) sbox();
// Show the news fader?  (assuming there are things to show...)
Title: Re: SMF Shoutbox
Post by: littleone on November 30, 2006, 01:25:14 AM
Quote from: Vala on November 29, 2006, 11:50:31 AM
Hi

Please help me  :'( :'( :'( :'( . How I change time in shoutbox ??? ??? ???

thanks

The time for your members in the shout box will be based on the time selection they have in their profile.  If your server time is off, then it will kick off your profile time too.
Title: Re: SMF Shoutbox
Post by: Kettu on November 30, 2006, 06:42:00 AM
Quote from: vik on November 27, 2006, 07:51:15 PM
QuoteAdd the code
  // display shoutbox
  if (function_exists('sbox')) sbox();

at the position you want the shoutbox to appear. (Mostly you will put this into BoardIndex.template.php.)

i dont know where to put this to bring the theme in use

can anyone help

Above: Add before
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))


Below: Add before
// Here's where the "Info Center" starts...

Quote from: sqasi on November 27, 2006, 07:05:41 PM
hi all,

i was successfully install shoutbox v1.15 on my RC3 forum... but the problem is when i type some text and then hit ENTER, the text if take more that 7 second to appear on the chat box. i've set the refresh time to 5 second but still doesn't fix this problem. is anyone can help me to solve this?
Normally this only is a server problem, because it is load in an iframe. I know that problem at another board, and they will change the host soon because of such problems.
Title: Re: SMF Shoutbox
Post by: Mig-32 on November 30, 2006, 09:56:19 AM
Well, I have this problem...
When I hit "Enter" the browser stop's for a while and then give me a warning that the scrit on the web page is taking too long and ask me if I want to stop the script or continue... If I hit "stop", the line that I've wrote appears in the shout but If I hit "continue" then after a while it ask me again for the same thing

This is very annoying... Is ther a solution for this??

Thanks
Title: Re: SMF Shoutbox
Post by: Kettu on November 30, 2006, 10:13:08 AM
@Mig
Is it so hard to read the previous page? There you have your solution. ::)
Title: Re: SMF Shoutbox
Post by: Mig-32 on November 30, 2006, 11:50:57 AM
Hey... take it easy!!
I've searched in some pages, but there were 46 pages!! So, I miss the last one, sorry!! But did solved the bug/problem...

Thank's!
Title: Re: SMF Shoutbox
Post by: Kettu on December 01, 2006, 05:11:30 AM
Quote from: Vala on December 01, 2006, 04:07:56 AM
Thanks for reply but not work it.

Time in shoutbox is still same, have you any next idea ?
Shoutbox time is based on your server time.
There was an unofficial fixing idea for it made by a user. It is somewhere here in this thread.
Title: Re: SMF Shoutbox
Post by: toobeus4u on December 01, 2006, 07:03:16 AM
I've got the shoutbox working under RC3.
Just got 2 questions.

Problem one
Each time I 'shout' something this error shows:

Notice: Undefined variable: divclass in H:\Website\forum\Sources\sboxDB.php on line 206

When the autorefresh comes, the error is gone.

Second question:
I've put it above the Infocentre.
And below the New message/No new message.
Between the shoutbox and the infocentre there is a 'enter' and you can see the background.
At the top there is no 'enter' and the shoutbox sticks to the box above.

How can I make a 'enter' so that the shoutbox stands on his own?

Tnx and reagards.
Title: Re: SMF Shoutbox
Post by: Kettu on December 01, 2006, 08:53:27 AM
Quote from: toobeus4u on December 01, 2006, 07:03:16 AM
I've got the shoutbox working under RC3.
Just got 2 questions.

Problem one
Each time I 'shout' something this error shows:

Notice: Undefined variable: divclass in H:\Website\forum\Sources\sboxDB.php on line 206

When the autorefresh comes, the error is gone.
You are the second person who has this error, but I have no idea what it causes. Because the variable IS defined.

Quote from: toobeus4u on December 01, 2006, 07:03:16 AMSecond question:
I've put it above the Infocentre.
And below the New message/No new message.
Between the shoutbox and the infocentre there is a 'enter' and you can see the background.
At the top there is no 'enter' and the shoutbox sticks to the box above.

How can I make a 'enter' so that the shoutbox stands on his own?
Please publish the code of your BoardIndex.template.php. Else I can't tell you why you have this brake there, sounds like a table brake.
Title: Re: SMF Shoutbox
Post by: toobeus4u on December 01, 2006, 09:16:54 AM
The code of mij board.index.template of Babylon theme:

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 valign="bottom">', theme_linktree(), '</td>
      <td align="right">';
   if (!$settings['show_sp1_info'])
      echo '
         ', $txt[19], ': ', $context['common_stats']['total_members'], ' &nbsp;•&nbsp; ', $txt[95], ': ', $context['common_stats']['total_posts'], ' &nbsp;•&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" style="margin-bottom: 2ex;">
   <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" style="height: 60px;">';

      // 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>';
   }


   /* 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">
   <tr>
      <td colspan="4" class="catbg', $category['new'] ? '2' : '', '" height="18">';

      // If this category even can collapse, show a link to collapse it.
      if ($category['can_collapse'])
         echo '
         <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

      echo '
         ', $category['link'], '
      </td>
   </tr>';

      // Assuming the category hasn't been collapsed...
      if (!$category['is_collapsed'])
      {
         /* 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 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>
         <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']) == 1 ? $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: 12ex;"><span class="smalltext">
         ', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
         ', $board['topics'], ' ', $txt[330], '
      </span></td>
      <td 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 '
         ', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />
         ', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link'];

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

      echo '
</table></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>';
   }

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

   // Here's where the "Info Center" starts...
   echo '
<br />
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
   <tr class="titlebg">
      <td align="center" colspan="2">', $txt[685], '</td>
   </tr>';

   // 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'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $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'] == 1 ? $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>
      </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'] == 1 ? $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;" accept-charset="', $context['character_set'], '">
            <table border="0" cellpadding="2" cellspacing="0" 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></table>
         </form>
      </td>
   </tr>';
   }

   echo '
</table></div>';
}

?>


I want a break above and below shoutbox, so it isn't a part of something else.

About the other problem, anyone else?

Thanks Kettu
Title: Re: SMF Shoutbox
Post by: Kettu on December 01, 2006, 09:46:45 AM
Just add two <br /> as shown bold here:

</table></div><br /><br />';
   }

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

   // Here's where the "Info Center" starts...
   echo '
<br />
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
Title: Re: SMF Shoutbox
Post by: toobeus4u on December 01, 2006, 09:56:09 AM
Tnx Kettu.
I've used 1 time <br /> for 1 space between the boxes.

About the other error.
Everyone, admin/mod/user from different locations have the error.

Notice: Undefined variable: divclass in H:\Website\forum\Sources\sboxDB.php on line 206

Maybe it has something to do with the fact i am using Babylon. And not the default theme?

Can I change the name SMF SHOUTBOX to something else?

Title: Re: SMF Shoutbox
Post by: Kettu on December 01, 2006, 02:25:19 PM
Quote from: toobeus4u on December 01, 2006, 09:56:09 AM
Notice: Undefined variable: divclass in H:\Website\forum\Sources\sboxDB.php on line 206

Maybe it has something to do with the fact i am using Babylon. And not the default theme?

Can I change the name SMF SHOUTBOX to something else?
Because you have the default theme on your SMF try this one if the error occurs there, too.
What kind of language do you use at your board?
Title: Re: SMF Shoutbox
Post by: toobeus4u on December 01, 2006, 05:01:43 PM
i am using the dutch langauge package.
So I also had to change English into shout.dutch.php
Otherwise the error discussed previous page occured.

i'll try the default theme


EDIT:
tried Jabba and default Core.
Still the same error.....

Notice: Undefined variable: divclass in H:\Website\forum\Sources\sboxDB.php on line 206

Title: Re: SMF Shoutbox
Post by: Kettu on December 02, 2006, 08:20:58 AM
Quote from: toobeus4u on December 01, 2006, 05:01:43 PM
i am using the dutch langauge package.
So I also had to change English into shout.dutch.php
Otherwise the error discussed previous page occured.
What about language.dutch.php?

Do you have tiny portal or another portal software?
Title: Re: SMF Shoutbox
Post by: JonoJames on December 02, 2006, 06:33:51 PM
Any update for 1.1?
Title: Re: SMF Shoutbox
Post by: kok3n on December 02, 2006, 09:32:37 PM
i'm gonna have to ask the same question.. do we have an upgrade version already for 1.1?
Title: Re: SMF Shoutbox
Post by: Kettu on December 03, 2006, 04:23:31 AM
Currently not. But it should work with 1.1.
Title: Re: SMF Shoutbox
Post by: toobeus4u on December 03, 2006, 05:32:19 AM
Quote from: Kettu on December 02, 2006, 08:20:58 AM
Quote from: toobeus4u on December 01, 2006, 05:01:43 PM
i am using the dutch langauge package.
So I also had to change English into shout.dutch.php
Otherwise the error discussed previous page occured.
What about language.dutch.php?

Do you have tiny portal or another portal software?

Sorry, that's what I ment.
I had to change language.english.php >>> into language.dutch.php to make it work.

And the error remains, every shout it appears.

I don't understand what you mean with the portal question. Sorry.





Title: Re: SMF Shoutbox
Post by: kok3n on December 03, 2006, 05:42:24 AM
Quote from: Kettu on December 03, 2006, 04:23:31 AM
Currently not. But it should work with 1.1.

i tried installing it on my 1.1 but it says it's not compatible..
Title: Re: SMF Shoutbox
Post by: kupkes on December 03, 2006, 06:03:24 AM
Quote from: bisrock on December 03, 2006, 05:42:24 AM
Quote from: Kettu on December 03, 2006, 04:23:31 AM
Currently not. But it should work with 1.1.

i tried installing it on my 1.1 but it says it's not compatible..
I suffered the same fate ...
Title: Re: SMF Shoutbox
Post by: kok3n on December 03, 2006, 06:35:32 AM
please, give us the updated version for 1.1.. please please please.. :'(
Title: Re: SMF Shoutbox
Post by: kupkes on December 03, 2006, 06:56:40 AM
Quote from: bisrock on December 03, 2006, 06:35:32 AM
please, give us the updated version for 1.1.. please please please.. :'(
Fixed (kind of)
Note, when I did this, I lost the history, no great loss, just a warning (be easy to get back from a backup)

In the package-info.xml file that come with the install, I changed every instance where I saw 1.1 RC2 to just 1.1

I then zipped it all back up, and reinstalled it, and it worked nicely.

Bit of a weird workaround, I know, but it was only the fact 1.1 wasn't mentioned in the pachage-info.xml file that it wasn't working.

If there is something wrong, bad, illegal or immoral about what I did, please let me know.

Regards,
Simon
Title: Re: SMF Shoutbox
Post by: kok3n on December 03, 2006, 07:03:02 AM
Quote from: kupkes on December 03, 2006, 06:56:40 AM
Quote from: bisrock on December 03, 2006, 06:35:32 AM
please, give us the updated version for 1.1.. please please please.. :'(
Fixed (kind of)
Note, when I did this, I lost the history, no great loss, just a warning (be easy to get back from a backup)

In the package-info.xml file that come with the install, I changed every instance where I saw 1.1 RC2 to just 1.1

I then zipped it all back up, and reinstalled it, and it worked nicely.

Bit of a weird workaround, I know, but it was only the fact 1.1 wasn't mentioned in the pachage-info.xml file that it wasn't working.

If there is something wrong, bad, illegal or immoral about what I did, please let me know.

Regards,
Simon

sorry but i'm a newbie.. please tell me where i could find package-info.xml.. thanks!
Title: Re: SMF Shoutbox
Post by: kupkes on December 03, 2006, 07:25:52 AM
Quote from: bisrock on December 03, 2006, 07:03:02 AM
sorry but i'm a newbie.. please tell me where i could find package-info.xml.. thanks!
Oops sorry, I didn't really outline that to well...

In short, it is in the original package file that you downloaded

What I did was I unzipped the original file that I downloaded for the shoutbox (which was 'sbox_v1.14.zip' for me)
Then I looked through the file in the location where I unzipped (or I guess extracted if you want to be technical) the files to. In this location, there is a file called package-info.xml (which I believe all packages have to tell it what it should work with). This file did not include anything about the final release of SMF 1.1, so therefore it did not allow it to be installed.
By changing this file to include 1.1, it 'tricked' SMF 1.1 to think that it was ok for it (which it seems to be fine IMO).
After changing this in the package-info.xml, rezipped all the files again, and uploaded it as a new package. (note: some programs allow you to change the files while they are still in the zip I believe).

This seemed to work ok for me, though I must admit I have a VERY limited knowledge of this type of thing (I tried it with another package I had, and it worked, so I figured I should try it with this, and it worked).
Title: Re: SMF Shoutbox
Post by: kok3n on December 03, 2006, 07:44:49 AM
i followed everything and got this when trying to install it...


1.  Extract File  ./Sources/sbox.php 
2. Extract File ./Sources/sboxDB.php
3. Extract File ./Themes/default/languages/sbox.english.php
4. Extract File ./Themes/default/languages/sbox.german.php
5. Extract File ./Themes/default/sbox.template.php
6. Extract File ./Themes/default/images/sbox_refresh.gif
7. Extract File ./chat-inbound_GSM.wav
8. Execute Code sbox_setup.php
9. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
10. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
11. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
12. Execute Modification ./Themes/blackTed/BoardIndex.template.php Skipping file
13. Execute Modification ./Sources/Subs.php Test successful
14. Execute Modification ./Themes/default/languages/Help.english.php Test successful
15. Execute Modification ./Themes/default/languages/Help.german.php Test successful
16. Execute Modification ./Sources/ModSettings.php Test successful
Title: Re: SMF Shoutbox
Post by: JonoJames on December 03, 2006, 07:29:54 PM
Please can someone give a link or information on how to update this, tried the above and doesn't work!
Title: Re: SMF Shoutbox
Post by: kok3n on December 03, 2006, 08:38:56 PM
I hope they would be able to come up with a version compatible for 1.1. Ultimate Shoutbox already came up with an updated version but i like this better than the other one.
Title: Re: SMF Shoutbox
Post by: justafishermen on December 04, 2006, 09:02:49 AM
uncaught exception: Permission denied to get property HTMLDocument.sbox

I get that in FireFox everytime the shoutbox refreshs.

I did make this change in SMF.php as per Orstio regarding members complaining about java script errors.

http://www.simplemachines.org/community/index.php?topic=115776.msg741636#msg741636

The ShoutBox is working just fine but these errors are annouying. Anyone have any idea how to fix it? I tried doing a search and it came up blank.

Thanks guys, your all pros!
Title: Re: SMF Shoutbox
Post by: justafishermen on December 04, 2006, 09:57:13 PM
Man this is causing heavy lag on our board. I noticed the errors only pop up in Firefox but the lag is on any browser.
Title: Re: SMF Shoutbox
Post by: kok3n on December 06, 2006, 06:21:35 PM
still no updates for a new version compatible with the 1.1? :(
Title: Re: SMF Shoutbox
Post by: Kettu on December 07, 2006, 09:08:15 AM
Quote from: bisrock on December 06, 2006, 06:21:35 PM
still no updates for a new version compatible with the 1.1? :(
Unfortunately not. I get no contact to mbirth :(

@justafishermen
If you change SMF stuff it can happen that errors occur, because shoutbox is made for original smf.
Maybe it is cause by this if / else command.
Title: Re: SMF Shoutbox
Post by: littleone on December 07, 2006, 12:38:45 PM
You should be able to do a manual install.  Read the install file and see where the files need to go and then do the manual changes in the other scripts.  I dont see why this mod wouldnt work with 1.1 already.  I havent tried it yet but it should work.  Let me know if I am wrong in that statement if anyone knows otherwise.
Title: Re: SMF Shoutbox
Post by: PTC Guy on December 07, 2006, 12:52:12 PM
I tried this:
QuoteDecember 05, 2006, 10:14:56 AM Mig-32 wrote:
Update the package-info.xml to be like this:

[...]
   <install for="1.1 RC2, 1.1 RC3,1.1">
(...)



and in all fields that appear: "1.1 RC2, 1.1 RC3" add the 1.1 that all lines become "1.1 RC2, 1.1 RC3,1.1"

Save it, upload again on the zip file and then upload it to your forum and install!!

It will install the shoutbox, but it gives an undeclared sbox() error for modsetting.php.

The line is there in modsetting.

But the forum is shut down due to the error.
Title: Re: SMF Shoutbox
Post by: Arnaldo on December 07, 2006, 10:20:51 PM
any luck on a fix to make it work in 1.1final yet?
Title: Re: SMF Shoutbox
Post by: kok3n on December 08, 2006, 10:25:28 AM
Quote from: Arnaldo on December 07, 2006, 10:20:51 PM
any luck on a fix to make it work in 1.1final yet?

i have the same concern.. been waiting and waiting for it.. :(
Title: Re: SMF Shoutbox
Post by: kok3n on December 10, 2006, 10:25:28 PM
Quote from: PTC Guy on December 07, 2006, 12:52:12 PM
I tried this:
QuoteDecember 05, 2006, 10:14:56 AM Mig-32 wrote:
Update the package-info.xml to be like this:

[...]
   <install for="1.1 RC2, 1.1 RC3,1.1">
(...)



and in all fields that appear: "1.1 RC2, 1.1 RC3" add the 1.1 that all lines become "1.1 RC2, 1.1 RC3,1.1"

Save it, upload again on the zip file and then upload it to your forum and install!!

It will install the shoutbox, but it gives an undeclared sbox() error for modsetting.php.

The line is there in modsetting.

But the forum is shut down due to the error.

i got the same error.. :(
Title: Re: SMF Shoutbox
Post by: FoneBone on December 16, 2006, 10:09:29 AM
Here it is.... finally tested on clean and fresh installation of SMF 1.1. Hope, it will work for all of you.

Regards
Title: Re: SMF Shoutbox
Post by: kriskd on December 16, 2006, 10:31:58 AM
Quote from: FoneBone on December 16, 2006, 10:09:29 AM
Here it is.... finally tested on clean and fresh installation of SMF 1.1. Hope, it will work for all of you.

Regards

I got the following error with this version


Fatal error: Cannot redeclare sbox() (previously declared in /home/.cutiekins/sprechereast/thecohortcafe.com/Sources/Subs.php:3577) in /home/.cutiekins/sprechereast/thecohortcafe.com/Sources/Subs.php on line 3590


I'm working on manually unmodding it now.
Title: Re: SMF Shoutbox
Post by: kriskd on December 16, 2006, 10:42:34 AM
Okay, the error might not be with this version because the same thing happen when I tried to install version 1.15.  So, I must have messed something up along the way....
Title: Re: SMF Shoutbox
Post by: Havoc on December 16, 2006, 04:11:14 PM
I can't edit Shoutbox settings in 'Features and Options' section. When I mark the arrays and click Save button, they will not save. Does anyone know why?

I'm using SMF version 1.1 RC3.
Title: Re: SMF Shoutbox
Post by: kriskd on December 16, 2006, 04:39:48 PM
Quote from: Havoc on December 16, 2006, 04:11:14 PM
I can't edit Shoutbox settings in 'Features and Options' section. When I mark the arrays and click Save button, they will not save. Does anyone know why?

I'm using SMF version 1.1 RC3.

Also, before I started having all my problems, I saw I was unable to turn off the shout box with the check box.  This was for SMF 1.1 Final and with either version 1.15 or 1.16.
Title: Re: SMF Shoutbox
Post by: kriskd on December 16, 2006, 05:32:16 PM
I was able to get 1.15 installed successfully and like Havoc said, features can not be edited and saved.

For anyone who is brave enough to go into their db, I manually edited my settings in the smf_settings table.
Title: Re: SMF Shoutbox
Post by: kok3n on December 17, 2006, 04:59:32 AM
Quote from: FoneBone on December 16, 2006, 10:09:29 AM
Here it is.... finally tested on clean and fresh installation of SMF 1.1. Hope, it will work for all of you.

Regards

will it also work if forum was upgraded from r3c to 1.1?
Title: Re: SMF Shoutbox
Post by: kok3n on December 17, 2006, 08:06:01 AM
Quote from: FoneBone on December 16, 2006, 10:09:29 AM
Here it is.... finally tested on clean and fresh installation of SMF 1.1. Hope, it will work for all of you.

Regards

i was able to install it on my forum however, smileys doesn't work on the shoutbox.. if i type the smiley code and press enter, what comes out is the smiley name.. can somebody help me on this please?
Title: Re: SMF Shoutbox
Post by: kriskd on December 17, 2006, 09:12:18 AM
Do your smileys work elsewhere in your forum?
Title: Re: SMF Shoutbox
Post by: FoneBone on December 17, 2006, 02:38:10 PM
i think, it is really important that you uninstall previous versions of this mod. this version in the attachment worked only with smf 1.1 on my clean test-board. it is not compatible to previous versions of smf. and i doesn't support the upgrade function of the 1.15.
Title: Re: SMF Shoutbox
Post by: kriskd on December 17, 2006, 03:51:08 PM
FoneBone --

Does your version save the features when they are edited?  And what is the upgrade function of 1.15?
Title: Re: SMF Shoutbox
Post by: FoneBone on December 17, 2006, 04:01:28 PM
Quote from: kriskd on December 17, 2006, 03:51:08 PM
FoneBone --

Does your version save the features when they are edited?  And what is the upgrade function of 1.15?
yes it saves the feature settings... and the version 1.15 is able to update directly from earlier versions of this mod. the version 1.20b1 does not.
Title: Re: SMF Shoutbox
Post by: kok3n on December 17, 2006, 05:25:03 PM
Quote from: kriskd on December 17, 2006, 09:12:18 AM
Do your smileys work elsewhere in your forum?

yes my smileys works elsewhere, but not in the shoutbox..

please help.. :(
Title: Re: SMF Shoutbox
Post by: blur on December 17, 2006, 07:51:51 PM
will this work if i have a different theme than default? it gives me this error:

Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/sbox.php 
2. Extract File ./Sources/sboxDB.php 
3. Extract File ./Themes/default/languages/sbox.english.php 
4. Extract File ./Themes/default/languages/sbox.german.php 
5. Extract File ./Themes/default/sbox.template.php 
6. Extract File ./Themes/default/images/sbox_refresh.gif 
7. Extract File ./chat-inbound_GSM.wav 
8. Execute Code sbox_setup.php 
9. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
10. Execute Modification ./Themes/classic/BoardIndex.template.php Test failed  
11. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
12. Execute Modification ./Themes/blackTed/BoardIndex.template.php Skipping file
13. Execute Modification ./Sources/Subs.php Test successful
14. Execute Modification ./Themes/default/languages/Help.english.php Test successful
15. Execute Modification ./Themes/default/languages/Help.german.php Skipping file
16. Execute Modification ./Sources/ModSettings.php Test successful
Title: Re: SMF Shoutbox
Post by: Roknrol on December 17, 2006, 08:12:20 PM
Problem: Blank Shoutbox
Cause: I'm an idiot
Request: Assistance

:)

Ok, here's the scoop - I had the Shoutbox working perfectly (it's a phenomenal Mod!), and then I had to make some changes to my server (paths and stuff).  Now, I'm not seeing any of the messages that are typed into the box.  I don't get any errors at all - either on the board or in the error log.

What happened?  Well, as I said, I had to make some changes to the site.  No physical moving was required, but I had to change some of the paths in SMF to link properly (they were using local paths instead of relational paths), and I *think* that it broke the connection to the Database.  I ended up using the repair-settings.php file to fix the other problems that I was having, and this is the *last* little bit that I have to get working.

Erm...what else?  I'm using Wamp 5, SMF 1.1...that's it I think.  I realize how much it would help if I were getting error messages, but the lack of messages gives me nowhere else to look!

I have tried an uninstall/reinstall of the Mod to no avail.  I get the impression that it's still able to *post* messages in the shoutbox, but that the box isn't looking in the right place to present them.

Any help would be greatly appreciated!
Title: Re: SMF Shoutbox
Post by: kran1um on December 17, 2006, 08:29:14 PM
16. Execute Modification ./Sources/ModSettings.php Test failed


is what I get...for some reason.
Title: Re: SMF Shoutbox
Post by: kriskd on December 17, 2006, 08:48:02 PM
Quote from: blur on December 17, 2006, 07:51:51 PM

10. Execute Modification ./Themes/classic/BoardIndex.template.php Test failed  

I was getting this exact failure too and then my forum would crash if I continued with the install.  What worked for me was completely unmodding my forum and installing.  It's running fine now, but feature changes still aren't saved.  At this point, I'm going to wait a bit longer before attempting the latest version of it.
Title: Re: SMF Shoutbox
Post by: FoneBone on December 18, 2006, 11:01:09 AM
I don't know what is the problem with this save feature.  ??? Maybe you can change it manually after installing the mod (version1.15a... or else). Search in the ModSettings.php for this:
// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context, $txt, $scripturl, $modSettings, $sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir . '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',

And you just have to add this:
'sbox' => 'ModifySboxSettings',

Regards
Title: Re: SMF Shoutbox
Post by: Roknrol on December 18, 2006, 02:40:30 PM
Disregard my above post - issue resolved.  It was a backwards backslash...such is the nature of using Windows to host something internet related ;)
Title: Re: SMF Shoutbox
Post by: kran1um on December 18, 2006, 07:01:04 PM
Sorry, but the SMF Shoutbox Mod doesn't support your SMF version! >:(


Dang.. I just did the SMF 1.1.1... will this soon work for this??
Title: Re: SMF Shoutbox
Post by: tL0z on December 19, 2006, 06:49:56 AM
Quote from: FoneBone on December 17, 2006, 02:38:10 PM
i think, it is really important that you uninstall previous versions of this mod. this version in the attachment worked only with smf 1.1 on my clean test-board. it is not compatible to previous versions of smf. and i doesn't support the upgrade function of the 1.15.

Hello,

I changed the package-info in order to work with 1.1.1. However, it doesn't work. In the forum index appears:

Fatal error: Call to undefined function: sbox_display() in /home/nintendo/public_html/forum/Sources/Subs.

What should I do?

Thanks


EDIT: I found the problem. The files weren't well installed in the ftp, they had 0 kd. I already replaced the wav file, the two language files, sbox.php, sboxDB.php, sbox.template.php and sbox_refresh.gif.
It's working now.

Should I do something else?
Title: Re: SMF Shoutbox
Post by: ramansingla on December 19, 2006, 11:06:09 AM
I downloaded & installed FoneBone lates revision of Shoutbox & get the following error. See in the picture...
I can't see the source of the problem...

Mine is SMF 1.1.1
Title: Re: SMF Shoutbox
Post by: tL0z on December 19, 2006, 04:38:47 PM
Check if sbox.php and sboxDB.php are in Sources folder.

By the way, could anyone please make it possible to give or to remove permissions in posting on the shoutbox? I really need it!
Title: Re: SMF Shoutbox
Post by: dry3210 on December 19, 2006, 10:06:32 PM
Well I got the shoutbox to work with 1.1.1 but I no longer seem to be able to get it to show up on all the boards...only the main board.  Even with editing the board.templete
Title: Re: SMF Shoutbox
Post by: FoneBone on December 20, 2006, 05:20:28 AM
So, here we go again. I've rewritten the xml-file to a mod-file and I 've tested it on my board. There were no problems at all while installation or uninstallation.
Title: Re: SMF Shoutbox
Post by: kok3n on December 20, 2006, 06:00:41 AM
Quote from: FoneBone on December 20, 2006, 05:20:28 AM
So, here we go again. I've rewritten the xml-file to a mod-file and I 've tested it on my board. There were no problems at all while installation or uninstallation.


can you please figure out why my smileys doesn't work for my shoutbox? i installed the  sbox_v1.20b1.zip version...
Title: Re: SMF Shoutbox
Post by: Arnaldo on December 20, 2006, 11:13:13 AM
Awsome fix :)
everything seems to be working great, even the smilies  :D
Title: Re: SMF Shoutbox
Post by: Tarth on December 20, 2006, 01:09:33 PM
Thanks for the update, very well appreciated.

I have only one weird issue. Regular users shoutbox windows do not refresh properly when using the refresh button. The window does not refresh (as if using the button could not get info from the database and update itself). However, The auto-refresh works fine and there are no problems at all for admin users (works the same it always worked for them).

Thanks for your usual help,
Title: Re: SMF Shoutbox
Post by: Drea on December 20, 2006, 08:44:27 PM
thanks so much for the updated version it works great :)
Title: Re: SMF Shoutbox
Post by: Dayu on December 23, 2006, 11:30:55 AM
Hello,

1. How can I fix this error that occurs in ie6: even when background is set to:
background: transparent;
ie6 not like other browsers still put a white background (not becoming transparent).

2. Where can I edit to make the fonts more bigger?

Thanks.

Merry Christmas!
Title: Re: SMF Shoutbox
Post by: kriskd on December 23, 2006, 04:27:50 PM
Thanks, FoneBone!  I finally had a chance to test out your version 1.20 and it works and settings can be saved.  Thanks again!
Title: Re: SMF Shoutbox
Post by: dry3210 on December 23, 2006, 10:51:02 PM
Quote from: dry3210 on December 19, 2006, 10:06:32 PM
Well I got the shoutbox to work with 1.1.1 but I no longer seem to be able to get it to show up on all the boards...only the main board.  Even with editing the board.templete

So no ideas?  Does the new version of SMF (1.1.1) not allow you to put it on every page?  Or is it a different file that needs the code put in?  Or am I just an idiot?
Title: Re: SMF Shoutbox
Post by: Kettu on December 27, 2006, 10:26:13 AM
Quote from: Havoc on December 16, 2006, 04:11:14 PM
I can't edit Shoutbox settings in 'Features and Options' section. When I mark the arrays and click Save button, they will not save. Does anyone know why?

I'm using SMF version 1.1 RC3.
Could be a chmod error. Check your chmod settings for sbox.php and sboxDB.php

@FoneBone
Who are you?
Title: Re: SMF Shoutbox
Post by: FoneBone on December 27, 2006, 10:52:06 AM
Quote from: Kettu on December 27, 2006, 10:26:13 AM
@FoneBone
Who are you?
Who should be me ???
Title: Re: SMF Shoutbox
Post by: texterted on December 27, 2006, 01:42:03 PM
Well done FoneBone!
Works well with me on 1.1.1.
All the best!
Title: Re: SMF Shoutbox
Post by: Kettu on December 27, 2006, 02:37:51 PM
Quote from: FoneBone on December 27, 2006, 10:52:06 AM
Who should be me ???
You're goin' on programming deeps / mbirths shoutbox, but none of them told me about it.
Title: Re: SMF Shoutbox
Post by: FoneBone on December 27, 2006, 02:46:35 PM
Quote from: Kettu on December 27, 2006, 02:37:51 PM
Quote from: FoneBone on December 27, 2006, 10:52:06 AM
Who should be me ???
You're goin' on programming deeps / mbirths shoutbox, but none of them told me about it.
It wasn't my intention to get all the credits. I just wanna make a working version for SMF 1.1 and 1.1.1. Nothing else.
Title: Re: SMF Shoutbox
Post by: dry3210 on December 27, 2006, 03:29:30 PM
Quote from: FoneBone on December 20, 2006, 05:20:28 AM
So, here we go again. I've rewritten the xml-file to a mod-file and I 've tested it on my board. There were no problems at all while installation or uninstallation.

Does this work so it can be put on all the boards?  Or just the main index of it?
Title: Re: SMF Shoutbox
Post by: boolprop_net on December 27, 2006, 06:44:30 PM
Got it to work again for 1.1.1. Thanks for the update. My members will be thrilled it's back. :)
Title: Re: SMF Shoutbox
Post by: keith021773 on December 31, 2006, 12:11:10 AM
Thanks for updating to use with 1.1.1.     I have just one small issue.    I run my resolution at 1280x1024 and my screen is fine..   One of my users runs his resolution at 1024x768.    The right side of the forums, the TP blocks gets extended off screen and he has to scroll to the right to see all of the page.   

I turned off the shoutbox and it went back to normal.   Turned it back on, and he had to scroll again.   Is there anyway to fix this please?   I would deeply appreciate it..    Thanks!
Title: Re: SMF Shoutbox
Post by: nitins60 on December 31, 2006, 12:24:53 PM
How can i display shoutbox n my website other than forum! I mean, i want to dedicated one page for it! Don't want to show n boards list!
Title: Re: SMF Shoutbox
Post by: nitins60 on December 31, 2006, 12:42:22 PM
Need a quick reply! I want to gift it as @my forum members!
Title: Re: SMF Shoutbox
Post by: nitins60 on December 31, 2006, 12:46:48 PM
Need a quick reply! I want to gift it as @my forum members!
Title: Re: SMF Shoutbox
Post by: FoneBone on December 31, 2006, 12:51:46 PM

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


I think, you only have to add this to your template or source code.
Title: Re: SMF Shoutbox
Post by: keith021773 on December 31, 2006, 01:15:30 PM
FoneBone.    Do you know how to fix what I posted above?    It would help me out alot.   Thanks!
Title: Re: SMF Shoutbox
Post by: nitins60 on December 31, 2006, 01:47:13 PM
Quote from: FoneBone on December 31, 2006, 12:51:46 PM

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


I think, you only have to add this to your template or source code.

thanx! I tried it first, made a mistake! :P
can i know how to disable auto refresh permanently!
Title: Re: SMF Shoutbox
Post by: joh87swe on January 01, 2007, 07:02:19 PM
I use v1.20 but the smilies doesn't work. Pliz help
Title: Re: SMF Shoutbox
Post by: cbn on January 02, 2007, 11:34:16 AM
I installed it, work very fine. But how can I delete the shout? I can't find the remove shout message anywhere. Please help. Thanks
Title: Re: SMF Shoutbox
Post by: joh87swe on January 03, 2007, 07:05:29 PM
You have small red cross for each message. Click on it and the massage is gone.
I have problems with mine. It's very slow to post, my browser just lagg! And the smilies doesn't work when I'm logged on as administrator.
Pliz someone help...
Title: Re: SMF Shoutbox
Post by: sawz on January 03, 2007, 07:38:04 PM
is there a way to change the background color of the shoutbox without affecting the rest of the forum?
Title: Re: SMF Shoutbox
Post by: keith021773 on January 03, 2007, 08:06:25 PM
Here is my boardindex.templete.php file that FoneBone requested..     Thanks for looking at it Fone....
Title: Re: SMF Shoutbox
Post by: kok3n on January 03, 2007, 10:10:52 PM
I have this problem with the shoutbox. If a member is inactive or doesn't do anything on the forum, his name will disappear on the online list. Thus, if there are 10 users logged in and all of them are not doing anything, nobody will ever appear on the online list.

Please have this resolved.. Thanks!
Title: Re: SMF Shoutbox
Post by: FoneBone on January 04, 2007, 05:41:08 AM
Quote from: keith021773 on January 03, 2007, 08:06:25 PM
Here is my boardindex.templete.php file that FoneBone requested..     Thanks for looking at it Fone....

Okay, I think the mistake is in the sbox.template.php and not in your boardindex.template.php. Can you post a screenshot of it please?
Title: Re: SMF Shoutbox
Post by: keith021773 on January 04, 2007, 09:45:10 AM
Quote from: FoneBone on January 04, 2007, 05:41:08 AM
Quote from: keith021773 on January 03, 2007, 08:06:25 PM
Here is my boardindex.templete.php file that FoneBone requested..     Thanks for looking at it Fone....

Okay, I think the mistake is in the sbox.template.php and not in your boardindex.template.php. Can you post a screenshot of it please?

Here ya go.   
Title: Re: SMF Shoutbox
Post by: FoneBone on January 04, 2007, 10:09:26 AM
Quote from: keith021773 on January 04, 2007, 09:45:10 AM
Quote from: FoneBone on January 04, 2007, 05:41:08 AM
Quote from: keith021773 on January 03, 2007, 08:06:25 PM
Here is my boardindex.templete.php file that FoneBone requested..     Thanks for looking at it Fone....

Okay, I think the mistake is in the sbox.template.php and not in your boardindex.template.php. Can you post a screenshot of it please?

Here ya go.   
Sorry, you misunderstand me. I just wanna see a screenshot of your forum with the problem of the shoutbox in it. I already have the sbox.template.php  ;)
Title: Re: SMF Shoutbox
Post by: keith021773 on January 04, 2007, 10:31:47 AM
Here ya go.
Title: Re: SMF Shoutbox
Post by: FoneBone on January 04, 2007, 12:35:28 PM
@keith
I've got also this little horizontal scroll bar... ???
please help me and try this little test: press and hold the shift-key while clicking the forum-button. it should open your forum in another window. when I maximize this new window, the scrollbar is hidden. don't know why.  ???

Title: Re: SMF Shoutbox
Post by: keith021773 on January 04, 2007, 01:24:12 PM
I did that FoneBone.   But I still had the horizontal scroll bar..   That is what I am trying to fix..    So it all fits on the screen without having to scroll.   

It only happens in IE.  It works fine in firefox.. 
Title: Re: SMF Shoutbox
Post by: kok3n on January 04, 2007, 09:54:41 PM
Fonebone

Do you have any idea about the problem i'm having? I posted it above..

Thank you.. :)
Title: Re: SMF Shoutbox
Post by: FoneBone on January 05, 2007, 03:09:20 AM
Quote from: kok3n on January 04, 2007, 09:54:41 PM
Fonebone

Do you have any idea about the problem i'm having? I posted it above..

Thank you.. :)
Do you mean the online-status in the BoardIndex? It shows all active members in the last 15min. And I don't know, how to change the time in it. Maybe in the Sources/BoardIndex.php.
Title: Re: SMF Shoutbox
Post by: esseveeforum on January 05, 2007, 04:34:15 AM
can someone help me? on my forum: www.esseveeforum.be i get an error when i type in a message
it says a script is being executed and that that is the reason why IE or firefox are acting verry slow, when i quit the script my message appears in the shoutbox
how can i fix this problem?
Title: Re: SMF Shoutbox
Post by: esseveeforum on January 05, 2007, 04:40:00 AM
and i would like the shoutbox to appear on each page of the forum
Title: Re: SMF Shoutbox
Post by: RvG on January 05, 2007, 05:13:12 AM
Quote from: esseveeforum on January 05, 2007, 04:40:00 AM
and i would like the shoutbox to appear on each page of the forum

u r using tp or no?
Title: Re: SMF Shoutbox
Post by: kok3n on January 05, 2007, 05:59:00 AM
Quote from: FoneBone on January 05, 2007, 03:09:20 AM
Quote from: kok3n on January 04, 2007, 09:54:41 PM
Fonebone

Do you have any idea about the problem i'm having? I posted it above..

Thank you.. :)
Do you mean the online-status in the BoardIndex? It shows all active members in the last 15min. And I don't know, how to change the time in it. Maybe in the Sources/BoardIndex.php.

what i meant was if a member doesn't do anything on the forum, like they will just park their name there, after a few minutes of inactivity, their name will disappear on the online list even if they haven't left yet..
Title: Re: SMF Shoutbox
Post by: sawz on January 05, 2007, 06:03:15 AM
Quote from: sawz on January 03, 2007, 07:38:04 PM
is there a way to change the background color of the shoutbox without affecting the rest of the forum?
just a nudge, possible or not.
Title: Re: SMF Shoutbox
Post by: esseveeforum on January 05, 2007, 06:09:32 AM
Quote from: esseveeforum on January 05, 2007, 04:34:15 AM
can someone help me? on my forum: www.esseveeforum.be i get an error when i type in a message
it says a script is being executed and that that is the reason why IE or firefox are acting verry slow, when i quit the script my message appears in the shoutbox
how can i fix this problem?
can someone fix this problem plz?
Title: Re: SMF Shoutbox
Post by: esseveeforum on January 05, 2007, 07:14:48 AM
how can i disable the auto-refresh thing?
Title: Re: SMF Shoutbox
Post by: loopyj22 on January 05, 2007, 12:07:28 PM
Does anyone know why when i go into the Shoutbox settings page and change settings and hit save it doesnt actually save them. Everytime i refresh it just shows teh settings back to default.
Title: Re: SMF Shoutbox
Post by: noaneo on January 08, 2007, 01:18:33 PM
Good evening,
How to install for shoutbox with SMF v.1.1.1?
Thank you
Title: Re: SMF Shoutbox
Post by: belaferon on January 09, 2007, 06:14:11 AM
Quote from: noaneo on January 08, 2007, 01:18:33 PM
Good evening,
How to install for shoutbox with SMF v.1.1.1?
Thank you
How, How?

Pleas someboody.....
Title: Re: SMF Shoutbox
Post by: noaneo on January 09, 2007, 06:24:28 AM
Hello,
I do not speak English, I use a translator to have a dialogue, I downloaded the last one of shoutbox, and I have an error message, that to make?
If I write in the column "French" somebody can help me?
Thank you
Title: Re: SMF Shoutbox
Post by: pariofdreamz on January 09, 2007, 07:17:35 AM
Good evening,
How to install for shoutbox with SMF v.1.1.1?
Thank you :(
Title: Re: SMF Shoutbox
Post by: Kettu on January 09, 2007, 09:28:12 AM
Please, if you ask for Support, tell us the Version you use and whose shoutbox (deep, mbirth or FoneBone).
Title: Re: SMF Shoutbox
Post by: belaferon on January 09, 2007, 09:33:19 AM
Quote from: Kettu on January 09, 2007, 09:28:12 AM
Please, if you ask for Support, tell us the Version you use and whose shoutbox (deep, mbirth or FoneBone).
mbirth
http://custom.simplemachines.org/mods/index.php?mod=412
v1.15 with SMF 1.1.1
Title: Re: SMF Shoutbox
Post by: noaneo on January 09, 2007, 01:24:16 PM
Good evening,
it is the version which I took, walk not
Title: Re: SMF Shoutbox
Post by: knt3424 on January 09, 2007, 01:47:39 PM
I'm running a board (v1.1.1) with Classic YaBB theme and thinking about installing mbirth's version (or maybe on of the others).  But I'd like to see a demo of a working shoutbox.  Can anyone direct me to a board with a working shoutbox?  And maybe tell me the version they are running so I can compare?

Thanks so much!
Title: Re: SMF Shoutbox
Post by: kok3n on January 09, 2007, 03:04:34 PM
try mine,  www.bisdak.ph

you need to login before you can view the shoutbox..
Title: Re: SMF Shoutbox
Post by: belaferon on January 09, 2007, 04:16:31 PM
Quote from: kok3n on January 09, 2007, 03:04:34 PM
try mine,  www.bisdak.ph

you need to login before you can view the shoutbox..
Pleas tell me haw you install this mod?

If I wont install him, SMF give me message:

Installation Readme
Sorry, but the SMF Shoutbox Mod doesn't support your SMF version!

Pleas someboody help me...


Title: Re: SMF Shoutbox
Post by: Kettu on January 10, 2007, 02:56:19 AM
Quote from: belaferon on January 09, 2007, 09:33:19 AM
Quote from: Kettu on January 09, 2007, 09:28:12 AM
Please, if you ask for Support, tell us the Version you use and whose shoutbox (deep, mbirth or FoneBone).
mbirth
http://custom.simplemachines.org/mods/index.php?mod=412
v1.15 with SMF 1.1.1
Well, v1.15 is made for 1.1 RC3. So I know mbirth will make a new version for 1.1.1. He couldn't program the last weeks because of stress, but he told me, he will do it soon.
Title: Re: SMF Shoutbox
Post by: SponToN on January 10, 2007, 12:01:03 PM
is there a possibility to make SB by DEEP that posts there will be sort that newest will be at the bottom not at the top ??
Title: Re: SMF Shoutbox
Post by: Kettu on January 10, 2007, 12:50:00 PM
Quote from: SponToN on January 10, 2007, 12:01:03 PM
is there a possibility to make SB by DEEP that posts there will be sort that newest will be at the bottom not at the top ??
Yes. You have to find the ASC / DESC part at sboxDB.php. There should be something like this code. Could be a bit different.

ORDER BY id DESC, time ASC LIMIT " . $modSettings['sbox_MaxLines'], __FILE__, __LINE__);

Just change id DESC to id ASC. But please, don't forget to backup the file. Because I can't guarantee that this works.
Title: Re: SMF Shoutbox
Post by: circles122345 on January 12, 2007, 07:11:14 AM
i have a problem with my smf i want to have a shoutbox in my forum, my theme is classic..

thanks,
Title: Re: SMF Shoutbox
Post by: richiehale on January 12, 2007, 12:53:54 PM
okay I have been trying to get this to work, I have RC3 , and it installed fine, but like others i am getting the 404 error in the box, I think I edited the sbox.template.php file right, I added it below if anyone can tell me if i screwed it up. Thank you in advance

<?php

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

$themedir $settings['default_theme_url'];
$imgdir $themedir."/images/";
$sourceurl str_replace($boarddir$boardurl$sourcedir);

if ($context['user']['is_guest'] && $modSettings['sbox_GuestVisible'] != '1') return;

echo '
  <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;
}

     function clearSbox() {
       // Delete shoutbox message text after shout has been submitted
       if (document.sbox)
       document.sbox.sboxText.value="";
      }
      
      function submitSbox() {
        pretxt = \'' 
$txt['sbox_TypeShout'] . '\';
        prelen = pretxt.length;
        if (document.sbox.sboxText.value == pretxt) return false;
        xval = document.sbox.sboxText.value;
        while (xval.indexOf(pretxt) >= 0) {
          xpos = xval.indexOf(pretxt);
          xval = xval.substring(0, xpos) + xval.substring(xpos+prelen, xval.length);
        }
        document.sbox.sboxText.value = xval;
        setTimeout(\'clearSbox()\', 500);
        return true;
      }
   // ]]></script>
<div class="tborder"'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center;">
<a href="#" onclick="shrinkHeaderSB(!current_header_sb); return false;"><img id="upshrink_sb" src="'
$settings['images_url'], '/', empty($options['collapse_header_sp']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>'.$txt['sbox_ModTitle'].'
</div>
<div id="upshrinkHeaderSB"'
, empty($options['collapse_header_sb']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="windowbg" align="right" style="width:13%">
<td class="windowbg" style="width:87%">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="center" valign="middle">
         <form name="sbox" action="www.employeethoughts.com/forums/sources/sboxDB.php?action=write" method="post" target="sboxframe" style="margin: 0;" onSubmit="return submitSbox();" enctype="multipart/form-data" accept-charset="' 
$context['character_set'] . '">
    <a href="www.employeethoughts.com/forums/sources/sboxDB.php?" target="sboxframe"><img src="'
.$imgdir.'sbox_refresh.gif" border="0" width="16" height="17" align="absmiddle" alt="' $txt['sbox_Refresh'] . '" /></a>';
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" onFocus="if (this.value==\'' 
$txt['sbox_TypeShout'] . '\') this.value = \'\';" onBlur="if (this.value==\'\') this.value=\'' $txt['sbox_TypeShout'] . '\';" />&nbsp;<input type="submit" class="input" value="&nbsp;shout&nbsp;" />';
} else {
  // guest is not allowed to shout ~~> show message
  echo $txt['sbox_Login'];
}
  echo 
'
           </form>
                  <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                    document.sbox.sboxText.value = \'' 
$txt['sbox_TypeShout'] . '\';
                  // ]]></script>
</td>
</tr>'
;

if (($modSettings['sbox_SmiliesVisible'] == "1") && ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1"))) {
    
sbox_loadSmileys();
    echo 
'
              <tr>
                <td align="center">'
;
    
sbox_printSmileys();
    echo 
'
                </td>
              </tr>'
;
}

  echo
'
<tr>
<td>
      <iframe name="sboxframe" src="www.employeethoughts.com/forums/sources/sboxDB.php?" width="100%" height="'
.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>
</td>
</tr>
</table>
   </td>
   </tr>
   </table>
   </div>
  </div>'
;
}

// BEGIN: Borrowed from theme_postbox($msg) in Subs-Post.php (1.1rc3)
function sbox_loadSmileys() {
  global 
$context$settings$user_info$txt$modSettings$db_prefix;
  
// Initialize smiley array...
$context['smileys'] = array(
'postform' => array(),
'popup' => array(),
);

// Load smileys - don't bother to run a query if we're not using the database's ones anyhow.
if (empty($modSettings['smiley_enable']) && $user_info['smiley_set'] != 'none')
$context['smileys']['postform'][] = array(
'smileys' => array(
array('code' => ':)''filename' => 'smiley.gif''description' => $txt[287]),
array('code' => ';)''filename' => 'wink.gif''description' => $txt[292]),
array('code' => ':D''filename' => 'cheesy.gif''description' => $txt[289]),
array('code' => ';D''filename' => 'grin.gif''description' => $txt[293]),
array('code' => '>:(''filename' => 'angry.gif''description' => $txt[288]),
array('code' => ':(''filename' => 'sad.gif''description' => $txt[291]),
array('code' => ':o''filename' => 'shocked.gif''description' => $txt[294]),
array('code' => '8)''filename' => 'cool.gif''description' => $txt[295]),
array('code' => '???''filename' => 'huh.gif''description' => $txt[296]),
array('code' => '::)''filename' => 'rolleyes.gif''description' => $txt[450]),
array('code' => ':P''filename' => 'tongue.gif''description' => $txt[451]),
array('code' => ':-[''filename' => 'embarrassed.gif''description' => $txt[526]),
array('code' => ':-X''filename' => 'lipsrsealed.gif''description' => $txt[527]),
array('code' => ':-\\''filename' => 'undecided.gif''description' => $txt[528]),
array('code' => ':-*''filename' => 'kiss.gif''description' => $txt[529]),
array('code' => ':\'(''filename' => 'cry.gif''description' => $txt[530])
),
'last' => true,
);
elseif ($user_info['smiley_set'] != 'none')
{
if (($temp cache_get_data('posting_smileys'480)) == null)
{
$request db_query("
SELECT code, filename, description, smileyRow, hidden
FROM 
{$db_prefix}smileys
WHERE hidden IN (0, 2)
ORDER BY smileyRow, smileyOrder"
__FILE____LINE__);
while ($row mysql_fetch_assoc($request))
{
$row['code'] = htmlspecialchars($row['code']);
$row['filename'] = htmlspecialchars($row['filename']);
$row['description'] = htmlspecialchars($row['description']);

$context['smileys'][empty($row['hidden']) ? 'postform' 'popup'][$row['smileyRow']]['smileys'][] = $row;
}
mysql_free_result($request);

cache_put_data('posting_smileys'$context['smileys'], 480);
}
else
$context['smileys'] = $temp;
}

// Clean house... add slashes to the code for javascript.
foreach (array_keys($context['smileys']) as $location)
{
foreach ($context['smileys'][$location] as $j => $row)
{
$n count($context['smileys'][$location][$j]['smileys']);
for ($i 0$i $n$i++)
{
$context['smileys'][$location][$j]['smileys'][$i]['code'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['code']);
$context['smileys'][$location][$j]['smileys'][$i]['js_description'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['description']);
}

$context['smileys'][$location][$j]['smileys'][$n 1]['last'] = true;
}
if (!empty($context['smileys'][$location]))
$context['smileys'][$location][count($context['smileys'][$location]) - 1]['last'] = true;
}
$settings['smileys_url'] = $modSettings['smileys_url'] . '/' $user_info['smiley_set'];
}
// END: Borrowed from theme_postbox($msg) in Subs-Post.php

// BEGIN: Borrowed from template_postbox(&$message) in Post.template.php (1.1rc3)
function sbox_printSmileys() {
  global 
$context$txt$settings;
  
  
loadLanguage('Post');
  
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{
// Show each row of smileys ;).
foreach ($context['smileys']['postform'] as $smiley_row)
{
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' '
$smiley['code'], '\', document.forms.sbox.sboxText); return false;"><img src="'$settings['smileys_url'], '/'$smiley['filename'], '" align="bottom" alt="'$smiley['description'], '" title="'$smiley['description'], '" /></a>';

// If this isn't the last row, show a break.
if (empty($smiley_row['last']))
echo '<br />';
}

// If the smileys popup is to be shown... show it!
if (!empty($context['smileys']['popup']))
echo '
<a href="javascript:sbox_moreSmileys();">['
$txt['more_smileys'], ']</a>';
}

// If there are additional smileys then ensure we provide the javascript for them.
if (!empty($context['smileys']['popup']))
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smileys = ['
;

foreach ($context['smileys']['popup'] as $smiley_row)
{
echo '
['
;
foreach ($smiley_row['smileys'] as $smiley)
{
echo '
["'
$smiley['code'], '","'$smiley['filename'], '","'$smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}

echo ']';
if (empty($smiley_row['last']))
echo ',';
}

echo '];
var smileyPopupWindow;

function sbox_moreSmileys()
{
var row, i;

if (smileyPopupWindow)
smileyPopupWindow.close();

smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\');
smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>'
$txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="'$settings['theme_url'], '/style.css" />\n\t</head>\');
smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">'
$txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');

for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'&quot;\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; \' + smileys[row][i][0] + \'&quot;, window.opener.document.forms.sbox.sboxText); window.focus(); return false;"><img src="'
$settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \');
}
smileyPopupWindow.document.write("<br />");
}

smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\\">'
$txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
smileyPopupWindow.document.close();
}
// ]]></script>'
;
}
}
// END: Borrowed from template_postbox(&$message) in Post.template.php

?>

Title: Re: SMF Shoutbox
Post by: kok3n on January 13, 2007, 09:35:57 AM
Quote from: kok3n on January 03, 2007, 10:10:52 PM
I have this problem with the shoutbox. If a member is inactive or doesn't do anything on the forum, his name will disappear on the online list. Thus, if there are 10 users logged in and all of them are not doing anything, nobody will ever appear on the online list.

Please have this resolved.. Thanks!

Don't you guys have this same problem? Please i need feedback from those who are using this shoutbox.

Thanks!
Title: Re: SMF Shoutbox
Post by: circles122345 on January 13, 2007, 10:00:01 AM
but my problem also is i dunno na know who is online in my shoutbox coz there is know icon on it...pls help on how install icon..


thanks ..
Title: Re: SMF Shoutbox
Post by: qubbah on January 13, 2007, 02:17:35 PM


can i ask u more q...

i have upgrade from 1.1rc3 to smf1.1.1

what must i do to reinstall without error because this version only work with 1.1.rc3
Title: Re: SMF Shoutbox
Post by: iyeru42 on January 13, 2007, 03:06:00 PM
When I tried installing SBOX 1.20, I get the following test error:

15.     Execute Modification     ./Sources/ModSettings.php     Test failed
Title: Re: SMF Shoutbox
Post by: buhaychat.com on January 14, 2007, 02:23:28 AM
Installed Deep's Shoutbox on my 1.1.1 version without problem, but once installed, it's okay at the start:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg487.imageshack.us%2Fimg487%2F3628%2Fshoutboxokyb5.gif&hash=da2fb2a0e1fb72cdcc7947b73f972a29608e0c4e)

It does the refresh thing, but then after awhile, it turns into an error like this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg405.imageshack.us%2Fimg405%2F2088%2Fshoutboxerrorok3.gif&hash=7e21e2b026432cb51ba3c2163bf03078b336eb2b)

Notice: Undefined index: action in /home/content/b/u/h/buhaychat/html/forums/Sources/sboxDB.php on line 66

Line 66 has: switch ($_REQUEST['action'])

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/content/b/u/h/buhaychat/html/forums/Sources/Subs.php on line 321

Line 321 has:    $ret = mysql_query($db_string, $db_connection);

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/b/u/h/buhaychat/html/forums/Sources/sboxDB.php on line 123

Line 123 has: if(mysql_num_rows($result))

Thanks in advance for your help. :)
Title: Re: SMF Shoutbox
Post by: richiehale on January 14, 2007, 07:41:20 AM
still waiting for help :(
Title: Re: SMF Shoutbox
Post by: Kettu on January 14, 2007, 02:16:32 PM
Quote from: kok3n on January 13, 2007, 09:35:57 AM
Quote from: kok3n on January 03, 2007, 10:10:52 PM
I have this problem with the shoutbox. If a member is inactive or doesn't do anything on the forum, his name will disappear on the online list. Thus, if there are 10 users logged in and all of them are not doing anything, nobody will ever appear on the online list.

Please have this resolved.. Thanks!

Don't you guys have this same problem? Please i need feedback from those who are using this shoutbox.

Thanks!
I don't think, this is a shoutbox problem. Because there is no online list for the shoutbox.

Quote from: richiehale on January 12, 2007, 12:53:54 PM
okay I have been trying to get this to work, I have RC3 , and it installed fine, but like others i am getting the 404 error in the box, I think I edited the sbox.template.php file right, I added it below if anyone can tell me if i screwed it up. Thank you in advance
What kind of version did you install? 1.14 or 1.15? And what did you edit at the sbox.template.php? There is nothing to edit for 1.1 RC3.

Quote from: circles122345 on January 12, 2007, 07:11:14 AM
i have a problem with my smf i want to have a shoutbox in my forum, my theme is classic..

thanks,
What kind of SMF do you use?

@buhaychat.com
You installed deeps Shoutbox on 1.1.1? Deep's shoutbox is for 1.1 RC2 only!
Title: Re: SMF Shoutbox
Post by: richiehale on January 14, 2007, 05:35:52 PM
Quote from: Kettu on January 14, 2007, 02:16:32 PM
Quote from: richiehale on January 12, 2007, 12:53:54 PM
okay I have been trying to get this to work, I have RC3 , and it installed fine, but like others i am getting the 404 error in the box, I think I edited the sbox.template.php file right, I added it below if anyone can tell me if i screwed it up. Thank you in advance
What kind of version did you install? 1.14 or 1.15? And what did you edit at the sbox.template.php? There is nothing to edit for 1.1 RC3.

I installed 1.15 .. When I first installed I got the 404 error, So I took your suggestion from earlier in the posts about changing the Source Dir, to my souces directory but still get the error.
Title: Re: SMF Shoutbox
Post by: circles122345 on January 15, 2007, 03:19:36 AM
i use smf 1.1.1 now..

thanks,
http://anglingen.com/smf/index.php
Title: Re: SMF Shoutbox
Post by: Kettu on January 15, 2007, 06:04:49 AM
Quote from: richiehale on January 14, 2007, 05:35:52 PM
I installed 1.15 .. When I first installed I got the 404 error, So I took your suggestion from earlier in the posts about changing the Source Dir, to my souces directory but still get the error.
I told you to change the source directory? Don't think so.
Try this. Change your sboxDB.php CHMod from 777 to 644.

Quote from: circles122345 on January 15, 2007, 03:19:36 AM
i use smf 1.1.1 now..

thanks,
http://anglingen.com/smf/index.php
We currently don't have a version for 1.1.1. But you can try FoneBones Version.
Title: Re: SMF Shoutbox
Post by: richiehale on January 15, 2007, 08:01:07 AM
Quote from: Kettu on January 15, 2007, 06:04:49 AM
Quote from: richiehale on January 14, 2007, 05:35:52 PM
I installed 1.15 .. When I first installed I got the 404 error, So I took your suggestion from earlier in the posts about changing the Source Dir, to my souces directory but still get the error.
I told you to change the source directory? Don't think so.
Try this. Change your sboxDB.php CHMod from 777 to 644.
already set to 644  .... u didnt tell me to change it but a user was having the same problem earlier in this thread and that is what you got them to do, so I also tried... 

If you look at the code i posted is it right?? or what other suggestion would you have?
Title: Re: SMF Shoutbox
Post by: Kettu on January 16, 2007, 02:18:18 AM
Quote from: richiehale on January 15, 2007, 08:01:07 AM
already set to 644  .... u didnt tell me to change it but a user was having the same problem earlier in this thread and that is what you got them to do, so I also tried... 

If you look at the code i posted is it right?? or what other suggestion would you have?
Okay, I was looking at your code and I found no sboxDB.php at the address you have added there. Then I saw that you made a mistake. You wrote sources/sboxDB.php instead of Sources/sboxDB.php . It is very important to write correct addresses and this folders name is Sources.
Title: Re: SMF Shoutbox
Post by: Threepwud on January 17, 2007, 10:03:15 AM
Hey!
I've been using 1.15 for ages and it's the best thing about my site! I foolishly upgraded to 1.1.1 and now everything is screwed up. I've tried other shout boxes but they're all rubbish in comparison - anyone know if 1.15 / 1.16 is coming any time soon?

Also is 1.16 available now even?

Many thanks!
Title: Re: SMF Shoutbox
Post by: circles122345 on January 17, 2007, 10:40:40 AM
Quote
We currently don't have a version for 1.1.1. But you can try FoneBones Version.

i can't fine FoneBones Version.
Title: Re: SMF Shoutbox
Post by: Kettu on January 17, 2007, 11:08:18 AM
Quote from: circles122345 on January 17, 2007, 10:40:40 AM
Quote
We currently don't have a version for 1.1.1. But you can try FoneBones Version.

i can't fine FoneBones Version.
Because it is an unofficial version you can't find it at the download area. You have to search the last pages of this thread. He posted it ones.

Quote from: Threepwud on January 17, 2007, 10:03:15 AM
Hey!
I've been using 1.15 for ages and it's the best thing about my site! I foolishly upgraded to 1.1.1 and now everything is screwed up. I've tried other shout boxes but they're all rubbish in comparison - anyone know if 1.15 / 1.16 is coming any time soon?

Also is 1.16 available now even?

Many thanks!
I was talking to mbirth a few days before and he told me it will come, but unfortunately not when. He was very busy the last time.
Title: Re: SMF Shoutbox
Post by: Havoc on January 19, 2007, 07:48:59 AM
How I can uninstall this mod?

QuoteThis package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.
Title: how do I make it so the shoutbox is closed by default for allowed visitors ?
Post by: ragots on January 19, 2007, 04:09:47 PM
Excellent Mod.

One question: how do I make it so the shoutbox is closed by default when visitors are allowed to see and post shouts in it ? 
Title: Re: how do I make it so the shoutbox is closed by default for allowed visitors ?
Post by: Kettu on January 20, 2007, 04:31:37 AM
Quote from: Havoc on January 19, 2007, 07:48:59 AM
How I can uninstall this mod?

QuoteThis package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.
Which version do you use and what kind of SMF? Mbirth's versions have an uninstaller.

Quote from: ragots on January 19, 2007, 04:09:47 PM
One question: how do I make it so the shoutbox is closed by default when visitors are allowed to see and post shouts in it ? 
I have no idea. But normally if a user closes it then it will stay closed if he logs in again.
Title: Re: SMF Shoutbox
Post by: ragots on January 20, 2007, 04:01:45 PM
QuoteI have no idea. But normally if a user closes it then it will stay closed if he logs in again

I know, shoutbox will stay closed if a USER closes it, but I want the same for visitors.

When a visitor closes the shoutbox, refreshes the page, the shoutbox appears open again.

I've been looking at the code, I'm a newbie, so I can't do it. But I'm sure there must be a parameter in there I can change to make the shoutbox behave like that for visitors as well.
Title: Change the work SHOUT: SMF Shoutbox
Post by: ragots on January 21, 2007, 08:18:21 PM
How can I change the word SHOUT for another word in my shoutbox ?
Title: Re: Change the work SHOUT: SMF Shoutbox
Post by: Kettu on January 22, 2007, 12:41:14 PM
Quote from: ragots on January 21, 2007, 08:18:21 PM
How can I change the word SHOUT for another word in my shoutbox ?
Edit the "shout" at
input type="submit" class="input" value="&nbsp;shout&nbsp;"
It's in the sbox.template.php.

Quote from: ragots on January 20, 2007, 04:01:45 PM
When a visitor closes the shoutbox, refreshes the page, the shoutbox appears open again.
Of course, because a visitor has no session or user cookie. ut as I already said. I don't know. But this is not only a shoutbox question. It's a collapse-expand question. Means you could find an answer in another context.
Title: Re: SMF Shoutbox
Post by: belaferon on January 23, 2007, 03:25:48 PM
when i can expect mbirth's Shoutbox V1.16?
Title: Re: SMF Shoutbox
Post by: katb on January 26, 2007, 08:19:38 AM
I am getting the following error when i try to install it

Incorrect table name ''
File: /home/forums/public_html/newforum/sbox_setup.php
Line: 83
Title: Re: SMF Shoutbox
Post by: Kettu on January 26, 2007, 10:32:58 AM
Quote from: katb on January 26, 2007, 08:19:38 AM
I am getting the following error when i try to install it

Incorrect table name ''
File: /home/forums/public_html/newforum/sbox_setup.php
Line: 83
People, please tell us your versions (SMF and Shoutbox) or add this information to your signature.
Title: Re: SMF Shoutbox
Post by: katb on January 26, 2007, 10:36:49 AM
Quote from: Kettu on January 26, 2007, 10:32:58 AM
Quote from: katb on January 26, 2007, 08:19:38 AM
I am getting the following error when i try to install it

Incorrect table name ''
File: /home/forums/public_html/newforum/sbox_setup.php
Line: 83
People, please tell us your versions (SMF and Shoutbox) or add this information to your signature.

V1.15 thanks for your reply kettu
Title: Re: SMF Shoutbox
Post by: Kettu on January 26, 2007, 04:32:57 PM
Quote from: katb on January 26, 2007, 10:36:49 AM
Quote from: kettu
People, please tell us your versions (SMF and Shoutbox) or add this information to your signature.

V1.15 thanks for your reply kettu
And what kind of SMF?
Title: Re: SMF Shoutbox
Post by: Naberius on January 28, 2007, 06:23:47 AM
Having a small issue with the 1.20 version for 1.1.1. I have it installed, had to do a manual install for modsettings.php. I can't get it to save. I have checked and double checked the modsettings.php no problems there... I am lost. Any ideas appreciated.
Title: Re: SMF Shoutbox
Post by: softtouch on January 28, 2007, 07:54:18 AM
Is this shoutbox compatibe with 1.1.1, because in the mod description is only written for 1.1 RC something.
Title: Re: SMF Shoutbox
Post by: katb on January 28, 2007, 09:04:12 AM
Quote from: Kettu on January 26, 2007, 04:32:57 PM
Quote from: katb on January 26, 2007, 10:36:49 AM
Quote from: kettu
People, please tell us your versions (SMF and Shoutbox) or add this information to your signature.


V1.15 thanks for your reply kettu
And what kind of SMF?

SMF 1.1.1
Title: Re: SMF Shoutbox
Post by: Kettu on January 29, 2007, 04:51:12 AM
Quote from: katb on January 28, 2007, 09:04:12 AM
Quote from: Kettu on January 26, 2007, 04:32:57 PM
Quote from: katb on January 26, 2007, 10:36:49 AM
Quote from: kettu
People, please tell us your versions (SMF and Shoutbox) or add this information to your signature.


V1.15 thanks for your reply kettu
And what kind of SMF?

SMF 1.1.1
1.15 is made for 1.1 RC3. So it doesn't work correctly with SMF 1.1.1
Title: Re: SMF Shoutbox
Post by: katb on January 29, 2007, 04:52:21 AM
Quote from: Kettu on January 29, 2007, 04:51:12 AM
1.15 is made for 1.1 RC3. So it doesn't work correctly with SMF 1.1.1

Then which version i can use on  SMF 1.1.1
Title: Re: SMF Shoutbox
Post by: knt3424 on January 29, 2007, 01:28:49 PM
On page 50 of this thread, there is a version 1.20 that fonebone modified to work with 1.1.1...
Title: Re: SMF Shoutbox
Post by: knt3424 on January 29, 2007, 01:34:11 PM
now, questions about fonebone's v1.20...

I tried installing on my forum, and it loaded but just showed a config file (the shoutdb.php file I think) in the screen.  so I put up a test forum on the same host, and tried it there, worked fine.  thought maybe it was another mod I tried leaving traces of something screwing it up, so I backed up, deleted EVERYTHING off my host, reinstalled a new fresh copy of smf 1.1.1 and restored the backup... just creating boards, posts, etc.  Tried the shoutbox again and same thing...

all I can think of is some setting I've made in the forum that is affecting it...  there should be no difference it my real forum and my test forum otherwise...

anyone have any ideas???
Title: Re: SMF Shoutbox
Post by: nitins60 on January 30, 2007, 01:13:12 AM
why moderators don't update this topic first post with links to download latest versions
Title: Re: SMF Shoutbox
Post by: softtouch on January 30, 2007, 06:20:20 AM
I can not get it to work with my 1.1.1, default theme.
It installs, config is ok in features and settings.
But if I display the board index, nothing is visible except the board header. Everything else is just a blank page starting from the position where the shoutbox should visually appear.
Title: Re: SMF Shoutbox
Post by: vkcweb on January 31, 2007, 01:57:29 AM
Thanks to FoneBone for sharing his v1.20 on this topic....works great with my installation of SMF 1.1.1!!!
Title: Re: SMF Shoutbox
Post by: katb on January 31, 2007, 02:44:13 PM
 I am getting this error when i try to install FoneBone shutbox also, any ideas

Incorrect table name ''
File: /home/username/public_html/forum/sbox_setup.php
Line: 83
Title: Re: SMF Shoutbox
Post by: katb on January 31, 2007, 03:08:47 PM
seems following lines are creating problems
// 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__);

// Uh-oh spaghetti-oh!
if ($result === false)
  echo '<b>Error:</b> Table setup failed!<br />';


any ideas.
Title: Re: SMF Shoutbox
Post by: The Game on January 31, 2007, 10:35:38 PM
Deep can u make ur Shoutbox compatible with 1.1.1 ?? Thanks..
Title: Re: SMF Shoutbox
Post by: Bacon on February 01, 2007, 11:10:08 AM
i can not find the fix (1.20b1). can someone post a direct link to this file??
Title: Re: SMF Shoutbox
Post by: knt3424 on February 01, 2007, 03:12:37 PM
is this what you are looking for???  not sure what you mean by 'the fix'.

this is fonebone's  version 1.20 for smf 1.1.1

http://www.simplemachines.org/community/index.php?action=dlattach;topic=76344.0;attach=23007
Title: Re: SMF Shoutbox
Post by: houston on February 02, 2007, 01:20:34 PM
Great Mod. Thanks to the developers. One ? though. Where do I place this code

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


So that the shout box shows up right below my menus on the default theme for SMF 1.1.1

Cheers

Edit:

I noticed that it shows up only in the forum page. I am running SMF through TP 0.97 and would like it to show on all the pages.
Title: Re: SMF Shoutbox
Post by: The Game on February 02, 2007, 01:34:34 PM
In fonebone's version, the Shoutbox only lets admins talk. none of the members can talk..
Title: Re: SMF Shoutbox
Post by: knt3424 on February 02, 2007, 02:41:28 PM
I'm using fonebone's version 1.20, and my members CAN talk.   
Title: Re: SMF Shoutbox
Post by: katb on February 03, 2007, 02:04:28 PM
 :( can some help i am not able to install fonebone's  version 1.20 for smf 1.1.1 also ,  recently converted from phpbb to smf but unable to install the shutbox ...lagging support compare to phpbb :(

I am getting followingerror,when ever i  tried this fonebone's version .
Incorrect table name ''
File: /home/forum/public_html/forums/sbox_setup.php
Line: 83


I am not getting what iam doing wrong.


Title: Re: SMF Shoutbox
Post by: canuckguy on February 04, 2007, 02:03:39 AM
Members are requesting a link so they can make the shoutbox a popup.  I mean a little link above or below the shoutbox that makes it a popup if you want.

Anyone got any code for this?
Title: Re: SMF Shoutbox
Post by: canuckguy on February 06, 2007, 04:24:59 AM
No ones got code for a little link above or below the shoutbox to give it its own window?
Title: Re: SMF Shoutbox
Post by: TGB on February 06, 2007, 08:28:48 PM
I'm running shoutbox 1.15 and smf 1.1.1 and i am unable to save any of the settings for the shoutbox
it just reverts back to what it was before.
Title: Re: SMF Shoutbox
Post by: knt3424 on February 07, 2007, 01:12:38 PM
edsloter...

try version 1.2... only one I'm aware of that is compatible with 1.1.1 so far... unless someone else has upgraded something else and I haven't seen it yet.


http://www.simplemachines.org/community/index.php?action=dlattach;topic=76344.0;attach=23007
Title: Re: SMF Shoutbox
Post by: knt3424 on February 07, 2007, 01:16:54 PM
I posted previously that I had a test forum where shoutbox worked just fine, and the real live one for the not-for-profit agency I put one up for, it didn't work.  Both hosting with godaddy, same hosting setup.  Well I found out godaddy is changing their hosting setups from v1 to v2.  they don't say what exactly is different, but I had upgrade my personal hosting, where the test forum was, but never upgraded the nfp's hosting because I didn't want other things crashing (and godaddy puts a big scarey disclaimer on how some things might not work after the change).  so I upgraded that one and now shoutbox 1.2 works just fine...

that little tidbit of info out there in case anyone is having trouble with godaddy... maybe that is what you are fighting...  maybe.

:)

~kev
Title: Re: SMF Shoutbox
Post by: canuckguy on February 09, 2007, 01:59:14 AM
So no one can help me make a link above the box to make the shoutbox a popup?
Title: Re: SMF Shoutbox
Post by: NEMINI on February 09, 2007, 09:40:48 PM
okay I am a bit confused.  I have a working shoutbox on my 1.1.1 site (fonebone's version) but what I need to know now is who if anyone is continuing development of this mod?  I'd like to see if a couple features could be added and I'd even be willing to make a donation to get them done, but I've no clue who to talk with at this point.
Title: Re: SMF Shoutbox
Post by: o3ch1e on February 12, 2007, 03:44:19 PM
I'm using Internet Explorer, but i can't shout in smf shoutbox
Anybody can help me?...  :(  :(

Sory for my bad english..  ;)

Thanks..
Title: Re: SMF Shoutbox
Post by: DonaldJ on February 19, 2007, 03:53:02 PM
When can we expect an update to 1.1.2? Cause non of these shoutboxes work with my forums and FoneBones's 1.20 gives me tons of errors and shuts down my forums when I install. 

The only shout box that does work is Grudge's one, and no offence. But that one isn't too good and is not what I am looking for.  :-\
Title: Re: SMF Shoutbox
Post by: NEMINI on February 19, 2007, 04:57:42 PM
fonebone's version has been working on 1.1, 1.1.1 and 1.1.2 for me without issue.
Title: Re: SMF Shoutbox
Post by: DonaldJ on February 19, 2007, 08:58:37 PM
Ok I got the shout box up and running it works fine, but:

When I got into "features and options" under the Admin Cp, it gives me a white page with this error:

Fatal error: Cannot redeclare modifysboxsettings() (previously declared in /home/drx321/public_html/forums/Sources/ModSettings.php:409) in /home/drx321/public_html/forums/Sources/ModSettings.php on line 488

What does this mean?
Title: Re: SMF Shoutbox
Post by: NEMINI on February 19, 2007, 09:06:20 PM
sounds like one of the times you uninstalled it it didn't uninstall cleanly and now you have the ModSettings.php edits twice.  Open that file you you will probably see line 409-487 is the same as 488 onwards.  Delete one of the duplicate entries.   
Title: Re: SMF Shoutbox
Post by: DonaldJ on February 19, 2007, 09:20:53 PM
Ok sweet, I totally missed that. Thanks for all your help!


One more thing, how can I get rid of the time next to each shout?
Title: Re: SMF Shoutbox
Post by: TiagoF7 on February 25, 2007, 04:25:18 PM
There is already a version for the 1.1.2?
Title: Re: SMF Shoutbox
Post by: C.D.Team on February 27, 2007, 03:53:57 AM
Hello I donwload SMF Shoutbox 1.20, and install in SMF 1.1.2, but when press button Shout, the firefox and IE, it remains blocked.

Any Update for SMF 1.1.2 version?

Thanks ;)
Title: Re: SMF Shoutbox
Post by: TrueSatan on February 28, 2007, 10:00:36 AM
 I've done the package alterations for SMF 1.1.2 and added a revised version of the unofficial sbox_v1.20 named as sbox_v1.21 so as to avoid any confusion.

Tested on a new installation not an upgrade...all was OK.

One improvement I'd like to see would be greater admin control over the timeout...not just 15 mins timeout on or off as it is now.
Title: Re: SMF Shoutbox
Post by: C.D.Team on March 01, 2007, 01:40:01 AM
Thank you, but I have same problem with 1.20 version   :-[
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 01, 2007, 04:36:34 AM
 Have you checked to see if this could be another CHMOD permissions problem? Admin>Packages>Options>Cleanup Permissions Set to "All files are writeable" >Change Permissions.

Also ensure that all the files required are on your server and where they should be...ftp errors and the like can leave some out despite the install seemingly to have gone properly.

I know the mod works on SMF1.1.2 as I'm using it extensively so I'd say this has to be a problem on your installation.

Have you tried it on a brand new, unmodded, test board on your server? This would confirm that a) the server wasn't at fault if it worked there b) there is a problem in your production forum...quite possibly a clash with some other mod package or bad install or garbage left over from previous usage.

If it works in the test forum then please consider rebuilding the files there with all your mod packages such that the end result is a test forum that has all the mods you use installed and running (minus the problem ones)...check for problems in that regard as you go through the additions...check the error log as you go to see that some of the mods aren't misbehaving...use the services they provide to see if they add to the error log...in the end if you avoid those that give errors and work your way through it you should get a clean of errors and problems forum with all the mods you need installed (minus any problem ones.)

At such point as you are happy with that installation please consider backing up the files from your production forum and then backing up those from the test forum. Delete the files from the production forum and restore the files from the test forum in their place.

I know this is a tough task that can take a lot of time and effort but IMHO it's something you should do once in a while to clean out the junk that tends to build up and to get the production forum in as good a state as possible.
Title: Re: SMF Shoutbox
Post by: C.D.Team on March 01, 2007, 04:46:04 AM
Hello, thanks for your reply.

I test your pakage in another instalation and it works perfect, will try to install thanks again
Title: Re: SMF Shoutbox
Post by: littleone on March 03, 2007, 06:34:10 PM
Ok so I have True's version of the shoutbox, however whenever someone uses the Img tag BBC code (for smilies) it strips them.  Other bbc like color and bold work just not [img] ones.  Thanks
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 04, 2007, 06:48:39 AM
Yep...but if you were to allow the image tag then members could post big images and make the box almost unusable...smilies don't need the BBC tag just use the site ones.
Title: Re: SMF Shoutbox
Post by: littleone on March 04, 2007, 04:18:45 PM
Well I dont have that problem.  People dont post crazy big images.  But I do have people that have paid for other smily sites and would like to use it.  Could u tell me what I need to do to allow images please.  TY
Title: Re: SMF Shoutbox
Post by: kok3n on March 04, 2007, 04:21:51 PM
I lost the ability to uninstall the shoutbox on my packages directory. How can I uninstall it this time?
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 04, 2007, 04:57:25 PM
@ Littleone If you want to modify the files then look at sbox.template.php lines 121 to 136...but any such work will be down to you as I can't see any general need for such modifications and don't want to spend my free time on them.

You could ask your members to provide any images they want you to use as site smiles in the form of the actual files not links to them and then replace/add to your site smilies accordingly then let the shoutbox use those without modifying the code.

@kok3n You will need to manually edit the files to do an uninstall...remember those instructions you must have read again and again about backing up the files before performing modifications to your forum...now you know why they are there.
Title: Re: SMF Shoutbox
Post by: littleone on March 04, 2007, 05:42:55 PM
Well IDK what the deal is.  I went though the sbox.template and compared it to 1.15 and its EXACTLY the same, and in 1.15 you were able to post outside images, so its obviously not in the section of code or anywhere in that entire file cause that entire file id identical word for word to 1.15
Title: Re: SMF Shoutbox
Post by: littleone on March 04, 2007, 05:48:17 PM
If you want the img tags to work you need to go into sboxDB.php and remove the line:

$content = preg_replace('/(\[img)(.*?)(\[\/img\])/i', '', $content);   // filter out [img]-BBC

Its line 308 in that file
       
Title: Re: SMF Shoutbox
Post by: JSizzal on March 05, 2007, 12:39:04 AM
this is the error i got when installing 1.21 the version downloaded from true satan. What went wrong: Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/sbox.php 
2. Extract File ./Sources/sboxDB.php 
3. Extract File ./Themes/default/languages/sbox.english.php 
4. Extract File ./Themes/default/languages/sbox.german.php 
5. Extract File ./Themes/default/sbox.template.php 
6. Extract File ./Themes/default/images/sbox_refresh.gif 
7. Extract File ./chat-inbound_GSM.wav 
8. Execute Code sbox_setup.php 
9. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
10. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
11. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Themes/default/languages/Help.english.php Test successful
14. Execute Modification ./Themes/default/languages/Help.german.php [b]File not found[/b]
15. Execute Modification ./Sources/ModSettings.php [b]Test Failed[/b]
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 05, 2007, 04:01:17 AM
 Quite a simple one...

14. Execute Modification ./Themes/default/languages/Help.german.php [b]File not found[/b]

If you don't have Help.german.php in the path given it won't find the file thus it won't alter the file...and unless you want to use German on your forum this is entirely safe to ignore...if you do want to use German then install the German language files prior to installing this mod and then the Help.german.php file will eb found and modified.

15. Execute Modification ./Sources/ModSettings.php [b]Test Failed[/b]

You have other mods installed that have already changed this file so you will have to edit it manually...
Title: Re: SMF Shoutbox
Post by: JSizzal on March 05, 2007, 06:29:12 PM
Ok how would edit it manually, should i post up my modsettings
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 05, 2007, 09:16:55 PM
 Sorry...I'm not going to use my free time to do this for you. If you really can't do a file edit such as this then IMHO you'd be best to stick with an unmodified forum.
Title: Re: SMF Shoutbox
Post by: tsmalmbe on March 06, 2007, 02:45:57 AM
"A script on this page might cause Mozilla to run slowly.."
"A script on this page is causing Internet Explorer to run slowly..."

And yes, after pressing "shout" the browser is totally unresponsive for 10-15 seconds. If i press cancel on the error messages, everything seems to work fine - the message is displayed correctly.

Can I change the width of the box directly in the template?
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 06, 2007, 04:32:35 AM
sbox.template.php line61 seems to be what you are seeking but there are some other size parameteres between lines 53 and 70 that might be of interest.

Despite a lot of testing I've never seen the unresponsive script issue you report before...if it is one that is repeating itself for you then it might be a hosting issue...if it's a one off then I'd just forget it...some server glitch perhaps.
Title: Re: SMF Shoutbox
Post by: tsmalmbe on March 06, 2007, 07:02:29 AM
How exactly could it be a hosting issue, when the script is client-side? Just FYI, I'm testing this script on my own Linux-server.
Title: Re: SMF Shoutbox
Post by: tsmalmbe on March 06, 2007, 07:12:50 AM
IE throws these:
[client 192.168.1.50] PHP Notice:  Undefined index:  sbox_KillShout in /srv/www/html/smf/Sources/sboxDB.php on line 130, referer: http://forum.malmberg.fi/smf/index.php
[client 192.168.1.50] PHP Notice:  Undefined index:  sbox_RefreshDisable in /srv/www/html/smf/Sources/sboxDB.php on line 273, referer: http://forum.malmberg.fi/smf/index.php

Moz throws these:
[client 192.168.1.50] PHP Notice:  Undefined variable:  divclass in /srv/www/html/smf/Sources/sboxDB.php on line 206, referer: http://forum.malmberg.fi/smf/index.php
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 06, 2007, 10:25:04 AM
 sboxDB.php hasn't been changed in the update so I wonder if you ever used a previous version and had that working properly?

I've tried the functions that don't work for you...and had them working flawlessly for some time...I don't see why they would have problems.

One thought though...the last Moz error makes me wonder if your server has php suitably configured for sessions? That was what I was wondering when I commented about hosting issues. The referer relates to the session.

Please remember I didn't write this software I've just patched it so people can keep using it...I'm doing what support I can but I'm not its developer.
Title: Re: SMF Shoutbox
Post by: tsmalmbe on March 06, 2007, 04:27:31 PM
This was a fresh install, and I have no other session-related issues on the server.
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 06, 2007, 04:45:59 PM
 Have you tried a completely fresh install of a test forum with only the shoutbox mod on it?
Title: Re: SMF Shoutbox
Post by: JSizzal on March 06, 2007, 06:08:33 PM
Ay satan thanks for making me work, i edited the BoardIndex.template.php according to what i read in the manual install

Now i have a different error where modsettings.php failed, is it another editing dilemna, if so how do i fix it. Thanks
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 06, 2007, 06:34:09 PM
Your previous package installer report showed the following:

9. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
10. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
11. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful


...so there was no need to do manual editing of BoardIndex.template.php I didn't say edit it, nor did the report you copied here.

As stated in my previous reply to you:

Quote from: TrueSatan on March 05, 2007, 04:01:17 AM

15. Execute Modification ./Sources/ModSettings.php [b]Test Failed[/b]

You have other mods installed that have already changed this file so you will have to edit it manually...

That was the only file I had advised you to edit manually.

Essentially, then, your last question is exactly the same question as you asked earlier...it isn't
Quoteanother editing dilemna
it's exactly the same one as you had before.

When a package installer shows errors you can still use it to modify the files it passes as OK so long as you manually edit those it says have failed after running the installer or know that those files are not an issue.

Given that your question hasn't changed it follows that neither has my reply. Editing the file should be easy and well within almost all forum admins capabilities.

If you look at the code in the file you will find that it gives you advice on how to do a manual edit. Look at line 50

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:

...following that is, indeed, the format description.

Line 60 gives you yet more help:

Here's a quick explanation of how to add a new item:

The file is one of the best documented you are ever likely to find.
Title: Re: SMF Shoutbox
Post by: JSizzal on March 06, 2007, 07:10:05 PM
Thanks so much at satan, this editing stuff isnt as hard as I thought it would be, I guess you have to read between the lines. YAHH

Btw im guessing a sboxDB.php error isnt a problem since it still the boz still works...
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 06, 2007, 07:29:45 PM
The error could be nothing much or it could be important...if you've done everything else correctly then there ought to be no error so please recheck what you've done. Personally I don't allow any errors to be in my logs.

It's always wise to have a test forum used just to try things out...be prepared to kill it and its database periodically and start it again from scratch. If you were to have such a forum and install only the shoutbox then unless there were something at issue on the server you use there should be no errors. You could then add in all your other mods watching for errors as you go and doing whatever manual editing may be required.

And the end of it you would have, if you'd done it carefully and properly, a set of files that produced no errors and did what you want them to do.

You could then copy the files that run your main (production) forum to your local machine (your own computer), copy the files from the test forum to your local machine minus the settings.php in the forum root directory delete the files in your production forum minus the settings.php in the forum root directory and copy in the files that came from your test forum.

The settings.php file is the one that contains the code that links a forum to a particular database and has the basic configuration of that forum...by leaving that unaltered and leaving the database unaltered you are just renewing the software not losing/changing the settings or the data.
Title: Re: SMF Shoutbox
Post by: tsmalmbe on March 07, 2007, 01:44:53 AM
Quote from: TrueSatan on March 06, 2007, 04:45:59 PM
Have you tried a completely fresh install of a test forum with only the shoutbox mod on it?

No not really. I use a heavily customized theme anyway, and have to edit BoardIndex and index  manually based on the xml-files and thus keeping some control. The rest of the files are either OK in the update, or new.
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 07, 2007, 03:46:33 AM
Well...such an install would prove, one way or another, that the shoutbox was usable on your server or not. At least then you'd know if you had to make server configuration changes to run it or if you had some issue thatnks to other modifications...it would give you something to work from.
Title: Re: SMF Shoutbox
Post by: Slicko on March 08, 2007, 07:39:08 AM
Hello all. Sry to disturb you guys, with something that probably that i've done wrong. But I try to install a shoutbox on my forum, and at each and every one of the versions that exist for smf 1.1 rc2 I get this error, i upload the pakage as it is, i click on "[ Apply Mod ]" and this is what i get onscreen (I've attached the picture), altought i hit the "Install now" button, and nothing, a blank page comes in, and when i return to the forum's index there's no shoutbox  :(. What's wrong?  
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 08, 2007, 08:44:41 AM
Well...firstly I'm not willing to even consider supporting old versions of SMF...life is far too short and you should upgrade to the latest SMF 1.1.2...it's free...it fixes numerous security (and other) problems...it is supported...

I've no idea what is causing the error you have found and without wasting time on an obsolete SMF version I am unlikely to find out.

It seems as though your forum and the packages you have tried to install aren't compatible...but that's all I can tell you.

So...upgrade to SMF 1.1.2
Title: Re: SMF Shoutbox
Post by: Slicko on March 08, 2007, 09:30:43 AM
I've upgrated to smf 1.1.2 and none of the shoutboxes on the download area work. The same error comes. What's wrong? What could be the problem. I upload the archive it self, from the admin panel, and then "apply mod" and say's "the archive may be corrupt, or not copatible with the forum version ( altough I have the latest version ), and at the "Ultimate Shoutbox" I receive the error ( see the attachement ). I can't understand what I do wrong, or what is wrong????
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 08, 2007, 09:55:55 AM
 It's quite obvious that you haven't read the past postings in this topic or you would already know the answer to your question. The solution is thus also rather obvious...go do some reading. A version that is compatible with SMF 1.1.2 might well help don't you think? Here's a thought...maybe in the past postings there might be such a version.

The versions in the "download area"  aren't compatible with SMF 1.1.2 as is clearly stated in the text there. As that text tells you they aren't compatible it's hardly a shock to see that the package installer says exactly the same!

Posting queries about Ultimate Shoutbox to the SMF Shoutbox topic isn't likely to get you much help...though seeing as that doesn't have a version compatible with SMF 1.1.2 posted to the SMF Mod Site the result you got is once more hardly surprising. Maybe a thorough read of the postings in the topic for that mod might reveal a solution if one has been posted.

The main things you're doing wrong are...not having updated your forum and kept it up to date...not reading the compatibility advice on the SMF Mod Site...not reading the past postings in a topic before posting queries to it. Put those right and you should be fine.

Title: Re: SMF Shoutbox
Post by: littleone on March 08, 2007, 11:36:43 AM
I hate to be the obvious one here, but TrueSatan you could certainly be MUCH nicer when you say things.  You were quite rude and attempted to make me look stupid when I asked you a question and in the end you were the one who didnt know how to fix the problem but I did.  Then you keep telling everyone you aint "wasting" your time to help them.  This thread has 60 pages.  Maybe posting the link to the thread where this person question is answered would help and stop being such a jerk.  Plain and simple your not anyone more important than anyone else.  Just cause you updated the Sbox to be compatible doesnt mean you have to act high and mighty.  I guarentee that I am not the only one who feels your being rude and pushy, but I could careless and will tell you exactly whats on my mind.  If your gonna keep telling people to go back and read or telling them your not "wasting" your time to fix a line of code for them, why even respond?  Your not helping with those answers anyway.
Title: Re: SMF Shoutbox
Post by: TrueSatan on March 08, 2007, 12:07:43 PM
 Firstly I don't have to give back an updated package...I did so to help people. Thanks for throwing it back in my face...perhaps you'd like it better if it hadn't been posted at all. Secondly, I'm not going to spend my time searching for past postings when the person asking a question could do that for themselves. I do so before asking questions of others out of respect for their time and effort. I'm not sure if I'll bother giving any more support to this mod after your posting. Thirdly your query wasn't about a problem with what I had done to the shoutbox or any coding problem within it...you wanted a change for your own use. I had a brief look to try to help you...pity I bothered.
Title: Re: SMF Shoutbox
Post by: littleone on March 08, 2007, 04:29:47 PM
No you didnt have to updated it (i never said that), but you dont have to be rude to everyone in your answers either.  What you do is ur call, I could careless one way or another, I was simply expressing my opinion that I thought you were being quite rude.  I sure hope you dont run your personal SMF forum like this, cause it would certainly turn alot of people of.  If your gonna have a pissing contest now cause I asked u not to be rude and decide you won't help anyone else, well thats on you, there are plenty enough other people who can help (since you really havent helped much outside of posting an updated version anyways).  I digress and return this thread to what it needs to be....
Title: Re: SMF Shoutbox
Post by: justafishermen on March 11, 2007, 10:25:13 AM
I'll try to get this thread back on track....

We had to move our clocks ahead last night where I live. Does anyone know how to change the time in the SMF Shoutbox? Its an hour behind....
Title: Re: SMF Shoutbox
Post by: Babra on March 13, 2007, 12:02:17 PM
Hi I have installed whitout any problem, but when I test the chat the first 6 letters that i write in a sentence don´t get to the box only the letters after that?? ???

i should really appreciate any help with this,thanks :)
Title: Re: SMF Shoutbox
Post by: littleone on March 13, 2007, 03:35:59 PM
Quote from: justafishermen on March 11, 2007, 10:25:13 AM
I'll try to get this thread back on track....

We had to move our clocks ahead last night where I live. Does anyone know how to change the time in the SMF Shoutbox? Its an hour behind....

Im pretty sure its based on the servers time.  You might want to check with your host to see if they are current on the time.  You can also adjust the time via your profile by changed the time offset.
Title: Re: SMF Shoutbox
Post by: tanyagregory on March 17, 2007, 06:11:09 AM
Hi guys, i am trying to install FoneBone's version to my smf v1.1.2 boards
i uploaded the fles to the correct directory, then go to www.mysite.com/sbox_setup.php  (the forum is the main site so its the right url)

and i get this error

Database Error
Incorrect table name ''
File: /home/theprinc/public_html/shoutingzone/sbox_setup.php
Line: 83 



anyhelp would be great ^^
Tanya
Title: Re: SMF Shoutbox
Post by: Aegen on March 19, 2007, 09:13:16 AM
Good morning everyone!

I'm having a strange problem, by no means urgent, just a bit cosmetic.

The shoutbox pushes the very right edge of my site off the screen so I have to scroll horizontally. I'm using SMF 1.1.2 with TinyPortal 0.9.7 and the Helios_multi_TP theme. Anyhow, I took mbirth's advice back on page 21 and attempted to put the shout box in a table using the following code.

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


It seems that no matter what I set the Table width to (0% 20% 50% 75% 80% 100% are the ones I've tried) the shout box stays the same size. (cleared my browser cache each time)

Also, I tried to move that block above the news fader, and the shout box doesn't move on my page. I'm a n00b to PHP and CSS (but I'm learning) so hopefully it's something easy.

And like I said, it's not an urgent matter, just trying to tweak out my site now. THANKS!!!!


***Edit***

Ok, it seems like I can see the changes if I'm using a 1280 x 1024 resolution, but at 1024 x 768 I do not see any changes, even if I set width="10%"


Title: Re: SMF Shoutbox
Post by: liten on April 02, 2007, 05:00:00 PM
I'm experiencing a similar issue. I set up the BoardIndex.template in order to have the news fader and the shoutbox on the same level

//Shoutbox table
echo '<table width="460px" border="0" cellspacing="1" cellpadding="4" align="right"><tr><td>';
  if (function_exists('sbox')) sbox();
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" style="margin-bottom: 2ex;">
<table border="0" width="300px" cellspacing="1" cellpadding="4">
<tr class="titlebg" align="center">
<td>', $txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" style="height: 150px;">';


I also tried with % instead of fixed width but with no success.

This is how it looks like with these settings:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi14.tinypic.com%2F4c2skki.png&hash=f9b051c5c442b65ecaba8ebbcc6f9816a11dd598) (http://i14.tinypic.com/4c2skki.png)

ETA: using SMF 1.1.2 and sbox_v1.21
Title: Re: SMF Shoutbox
Post by: Mariano on April 02, 2007, 07:26:30 PM
Administrators didn't approved my mod but this works with 1.1.2

http://custom.simplemachines.org/mods/index.php?mod=744

I have it running and works great. www.forovelez.com.ar you'll see.
Title: Re: SMF Shoutbox
Post by: Kettu on April 03, 2007, 08:54:23 AM
Quote from: liten on April 02, 2007, 05:00:00 PM
I'm experiencing a similar issue. I set up the BoardIndex.template in order to have the news fader and the shoutbox on the same level

Just try this code.

  // 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']))
{
Title: Re: SMF Shoutbox
Post by: liten on April 03, 2007, 11:06:22 AM
I tried that but it just keeps the shoutbox over the news fader box
Title: Re: SMF Shoutbox
Post by: Kettu on April 03, 2007, 04:35:45 PM
Quote from: liten on April 03, 2007, 11:06:22 AM
I tried that but it just keeps the shoutbox over the news fader box
But what do you else mean with "same level"?
Title: Re: SMF Shoutbox
Post by: liten on April 03, 2007, 04:53:49 PM
One next to each other, like in the screenshot I posted BUT I can't get them to stay in their corner (for exemple news fader= 30%, shoutbox 70% of the forum width)
Title: Re: SMF Shoutbox
Post by: Kettu on April 04, 2007, 02:37:09 AM
Oh, you mean i.e Shoutbox on the left and News fader on the right.

Okay, then you should change the news fader part.

This is the whole part of the news fader:
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<div class="tborder" style="margin-bottom: 2ex;">
<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" style="height: 60px;">';

// 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>';
}


The important part is at the end:
</td>
</tr>
</table>
</div>';
}


Change this to:
</td>
<td valign="middle" align="center" style="width: 70%;">';
  // display shoutbox
  if (function_exists('sbox')) sbox();
echo '</td>
</tr>
</table>
</div>';
}


This is just an idea. I didn't check this. Just try it.
Title: Re: SMF Shoutbox
Post by: liten on April 04, 2007, 06:47:22 AM
I'll try it, thank you for your help!
Title: Re: SMF Shoutbox
Post by: Col on April 04, 2007, 08:46:00 AM
Quote from: Slicko on March 08, 2007, 09:30:43 AM
I've upgrated to smf 1.1.2 and none of the shoutboxes on the download area work. The same error comes. What's wrong? What could be the problem. I upload the archive it self, from the admin panel, and then "apply mod" and say's "the archive may be corrupt, or not copatible with the forum version ( altough I have the latest version ), and at the "Ultimate Shoutbox" I receive the error ( see the attachement ). I can't understand what I do wrong, or what is wrong????

Hi,

Judging from your screenshot, you are attempting to install a different shoutbox to the one discussed in this thread. Additionally, that version is incompatible with SMF1.1.2. The shoutbox (version) you require is 1.40 (http://custom.simplemachines.org/mods/index.php?mod=22). The shoutbox is known as 'Ultimate Shoutbox' and is by grudge. If you require the shoutbox discussed in this thread, refer to the very first post by Deep in this thread.
Title: Re: SMF Shoutbox
Post by: liten on April 04, 2007, 04:30:31 PM
Quote from: Kettu on April 04, 2007, 02:37:09 AM
Oh, you mean i.e Shoutbox on the left and News fader on the right.

Okay, then you should change the news fader part.

This is the whole part of the news fader:
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<div class="tborder" style="margin-bottom: 2ex;">
<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" style="height: 60px;">';

// 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>';
}


The important part is at the end:
</td>
</tr>
</table>
</div>';
}


Change this to:
</td>
<td valign="middle" align="center" style="width: 70%;">';
  // display shoutbox
  if (function_exists('sbox')) sbox();
echo '</td>
</tr>
</table>
</div>';
}


This is just an idea. I didn't check this. Just try it.

They are next to each other now but still a bit off and they increase the width of the forum (you can see it at the top left, black corner because the banner is smaller than the 'new' width of the board)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi12.tinypic.com%2F2czzq50.png&hash=f895c63f8fb8e2e8bab0b08bfc0d3af7d0a9fb10)

I'll keep them one on top of the other, but thanks anyway. :)
Title: Re: SMF Shoutbox
Post by: Kettu on April 05, 2007, 04:06:35 AM
Oky, change this one
<td valign="middle" align="center" style="height: 60px;">';
to
<td valign="top" align="center" style="height: 60px; width: 30%;">';

and
<td valign="middle" align="center" style="width: 70%;">';
to
<td valign="top" align="center" style="width: 70%;">';
Title: Re: SMF Shoutbox
Post by: liten on April 05, 2007, 07:01:11 AM
No luck with that either
Title: Re: SMF Shoutbox
Post by: Kettu on April 05, 2007, 07:27:55 AM
Okay, I checked your page now.

Try this:
<td valign="middle" align="center" style="height: 60px;">';
to
<td valign="top" align="center" style="width: 30%;">';

and
<td valign="middle" align="center" style="width: 70%;">';
to
<td valign="top" align="center" style="width: 70%;">';

And for the test please delete the picture at your Newsfader. It is larger than 30% of your board width.
Title: Re: SMF Shoutbox
Post by: liten on April 05, 2007, 07:53:18 AM
I took the banner out, which did prevent the forum width to change but news fader and shoutbox are still not aligned completely. You can login with test, psw: testme to see how it looks on the green template.

And I don't know if it's related to these same settings, but when collapsed the width of the shoutbox is smaller than when it's all visible
Title: Re: SMF Shoutbox
Post by: Kettu on April 05, 2007, 12:37:22 PM
Okay, I checked the code and I think I found the reason.
It's a problem of the original sbox.template.php code.
Find that code
<div class="tborder">
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center;">
                 <a href="#" onclick="shrinkHeaderSB(!current_header_sb); return false;">


So try to check the following different changes at your sbox.template.php.

<div class="catbg" style="padding: 6px; vertical-align: top; text-align: center;">
or
<div class="catbg" style="vertical-align: top; text-align: center;">

It also can be caused by the tborder, but check first the others. I'll be away for a few days, so don't wonder if I don't answer the next time.
Title: Re: SMF Shoutbox
Post by: liten on April 05, 2007, 03:52:44 PM
Thank you very much for your patience. I'll try it right away

ETA: template parse error with both
Title: Re: SMF Shoutbox
Post by: Kettu on April 08, 2007, 01:36:02 PM
Quote from: liten on April 05, 2007, 03:52:44 PM
Thank you very much for your patience. I'll try it right away

ETA: template parse error with both
Ah, did you only change the <div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center;"> part? The other codes around it should be same as before.
Title: Re: SMF Shoutbox
Post by: RiderRaghav on April 11, 2007, 02:31:12 AM
ok I'm new to all this....
Can Anyone please Tell Me that How To Install Shoutbox In the Default SMF theme? ??? ::)

I can't get it to work!
Title: Re: SMF Shoutbox
Post by: smokey_sunny on April 11, 2007, 09:00:55 AM
very nice mod, ty very much!!

Can someone tell me how to change te title from the shoutbox? (smf shoutbox)
Title: Re: SMF Shoutbox
Post by: Kettu on April 11, 2007, 09:15:21 AM
Quote from: smokey_sunny on April 11, 2007, 09:00:55 AM
very nice mod, ty very much!!

Can someone tell me how to change te title from the shoutbox? (smf shoutbox)
You can change it at the shoutbox language file i.e. sbox.english.php
Title: Re: SMF Shoutbox change title
Post by: smokey_sunny on April 11, 2007, 01:54:40 PM
i have read here that i had to chance te title in modifications.english.php,
i did'n find it, after some searching i found it in sbox.english.php , wich you can find in: Themes/default/languages/
it was the first line $txt['sbox_ModTitle'] = 'YOUR-TITLE';
greetz smokey_sunny.
Title: Re: SMF Shoutbox
Post by: jespereh on April 11, 2007, 06:40:01 PM
Is it possible to edit this shoutbox, so it is a Shoutbox in the right side of the Index-page. It has to look something like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg408.imageshack.us%2Fimg408%2F208%2Fshoutboxjb3.jpg&hash=94b838242d1f50c71f19c2fa922fb0cd7eed5faa)

If it is possible. A list of corrections would be appreciated.
Title: Re: SMF Shoutbox
Post by: qubbah on April 13, 2007, 02:00:41 PM
how must i do to change the background of the smf shoutbox.?
Title: Re: SMF Shoutbox
Post by: Kettu on April 13, 2007, 02:45:42 PM
Quote from: qubbah on April 13, 2007, 02:00:41 PM
how must i do to change the background of the smf shoutbox.?
It depends on your Shoutbox version. What do you use?

PS: I am no Sir ;)
Title: Re: SMF Shoutbox
Post by: qubbah on April 13, 2007, 03:13:57 PM
1.15
sorry i miss looking your g

Title: Re: SMF Shoutbox
Post by: jawatkin on April 14, 2007, 12:30:06 AM
I installed 1.21 late last night after some testing on my forum and all was well... My peak on my forums is around 2-5 PM (with a buildup starting around noon)... When I got to about 40-50 concurrent users (with auto-refresh set at 20 seconds), the site went unreachable and up and down quite a few times.... I removed the function call and it still continued to bounce for 5 minutes at a time.  I'm on shared hosting with 1and1, but I'm trying to figure out what happened?

I checked my logs this evening and just before the issues, the sboxDB.php was being viewed 10,000 times per hour!!!!

1) I haven't looked deep into sboxDB.php, but I assume that it makes a query or two, correct? Would this (along with PHP pages on the site) be enough to kill the webserver?

2) Is it typical for it to keep bouncing, even after the code was removed?

3) Can this be prevented by removing the auto-refresh?

1and1 isn't too helpful, they've escalated the case to see if I need to go to a VPS or something, but with a 300 user forum with about 50 or so concurrent, shouldn't have done that, right? Maybe it's just a coincidence and there's another reason?

EDIT: added server log
Title: Re: SMF Shoutbox
Post by: Kettu on April 14, 2007, 04:05:21 AM
Quote from: qubbah on April 13, 2007, 03:13:57 PM
1.15
sorry i miss looking your g
No prob. You only can change the background colour at Admin => Features and Options => SMF Shoutbox => List of dark themes
There add the name(s) of your other theme(s) and it should (if the themes use the correct code) use the colour of it now.
Title: Re: SMF Shoutbox
Post by: qubbah on April 14, 2007, 05:12:11 AM
Quote from: Kettu on April 14, 2007, 04:05:21 AM
Quote from: qubbah on April 13, 2007, 03:13:57 PM
1.15
sorry i miss looking your g
No prob. You only can change the background colour at Admin => Features and Options => SMF Shoutbox => List of dark themes
There add the name(s) of your other theme(s) and it should (if the themes use the correct code) use the colour of it now.
i cant change anything, when i change it, its still go to default.
Title: Re: SMF Shoutbox
Post by: Kettu on April 14, 2007, 05:24:09 AM
Quote from: qubbah on April 14, 2007, 05:12:11 AM
Quote from: Kettu on April 14, 2007, 04:05:21 AM
Quote from: qubbah on April 13, 2007, 03:13:57 PM
1.15
sorry i miss looking your g
No prob. You only can change the background colour at Admin => Features and Options => SMF Shoutbox => List of dark themes
There add the name(s) of your other theme(s) and it should (if the themes use the correct code) use the colour of it now.
i cant change anything, when i change it, its still go to default.
You have to add the name of the folder, not the "trivial" name.
Title: Re: SMF Shoutbox
Post by: mbirth on April 14, 2007, 06:14:35 AM
Quote from: jawatkin on April 14, 2007, 12:30:06 AM
I installed 1.21 late last night after some testing on my forum and all was well... My peak on my forums is around 2-5 PM (with a buildup starting around noon)... When I got to about 40-50 concurrent users (with auto-refresh set at 20 seconds), the site went unreachable and up and down quite a few times.... I removed the function call and it still continued to bounce for 5 minutes at a time.  I'm on shared hosting with 1and1, but I'm trying to figure out what happened?

Anybody using 1and1 hosting? Curious about database speed (http://www.phplinkdirectory.com/forum/showthread.php?t=11275)
Update: StrataCafe status (http://www.stratacafe.com/forum/topic.asp?TOPIC_ID=6245) (see 4th post)
Is 1and1.com slow? (http://drupal.org/node/119880)
(Use Google and you'll find MANY more complaints about 1&1. It's a miracle they still have customers.)


Quote from: jawatkin on April 14, 2007, 12:30:06 AMI checked my logs this evening and just before the issues, the sboxDB.php was being viewed 10,000 times per hour!!!!

If update is set to 20 secs, there occur 3 updates a minute, 180 updates an hour for 1 person. More, if you write something. Now assume 50 users online and writing and you are at 9000 refreshs minimum for only one hour.


Quote from: jawatkin on April 14, 2007, 12:30:06 AM1) I haven't looked deep into sboxDB.php, but I assume that it makes a query or two, correct? Would this (along with PHP pages on the site) be enough to kill the webserver?

Not usually. But 1&1's servers are a shame.


Quote from: jawatkin on April 14, 2007, 12:30:06 AM2) Is it typical for it to keep bouncing, even after the code was removed?

What code did you remove?


Quote from: jawatkin on April 14, 2007, 12:30:06 AM3) Can this be prevented by removing the auto-refresh?

Then, the users will click "Refresh" more often to see if something's new. So you might end up with even more hits on sboxDB.php.


Quote from: jawatkin on April 14, 2007, 12:30:06 AM1and1 isn't too helpful, they've escalated the case to see if I need to go to a VPS or something, but with a 300 user forum with about 50 or so concurrent, shouldn't have done that, right? Maybe it's just a coincidence and there's another reason?

Yeah, I guess that's their trick: Make users switch to hosting packages which bring 1&1 more money. You should look out for another hosting company... there are lots out there.


Cheers,
  -mARKUS


P.S.: I secretly updated sBox to 1.15b now which is compatible to SMF 1.1.2 AND saves the settings!
Title: Re: SMF Shoutbox
Post by: qubbah on April 14, 2007, 01:10:19 PM
Quote from: Kettu on April 14, 2007, 05:24:09 AM
Quote from: qubbah on April 14, 2007, 05:12:11 AM
Quote from: Kettu on April 14, 2007, 04:05:21 AM
Quote from: qubbah on April 13, 2007, 03:13:57 PM
1.15
sorry i miss looking your g
No prob. You only can change the background colour at Admin => Features and Options => SMF Shoutbox => List of dark themes
There add the name(s) of your other theme(s) and it should (if the themes use the correct code) use the colour of it now.
i cant change anything, when i change it, its still go to default.
You have to add the name of the folder, not the "trivial" name.

for example when i check the box of guest can shout, its still go to the default one..
Title: Re: SMF Shoutbox
Post by: Kettu on April 14, 2007, 01:51:54 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..
Sorry, I have no other idea.
Title: Re: SMF Shoutbox
Post by: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: Bancherd on April 17, 2007, 08:06:36 AM
Great mod!  I have it installed on 1.1.2 without any problems.

I have a question however, how do I set it to work with Thai-language and properly display Thai fonts? 

My apologies if this has been posted elsewhere; I looked, but did not see anything.  :D
Title: Re: SMF Shoutbox
Post by: samames on April 19, 2007, 01:58:21 PM
i have this mod installed on default theme and it has improoved VASTLY!! SO THANKS MBIRTH:)

1 problem my custom theme has no BoardIndex.template.php so where shud i put
// display shoutbox
  if (function_exists('sbox')) sbox();??

my  theme consists of:
images  folder
languages  folder

error_log
index.php
index.template.php
style.css
theme_info.xml
Title: Re: SMF Shoutbox
Post by: samames on April 19, 2007, 04:53:17 PM
i've fixed it myself, my theme seems to be using the babylon theme's boardindex.template.php file... I didn't know custom themes did this i tought they just use the default themes files, oh well sorted now. By the way you have advanced this mod greatly, thanks for making this mod so easy to use. This is probably 1 of the best made mods for smf so thanks :)
Title: Re: SMF Shoutbox
Post by: qubbah on April 20, 2007, 12:50:01 PM
Quote from: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS

now im using smf 1.1.1
but when i sett the shoutbox option its still go to the default one...
anybody can tell me what is the problem there....
Title: Re: SMF Shoutbox
Post by: Metalguyx on April 20, 2007, 08:06:44 PM
ok i instaled and its ok i see it on the board an all, but when i shout my (every user) bowser blockes for a while and then it says This:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.imagesforme.com%2Fthumbs%2F2238nevalja3.JPG&hash=cdf5f51dc952a3433029e353c3559ea1cb918125) (http://www.imagesforme.com/viewer.php?id=2238nevalja3.JPG)

and if i click contine it somes again, but if i click "stop script" it posts, whats the problem??! plzz help

and this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.imagesforme.com%2Fthumbs%2F5163nevalja.JPG&hash=a8d8e9a03bb2960eeda276f7892f406f8c2493eb) (http://www.imagesforme.com/viewer.php?id=5163nevalja.JPG)

???
Title: Re: SMF Shoutbox
Post by: Kettu on April 21, 2007, 04:46:23 AM
Quote from: Metalguyx on April 20, 2007, 08:06:44 PM
and this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.imagesforme.com%2Fthumbs%2F5163nevalja.JPG&hash=a8d8e9a03bb2960eeda276f7892f406f8c2493eb) (http://www.imagesforme.com/viewer.php?id=5163nevalja.JPG)

???
You use another language, polish? So you have to copy the english language file and rename it to sbox.polish.php.
Title: Re: SMF Shoutbox
Post by: A_Lua on April 21, 2007, 05:14:47 AM
I instal this mod, is all ok, but i have 3 questions
only admins can delet msg, is it possible to give to the mods that possibility to?
how can i put the clock in my correct time?
and is it possible to take out the day and only see the hour?

ty

kiss
Title: Re: SMF Shoutbox
Post by: Metalguyx on April 21, 2007, 05:17:27 AM
Quote from: Kettu on April 21, 2007, 04:46:23 AM
Quote from: Metalguyx on April 20, 2007, 08:06:44 PM
and this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.imagesforme.com%2Fthumbs%2F5163nevalja.JPG&hash=a8d8e9a03bb2960eeda276f7892f406f8c2493eb) (http://www.imagesforme.com/viewer.php?id=5163nevalja.JPG)

???
You use another language, polish? So you have to copy the english language file and rename it to sbox.polish.php.

I use coratian language , so i do sbox.coratian.php. ?  and where do I pu that file when i rename english file?
Title: Re: SMF Shoutbox
Post by: Kettu on April 21, 2007, 08:12:30 AM
Quote from: Metalguyx on April 21, 2007, 05:17:27 AMI use coratian language , so i do sbox.coratian.php. ?  and where do I pu that file when i rename english file?
To the language-Folder of the default Theme or if your theme doesn't use this theme as backup to the language folder of you theme.
Title: Re: SMF Shoutbox
Post by: Metalguyx on April 22, 2007, 06:24:29 AM
OK thx, one more problem, when i tipe in Č or Ć (coratians letter)  it shoves me ? , how do I fix it? I puted coratians lenugage pack in my smf and its working , just this letters are now working... plzz help
Title: Re: SMF Shoutbox
Post by: Moa666 on April 23, 2007, 04:17:16 PM
i have this message in the shoutbox:
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
i am using smf 1.1.2 and smf shoutbox 1.15b.
if someone knows the solution, help me
Title: Re: SMF Shoutbox
Post by: PrestoDark on April 24, 2007, 01:47:57 AM
My Problem :

Error occur on file "Error.php" in "/Sources" on line 370...

Please Help me!!
Title: Re: SMF Shoutbox
Post by: qubbah on April 24, 2007, 05:15:44 AM
Quote from: qubbah on April 20, 2007, 12:50:01 PM
Quote from: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS

now im using smf 1.1.1
but when i sett the shoutbox option its still go to the default one...
anybody can tell me what is the problem there....

how about this....
Title: Re: SMF Shoutbox
Post by: anshar on April 24, 2007, 10:11:01 AM
Great mod!

Mbirth, could you add option to change a time & date format? (or anyone can tell how to do it, especially with date[day of week]?)

edit:

my forum is using iso-8859-2 charset (for polish language), everything works fine untill users trying to use special characters, instead of them I'm getting some ugly chars. Is there any solution? Those ugly chars are only in shoutbox, everything else is working very well.

If i set my forum char coding to 8859-1 and shout something in my language, then its displaying in right format with all proper characters. Very weird.

edit v2.0:

this helped

"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 {"

remove it save and upload the file to server.
Title: Re: SMF Shoutbox
Post by: dyota on April 24, 2007, 12:07:06 PM
how to move shout box lower or after the forum statistic?
Title: Re: SMF Shoutbox
Post by: Kettu on April 24, 2007, 12:23:30 PM
Quote from: dyota on April 24, 2007, 12:07:06 PM
how to move shout box lower or after the forum statistic?

Move the code
  // display shoutbox
  if (function_exists('sbox')) sbox();

at your Boardindex.Template.php to the position you want i.e. before
// Here's where the "Info Center" starts...
Title: Re: SMF Shoutbox
Post by: qubbah on April 24, 2007, 11:50:09 PM
Quote from: qubbah on April 24, 2007, 05:15:44 AM
Quote from: qubbah on April 20, 2007, 12:50:01 PM
Quote from: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS

now im using smf 1.1.1
but when i sett the shoutbox option its still go to the default one...
anybody can tell me what is the problem there....

how about this....
im still waiting the anwser for this
Title: Re: SMF Shoutbox
Post by: Kettu on April 25, 2007, 02:39:39 AM
Quote from: qubbah on April 24, 2007, 11:50:09 PM
Quote from: qubbah on April 24, 2007, 05:15:44 AM
Quote from: qubbah on April 20, 2007, 12:50:01 PM
Quote from: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS

now im using smf 1.1.1
but when i sett the shoutbox option its still go to the default one...
anybody can tell me what is the problem there....

how about this....
im still waiting the anwser for this
There is no answer for mbirths version, because 1.15 was made for RC3 and 1.15b is made for 1.1.2. There was no version for 1.1.1. So why don't you update to the newer version?
Title: Re: SMF Shoutbox
Post by: JoeB on April 25, 2007, 05:04:03 AM
Great work! Well done
Works fine but only in english
How to make it work in Arabic?
I copied the file sbox.english.php & rename it to sbox.arabic.php but all what I can see is wrong letters??
how to make arabic letters appear?
Please advice me
Best regards
Joe
Title: Re: SMF Shoutbox
Post by: Granit on April 25, 2007, 09:15:37 AM
I have tryed to install this shoutbox, but the only thing a get when i try to install is this.

"Incorrect table name ''
Fil: /home/sportext/public_html/forum/Packages/temp/sbox_setup.php
Rad: 83

How to fix this so my members can use this shoutbox?
I am using the latest smf installation.
Title: Re: SMF Shoutbox
Post by: Kettu on April 25, 2007, 09:42:43 AM
Quote from: Granit on April 25, 2007, 09:15:37 AM
How to fix this so my members can use this shoutbox?
I am using the latest smf installation.
I think you mean 1.1.2. And what shoutbox version do you use?
Title: Re: SMF Shoutbox
Post by: dyota on April 25, 2007, 11:42:28 AM
i install wel but when i run it in my forum, contain
"hacking attempt"

what should i do

i user smf 1.1.2, english
Title: Re: SMF Shoutbox
Post by: Granit on April 25, 2007, 02:09:25 PM
Quote from: Kettu on April 25, 2007, 09:42:43 AM
Quote from: Granit on April 25, 2007, 09:15:37 AM
How to fix this so my members can use this shoutbox?
I am using the latest smf installation.
I think you mean 1.1.2. And what shoutbox version do you use?

I am trying to install the latest, 1.5b or something.
Title: Re: SMF Shoutbox
Post by: TC on April 25, 2007, 03:46:45 PM
Hmm,

Is there a way to display the shoutbox on all pages instead of just the index?
Title: Re: SMF Shoutbox
Post by: gwalior on April 26, 2007, 12:24:03 AM
Quote from: Moa666 on April 23, 2007, 04:17:16 PM
i have this message in the shoutbox:
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
i am using smf 1.1.2 and smf shoutbox 1.15b.
if someone knows the solution, help me

I have the same problem, same versions.
Is it a problem due to my host free.fr  ?
Title: Re: SMF Shoutbox
Post by: bbulldog on April 26, 2007, 02:44:36 AM
Quote from: TC on April 25, 2007, 03:46:45 PM
Hmm,

Is there a way to display the shoutbox on all pages instead of just the index?
might be worth putting it in the header somewhere... I will look into this today for you
Title: Re: SMF Shoutbox
Post by: bbulldog on April 26, 2007, 03:22:33 AM
Moving the shoutbox to the top so it shows on every page.

right i looked into this and it was easy enough to do
This is for the default theme on version 1.1.2.

first is to open the Boardindex.template.php and find this:

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



this needs to be removed as it is the entry for the shoutbox on the Board index.

Then open the Index.template.php and find this


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


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



change it to read like this:

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

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

   echo'
   </div>';


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



below is a picture on our test board of where the shout box is.
The theme is modified with other info in the top too.
Title: Re: SMF Shoutbox
Post by: mbirth on April 26, 2007, 06:54:03 AM
Quote from: Metalguyx on April 20, 2007, 08:06:44 PM
ok i instaled and its ok i see it on the board an all, but when i shout my (every user) bowser blockes for a while and then it says This:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.imagesforme.com%2Fthumbs%2F2238nevalja3.JPG&hash=cdf5f51dc952a3433029e353c3559ea1cb918125) (http://www.imagesforme.com/viewer.php?id=2238nevalja3.JPG)

and if i click contine it somes again, but if i click "stop script" it posts, whats the problem??! plzz help

This only occurs if you set the "Enter text here..." to an empty string. This is fixed with the new 1.16. As a workaround (if you don't want to update the mod), set the text to a single space in options.

You will find it in the file sbox.english.php in your languages-directory on your server. Find the line:

$txt['sbox_TypeShout'] = '';

And add a space between the quotes.


Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: gwalior on April 26, 2007, 08:02:00 AM
problem solved, soluce here : http://www.simplemachines.org/community/index.php?topic=115651.msg745316#msg745316
(in french)

But I have a new error :
QuoteFatal error: mkdir(/mnt/150/sda/2/d/xxxxx/forum/sbox.history.html.lock) [<a href='function.mkdir'>function.mkdir</a>]: File exists in /mnt/150/sda/2/d/xxxxx/forum/Sources/sboxDB.php on line 67
When i click "shout"
When I refresh it works, anybody has an idea ?
Title: Re: SMF Shoutbox
Post by: mbirth on April 26, 2007, 08:53:42 AM
Quote from: gwalior on April 26, 2007, 08:02:00 AMBut I have a new error :
QuoteFatal error: mkdir(/mnt/150/sda/2/d/xxxxx/forum/sbox.history.html.lock) [<a href='function.mkdir'>function.mkdir</a>]: File exists in /mnt/150/sda/2/d/xxxxx/forum/Sources/sboxDB.php on line 67
When i click "shout"
When I refresh it works, anybody has an idea ?

Delete the directory /forum/sbox.history.html.lock on your server. If it happens again, there might be a misconfiguration of your server.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: gwalior on April 26, 2007, 09:24:24 AM
I delete the folder but I have still the error
What could be the problem with my serveur ?

The error message disappears when the shoutbox refresh, about 15 sec or when I click refresh

I have another difference betwen the screen in first page :

[26 avril 2007 à 15:47:02]
[] []  <-- I Have this strange line
[X][Jeu 15:34] <Gwalior> ....

And smileys doesn't work (on 1.16)

Thanks !
Title: Re: SMF Shoutbox
Post by: Granit on April 26, 2007, 10:17:43 AM
Quote from: Granit on April 25, 2007, 02:09:25 PM
Quote from: Kettu on April 25, 2007, 09:42:43 AM
Quote from: Granit on April 25, 2007, 09:15:37 AM
How to fix this so my members can use this shoutbox?
I am using the latest smf installation.
I think you mean 1.1.2. And what shoutbox version do you use?

Ok a guess that no one nows how to install this then.

I am trying to install the latest, 1.5b or something.
Title: Re: SMF Shoutbox
Post by: Kung! on April 26, 2007, 11:40:59 AM
Will try this in this thread as well.

I've installed Shoutbox (SMF v1.1.2) and it appears to work just fine, although I get these three lines in the Shoutbox:

QuoteNotice: Undefined index: is_admin in /home/agri/public_html/christian/Sources/Security.php on line 653

Notice: Undefined index: permissions in /home/agri/public_html/christian/Sources/Security.php on line 660

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/agri/public_html/christian/Sources/Security.php on line 660

Any ideas?  I can follow pointed directions; not too brilliant of a coder though.
Title: Re: SMF Shoutbox
Post by: Blue52 on April 26, 2007, 01:36:10 PM
Hi I recently installed the shoutbox and now I can't access my forum : (

I was wondering if there was anyhing I can do to fix it

Here's what it looks like  http://www.askmonkey.info/forums/
Title: Re: SMF Shoutbox
Post by: qubbah on April 26, 2007, 03:56:11 PM
Quote from: Kettu on April 25, 2007, 02:39:39 AM
Quote from: qubbah on April 24, 2007, 11:50:09 PM
Quote from: qubbah on April 24, 2007, 05:15:44 AM
Quote from: qubbah on April 20, 2007, 12:50:01 PM
Quote from: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS

now im using smf 1.1.1
but when i sett the shoutbox option its still go to the default one...
anybody can tell me what is the problem there....

how about this....
im still waiting the anwser for this
There is no answer for mbirths version, because 1.15 was made for RC3 and 1.15b is made for 1.1.2. There was no version for 1.1.1. So why don't you update to the newer version?
can the owner make it suitable for 1.1.1
Title: Re: SMF Shoutbox
Post by: bbulldog on April 26, 2007, 04:38:29 PM
Quote from: Blue52 on April 26, 2007, 01:36:10 PM
Hi I recently installed the shoutbox and now I can't access my forum : (

I was wondering if there was anyhing I can do to fix it

Here's what it looks like  http://www.askmonkey.info/forums/
yes download the Subs.php file in the Sources directory and look for this on line 3730

function sbox() {
global $sourcedir;

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


it will be in more than once on your board (on line 3738 too) so deleted any others and leave it in once only.
Title: Re: SMF Shoutbox
Post by: Blue52 on April 26, 2007, 05:46:53 PM
Quote from: bbulldog on April 26, 2007, 04:38:29 PM
Quote from: Blue52 on April 26, 2007, 01:36:10 PM
Hi I recently installed the shoutbox and now I can't access my forum : (

I was wondering if there was anyhing I can do to fix it

Here's what it looks like  http://www.askmonkey.info/forums/
yes download the Subs.php file in the Sources directory and look for this on line 3730

function sbox() {
global $sourcedir;

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


it will be in more than once on your board (on line 3738 too) so deleted any others and leave it in once only.

How do I get on line 3730???

I"m a complete newb... Basically none of that made sense to me : (
Title: Re: SMF Shoutbox
Post by: bbulldog on April 27, 2007, 03:06:04 AM
can you post your Subs.php file here, then i can do it for you and re-post it.

or you need to open it in any text program and search for function sbox() {

ps. as im off to England today this might take a day or two, sorry. But i know what the problem is i had the same on mine. ;D
Title: Re: SMF Shoutbox - Other Languages support
Post by: JoeB on April 27, 2007, 09:36:24 AM

Any suggestion regarding use of languages other than English & German?
Please advice me also many other readers asking similar question?
Regards.
Joe
 
Title: Re: SMF Shoutbox
Post by: husam on April 27, 2007, 10:10:17 AM
Can someone post a screen shot of the shoutbox?
Title: Re: SMF Shoutbox
Post by: weblady on April 27, 2007, 11:41:40 AM
I'm totally a "dummie" to coding and all... but just installed this on a theme that's not too widely used, and it installed PERFECTLY and works GREAT!

In admin, can change font size, pixel size for entire shoutbox, allow mod's to delete shouts, keep guests out or allow them in to view and/or shout, edit the refresh rate, ....

If you want to see it in action... you can come to my forum and register a username/password (activation will be sent via email) ... you can always delete your username later on if you don't want to get my notices sent to you!  LOL!

http://www.ladiesplace.net/community

Again.. you do have to register and log in to see the shoutbox... but it's working great!
Title: Re: SMF Shoutbox
Post by: Blue52 on April 27, 2007, 01:41:47 PM
Thank you very much I fixed it and it works : ) 
Title: Re: SMF Shoutbox
Post by: spanny on April 27, 2007, 05:39:57 PM
How can we change the name for the guests 8)
Title: Re: SMF Shoutbox
Post by: King Dingeling on April 28, 2007, 02:59:29 PM
I've just installed smf shoutbox today, and have modded the template quite a bit by now - there's one thing I can't seem to get my head around though.

How would I make the username/text color shown in the shoutbox correspond to the color of the primary membergroup of the author?

Is it even possible at this time?
Title: Re: SMF Shoutbox
Post by: nplus on April 29, 2007, 01:03:41 PM
I've installed the shoutbox but I get the same Internal Server Error as the described on the first page:
QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, mysite.com 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.37 Server at mysite.com Port 80
I've done chmod 644 to shoutDB.php and shout.php but it didn't help. Any other ideas for solving the problem? I'm using the latest versions of smf and smf shoutbox.
Title: Re: SMF Shoutbox
Post by: alyangula on April 29, 2007, 11:37:13 PM
Hey my forums

www.forum.agn-clan.com

would like to have a shoutbox although it doesnt seem to work with your mod.. (the theme)

i added the   // display shoutbox
  if (function_exists('sbox')) sbox(); to the board index and it fked my forums up luckly i got it back...

i wish to have it Below the new fader.

but above the forums.

where in the board index should i copy the

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

to?

between the 2 lines is where i tryed putting it.

this is what my board inex says.

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 valign="bottom">', theme_linktree(), '</td>

      <td align="right">';

   if (!$settings['show_sp1_info'])

      echo '

         ', $txt[19], ': ', $modSettings['memberCount'], ' &nbsp;&#8226;&nbsp; ', $txt[95], ': ', $modSettings['totalMessages'], ' &nbsp;&#8226;&nbsp; ', $txt[64], ': ', $modSettings['totalTopics'], '

         ', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['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 '
__________________________________________________________

__________________________________________________________
<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="89" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="89" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle"></td>

    <td width="89" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="89" height="19" alt=" " border="0" /></td>

  </tr>

</table>

   <table class="bordercolor" border="0" width="100%" cellspacing="1" cellpadding="4">

      <tr class="catbg" align="center">

         <td>', $txt[102], '</td>

      </tr>

      <tr>

         <td class="windowbg" valign="middle" align="center" height="60">';



      // Prepare all the javascript settings.

      echo '

            <div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #ffffff;"><b>', $context['news_lines'][0], '</b></div>

            <script language="JavaScript1.2" type="text/javascript"><!--

               // 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>";



               // List all the lines of the news for display.

               var smfFadeContent = new Array(

                  "', implode('",

                  "', $context['fader_news_lines']), '"

               );

            // --></script>

            <script language="JavaScript1.2" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>

         </td>

      </tr>

   </table>

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="132" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="132" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" valign="middle"></td>

    <td width="132" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="132" height="19" alt=" " border="0" /></td>

  </tr>

</table><br />';

   }



   /* 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 '

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="89" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="89" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle"></td>

    <td width="89" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="89" height="19" alt=" " border="0" /></td>

  </tr>

</table>



<table border="0"  class="bordercolor" width="100%" cellspacing="1" cellpadding="5">

   <tr>

      <td colspan="4" align="center" class="catbg" height="18">';



      // If this category even can collapse, show a link to collapse it.

      if ($category['can_collapse'])

         echo '

         <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';



      echo '

         ', $category['link'], '

      </td>

   </tr>';



      // Assuming the category hasn't been collapsed...

      if (!$category['is_collapsed'])

      {

         /* 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 class="windowbg" width="6%" align="center" valign="top">';



            // 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 '</td>

      <td 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']) == 1 ? $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: 12ex;"><span class="smalltext">

         ', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />

         ', $board['topics'],' ', $txt[330], '

      </span></td>

      <td class="smalltext" valign="middle" width="30%">';



            /* 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 '

         ', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />

         ', $txt['smf88'], ' <b>', $board['last_post']['link'], '</b> ', $txt[525], ' <b>', $board['last_post']['member']['link'];



            echo '

      </b></td>

   </tr>';

         }

      }



      echo '

</table>

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="132" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="132" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" valign="middle"></td>

    <td width="132" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="132" height="19" alt=" " border="0" /></td>

  </tr>

</table>

<br />';

   }



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

   {

      echo '



<table border="0" align="right" width="20%" cellspacing="0" cellpadding="0">

<tr>

      <td align="right">



<a href="', $scripturl, '?action=markasread;sa=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>

</td>

</tr>

</table>



<br />';

}

   

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

   echo '

<br />

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="89" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="89" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle"></td>

    <td width="89" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="89" height="19" alt=" " border="0" /></td>

  </tr>

</table>

<script language="JavaScript1.2" type="text/javascript" src="' . $settings['theme_url'] . '/collapse.js"></script>   

<table border="0" class="bordercolor" width="100%" cellspacing="1" cellpadding="4">

   <tr class="titlebg">

      <td align="center" colspan="2">', $txt[685], '</td>

   </tr>';



   // This is the "Recent Posts" bar.

   if (!empty($settings['number_recent_posts']))

   {

      echo '

   <tr>

      <td class="catbg" colspan="2"><a href="javascript:boardIndexCollapse(\'recent\');"><img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_recent" /></a>&nbsp;', $txt[214], '</td>

   </tr>

   <tr id="row_recent">

      <td class="windowbg" width="20" valign="middle" align="center">

         <a href="', $scripturl, '?action=recent">

            <img src="', $settings['images_url'], '/icons/post.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"><a href="javascript:boardIndexCollapse(\'calendar\');"> <img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_calendar" /></a>&nbsp;', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>

   </tr><tr id="row_calendar">

      <td class="windowbg" width="20" valign="middle" align="center">

         <a href="', $scripturl, '?action=calendar">

            <img src="', $settings['images_url'], '/icons/calendar.gif" width="20" 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> ' : '', '<a href="', $event['href'], '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], '</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"><a href="javascript:boardIndexCollapse(\'members\');"> <img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_members" /></a>&nbsp;', $txt[331], '</td>

   </tr>

   <tr id="row_members">

      <td class="windowbg" width="20" valign="middle" align="center">

         <a href="', $scripturl, '?action=mlist">

            <img src="', $settings['images_url'], '/icons/members.gif" width="20" alt="', $txt[332], '" border="0" /></a>

      </td>

      <td class="windowbg2" width="100%">

         <b><a href="', $scripturl, '?action=mlist">', $txt[332], '</a></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"><a href="javascript:boardIndexCollapse(\'sp1\');"> <img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_sp1" /></a>&nbsp;', $txt[645], '</td>

   </tr>

   <tr id="row_sp1">

      <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: left; width: 50%;">', $txt[490], ': <b>', $modSettings['totalTopics'], '</b></div>', $txt[489], ': <b>', $modSettings['totalMessages'], '</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">', $modSettings['memberCount'], '</a></b><br />

               ', $txt[656], ': <b>', $context['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"><a href="javascript:boardIndexCollapse(\'users\');"> <img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_users" /></a>&nbsp;', $txt[158], '</td>

   </tr><tr id="row_users">

      <td class="windowbg" width="20" valign="middle" align="center">

         <a href="', $scripturl, '?action=who">

            <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" /></a>

      </td>

      <td class="windowbg2" width="100%">

         <a href="', $scripturl, '?action=who">', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], (empty($context['num_users_hidden']) ? '' : ' (' . $context['num_users_hidden'] . ' ' . $txt['hidden'] . ')'), '</a><br />

         <span 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>' : '', '

         </span>

      </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">

         <a href="', $scripturl, '?action=pm">

            <img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" /></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'] == 1 ? $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></table>

         </form>

      </td>

   </tr>';

   }



   echo '

</table>

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="132" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="132" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" valign="middle"></td>

    <td width="132" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="132" height="19" alt=" " border="0" /></td>

  </tr>

</table>';





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

   {

      echo '

<br /><table width="55%" align="center" border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="89" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="89" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle"></td>

    <td width="89" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="89" height="19" alt=" " border="0" /></td>

  </tr>

</table>

<table border="0" class="bordercolor" align="center" width="55%" cellspacing="1" cellpadding="5">

   <tr class="windowbg2">

      <td align="center" 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: 6ex;" /> ', $txt[334], '

      </td>

   </tr>

</table>

<table width="55%" align="center" border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="132" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="132" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" valign="middle"></td>

    <td width="132" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="132" height="19" alt=" " border="0" /></td>

  </tr>

</table>';

   }



echo '

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

   setTimeout("boardIndexCheck()", 80);

// --></script>';





}



?>

Title: Re: SMF Shoutbox
Post by: qubbah on April 30, 2007, 12:47:58 AM
Quote from: qubbah on April 26, 2007, 03:56:11 PM
Quote from: Kettu on April 25, 2007, 02:39:39 AM
Quote from: qubbah on April 24, 2007, 11:50:09 PM
Quote from: qubbah on April 24, 2007, 05:15:44 AM
Quote from: qubbah on April 20, 2007, 12:50:01 PM
Quote from: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS

now im using smf 1.1.1
but when i sett the shoutbox option its still go to the default one...
anybody can tell me what is the problem there....

how about this....
im still waiting the anwser for this
There is no answer for mbirths version, because 1.15 was made for RC3 and 1.15b is made for 1.1.2. There was no version for 1.1.1. So why don't you update to the newer version?
can the owner make it suitable for 1.1.1


anybody can tell me hot to make it suitable for 1.1.1
Title: Re: SMF Shoutbox
Post by: mbirth on April 30, 2007, 04:49:50 AM
Quote from: qubbah on April 30, 2007, 12:47:58 AM
Quote from: qubbah on April 26, 2007, 03:56:11 PM
Quote from: Kettu on April 25, 2007, 02:39:39 AM
Quote from: qubbah on April 24, 2007, 11:50:09 PM
Quote from: qubbah on April 24, 2007, 05:15:44 AM
Quote from: qubbah on April 20, 2007, 12:50:01 PM
Quote from: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS

now im using smf 1.1.1
but when i sett the shoutbox option its still go to the default one...
anybody can tell me what is the problem there....

how about this....
im still waiting the anwser for this
There is no answer for mbirths version, because 1.15 was made for RC3 and 1.15b is made for 1.1.2. There was no version for 1.1.1. So why don't you update to the newer version?
can the owner make it suitable for 1.1.1


anybody can tell me hot to make it suitable for 1.1.1

Download the latest Shoutbox. It is suitable for SMF 1.1, 1.1.1, 1.1.2, 1.1.3 . If it tells you some errors upon installation, you might have too many plugins already installed for it to find the right place to change code.

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: gwalior on April 30, 2007, 04:50:55 AM
Quote from: mbirth on April 26, 2007, 08:53:42 AM
Quote from: gwalior on April 26, 2007, 08:02:00 AMBut I have a new error :
QuoteFatal error: mkdir(/mnt/150/sda/2/d/xxxxx/forum/sbox.history.html.lock) [<a href='function.mkdir'>function.mkdir</a>]: File exists in /mnt/150/sda/2/d/xxxxx/forum/Sources/sboxDB.php on line 67
When i click "shout"
When I refresh it works, anybody has an idea ?

Delete the directory /forum/sbox.history.html.lock on your server. If it happens again, there might be a misconfiguration of your server.

Cheers,
  -mARKUS
I have delete the directory and it works for one shout. After a new  directory /forum/sbox.history.html.lock appears and the problem occurs .
Any idée ?

Title: Re: SMF Shoutbox
Post by: mbirth on April 30, 2007, 05:01:52 AM
Quote from: anshar on April 24, 2007, 10:11:01 AMedit v2.0:

this helped

"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 {"

remove it save and upload the file to server.

This code fragment doesn't sound like any recent version of Shoutbox. Also I hope you made sure that without that line, still no one can inject scripts into your Shoutbox. (Just write "<script language="javascript">alert(navigator.appVersion);</script>" into your shoutbox.) If you get a popup message, try to add the line $result .= strip_tags($s); there where you removed the htmlentities().

Cheers,
  -mARKUS
Title: Re: SMF Shoutbox
Post by: dyota on April 30, 2007, 09:54:57 AM
Marcus, how about my forum? i install it but contaian "hacking attempt". Thanks
Title: Re: SMF Shoutbox
Post by: gwalior on April 30, 2007, 11:30:19 AM
I have many errors in log like this one
   
8: Undefined index: sbox_TypeShout
Fichier: /mnt/150/sda/2/d/bouletclubz/forum/Themes/default/sbox.template.php (eval?)
Ligne: 79

or
Undefined index: sbox_Refresh
Fichier: /mnt/150/sda/2/d/bouletclubz/forum/Themes/default/sbox.template.php (eval?)
Ligne: 67


Please help  ;)
Title: Re: SMF Shoutbox
Post by: alyangula on April 30, 2007, 10:39:26 PM
Quote from: alyangula on April 29, 2007, 11:37:13 PM
Hey my forums

www.forum.agn-clan.com

would like to have a shoutbox although it doesnt seem to work with your mod.. (the theme)

i added the   // display shoutbox
  if (function_exists('sbox')) sbox(); to the board index and it fked my forums up luckly i got it back...

i wish to have it Below the new fader.

but above the forums.

where in the board index should i copy the

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

to?

between the 2 lines is where i tryed putting it.

this is what my board inex says.

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 valign="bottom">', theme_linktree(), '</td>

      <td align="right">';

   if (!$settings['show_sp1_info'])

      echo '

         ', $txt[19], ': ', $modSettings['memberCount'], ' &nbsp;•&nbsp; ', $txt[95], ': ', $modSettings['totalMessages'], ' &nbsp;•&nbsp; ', $txt[64], ': ', $modSettings['totalTopics'], '

         ', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['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 '
__________________________________________________________

__________________________________________________________
<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="89" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="89" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle"></td>

    <td width="89" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="89" height="19" alt=" " border="0" /></td>

  </tr>

</table>

   <table class="bordercolor" border="0" width="100%" cellspacing="1" cellpadding="4">

      <tr class="catbg" align="center">

         <td>', $txt[102], '</td>

      </tr>

      <tr>

         <td class="windowbg" valign="middle" align="center" height="60">';



      // Prepare all the javascript settings.

      echo '

            <div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #ffffff;"><b>', $context['news_lines'][0], '</b></div>

            <script language="JavaScript1.2" type="text/javascript"><!--

               // 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>";



               // List all the lines of the news for display.

               var smfFadeContent = new Array(

                  "', implode('",

                  "', $context['fader_news_lines']), '"

               );

            // --></script>

            <script language="JavaScript1.2" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>

         </td>

      </tr>

   </table>

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="132" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="132" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" valign="middle"></td>

    <td width="132" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="132" height="19" alt=" " border="0" /></td>

  </tr>

</table><br />';

   }



   /* 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 '

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="89" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="89" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle"></td>

    <td width="89" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="89" height="19" alt=" " border="0" /></td>

  </tr>

</table>



<table border="0"  class="bordercolor" width="100%" cellspacing="1" cellpadding="5">

   <tr>

      <td colspan="4" align="center" class="catbg" height="18">';



      // If this category even can collapse, show a link to collapse it.

      if ($category['can_collapse'])

         echo '

         <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';



      echo '

         ', $category['link'], '

      </td>

   </tr>';



      // Assuming the category hasn't been collapsed...

      if (!$category['is_collapsed'])

      {

         /* 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 class="windowbg" width="6%" align="center" valign="top">';



            // 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 '</td>

      <td 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']) == 1 ? $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: 12ex;"><span class="smalltext">

         ', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />

         ', $board['topics'],' ', $txt[330], '

      </span></td>

      <td class="smalltext" valign="middle" width="30%">';



            /* 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 '

         ', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />

         ', $txt['smf88'], ' <b>', $board['last_post']['link'], '</b> ', $txt[525], ' <b>', $board['last_post']['member']['link'];



            echo '

      </b></td>

   </tr>';

         }

      }



      echo '

</table>

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="132" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="132" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" valign="middle"></td>

    <td width="132" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="132" height="19" alt=" " border="0" /></td>

  </tr>

</table>

<br />';

   }



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

   {

      echo '



<table border="0" align="right" width="20%" cellspacing="0" cellpadding="0">

<tr>

      <td align="right">



<a href="', $scripturl, '?action=markasread;sa=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>

</td>

</tr>

</table>



<br />';

}

   

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

   echo '

<br />

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="89" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="89" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle"></td>

    <td width="89" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="89" height="19" alt=" " border="0" /></td>

  </tr>

</table>

<script language="JavaScript1.2" type="text/javascript" src="' . $settings['theme_url'] . '/collapse.js"></script>   

<table border="0" class="bordercolor" width="100%" cellspacing="1" cellpadding="4">

   <tr class="titlebg">

      <td align="center" colspan="2">', $txt[685], '</td>

   </tr>';



   // This is the "Recent Posts" bar.

   if (!empty($settings['number_recent_posts']))

   {

      echo '

   <tr>

      <td class="catbg" colspan="2"><a href="javascript:boardIndexCollapse(\'recent\');"><img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_recent" /></a>&nbsp;', $txt[214], '</td>

   </tr>

   <tr id="row_recent">

      <td class="windowbg" width="20" valign="middle" align="center">

         <a href="', $scripturl, '?action=recent">

            <img src="', $settings['images_url'], '/icons/post.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"><a href="javascript:boardIndexCollapse(\'calendar\');"> <img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_calendar" /></a>&nbsp;', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>

   </tr><tr id="row_calendar">

      <td class="windowbg" width="20" valign="middle" align="center">

         <a href="', $scripturl, '?action=calendar">

            <img src="', $settings['images_url'], '/icons/calendar.gif" width="20" 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> ' : '', '<a href="', $event['href'], '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], '</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"><a href="javascript:boardIndexCollapse(\'members\');"> <img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_members" /></a>&nbsp;', $txt[331], '</td>

   </tr>

   <tr id="row_members">

      <td class="windowbg" width="20" valign="middle" align="center">

         <a href="', $scripturl, '?action=mlist">

            <img src="', $settings['images_url'], '/icons/members.gif" width="20" alt="', $txt[332], '" border="0" /></a>

      </td>

      <td class="windowbg2" width="100%">

         <b><a href="', $scripturl, '?action=mlist">', $txt[332], '</a></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"><a href="javascript:boardIndexCollapse(\'sp1\');"> <img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_sp1" /></a>&nbsp;', $txt[645], '</td>

   </tr>

   <tr id="row_sp1">

      <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: left; width: 50%;">', $txt[490], ': <b>', $modSettings['totalTopics'], '</b></div>', $txt[489], ': <b>', $modSettings['totalMessages'], '</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">', $modSettings['memberCount'], '</a></b><br />

               ', $txt[656], ': <b>', $context['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"><a href="javascript:boardIndexCollapse(\'users\');"> <img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_users" /></a>&nbsp;', $txt[158], '</td>

   </tr><tr id="row_users">

      <td class="windowbg" width="20" valign="middle" align="center">

         <a href="', $scripturl, '?action=who">

            <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" /></a>

      </td>

      <td class="windowbg2" width="100%">

         <a href="', $scripturl, '?action=who">', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], (empty($context['num_users_hidden']) ? '' : ' (' . $context['num_users_hidden'] . ' ' . $txt['hidden'] . ')'), '</a><br />

         <span 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>' : '', '

         </span>

      </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">

         <a href="', $scripturl, '?action=pm">

            <img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" /></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'] == 1 ? $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></table>

         </form>

      </td>

   </tr>';

   }



   echo '

</table>

<table width="100%"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="132" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="132" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" valign="middle"></td>

    <td width="132" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="132" height="19" alt=" " border="0" /></td>

  </tr>

</table>';





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

   {

      echo '

<br /><table width="55%" align="center" border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="89" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="89" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle"></td>

    <td width="89" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="89" height="19" alt=" " border="0" /></td>

  </tr>

</table>

<table border="0" class="bordercolor" align="center" width="55%" cellspacing="1" cellpadding="5">

   <tr class="windowbg2">

      <td align="center" 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: 6ex;" /> ', $txt[334], '

      </td>

   </tr>

</table>

<table width="55%" align="center" border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="132" height="19" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="132" height="19" alt=" " border="0" /></td>

    <td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" valign="middle"></td>

    <td width="132" height="19" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="132" height="19" alt=" " border="0" /></td>

  </tr>

</table>';

   }



echo '

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

   setTimeout("boardIndexCheck()", 80);

// --></script>';





}



?>



um yea bump!
Title: Re: SMF Shoutbox
Post by: qubbah on May 01, 2007, 11:31:51 AM
Quote from: mbirth on April 30, 2007, 04:49:50 AM
Quote from: qubbah on April 30, 2007, 12:47:58 AM
Quote from: qubbah on April 26, 2007, 03:56:11 PM
Quote from: Kettu on April 25, 2007, 02:39:39 AM
Quote from: qubbah on April 24, 2007, 11:50:09 PM
Quote from: qubbah on April 24, 2007, 05:15:44 AM
Quote from: qubbah on April 20, 2007, 12:50:01 PM
Quote from: mbirth on April 14, 2007, 01:58:59 PM
Quote from: qubbah on April 14, 2007, 01:10:19 PMfor example when i check the box of guest can shout, its still go to the default one..

Download the new 1.15b. This is working for SMF 1.1.2.

Cheers,
  -mARKUS

now im using smf 1.1.1
but when i sett the shoutbox option its still go to the default one...
anybody can tell me what is the problem there....

how about this....
im still waiting the anwser for this
There is no answer for mbirths version, because 1.15 was made for RC3 and 1.15b is made for 1.1.2. There was no version for 1.1.1. So why don't you update to the newer version?
can the owner make it suitable for 1.1.1


anybody can tell me hot to make it suitable for 1.1.1

Download the latest Shoutbox. It is suitable for SMF 1.1, 1.1.1, 1.1.2, 1.1.3 . If it tells you some errors upon installation, you might have too many plugins already installed for it to find the right place to change code.

Cheers,
  -mARKUS


thanks....
some code is put in the wrong positions...in sources modsettings.

How can i change the background?
Title: Re: SMF Shoutbox
Post by: downcen on May 02, 2007, 05:40:17 AM
Who have a live demo?
Title: Re: SMF Shoutbox
Post by: apathétic.losér on May 02, 2007, 03:15:42 PM
I wanted to put the shoutbox under the footer area, where do I place it on the boardindex template?
Title: Re: SMF Shoutbox
Post by: SNAFU0185 on May 03, 2007, 01:03:08 AM
im trying to install this mod and i get the following error
QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/sbox.php    
2.    Extract File    ./Sources/sboxDB.php    
3.    Extract File    ./Themes/default/languages/sbox.english.php    
4.    Extract File    ./Themes/default/languages/sbox.german.php    
5.    Extract File    ./Themes/default/languages/sbox.french.php    
6.    Extract File    ./Themes/default/sbox.template.php    
7.    Extract File    ./Themes/default/images/sbox_refresh.gif    
8.    Extract File    ./chat-inbound_GSM.wav    
9.    Execute Code    sbox_setup.php    
10.    Execute Modification    sbox_latest.xml    Modification parse error
11.    Execute Modification    -    Modification parse error
Title: Re: SMF Shoutbox
Post by: Kettu on May 03, 2007, 02:08:20 AM
Quote from: apathétic.losér on May 02, 2007, 03:15:42 PM
I wanted to put the shoutbox under the footer area, where do I place it on the boardindex template?
Then you have to use the index.template.php not the boardindex.template.php. But if you do this, it will be shown on every page.
Title: Re: SMF Shoutbox
Post by: goldc0der on May 06, 2007, 09:03:44 AM
I really need help here:

I´m using SMF 1.1.2 and sbox 1.6.

What i didwas:

Uploaded Files:

/Sources/sbox.php    chmod777
/Sources/sboxDB.php   chmod777   
/Themes/default/languages/sbox.english.php    chmod777
/Themes/default/languages/sbox.german.php    chmod777
/Themes/default/languages/sbox.french.php    chmod777
/Themes/default/sbox.template.php    chmod777
/Themes/default/images/sbox_refresh.gif    chmod777
/chat-inbound_GSM.wav    chmod777
/sbox_setup.php   chmod777

Insert code on index.template.php (of theme in use)
// display shoutbox
  if (function_exists('sbox')) sbox();

Run setup:
http://www.mysite.com/forum/sbox_setup.php

Then error:
Database error
Please try again. Contact Admin...

What i did wrong?
Title: Re: SMF Shoutbox
Post by: Kettu on May 06, 2007, 12:22:01 PM
Why don't you install it via package manager?
Title: Re: SMF Shoutbox
Post by: elwingflys on May 07, 2007, 01:02:30 AM
 1)...
Quote from: Kettu on May 03, 2007, 02:08:20 AM
Quote from: apathétic.losér on May 02, 2007, 03:15:42 PM
I wanted to put the shoutbox under the footer area, where do I place it on the boardindex template?
Then you have to use the index.template.php not the boardindex.template.php. But if you do this, it will be shown on every page.

That is what I want. I know a site that does it and it is great. Having it follow you around makes it easier to post and shout. Exactly where would I put it in the index template and can I do it from the package loader thing.   

2) The text is very tiny and in a color that doesn't show well on my board. I found the list it is on in the package manager but it won't let me change it there or at least there is no save changes button. I need at least a 10 or 12 pt text not extra small. I know the code for the color but not for that size type if anyone can tell me how to change it.

I'm a total NOOB and I would like to do this without bugging my host again. Thank you.
Title: Re: SMF Shoutbox
Post by: Kettu on May 07, 2007, 04:01:35 AM
Quote from: elwingflys on May 07, 2007, 01:02:30 AMThat is what I want. I know a site that does it and it is great. Having it follow you around makes it easier to post and shout. Exactly where would I put it in the index template and can I do it from the package loader thing.   
You can't do it through the package manager. You have to do it by hand.
Where you have to add it? ... I remember there was a similar question in the past in this thread. Just search it.

Quote from: elwingflys on May 07, 2007, 01:02:30 AM2) The text is very tiny and in a color that doesn't show well on my board. I found the list it is on in the package manager but it won't let me change it there or at least there is no save changes button. I need at least a 10 or 12 pt text not extra small. I know the code for the color but not for that size type if anyone can tell me how to change it.
You can change colour and size at Features & Options => SMF Shoutbox. There you find: Font family, Font size, 2. Font color for light themes , 2. Font color for dark themes etc.
Title: Re: SMF Shoutbox
Post by: bbulldog on May 07, 2007, 06:52:15 AM
@alyangula


try the shoutbox before this line

  /* Each category in categories is made up of:
Title: Re: SMF Shoutbox
Post by: bbulldog on May 07, 2007, 06:54:00 AM
dont forget if you want to move the shoutbox elsewhere you still have to install it first!!
Title: Re: SMF Shoutbox
Post by: elwingflys on May 07, 2007, 07:49:09 AM
Quote from: Kettu on May 07, 2007, 04:01:35 AM

Quote from: elwingflys on May 07, 2007, 01:02:30 AM2) The text is very tiny and in a color that doesn't show well on my board. I found the list it is on in the package manager but it won't let me change it there or at least there is no save changes button. I need at least a 10 or 12 pt text not extra small. I know the code for the color but not for that size type if anyone can tell me how to change it.
You can change colour and size at Features & Options => SMF Shoutbox. There you find: Font family, Font size, 2. Font color for light themes , 2. Font color for dark themes etc.

Nothing shows up in the features and options. I have checked everywhere. I have nowhere to admin the box. I uninstalled and reinstalled, changed my theme in case that was interfering, still nothing. SMF 1.1.2 just installed and the latest shoutbox download. Theme Helios
Title: Re: SMF Shoutbox
Post by: gwalior on May 07, 2007, 08:58:18 AM
Quote from: elwingflys on May 07, 2007, 07:49:09 AM
Nothing shows up in the features and options. I have checked everywhere. I have nowhere to admin the box. I uninstalled and reinstalled, changed my theme in case that was interfering, still nothing. SMF 1.1.2 just installed and the latest shoutbox download. Theme Helios
I have the same problem, and many errors in my log (see my lasts posts in this topic)
I'm using SMF 1.1.2 (french) and 1.6, and default theme, is it a problem due to language ?
Title: Re: SMF Shoutbox
Post by: Kettu on May 07, 2007, 09:13:27 AM
Yes it is a language problem. Normally it shall fall back to english. Check the sbox.english.php and make a copy of it in your language i.e. sbox.french.php
Title: Re: SMF Shoutbox
Post by: elwingflys on May 07, 2007, 09:21:35 AM
gwalior Mentioned the errors so I checked my error logs and the english file didn't load causing other errors even though when I installed the mod it didn't show any errors and sair it went in fine. Also when I loaded and installed everything came up test successful.
Title: Re: SMF Shoutbox
Post by: elwingflys on May 08, 2007, 11:52:18 PM
It is evidently the English php (?) file that is not loading. The one that works the admin configurations. I have a SMF 1.1.2 and the latest shoutbox. Any help on what I can tell my host to do to make this work? He isn't used to SMF and my site went live today.
Title: Re: SMF Shoutbox
Post by: Kettu on May 09, 2007, 03:26:30 AM
Quote from: elwingflys on May 07, 2007, 09:21:35 AM
gwalior Mentioned the errors so I checked my error logs and the english file didn't load causing other errors even though when I installed the mod it didn't show any errors and sair it went in fine. Also when I loaded and installed everything came up test successful.
Can you tell us the exact error code, please.
Title: Re: SMF Shoutbox
Post by: elwingflys on May 09, 2007, 03:52:13 AM
Here are a bunch from the error page. I copied till looked like they were going to repeat. I guess every time you do anything with it, it posts something. I hope this helps.

  Elwingflys   Today at 02:46:28 AM 

http://template1.webtgm.com/forum/index.php 
Unable to load the 'sbox.english-utf8' language file.

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_TypeShout
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 79

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_TypeShout
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 71

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_TypeShout
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 71

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_Refresh
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 67

   Elwingflys   Today at 02:46:27 AM 
  http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_ModTitle
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 57

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_TypeShout
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 40

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
Unable to load the 'sbox.english-utf8' language file.

Title: Re: SMF Shoutbox
Post by: Kettu on May 09, 2007, 04:27:46 AM
Okay, there is no sbox.english-utf8 language file for smf shoutbox. So copy the sbox.english.php and rename the copy to sbox.english-utf8.php.
Title: Re: SMF Shoutbox
Post by: elwingflys on May 09, 2007, 11:45:41 AM
Thanks. Will try that.
Title: Re: SMF Shoutbox
Post by: SNAFU0185 on May 10, 2007, 01:10:32 AM
Quote from: SNAFU0185 on May 03, 2007, 01:03:08 AM
im trying to install this mod and i get the following error
QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/sbox.php    
2.    Extract File    ./Sources/sboxDB.php    
3.    Extract File    ./Themes/default/languages/sbox.english.php    
4.    Extract File    ./Themes/default/languages/sbox.german.php    
5.    Extract File    ./Themes/default/languages/sbox.french.php    
6.    Extract File    ./Themes/default/sbox.template.php    
7.    Extract File    ./Themes/default/images/sbox_refresh.gif    
8.    Extract File    ./chat-inbound_GSM.wav    
9.    Execute Code    sbox_setup.php    
10.    Execute Modification    sbox_latest.xml    Modification parse error
11.    Execute Modification    -    Modification parse error
since nobody answered this ive gone ahead a manual instal now of shoutbox 1.16 on smf 1.1.2 and i get the following error whilst running sbox_setup.php.......... Database Error
Incorrect table name ''
File: /home/virtual/site57/fst/var/www/html/smf/sbox_setup.php
Line: 83
Title: Re: SMF Shoutbox
Post by: qubbah on May 10, 2007, 03:02:21 AM
how can i make shoutbox that can writing colum from the bottom of the shoutbox like mirc...
Title: Re: SMF Shoutbox
Post by: Lady_Of_Chaos on May 10, 2007, 12:11:00 PM
I am sorry , I am sure this has been addressed already but I have read and read , plus searched and the answer everyone is giving doesnt seem to help me.

I just installed a SMF forum on a subdomain yesterdau and then the shoutbox . Everything seems to work fine , but we would like the text/font in the shoutbox to be larger . I have checked all thru the admin CP and there is no where in the to adjust . I am familiar with coding as I do our forums with IPB , so can you tell me which file has the text size configuration in it ? I have searched thru the ftp files as well and am unable to locate anything specific .

Thx in advance.
Title: Re: SMF Shoutbox
Post by: elwingflys on May 10, 2007, 01:16:30 PM
Quote from: elwingflys on May 09, 2007, 03:52:13 AM
Here are a bunch from the error page. I copied till looked like they were going to repeat. I guess every time you do anything with it, it posts something. I hope this helps.

  Elwingflys   Today at 02:46:28 AM 

http://template1.webtgm.com/forum/index.php 
Unable to load the 'sbox.english-utf8' language file.

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_TypeShout
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 79

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_TypeShout
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 71

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_TypeShout
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 71

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_Refresh
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 67

   Elwingflys   Today at 02:46:27 AM 
  http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_ModTitle
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 57

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
8: Undefined index: sbox_TypeShout
File: /home/tgm/public_html/template1/forum/Themes/default/sbox.template.php (eval?)
Line: 40

   Elwingflys   Today at 02:46:27 AM 

http://template1.webtgm.com/forum/index.php?action=admin 
Unable to load the 'sbox.english-utf8' language file.


Quote from: Kettu on May 09, 2007, 04:27:46 AM
Okay, there is no sbox.english-utf8 language file for smf shoutbox. So copy the sbox.english.php and rename the copy to sbox.english-utf8.php.

Have the same prob that we are working on. If these errors are showing in the Admin area error reports, try this. I'm still waiting for my host to work on it.
Title: Re: SMF Shoutbox
Post by: SNAFU0185 on May 10, 2007, 08:59:00 PM
im starting to wonder weither this mod has been abandoned
Title: Re: SMF Shoutbox
Post by: elwingflys on May 10, 2007, 09:20:34 PM
Be nice if they would upgrade it for SMF 1.1.2. A lot of hosts don't give you the chance to go in and play with the code or up load stuff other than with the package manager.
Title: Re: SMF Shoutbox
Post by: bbulldog on May 11, 2007, 02:53:51 AM
It works with 1.1.2
Title: Re: SMF Shoutbox
Post by: bbulldog on May 11, 2007, 03:08:21 AM
Quote from: Lady_Of_Chaos on May 10, 2007, 12:11:00 PM
I am sorry , I am sure this has been addressed already but I have read and read , plus searched and the answer everyone is giving doesnt seem to help me.

I just installed a SMF forum on a subdomain yesterdau and then the shoutbox . Everything seems to work fine , but we would like the text/font in the shoutbox to be larger . I have checked all thru the admin CP and there is no where in the to adjust . I am familiar with coding as I do our forums with IPB , so can you tell me which file has the text size configuration in it ? I have searched thru the ftp files as well and am unable to locate anything specific .

Thx in advance.
The font can be set in
ADMIN - FEATURES AND OPTIONS - SHOUTBOX (top middle)
Title: Re: SMF Shoutbox
Post by: Lady_Of_Chaos on May 11, 2007, 03:59:45 AM
Quote from: bbulldog on May 11, 2007, 03:08:21 AM
Quote from: Lady_Of_Chaos on May 10, 2007, 12:11:00 PM
I am sorry , I am sure this has been addressed already but I have read and read , plus searched and the answer everyone is giving doesnt seem to help me.

I just installed a SMF forum on a subdomain yesterdau and then the shoutbox . Everything seems to work fine , but we would like the text/font in the shoutbox to be larger . I have checked all thru the admin CP and there is no where in the to adjust . I am familiar with coding as I do our forums with IPB , so can you tell me which file has the text size configuration in it ? I have searched thru the ftp files as well and am unable to locate anything specific .

Thx in advance.
The font can be set in
ADMIN - FEATURES AND OPTIONS - SHOUTBOX (top middle)


UM maybe I wasnt clear , so let me state again and offer a screenshot :
~*~ I have checked all thru the admin CP and there is no where in the to adjust .~*~


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi18.photobucket.com%2Falbums%2Fb123%2FLady_Of_Chaos%2Fadmin.jpg&hash=11237fd5b4b4b5c549de397f14c083aae25d0d38)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi18.photobucket.com%2Falbums%2Fb123%2FLady_Of_Chaos%2Fadmin2.jpg&hash=51cf8c1d745704d8ebe4385a7b286dd810e6a9ea)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi18.photobucket.com%2Falbums%2Fb123%2FLady_Of_Chaos%2Fadmin3.jpg&hash=05701dd23636b5c1c6ebd73e0077b73a306a2f4a)
Title: Re: SMF Shoutbox
Post by: bbulldog on May 11, 2007, 04:49:40 AM
strange as i have all this, could be a theme issue?
Title: Re: SMF Shoutbox
Post by: Lady_Of_Chaos on May 11, 2007, 04:55:19 AM
thats why i am at a loss , it doesnt show even on the default skin . i have also tried uninstalling and reinstalling and that doesnt fix it .
Title: Re: SMF Shoutbox
Post by: bbulldog on May 11, 2007, 04:57:10 AM
that is strange, i am using SMF 1.1.2 and the latest shoutbox. it was installed on the default theme and works ok. Any error messages on installing?
Title: Re: SMF Shoutbox
Post by: Lady_Of_Chaos on May 11, 2007, 05:01:39 AM
no , it said it was installed completely , not one error.

latest forum 1.1.2 and latest shoutbox 1.16
Title: Re: SMF Shoutbox
Post by: bbulldog on May 11, 2007, 05:02:03 AM
check out the sboxDB.php file and look at this, especially the font-size setting, it takes this value from the sql database. you could change it here manually though

<style type="text/css">
 
    .windowbg2 {
      font-family: ' . $modSettings['sbox_FontFamily'] . ';
      font-style: normal;
      font-size: ' . $modSettings['sbox_TextSize'] . ';
      font-weight: normal;
      text-decoration: none;
    }

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

    .Kill, A.Kill {
      color: #ff0000;
    }
  </style>';
Title: Re: SMF Shoutbox
Post by: bbulldog on May 11, 2007, 05:02:53 AM
Quote from: Lady_Of_Chaos on May 11, 2007, 05:01:39 AM
no , it said it was installed completely , not one error.

latest forum 1.1.2 and latest shoutbox 1.16
aha i have the 1.15b shoutbox just checked.
Title: Re: SMF Shoutbox
Post by: Lady_Of_Chaos on May 11, 2007, 05:04:06 AM
yea , i found that section of the code , but because it didnt already have a size there , wasnt sure exactly what to put

maybe a bug or such with the admin cp in 1.16 ?
Title: Re: SMF Shoutbox
Post by: TrueSatan on May 11, 2007, 05:06:11 AM
A couple of possibilities spring to mind...it might well object to use of English utf8...switch to English in the Admin language settings. The installation may have been unable to work properly if your CHMOD file permissions weren't set properly...ACP>Packages>Options

Fill in the FTP settings appropriate for your hosting...Cleanup Permissions> set to "All files are writable" and change file permissions.

Having done this check via an ftp client to see that it has worked and that the files are set to CHMOD 777 or 775 (depends on the host settings.)

With all the above done uninstall and install again...otherwise go through the package and do a manual install of any parts that haven't worked via the package installer.
Title: Re: SMF Shoutbox
Post by: bbulldog on May 11, 2007, 05:11:38 AM
these are the values

    array('select', 'sbox_TextSize', 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'
which means if you change that line to



font-size: medium;


it should work.
Title: Re: SMF Shoutbox
Post by: bbulldog on May 11, 2007, 05:13:31 AM
or one of the other values
Title: Re: SMF Shoutbox
Post by: Lady_Of_Chaos on May 11, 2007, 05:13:45 AM
the switch to english worked , i now have the admin control for it , tyvm for your help
Title: Re: SMF Shoutbox
Post by: bbulldog on May 11, 2007, 05:19:20 AM
glad to hear its working now. :D
Title: Re: SMF Shoutbox
Post by: SNAFU0185 on May 11, 2007, 08:09:52 AM
i cant even get mine to install on the default theme there is a bug on line 83 of sbox_setup.php and i get the following error
Incorrect table name ''
File: /home/virtual/site57/fst/var/www/html/smf/sbox_setup.php
Line: 83
i did a manual install and yes im sure of my edits i have checked them 20 times so after doing the manual edits and copying the required files to the server all i have to do to complete the install is runn sbox_setup.php but this is when i get that error. so it would apear that no it does not work with 1.1.12

edit: it is a buggy file ive fixed it
Title: Re: SMF Shoutbox
Post by: Eleaz on May 12, 2007, 12:11:51 AM
Anyone knows how to change the Colour of the name who shouted in the shoutbox according to the colours in the online member list ?
Title: Re: SMF Shoutbox
Post by: Mallard_NX01 on May 13, 2007, 01:24:38 AM
Quote from: SNAFU0185 on May 11, 2007, 08:09:52 AM
i cant even get mine to install on the default theme there is a bug on line 83 of sbox_setup.php and i get the following error
Incorrect table name ''
File: /home/virtual/site57/fst/var/www/html/smf/sbox_setup.php
Line: 83
i did a manual install and yes im sure of my edits i have checked them 20 times so after doing the manual edits and copying the required files to the server all i have to do to complete the install is runn sbox_setup.php but this is when i get that error. so it would apear that no it does not work with 1.1.12

edit: it is a buggy file ive fixed it

Very new here.

SNAFU0185: How?
Title: Re: SMF Shoutbox
Post by: qubbah on May 13, 2007, 04:17:36 AM
Quote from: qubbah on May 10, 2007, 03:02:21 AM
how can i make shoutbox that can writing colum from the bottom of the shoutbox like mirc...

anybody can answer this?.....................
Title: Re: SMF Shoutbox
Post by: Kettu on May 13, 2007, 04:50:55 AM
Quote from: qubbah on May 13, 2007, 04:17:36 AM
Quote from: qubbah on May 10, 2007, 03:02:21 AM
how can i make shoutbox that can writing colum from the bottom of the shoutbox like mirc...

anybody can answer this?.....................
As I remember that question is already answered in this thread.
Title: Re: SMF Shoutbox
Post by: qubbah on May 13, 2007, 10:43:35 AM
Quote from: Kettu on May 13, 2007, 04:50:55 AM
Quote from: qubbah on May 13, 2007, 04:17:36 AM
Quote from: qubbah on May 10, 2007, 03:02:21 AM
how can i make shoutbox that can writing colum from the bottom of the shoutbox like mirc...

anybody can answer this?.....................
As I remember that question is already answered in this thread.

i cant find it...can u tell me where the right place....
Title: Re: SMF Shoutbox
Post by: Kettu on May 13, 2007, 11:52:02 AM
Quote from: qubbah on May 13, 2007, 10:43:35 AM
Quote from: Kettu on May 13, 2007, 04:50:55 AM
Quote from: qubbah on May 13, 2007, 04:17:36 AM
Quote from: qubbah on May 10, 2007, 03:02:21 AM
how can i make shoutbox that can writing colum from the bottom of the shoutbox like mirc...

anybody can answer this?.....................
As I remember that question is already answered in this thread.

i cant find it...can u tell me where the right place....

I also would have to search for it.
Title: Re: SMF Shoutbox
Post by: puma07 on May 14, 2007, 05:13:06 AM
i can't use VietNamese with SMF Shoutbox.
please help me:

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
File: /home/tutonli/public_html/forum/Sources/sboxDB.php
Dòng: 188

Title: Re: SMF Shoutbox
Post by: SNAFU0185 on May 14, 2007, 11:12:48 PM
Quote from: Mallard_NX01 on May 13, 2007, 01:24:38 AM
Quote from: SNAFU0185 on May 11, 2007, 08:09:52 AM
i cant even get mine to install on the default theme there is a bug on line 83 of sbox_setup.php and i get the following error
Incorrect table name ''
File: /home/virtual/site57/fst/var/www/html/smf/sbox_setup.php
Line: 83
i did a manual install and yes im sure of my edits i have checked them 20 times so after doing the manual edits and copying the required files to the server all i have to do to complete the install is runn sbox_setup.php but this is when i get that error. so it would apear that no it does not work with 1.1.12

edit: it is a buggy file ive fixed it

Very new here.

SNAFU0185: How?
Ok ive had a few emails and messages on how i fixed this, the file sbox_setup.php is buggy and wont work perhapse something to do with the sql my server is running im not sure but here is the fix 
1) log into your mysql on your server select your smf data base then click on sql query in the box enter the following code

CREATE TABLE `sbox_content` ( `id` int(11) unsigned NOT NULL auto_increment, `time` int(10) unsigned NOT NULL, `ID_MEMBER` mediumint unsigned NOT NULL, `content` text NOT NULL, PRIMARY KEY (`id`));

subit it

2) edit sbox_setup.php and comment out lines 75-83 by placing a // in front of each lineyour code for those lines should now look like this

//$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__);

save and upload then run the file on ya server your shoutbox should now work

hope this was helpfull
Title: Re: SMF Shoutbox
Post by: S!LiC0N on May 15, 2007, 06:24:55 PM
I moved with the forums and everything works fine - except for the shoutbox.

I get a 404 coz the box cannot be loaded.
The path is like  /boardSources/sboxDB.php? so there is missing a slash / between board and Sources.

When i set $boardurl from
http://mywebsite.com/board
to
http://mywebsite.com/board/
(with the trailing slash)

the shoutbox works again, but now i have 2 slashes in every URL i load... so its like
http://mywebsite.com/board//index.php?board=18.0

Where can i add this additional slash in the shoutbox files to keep me Settings.php untouched of that?

Thx in advance.
Title: Re: SMF Shoutbox
Post by: LiteSpeed on May 15, 2007, 10:59:25 PM
im currenty trying to install this mod, however when i tried to apply the mod the following error appears :

Database Error
Incorrect table name ''
File: /home/aaaa/domains/aaaa.com/public_html/forum/Packages/temp/sbox_setup.php
Line: 83

any idea to resolve it ?
Title: Re: SMF Shoutbox
Post by: Eleaz on May 16, 2007, 12:12:46 AM
Quote from: Eleaz on May 12, 2007, 12:11:51 AM
Anyone knows how to change the Colour of the name who shouted in the shoutbox according to the colours in the online member list ?

Please, Anyone ?
Title: Re: SMF Shoutbox
Post by: SNAFU0185 on May 16, 2007, 12:24:01 AM
Quote from: LiteSpeed on May 15, 2007, 10:59:25 PM
im currenty trying to install this mod, however when i tried to apply the mod the following error appears :

Database Error
Incorrect table name ''
File: /home/aaaa/domains/aaaa.com/public_html/forum/Packages/temp/sbox_setup.php
Line: 83

any idea to resolve it ?
umm you obviously didnt see my post on this error a couple of posts up on this page
Title: Date & Time...
Post by: rayco on May 17, 2007, 07:36:22 AM
How do i change  [Day and Time] to [Day Date & Time] or maybe instead [Thu 6:31] to [05-17-07 6:31]...thanks much.
Title: Re: SMF Shoutbox
Post by: lightning_strike on May 18, 2007, 05:03:19 PM
Hello all,

I loaded the sbox 1.6  and I get the 
500 server error.
I read thru all the post here and my source dir is read and write for all
I have the files in the right place..

when I type in the text box and send the text  the error goes away for a min and the text appears I can also see others text , but only when I send a msg,  if you send text the msg box will show the text  but after about a min it will go to server error again.  the msg's don't stay in the box it goes back and forth when you send msg's.

my path is not smf/sources  rather it is  /sources  the forum is root.

please look at  www.wauchsam.com  and please advise what is going on with it..

Thanks

Wauchsam

[email protected]
Title: Re: SMF Shoutbox
Post by: Gà Mái on May 19, 2007, 12:42:47 PM
I use sbox_v1.16 and sometimes, it work not ok.
It apear my board in the box, (not my word just type)
"database not..
Pls retry.."

help me !
Title: Re: SMF Shoutbox
Post by: Penelope on May 21, 2007, 12:35:26 PM
Hi all. I've just installed the shoutbox v1.16, but unfortantly the smileys for normal registered members not always work :(

As guest i see the smileys and as an admin also, but as a normal member i don't see the smileys.

If a member is named for example test and my forum link is http://www.mywebsite.com/testforum/

The address of the smiley image for that registered member will be and will not shown:

http://www.mywebsite.com/<b><u>test</u></b>forum/Smileys/default/smiley.gif

Hope someone knows the fix of this! Because now members with a similair name as the link of the forum or website will not see smilies..:(

Greets,

Penelope :)
Title: Re: SMF Shoutbox
Post by: bbulldog on May 22, 2007, 02:40:43 AM
your links are wrong
Title: Re: SMF Shoutbox
Post by: softtouch on May 22, 2007, 04:49:53 AM
I have installed 1.16 on SMF 1.1.2, in installs fine, but the iframe just diaplays an error message that firefox can not find <my domain name>\source, so the iframe just display the firefox page not found.
Any idea?
Title: Re: SMF Shoutbox
Post by: bbulldog on May 22, 2007, 08:54:59 AM
have just made up the shoutbox on its own page and open all the time ie. no shrink option as it is not needed. It also has a list of members in the shoutbox.
As soon as i get the mod for this i will get it uploaded.
Title: Re: SMF Shoutbox
Post by: John S on May 22, 2007, 08:25:53 PM
Quote from: Penelope on May 21, 2007, 12:35:26 PM
Hi all. I've just installed the shoutbox v1.16, but unfortantly the smileys for normal registered members not always work :(

As guest i see the smileys and as an admin also, but as a normal member i don't see the smileys.

If a member is named for example test and my forum link is http://www.mywebsite.com/testforum/

The address of the smiley image for that registered member will be and will not shown:

http://www.mywebsite.com/<b><u>test</u></b>forum/Smileys/default/smiley.gif

Hope someone knows the fix of this! Because now members with a similair name as the link of the forum or website will not see smilies..:(

Greets,

Penelope :)

i've got the same issue!! - however the links work when shoutbox is viewed by admin -- all else the smilies link has <b> and <u>!! how do i remove this?
Title: Re: SMF Shoutbox
Post by: JhonV on May 24, 2007, 09:53:05 PM
   
All perfect one except the power to install in other themes. Simmple I cannot. .no is no file to form like which it says in front page. Somebody that helps me to install it in other themes
Title: Re: SMF Shoutbox
Post by: Kettu on May 25, 2007, 03:41:59 PM
Just add
  // display shoutbox
  if (function_exists('sbox')) sbox();


to the Boardindex.template.php of your theme.

Above: Add before
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))


Below: Add before
// Here's where the "Info Center" starts...
Title: Re: SMF Shoutbox
Post by: Mortal159 on May 26, 2007, 04:00:22 PM
thanks i needed that code!
Title: Re: SMF Shoutbox
Post by: Con on May 27, 2007, 06:45:42 PM
How can I ban people from the shoutbox?
Title: Re: SMF Shoutbox
Post by: qubbah on May 28, 2007, 12:33:18 AM
how can i change to start typing from the bottom like mirc
Title: Re: SMF Shoutbox
Post by: bbulldog on May 28, 2007, 06:05:03 AM
Quote from: qubbah on May 28, 2007, 12:33:18 AM
how can i change to start typing from the bottom like mirc
what exactly do you mean as i dont know mirc. do you meant the text input box or the main messages with the latest message at the bottom?
Title: Re: SMF Shoutbox
Post by: infamousedice on May 28, 2007, 12:55:38 PM
how could you prone the shout box
Title: Re: SMF Shoutbox
Post by: shinnster on May 29, 2007, 07:16:45 PM
niceshoutbox, looks cool and serves the purpose but when ever my page refreashes it gets an error message (within IE)

error : parent document sbox.ts is null or not an object.

this is one of thiose little browser eror messages and i click on it to give more details.
is this something to do with the mod not installing correctly?
Title: Re: SMF Shoutbox
Post by: lightning_strike on May 29, 2007, 09:03:51 PM
shinnster--- go to the lang file and look for sbox  and change it there

Title: Re: SMF Shoutbox
Post by: sambalis on June 02, 2007, 12:23:04 AM
Good morning!
We need a Greek language version.
Is there any plan for this in the future?
Title: Re: SMF Shoutbox
Post by: alex_zmn on June 02, 2007, 01:30:26 AM
I have installed the latest version of the shoutbox but I am receiving this error message.

The requested URL /forumSources/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.



It has been mentioned previously too in the second post in this thread by some member but there is no solution provided I suppose. Please help so that it works properly.
Title: Re: SMF Shoutbox
Post by: ekfaysal on June 02, 2007, 01:59:11 PM
hello
i downloaded and installed 1.16 version.
now in shout window it show this error

QuoteTemplate Parse Error!
There was a problem loading the /Themes/default/languages/sbox.english.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
Please help me with this
Title: Re: SMF Shoutbox
Post by: Kettu on June 02, 2007, 02:00:25 PM
Quote from: sambalis on June 02, 2007, 12:23:04 AM
Good morning!
We need a Greek language version.
Is there any plan for this in the future?
I don't think so. But use the sbox.english.php and translate it by yourself. You have to make a copy and call it sbox.greek.php
Title: Re: SMF Shoutbox
Post by: mgimadu on June 08, 2007, 05:54:49 AM
Hello, this mod turkish charecter problems :(

İ,Ğ,Ü,Ç, :(
Title: Re: SMF Shoutbox
Post by: djgix19 on June 08, 2007, 02:54:28 PM
i've got a problem with the dilber MC theme...where do i have to put the code
// display shoutbox
  if (function_exists('sbox')) sbox();
Title: Re: SMF Shoutbox
Post by: Kettu on June 09, 2007, 04:52:49 PM
Quote from: djgix19 on June 08, 2007, 02:54:28 PM
i've got a problem with the dilber MC theme...where do i have to put the code
// display shoutbox
  if (function_exists('sbox')) sbox();

Before "Here is where the infobox starts" at your boardindex.template.php or similar.
Title: Re: SMF Shoutbox
Post by: ninad_laud on June 10, 2007, 01:42:34 AM
hello, i am new to this forum and also in web designing i have just started to learn this stuff..
and as u know tht i have just started i have lot of problem and question abt it...
1) i am trying  using smf shoutbox 1.16 with Aa new Damage but it is not working but when i switch to default theme it is working so wat should be done by me in order to start the soutbox with Aa New DAmage theme (plzz explain the detail procedure as im a newbie)
2) is it possible to change the appearence of the shoutbox??? i want the shout box to appear on the left hand side. plzz click on the link http://luaboard.sytes.net/  on the link u will find a shoutbox i want my shoutbox to appear exactly on the same side with same space utilisation so it will be of great help if u tell me what setting should be done by me for the same..


thanks in advance
sorry for my bad english and if i wrote anything wrong!!!
Title: Re: SMF Shoutbox
Post by: h4ni on June 10, 2007, 06:24:34 AM
hello
i cant delet messages from the shoutbox
when i try te delet i get my forum displayed in the frame and post non deleted
can you help me!
Title: Re: SMF Shoutbox
Post by: djgix19 on June 10, 2007, 07:28:27 AM
Quote from: Kettu on June 09, 2007, 04:52:49 PM
Quote from: djgix19 on June 08, 2007, 02:54:28 PM
i've got a problem with the dilber MC theme...where do i have to put the code
// display shoutbox
  if (function_exists('sbox')) sbox();

Before "Here is where the infobox starts" at your boardindex.template.php or similar.

well...i wanna put it upon the forums...
Title: Re: SMF Shoutbox
Post by: Kettu on June 10, 2007, 08:11:26 AM
Quote from: djgix19 on June 10, 2007, 07:28:27 AM
Quote from: Kettu on June 09, 2007, 04:52:49 PM
Quote from: djgix19 on June 08, 2007, 02:54:28 PM
i've got a problem with the dilber MC theme...where do i have to put the code
// display shoutbox
  if (function_exists('sbox')) sbox();

Before "Here is where the infobox starts" at your boardindex.template.php or similar.

well...i wanna put it upon the forums...
You mean above the forums?

Add it before
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
Title: Re: SMF Shoutbox
Post by: djgix19 on June 10, 2007, 10:14:26 AM
Quote from: Kettu on June 10, 2007, 08:11:26 AM
Quote from: djgix19 on June 10, 2007, 07:28:27 AM
Quote from: Kettu on June 09, 2007, 04:52:49 PM
Quote from: djgix19 on June 08, 2007, 02:54:28 PM
i've got a problem with the dilber MC theme...where do i have to put the code
// display shoutbox
  if (function_exists('sbox')) sbox();

Before "Here is where the infobox starts" at your boardindex.template.php or similar.

well...i wanna put it upon the forums...
You mean above the forums?

Add it before
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))

sorry for my english...ok...now it's perfect...thanks a lot...
Title: Re: SMF Shoutbox
Post by: ninad_laud on June 10, 2007, 11:04:06 AM
hello, but der is no reply for my last post i am w8ing guys to get a reply for my post


thanks in advance
Title: Re: SMF Shoutbox
Post by: mgimadu on June 11, 2007, 10:07:05 AM
Hello, turkish charecter problems pls...
Title: Re: SMF Shoutbox
Post by: Moif on June 12, 2007, 06:18:14 AM
Hi guys,

Nice mod this. I've just about got it looking and working to my liking but I was wondering if theres a way to have the shoutbox show on only the board index and not on the new reply or post new topic pages etc etc.

Thanks :)
Title: Re: SMF Shoutbox
Post by: Kettu on June 12, 2007, 06:27:05 AM
Quote from: moif on June 12, 2007, 06:18:14 AM
Nice mod this. I've just about got it looking and working to my liking but I was wondering if theres a way to have the shoutbox show on only the board index and not on the new reply or post new topic pages etc etc.
Ahm, normally it IS only shown on the boardindex. I think you have added the code to the wrong file. You have to add the code at your BoardIndex.template.php!
Title: Re: SMF Shoutbox
Post by: Moif on June 12, 2007, 06:32:44 AM
Quote from: Kettu on June 12, 2007, 06:27:05 AM
Quote from: moif on June 12, 2007, 06:18:14 AM
Nice mod this. I've just about got it looking and working to my liking but I was wondering if theres a way to have the shoutbox show on only the board index and not on the new reply or post new topic pages etc etc.
Ahm, normally it IS only shown on the boardindex. I think you have added the code to the wrong file. You have to add the code at your BoardIndex.template.php!


I was just coming back to edit my post :)

I have indeed moved the code required to my index.template.php as I wanted it in a specific place. Now I know that it only shows on the index if I keep it in BoardIndex.template.php I'll move it back and have a play around :)

Thanks
Title: Re: SMF Shoutbox
Post by: Moif on June 12, 2007, 06:38:00 AM
One more question: I'm having trouble finding the code that will shift the input box and the submit button to the left hand side. I'd like to see if it looks better left justified and a bit shorter :)

Thanks
Title: Re: SMF Shoutbox
Post by: mgimadu on June 12, 2007, 02:16:32 PM
this mod have is Turkish charecter problemssss!!! please help me ! :'(


Problems charecter = Ş,ğ,Ç,ü,Ö,İ,ı....  help me, help me, help me!!!! pleaseeee
Site: www.forumgil.com

Please! :(

Regards...
Title: Re: SMF Shoutbox
Post by: Juris on June 13, 2007, 12:33:04 AM
i want my shoutbox to put in a board. i tried everything but the problem is i also see an error.

can u please help me how to do it?
Title: Re: SMF Shoutbox
Post by: chrusher on June 15, 2007, 10:47:11 PM
hi my question is.......

Notice: Use of undefined constant kayit1 - assumed 'kayit1' in /forum2/Sources/Load.php(1726) : eval()'d code on line 648

Notice: Use of undefined constant kayit2 - assumed 'kayit2' in /forum2/Sources/Load.php(1726) : eval()'d code on line 649

Notice: Use of undefined constant kayit3 - assumed 'kayit3' in /forum2/Sources/Load.php(1726) : eval()'d code on line 650

Notice: Use of undefined constant kayit4 - assumed 'kayit4' in /forum2/Sources/Load.php(1726) : eval()'d code on line 651

now i use the turkish template and this are the errors but when i try the english template everything works .........

Title: Re: SMF Shoutbox
Post by: Kettu on June 16, 2007, 04:24:46 PM
It currently doesn't work correct with    special characters like kyrillic etc.

Quote from: Juris on June 13, 2007, 12:33:04 AM
i want my shoutbox to put in a board. i tried everything but the problem is i also see an error.

can u please help me how to do it?
You should tell us the error, else we can't help you.
Title: Re: SMF Shoutbox
Post by: dork313 on June 16, 2007, 05:17:30 PM
I am getting an internal server error within the frame for the shoutbox and unable to post to it. Everything has installed correctly though. I've been reading through the pages and yes, I've tried chmodding it to 644 & 777 with no luck. Any suggestions please?
Title: Re: SMF Shoutbox
Post by: qubbah on June 16, 2007, 06:12:35 PM
still waiting for this

( how to make shoutbox to type from bottom.... like mirc chat. )
Title: Re: SMF Shoutbox
Post by: Kettu on June 17, 2007, 05:45:02 AM
Quote from: dork313 on June 16, 2007, 05:17:30 PM
I am getting an internal server error within the frame for the shoutbox and unable to post to it. Everything has installed correctly though. I've been reading through the pages and yes, I've tried chmodding it to 644 & 777 with no luck. Any suggestions please?
sboxDB.php change from 777 to 644.

@qubbah
Just check the sbox.template.php for this and change the position.
Title: Re: SMF Shoutbox
Post by: qubbah on June 17, 2007, 08:48:07 AM
i was try it in sbox.template...
but cant be done...
its says template parse error...

can u tell what must i change...?


so much thanks
Title: Re: SMF Shoutbox
Post by: dork313 on June 17, 2007, 09:47:16 AM
Quote from: Kettu on June 17, 2007, 05:45:02 AM
Quote from: dork313 on June 16, 2007, 05:17:30 PM
I am getting an internal server error within the frame for the shoutbox and unable to post to it. Everything has installed correctly though. I've been reading through the pages and yes, I've tried chmodding it to 644 & 777 with no luck. Any suggestions please?
sboxDB.php change from 777 to 644.

@qubbah
Just check the sbox.template.php for this and change the position.

Like I said, I tried it both ways, 644 and 777. Not to sound rude but I read through the thread before I posted my question.
Title: Re: SMF Shoutbox
Post by: Kettu on June 17, 2007, 11:51:38 AM
Quote from: dork313 on June 17, 2007, 09:47:16 AM
Like I said, I tried it both ways, 644 and 777. Not to sound rude but I read through the thread before I posted my question.
Unfortunately that is really uncommon. But good to know that there are people around here who do this.
But, this is the only solution I know. Sorry.

@qubbah
Please post the code of the sbox.template.php It's easier to help with coding problems if we see the code. Else I would have to download it first, find the file, open it with an editor etc. And don't take it amiss but I have better to do than to do that for every third poster. ;)
Title: Re: SMF Shoutbox
Post by: qubbah on June 17, 2007, 01:22:59 PM
Quote from: Kettu on June 17, 2007, 11:51:38 AM

@qubbah
Please post the code of the sbox.template.php It's easier to help with coding problems if we see the code. Else I would have to download it first, find the file, open it with an editor etc. And don't take it amiss but I have better to do than to do that for every third poster. ;)

HERE THIS
Title: Re: SMF Shoutbox
Post by: Kettu on June 18, 2007, 02:49:18 AM
Okay, thanks. I meant with [code][/code], but this is fine, too.

I think it is the following code
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="center" valign="middle">
        <form name="sbox" action="' . $sourceurl . '/sboxDB.php?action=write" method="post" target="sboxframe" style="margin: 0;" onSubmit="return submitSbox();" enctype="multipart/form-data" accept-charset="' . $context['character_set'] . '">
    <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>';
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" onFocus="if (this.value==\'' . $txt['sbox_TypeShout'] . '\') this.value = \'\';" onBlur="if (this.value==\'\') this.value=\'' . $txt['sbox_TypeShout'] . '\';" />&nbsp;<input type="submit" class="input" value="&nbsp;shout&nbsp;" />';
} else {
  // guest is not allowed to shout ~~> show message
  echo $txt['sbox_Login'];
}
  echo '
          </form>
                  <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                    document.sbox.sboxText.value = \'' . $txt['sbox_TypeShout'] . '\';
                  // ]]></script>
</td>
</tr>';

if (($modSettings['sbox_SmiliesVisible'] == "1") && ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1"))) {
    sbox_loadSmileys();
    echo '
              <tr>
                <td align="center">';
    sbox_printSmileys();
    echo '
                </td>
              </tr>';
}

  echo'
<tr>
<td>
      <iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>
</td>
</tr>
</table>


Change this part to:

<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td>
      <iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>
</td>
</tr>
                                                         <tr>
<td align="center" valign="middle">
        <form name="sbox" action="' . $sourceurl . '/sboxDB.php?action=write" method="post" target="sboxframe" style="margin: 0;" onSubmit="return submitSbox();" enctype="multipart/form-data" accept-charset="' . $context['character_set'] . '">
    <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>';
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" onFocus="if (this.value==\'' . $txt['sbox_TypeShout'] . '\') this.value = \'\';" onBlur="if (this.value==\'\') this.value=\'' . $txt['sbox_TypeShout'] . '\';" />&nbsp;<input type="submit" class="input" value="&nbsp;shout&nbsp;" />';
} else {
  // guest is not allowed to shout ~~> show message
  echo $txt['sbox_Login'];
}
  echo '
          </form>
                  <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                    document.sbox.sboxText.value = \'' . $txt['sbox_TypeShout'] . '\';
                  // ]]></script>
</td>
</tr>';

if (($modSettings['sbox_SmiliesVisible'] == "1") && ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1"))) {
    sbox_loadSmileys();
    echo '
              <tr>
                <td align="center">';
    sbox_printSmileys();
    echo '
                </td>
              </tr>';
}

  echo'
</table>

I have no guarantee, if it works, because I didn't test it.
Title: Re: SMF Shoutbox
Post by: qubbah on June 18, 2007, 03:01:39 AM
its work

how can i make scroll bar is scrolling down not up...
Title: Re: SMF Shoutbox
Post by: Kettu on June 18, 2007, 08:48:36 AM
Quote from: qubbah on June 18, 2007, 03:01:39 AM
its work
Cool :)

Quote from: qubbah on June 18, 2007, 03:01:39 AMhow can i make scroll bar is scrolling down not up...
Ahm, I don't know what you mean.
Title: Re: SMF Shoutbox
Post by: qubbah on June 18, 2007, 09:28:16 AM
ass u see the scrollbar of shoutbox is going up when the shoutbox is full...

how can i make it going down....
Title: Re: SMF Shoutbox
Post by: chrusher on June 18, 2007, 11:51:32 AM
hi my question is.......

Notice: Use of undefined constant kayit1 - assumed 'kayit1' in /forum2/Sources/Load.php(1726) : eval()'d code on line 648

Notice: Use of undefined constant kayit2 - assumed 'kayit2' in /forum2/Sources/Load.php(1726) : eval()'d code on line 649

Notice: Use of undefined constant kayit3 - assumed 'kayit3' in /forum2/Sources/Load.php(1726) : eval()'d code on line 650

Notice: Use of undefined constant kayit4 - assumed 'kayit4' in /forum2/Sources/Load.php(1726) : eval()'d code on line 651

now i use the turkish template and this are the errors but when i try the english template everything works .........

these cames in the shoutbox .....
does anybody knows a solution of my problem ......
Title: Re: SMF Shoutbox
Post by: Kettu on June 19, 2007, 02:05:24 AM
@qubbah & chrusher
I have no idea!
Title: Re: SMF Shoutbox
Post by: yoeri on June 19, 2007, 11:35:42 AM
Greate mod

but iam using also the mod SEO4SMF http://www.webmasterstalks.com/tpmod.html;dl=item48
is it possible to make it work whit seo4smf

no it works a litle bit can delet messages
Title: Re: SMF Shoutbox
Post by: crackyblue on June 21, 2007, 07:07:42 PM
Where can I change the code so that i can change the direction of the latest shout? Instead of scrolling up, i rather want to see a new shout at the bottom.. (mirc style)
Title: Re: SMF Shoutbox
Post by: feeble on June 22, 2007, 06:52:19 PM
Found a small bug, only really affect windows servers so I wouldnt worry about it to much
in sbox.template.php on line 9
find
$sourceurl = str_replace($boarddir, $boardurl, $sourcedir);
replace
$sourceurl = str_replace($boarddir, $boardurl, $sourcedir);
$sourceurl = str_replace('\\','/',$sourceurl);



Also, I love this mod, but I need it a little more powerful, in that I require segregated shoutboxs.
For example a different shoutbox per per board or article.

If not, would you mind if I produced an enchancement patch for this chat mod to go along side another mod, that wont affect this mod at all, but produce the results that I require?



Title: Re: SMF Shoutbox
Post by: thegrimreaper on June 24, 2007, 09:06:02 AM
good afternoon guys, i just read through all 55 pages of this thread and cant find the answer, i wonder if someone could tell me how to change the background colour of the shoutbox, i have done it once before but this time i cant seem to get it to work, and it escapes me totally how i did it before! any advice most appreciated

cheers

andy
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on June 25, 2007, 02:47:26 AM
Same boat...sort of.

First I have tried almost all the shout boxes in the download section and the ultilmate one appears to work but will not scroll and if I put it at the bottom of the forum it scrolls---also if I turn off scrolling there should---by all rights---appear the little scrolling bar (like the browsers have) but nothing. This makes the shoutbox just keep growing in length...not nice.

I am about to try this other one and it occurs to me....

every single shoutbox says to use the board.index file...why do some themes not have this and so where to put the code to show it...ideally would like to have it directly below the news fader in the forums.
Title: Re: SMF Shoutbox
Post by: Con on June 25, 2007, 11:06:08 AM
It doesnt want to work anymore now that I upgraded to 1.1.3
Please fix this as soon as posible, my forum members are going beserk D:
Title: Re: SMF Shoutbox
Post by: bbulldog on June 26, 2007, 03:15:34 PM
How did you upgrade, might be that you need to install the shoutbox again.
Title: Re: SMF Shoutbox
Post by: Con on June 26, 2007, 03:28:20 PM
Quote from: bbulldog on June 26, 2007, 03:15:34 PM
How did you upgrade, might be that you need to install the shoutbox again.
I upgraded by uploading the new files and then acivating the update.php

and after that I tried to install the shoutbox again, but it said it wasnt the right version or a corupt file.
Title: Re: SMF Shoutbox
Post by: vince451 on June 27, 2007, 03:38:06 AM
Hello,
i had smf shoutbox installed without any probs @ OrangeLt07 theme
Yesterday uploaded some english & utf8 english lang files @ theme directory cause i had issues with SMF Arcade installation.
Since then i receive the following msg inside the shoutbox:

Quote
Notice: Undefined index: nstat in /home/******/public_html/internet_tv/Sources/Load.php(1730) : eval()'d code on line 47

Notice: Undefined index: nstat in /home/******/public_html/internet_tv/Sources/Load.php(1730) : eval()'d code on line 118

[June 21, 2007, 07:20:04 PM] [Automatic refresh disabled due to inactivity]


Any help would really appreciated

Thanks,
Vince
Title: Re: SMF Shoutbox
Post by: bbulldog on June 27, 2007, 10:47:13 AM
Quote from: Con on June 26, 2007, 03:28:20 PM
Quote from: bbulldog on June 26, 2007, 03:15:34 PM
How did you upgrade, might be that you need to install the shoutbox again.
I upgraded by uploading the new files and then acivating the update.php

and after that I tried to install the shoutbox again, but it said it wasnt the right version or a corupt file.

you could try this, open up the zip file from the shoutbox and using a text editor open the package-info.xml
look for something like this

<install for="1.1, 1.1.1, 1.1.2">

just add your version as it should still work on version 1.1.3

<install for="1.1, 1.1.1, 1.1.2, 1.1.3">

Save it and make a new zip file to upload to your package manager anfter deleting the original version.
Title: Re: SMF Shoutbox
Post by: TrueSatan on June 27, 2007, 11:01:12 AM
@
Quote from: bbulldog on June 27, 2007, 10:47:13 AM
Quote from: Con on June 26, 2007, 03:28:20 PM
Quote from: bbulldog on June 26, 2007, 03:15:34 PM
How did you upgrade, might be that you need to install the shoutbox again.
I upgraded by uploading the new files and then acivating the update.php

and after that I tried to install the shoutbox again, but it said it wasnt the right version or a corupt file.

you could try this, open up the zip file from the shoutbox and using a text editor open the package-info.xml
look for something like this

<install for="1.1, 1.1.1, 1.1.2">

just add your version as it should still work on version 1.1.3

<install for="1.1, 1.1.1, 1.1.2, 1.1.3">

Save it and make a new zip file to upload to your package manager anfter deleting the original version.
@ bbulldog

It's best to also get people to change the uninstall versioning too...personally I find it easier to just make the changes for them and post the package as an attachment...saves a lot of arguing...oh and while a zip file is fine Linux users might choose to use a tar file instead.

@ feeble

sbox.template.php doesn't have that code at line 9 or anywhere in it that I can find. I'm quite sure that your posting refers to mbirth's version not this version (deep's) and there the code is as you state and it is a useful bug fix.
Title: Re: SMF Shoutbox
Post by: Con on June 27, 2007, 01:35:56 PM
Quote from: bbulldog on June 27, 2007, 10:47:13 AM
Quote from: Con on June 26, 2007, 03:28:20 PM
Quote from: bbulldog on June 26, 2007, 03:15:34 PM
How did you upgrade, might be that you need to install the shoutbox again.
I upgraded by uploading the new files and then acivating the update.php

and after that I tried to install the shoutbox again, but it said it wasnt the right version or a corupt file.

you could try this, open up the zip file from the shoutbox and using a text editor open the package-info.xml
look for something like this

<install for="1.1, 1.1.1, 1.1.2">

just add your version as it should still work on version 1.1.3

<install for="1.1, 1.1.1, 1.1.2, 1.1.3">

Save it and make a new zip file to upload to your package manager anfter deleting the original version.
It worked! but now I have strange errors, and suddenly a smiley box?
http://transformers.twisted-spoon.com/
Title: Re: SMF Shoutbox
Post by: TrueSatan on June 27, 2007, 01:46:26 PM
@ Con

Previously I see that you were using Mbirth's version...this is the original deep version...have you become muddled between the two?
Title: Re: SMF Shoutbox
Post by: Con on June 27, 2007, 02:00:37 PM
Ehm.. huh? ^^; now I'm lost.. I've been using the 'SMF shoutbox' for a while now... thread title says SMF shoutbox..?

*edit* Aaah I figured out what you ment, very confusing two threads/mods with same title. I got it to work now, but it wont let me save any edits to it, like the fontsize and colors..
Title: Re: SMF Shoutbox
Post by: TrueSatan on June 27, 2007, 02:16:00 PM
@ Con

Deep created this SMF Shoutbox mod but then, for whatever reason, he stopped developing and supporting it. With his permission Mbirth made a new SMF Shoutbox that used Deep's code but reworked and added to it. Mbirth's version is also called SMF Shoutbox and from postings in the topic for it I see that you were using Mbirth's version.

The topic for Mbirth's version is:

http://www.simplemachines.org/community/index.php?topic=115579.100 (http://www.simplemachines.org/community/index.php?topic=115579.100)

...and the mod itself is on this link:

http://custom.simplemachines.org/mods/index.php?mod=412 (http://custom.simplemachines.org/mods/index.php?mod=412)

Mbirth has kept his version up to date but has yet to post an update for SMF 1.1.3 Updating it would be easy and if you need that done for you please post on the above mentioned topic and I or another member will look into it.

EDIT

Having checked Mbirth's version I see that although it isn't shown as being so in the compatibility list on the mod page it is compatible with SMF 1.1.3 already.
Title: Re: SMF Shoutbox
Post by: ekfaysal on June 30, 2007, 01:58:30 PM
QuoteTemplate Parse Error!
There was a problem loading the /Themes/default/languages/sbox.english.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected $end

this is showing please tell me what happen
Title: Re: SMF Shoutbox
Post by: AlonZo on July 01, 2007, 10:34:49 AM
Hi I need help with installing it.

I uploaded it and installed the files with the very easy mods interface, and it has a V so it's probably suppose to work.

But when I check the site it doesn't show.. I'm currently using a custom theme "pdx-dk 09" so do I have to insert a special code somewhere?
Title: Re: SMF Shoutbox
Post by: vince451 on July 01, 2007, 11:08:58 AM
Quote from: vince451 on June 21, 2007, 03:28:07 PM
Hello,
i had smf shoutbox installed without any probs @ OrangeLt07 theme
Yesterday uploaded some english & utf8 english lang files @ theme directory cause i had issues with SMF Arcade installation.
Since then i receive the following msg inside the shoutbox:

Quote
Notice: Undefined index: nstat in /home/******/public_html/internet_tv/Sources/Load.php(1730) : eval()'d code on line 47

Notice: Undefined index: nstat in /home/******/public_html/internet_tv/Sources/Load.php(1730) : eval()'d code on line 118

[June 21, 2007, 07:20:04 PM] [Automatic refresh disabled due to inactivity]


Any help would really appreciated

Thanks,
Vince

Anyone that can provide any valueble info?

Vince
Title: Re: SMF Shoutbox
Post by: rockriro on July 01, 2007, 05:05:55 PM
i dnloaded the sbox....something file...but dunno what should i do with it...
i pasted the // display shoutbox
&nbsp; if (function_exists('sbox')) sbox();
text on the right place but i dont know what should i do with the file...
tell me please
Title: Re: SMF Shoutbox
Post by: rockriro on July 01, 2007, 05:31:57 PM
i got it working....
now, it's tooo white for my default skin...
can i change background?
Title: Re: SMF Shoutbox
Post by: canuckguy on July 04, 2007, 06:56:40 PM
Ive been looking FOREVER in the files, how do I change the title of the shoutbox from SMF Shoutbox to something custom?  I want it to say The INFO ******box......for my forum, but I cant find any file to edit the SMF Shoutbox title at the top of the shoutbox.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 04, 2007, 07:18:53 PM
Not sure but I was trying to do the same thing for one of the sites I co-manage and I think it is the sbox.english.php file

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


change the red part to the name you wish it to be then upload and overwrite the other file on your server.

As I said I think that is the file...I co-manage a site where I do not have server access so am waiting for them to upload the file.

You can see it at House of Graves (http://forums.houseofgraves.com/index.php)

The one we have at our site is the one that came with the portal software. DreamSlayer Artworks (http://www.dreamslayerartworks.com/manor/index.php)
Title: Re: SMF Shoutbox
Post by: bobes on July 07, 2007, 11:09:47 AM
Hello Community,
I've been searching for solution and reading tips for 3 days, but I didnt find how to solve my problem, so i would like to ask for help:

I installed SMF Shoutbox without any error message - so I suppose it was installed properly. I see Shoutbox in Admin->Packages as installed, but I dont see Shoutbox on index page (i.e. doesnt work) nor in Admin Panel -> Features and Options....
I tried to unistall Shoutbox, but uninstalling Process returns: "You cannot install new package, because one or more files ar not writable" (or something like that).

I am using SMF ver.1.1.2 Default theme and sbox_v.1.16.

If anyone could help me with some tips or tricks how to make Shoutbox working, it would be highly appreciated.
Eh, have to say i am not very familiar with php....

Thanks in advance.
bobes
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 08, 2007, 12:39:36 AM
@bobes:

have you done the following that is posted at the bottom of the page where you downloaded it?

to make the shoutbox work with other themes, you have to do the following:

Add the code

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


at the position you want the shoutbox to appear. (Mostly you will put this into BoardIndex.template.php.)



It says to do it in the boardindex.template.php file but some themes just don't have that critter so you need to go and put it into the index.template.php file instead.

You also need to go into your server files and locate all the files it installed (you can see the list in the admin panel of your site) then change the permissions to 777.

When you return to the site it should be showing in the admin section---once you refresh the page a few times.

BTW, if anyone is interested...that file I mentioned in the post to change the name is the right one.
Title: Re: SMF Shoutbox
Post by: bobes on July 08, 2007, 12:09:36 PM
@DarkAngel,
thanks for quick response. Maybe my english is not so good to describe my problem clearly enough. I installed SB, got a message "The package was installed successfully......", but I dont see SB on index (Start) page of the Board nor in Admin Panel at all.
I am not using another Theme...I dont see SB even when I am using default theme. I tried all suggestions by you and other people in this thread, but without success.

I see this part
"// display shoutbox
  if (function_exists('sbox')) sbox();"
in deault theme BoardIndex.template.php - but nothing happens - SB doesnt work for me.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 08, 2007, 04:59:22 PM
Hi there,

your english is very good and I understand you well. I don't know why it will not show other than maybe all the files did not get uploaded.

In admin/packages/browse packages:

There should be a list of all your mods that you have installed with links to remove/list files

This is the list for the sbox_v1.16 that is installed at the site I mentioned:

   1.  chat-inbound_GSM.wav (6560 bytes)
   2. package-info.xml (7663 bytes)
   3. sbox.php (1970 bytes)
   4. sbox.english.php (2009 bytes)
   5. sbox.german.php (2230 bytes)
   6. sbox.template.php (12407 bytes)
   7. sbox_110.mod (10086 bytes)
   8. sbox_111.mod (11091 bytes)
   9. sbox_112.mod (10034 bytes)
  10. sbox_113.mod (10445 bytes)
  11. sbox_latest.xml (12064 bytes)
  12. sbox_refresh.gif (614 bytes)
  13. sbox_remove.php (1738 bytes)
  14. sbox_setup.php (3420 bytes)
  15. sbox_upgrade.php (2857 bytes)
  16. sboxDB.php (15634 bytes)
  17. sbox.french.php (2241 bytes)
  18. TODO (546 bytes)

Go to your server and see if they are all in there. Since I do not have access to their server I have no idea where they got installed so check every folder...my guess would be to start with the theme folder.

You can open the zip on your computer then if there is a missing file on the server just upload it....make sure you backup your site first.

Then after you upload it go back to your site and open in a new window---you might have to refresh a few times to see if but see if that helps.

If you want you can email me and I can try tohelp more but I would need to have temp admin to do that, but do let us know what happens.

Mary



Quote from: bobes on July 08, 2007, 12:09:36 PM
@DarkAngel,
thanks for quick response. Maybe my english is not so good to describe my problem clearly enough. I installed SB, got a message "The package was installed successfully......", but I dont see SB on index (Start) page of the Board nor in Admin Panel at all.
I am not using another Theme...I dont see SB even when I am using default theme. I tried all suggestions by you and other people in this thread, but without success.

I see this part
"// display shoutbox
  if (function_exists('sbox')) sbox();"
in deault theme BoardIndex.template.php - but nothing happens - SB doesnt work for me.
Title: Re: SMF Shoutbox
Post by: tL0z on July 08, 2007, 06:58:07 PM
Hi,

How can I make the shoutbox appear minimized by default?

Thanks
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 08, 2007, 07:01:13 PM
Quote from: tL0z on July 08, 2007, 06:58:07 PM
Hi,

How can I make the shoutbox appear minimized by default?

Thanks

If you mean smaller then you need to choose a size in the file to edit. But if you mean "folded up" on the screen then I have no clue, sorry.
Title: Re: SMF Shoutbox
Post by: Kettu on July 09, 2007, 03:00:44 AM
Hi bobes,
what kind of language do you use?
Title: Re: SMF Shoutbox
Post by: bobes on July 09, 2007, 07:22:47 AM
Hello Mary
Hi Kettu,

thank you both for your effort to help me...

I've re-installed the whole SMForum, installed SMF Shoutbox and....it works like a charm. I dont know why, probably I made something wrong in previous installation. But I am haaaaaaappy its working now.

Thanks again.

BTW, I use english language.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 09, 2007, 11:15:30 PM
Sometimes the software packages are not nice to us. I know that when I had a clean installation of just SMF/TinyPortal and an empty gallery the darn thing would not bridge, no matter what I did.

Later it did and I was lucky cause it was said that if images were present I would lose them...nope just the personal galleries died. and those are geting replaced.

Anyway sometimes the best way if you have nothing else installed is to start all over again....glad you got it to work...it is a good shoutbox.
Title: Re: SMF Shoutbox
Post by: Kettu on July 10, 2007, 03:58:38 AM
That's why I use as few mods as possible. But it's good to hear that it works now. :)
Title: Re: SMF Shoutbox
Post by: moneyearner on July 11, 2007, 11:40:55 AM
i dont know wether i missed something that was said but i installed the shoutbox and it went completely wrong i had to install a back up of subs.php to get the forum back active, but i realy wanted it installed but im to didgy now to try again.........

http://www.moneyearner.co.uk (http://www.moneyearner.co.uk)
Title: Re: SMF Shoutbox
Post by: Nesty on July 13, 2007, 08:48:22 AM
Hello,

Is it possible to display the member group colors from the users, if the doing a shout?

Br, Nesty
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 14, 2007, 03:49:19 AM
Good question nesty, I know the one in the Tiny Portal does it that way but I would like to see that feature with this one too, not just changing the font color of the posts.

Hopw someone comes in here and tells us.
Title: Re: SMF Shoutbox
Post by: tonzi on July 14, 2007, 05:19:53 AM
is there a way where i could integrate this shoutbox to mkportal? that would be awesome!
Title: Re: SMF Shoutbox
Post by: wara on July 15, 2007, 06:55:33 AM
Hi,
Thanks for a great mod. I installed it without problem. However, it doesn't display Thai font in the message correctly. It does display my username which is in Thai font correctly but fails to display the message correctly. I tried to change the font in the options but it didn't help. Does anyone have a clue about how to solve this problem? Thanks for your time.
Title: Re: SMF Shoutbox
Post by: Kettu on July 15, 2007, 07:09:52 AM
As already said currently the shoutbox has problems with non latin characters.
Title: Re: SMF Shoutbox
Post by: wara on July 15, 2007, 11:50:12 AM
Quote from: Kettu on July 15, 2007, 07:09:52 AM
As already said currently the shoutbox has problems with non latin characters.

I see. I think it's strange that it can display my name correctly but can't display the message even though they are both Thai characters.

So there is no way out but to use another shout box, I guess. I tried  nneonneo's Shoutbox demo and it displays Thai characters alright. Too bad it doesn't have the emoticons.
Title: Re: SMF Shoutbox
Post by: Kettu on July 15, 2007, 12:02:03 PM
I don't know why that happens because I don't program it.
Title: Re: SMF Shoutbox
Post by: Spike Saunders on July 16, 2007, 07:30:59 PM
This will sound like a wierd question, so bear with me here.

But is it possible to modify this so that the users may post into the chat anoynmously? Still have to be a registered member, but if they wish to, could click a checkmark box that says 'anonymous' so that nobody knows who posted it. And in the Admin CP perhaps the admin can see through that.

I want to offer my users the chatbox to voice their opinions on things, and not get yelled at for them. Easier when nobody knows who said it. :)

thanks
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 16, 2007, 08:32:50 PM
Quote from: Spike Saunders on July 16, 2007, 07:30:59 PM

I want to offer my users the chatbox to voice their opinions on things, and not get yelled at for them. Easier when nobody knows who said it. :)

thanks

Why not just tell them that they can say what they feel like without getting into trouble but that flaming or harrasment of the poster will result in immediate warning then banning if it doesn't stop.
Title: Re: SMF Shoutbox
Post by: tonzi on July 16, 2007, 11:14:32 PM
i wanted this to integrate with my portal :(( is that
possible?
Title: Re: SMF Shoutbox
Post by: Spike Saunders on July 16, 2007, 11:21:15 PM
Quote from: DarkAngel612 on July 16, 2007, 08:32:50 PM
Quote from: Spike Saunders on July 16, 2007, 07:30:59 PM

I want to offer my users the chatbox to voice their opinions on things, and not get yelled at for them. Easier when nobody knows who said it. :)

thanks

Why not just tell them that they can say what they feel like without getting into trouble but that flaming or harrasment of the poster will result in immediate warning then banning if it doesn't stop.
Well I would do that, but it doesn't work that way. Too many users have grudges against each other in personal and online. And since the forum is on debated issues, along with stuff like video gaming, it'd work better this way. Really I wnat it to be a way someone can just voice off their stress from a hard day at work, without his boss finding out... since lots of users, also work for another user... lol.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 17, 2007, 01:29:21 AM
@Spike

That does make it a bit of a sticky wicket doesn't it...I see your problem and yes I agree with you there. Hopefully someone will come up with a solution for your shoutbox

@tonzi

If you are using Tiny Portal then it should come with one already that is pretty good if you ask me...we love ours.
Title: Re: SMF Shoutbox
Post by: Joker Grafix on July 17, 2007, 02:51:06 AM
Just a quick question since I can't dig through 57 pages on here searching for a simple answer.

The shoutbox installed fine for me, and works etc. Is there an admin panel for the shoutbox though? I don't see it in my SMF Admin.

Thanks in advance.

-Joker
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 17, 2007, 02:59:33 AM
admin/configuration/features and options

it should be listed in that section...just look for shoutbox or whatever you renamed it to.
Title: Re: SMF Shoutbox
Post by: Joker Grafix on July 17, 2007, 03:10:31 AM
Ah thank you. I just found it and was coming back to modify my post. Thanks for the reply! Now to figure out these other mods I want to do to it I was reading on the other thread.

btw, which thread are we using?
Title: Re: SMF Shoutbox
Post by: tonzi on July 17, 2007, 03:28:30 AM
Quote from: DarkAngel612 on July 17, 2007, 01:29:21 AM
@tonzi

If you are using Tiny Portal then it should come with one already that is pretty good if you ask me...we love ours.
im using mkportal.  their forum is kinda slow as well as their support. it takes day sometimes they dont even answer it.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 17, 2007, 03:52:15 AM
ah yes, I remember that portal. It is a very good one but really needs to be translated from italian to english better. Yes he doesn't answer half the time andsometimes they get mad at the members trying to find answers...not very good to my way of thinking.

have you tried the phpbb one with your portal?
Title: Re: SMF Shoutbox
Post by: tonzi on July 17, 2007, 04:00:42 AM
lol im confused with the two threads. yah exactly there are incidents that they even get mad @ their members lol. nope coz i believed that smf is way better than phbb. i just wanted to put this shoutbox @ my main page which is mkportal. ^^ if that's  possible.
Title: Re: SMF Shoutbox
Post by: SouLFury on July 17, 2007, 08:05:45 PM
The was some ppl saying that the shouts dont work with IEXPLORER...

I have the same error.... with firefox is ok

With explorer, people cant shout, the messange doesnt appear

Can anyone help me????
Title: Re: SMF Shoutbox
Post by: mojodeli on July 19, 2007, 05:27:37 PM
my entire shoutbox is available to the public via google.

http://www.buddhasgarden.net/Sources/sboxDB.php?ts=1184880336

how do I fix this?
Title: Re: SMF Shoutbox
Post by: Kettu on July 20, 2007, 03:16:04 AM
Quote from: mojodeli on July 19, 2007, 05:27:37 PM
my entire shoutbox is available to the public via google.

http://www.buddhasgarden.net/Sources/sboxDB.php?ts=1184880336

how do I fix this?
If you deactive availability for guests.
Title: Re: SMF Shoutbox
Post by: tonzi on July 20, 2007, 07:39:52 AM
is the any way i could put this shoutbox in a block to my portal?
Title: Re: SMF Shoutbox
Post by: TrueSatan on July 20, 2007, 07:41:59 AM
If you use Tiny Portal it has its own shoutbox and their forums offer a second shoutbox as an alternative.  If you use Joomla they have their own shoutbox codes, likewise with most portals.
Title: Re: SMF Shoutbox
Post by: tonzi on July 20, 2007, 07:58:46 AM
i am using mkportal and their shoutbox sucks,  dont have an auto refresh, so i descided to use this shoutbox but i cant figured out how to put this shoutbox on my home page which is mkportal ^^
Title: Re: SMF Shoutbox
Post by: TrueSatan on July 20, 2007, 09:00:00 AM
Auto refresh can cause problems so their choice may be for a good reason. Unless you have a php accelerator as part of your php installation auto refresh shoutboxes (without timeout) can have your host sending you threats of account termination...with a timeout and refresh rate set appropriately and if there aren't too many members using it intensively for excessively long periods you should be OK.

You might like to ask on the MK Portal support pages to see if an auto refresh has been developed by any member for it or look at how an AJAX shoutbox has been offered for Tiny Portal and see if you can adapt that script.

You might opt to offer to pay for custom coding to be done to offer this shoutbox in MK Portal if nobody has adapted it and offers you the details for free.
Title: Re: SMF Shoutbox
Post by: mojodeli on July 20, 2007, 12:43:39 PM
The shoutbox is not visable to guests, history logging has been turned off and the whole forum to viewable members only. 

Any other ideas?

Quote from: Kettu on July 20, 2007, 03:16:04 AM
Quote from: mojodeli on July 19, 2007, 05:27:37 PM
my entire shoutbox is available to the public via google.

http://www.buddhasgarden.net/Sources/sboxDB.php?ts=1184880336

how do I fix this?
If you deactive availability for guests.
Title: Re: SMF Shoutbox
Post by: SouLFury on July 21, 2007, 04:14:15 PM
Please someone can help me....

Shouts doesnt appear in IE, only with FIREFOX....

im desesperate...
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 21, 2007, 06:40:13 PM
@SoulFury

Your files for the shoutbox on the server do not happen to be permissioned at 775 or 755 are they

if so then try setting them at 644, I think
Title: Re: SMF Shoutbox
Post by: JhonV on July 22, 2007, 04:57:24 PM
OK , Hi All!!
When Pass my forum From English To Spanish ,  i went a Problem Script... Do you Now this Problem ???
Title: Re: SMF Shoutbox
Post by: SouLFury on July 22, 2007, 06:21:36 PM
Quote from: DarkAngel612 on July 21, 2007, 06:40:13 PM
@SoulFury

Your files for the shoutbox on the server do not happen to be permissioned at 775 or 755 are they

if so then try setting them at 644, I think

the files are OK, with firefox works ok

the problem is with internet explorer, shouts of people with IE doesnt appear...
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 22, 2007, 06:56:14 PM
@vanstygma

is this a fresh install of the forum or do you have mods applied too? If you have mods then maybe some of them won't have the ability to go to spanish.

Did you get an error message of any kind...if you did then posting that would probably get you better help. An image of the problem or a link would be great too.

@SoulFury:

Same for you, a link would be good also so that those that work on problems here can use IE to see what the shoutbox is not doing right.

In the board index file you edited, did you put this:

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

immediately before:

/* 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?),

If not then edit the file (a copy of it) and replace the one on the server with it and see if that helps. It may have blocked the IE codig in there somehow...not sure cause I am still learning a lot of php and this software too.

If it does no good you can always put back the original one before this last edit.

Title: Re: SMF Shoutbox
Post by: JhonV on July 22, 2007, 08:58:05 PM
OK this is the image :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg338.imageshack.us%2Fimg338%2F6807%2Fclipboard02lq8.jpg&hash=cdbb7264a1eb2e90ecb1471e92039b782bf7adc5)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 22, 2007, 10:40:15 PM
In your browser have you seen the updates and used them to see if that helps. It may be browser related.
Title: Re: SMF Shoutbox
Post by: SouLFury on July 23, 2007, 06:54:59 AM
IE is giving me this error:
QuoteLine: 154
Char: 21
Error: 'document.sbox.sboxText' is null or not an object
code: 0

in this code part of sbox.template:

Quote</form>

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

                    document.sbox.sboxText.value = \'' . $txt['sbox_TypeShout'] . '\';

                  // ]]></script>

javascript problems..maybe.. i dont know

by the way, the forum is here
www.pubunderground.info 
user: tester
pass: test
Title: Re: SMF Shoutbox
Post by: SouLFury on July 23, 2007, 01:34:56 PM
i found the problem, IEXplorer is blocking sboxDB cookie... i allow in IE cookies from my site and works... but i cannot tell all the people to allow them...

does anyone know any other way to allow everyone that cookie?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 23, 2007, 08:07:12 PM
Well if it is needed by everyone to see the shoutbox then maybe you could post a statement in the title  (where it shows the name of the shoutbox) or in the newsfader that Cookies need to be enabled in IE to view the shoutbox.

Title: Re: SMF Shoutbox
Post by: SneakyDave on July 24, 2007, 11:58:24 AM
Quote
Error: 'document.sbox.sboxText' is null or not an object

That shows up because for guests, the xboxText isn't displayed on the screen. the JS should only do "document.sbox.sboxText.value = \'' . $txt['sbox_TypeShout'] . '\';" if the user isn't a guest.

the only way to fix it at the moment is to
1) Enable guest posting of shouts
-OR-
2) Disable guests from viewing the shout box.
Title: Re: SMF Shoutbox
Post by: SouLFury on July 24, 2007, 01:24:32 PM
Ok 10x ppl! :_
Title: Re: SMF Shoutbox
Post by: ShinyhunterX on July 30, 2007, 09:09:14 PM
Incorrect table name ''
File: /home/content/s/y/n/sync95/html/forumspokemon/sbox_setup.php
Line: 83
I keep getting it when i try to run sbox_setup.php
Title: Re: SMF Shoutbox
Post by: qubbah on August 08, 2007, 11:12:54 AM
is there any code to make pop up private msg with smf shoutbox?
Title: Re: SMF Shoutbox
Post by: faminsk on August 13, 2007, 10:51:01 AM
Quote from: tonzi on July 20, 2007, 07:39:52 AM
is the any way i could put this shoutbox in a block to my portal?

I didn't want to use the TPortal shoutbox, so I created a phpbox in TPortal and put this code in it.. I don't know if your portal has the same functionality or not.

if (function_exists('sbox')) sbox();

This is of course after you install the SMF shoutbox on your site.

Title: Re: SMF Shoutbox
Post by: weirdpeople on August 15, 2007, 07:42:17 PM
on this mod is there a way to disable it to people who havent posted 5 times today
Title: Re: SMF Shoutbox
Post by: dan2507 on August 16, 2007, 11:28:48 AM
Are there any updates on the feature of enabling history view for non admins? Last update is I found was this one:

http://www.simplemachines.org/community/index.php?topic=76344.msg690627;topicseen#msg690627

Thanks
Title: Re: SMF Shoutbox
Post by: RiderRaghav on August 16, 2007, 03:52:29 PM
it works great on 1.1.3.....but while installing....it skipped 2-3 files ...... what the reason could be? ..... and will it effect my shout box in any way ?
Title: Re: SMF Shoutbox
Post by: weirdpeople on August 16, 2007, 07:37:52 PM
can any one answer my question
on this mod is there a way to disable it to people who havent posted 5 times today
Title: Re: SMF Shoutbox
Post by: DVD_GR on August 16, 2007, 09:55:55 PM
one probably already ansewered question which couldnt find with search...
I am installing a new template from rockettheme,how can I enable smf shoutbox at that new template?
thanks a lot :D
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 16, 2007, 10:56:16 PM
@DVD_GR,

You will probably get more answers by starting a topic about this in a fresh post...putting questions about something else into a post already about something else usually gets overlooked....not intentionally but it sometimes happens


First: what version of SMF are you using

second: is it a theme for SMF

go to admin down to the current theme/click on manage and install and there you can go to the bottom to install it by writing the url of where you have it on your server.

Title: Re: SMF Shoutbox
Post by: lulo11 on August 21, 2007, 09:10:48 AM
I installed sbox_v1.16 successfully after many tries and errors like "You cannot download or install new packages..." and now I don't see it anywhere on my site? It was "test successful" on all of the three main themes... Installation was ok.. Why is that happening now?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 21, 2007, 07:44:28 PM
Did you enter the code it told you to enter into the board.index.php file for your themes?
Title: Re: SMF Shoutbox
Post by: kr5323 on August 23, 2007, 04:38:18 AM
Sorry for my english.

I don´t know if my question is resolved in other post, but i need help.

In my site, i´ve installed SMF Shoutbox, and my problem is that the alignment of the commentaries goes out for me centred and not aligned to the left side.

¿How I can solve it?


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.subir-fotos.com%2Ffotos%2F7d%2Fef158250b3.jpg&hash=d75d6f53588adbd0e8e87884545b9b1fb05e4e40)


PD: The theme that use is PDX-DK.
Title: Re: SMF Shoutbox
Post by: sleepingstar on August 23, 2007, 10:24:12 AM
hi there, installed sbox_v1.16 successfully , but when i test with my language ( vietnamese - my forum using utf-8 charset ) i get this error


Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
File: /home/folkevil/public_html/forums/Sources/sboxDB.php
Line: 188



how to fix this problem ? thank you :)
Title: Re: SMF Shoutbox
Post by: jdevenney on August 23, 2007, 11:27:42 AM
Installed v 1.16 on new 1.1.3 and now when you shout it is very slow to post the shout. Is anyone else having this issue?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 23, 2007, 07:47:11 PM
Quote from: sleepingstar on August 23, 2007, 10:24:12 AM
hi there, installed sbox_v1.16 successfully , but when i test with my language ( vietnamese - my forum using utf-8 charset ) i get this error


it doesn't always work with other languages...you may have to use english...or search other smf sites to see if you find any with vietnamese shoutbox to verify it works or not
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 23, 2007, 07:48:41 PM
Quote from: jdevenney on August 23, 2007, 11:27:42 AM
Installed v 1.16 on new 1.1.3 and now when you shout it is very slow to post the shout. Is anyone else having this issue?

I am confused, sorry

Are you saying you have installed---2 versions of the soutbox?

if that is right then remove the older one cause you may be confusing your server and site.
Title: Re: SMF Shoutbox
Post by: jdevenney on August 23, 2007, 07:55:25 PM
Actually that is not what I was saying but was the problem. I uninstalled and reinstalled and that fixed it.

By the way is there a way to post pics in the shout box?  I cant seem to get any code to work.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 23, 2007, 10:24:03 PM
the image probably needs to be rather small but the (//) tags should work if you allowed the html or bb code in admin panel
Title: Re: SMF Shoutbox
Post by: imParsifal on August 31, 2007, 04:41:56 AM
I have this problem:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sevilla.fm%2Fdiversidad%2Fsbox.jpg&hash=61decc1c1ace4b094d33603b41066955908e83c3)

The head of the sbox is up y the window of sbox is down.

Version 1.1.3

Forum: http://www.ipp.es/foro (http://www.ipp.es/foro) in Spanish

Sorry my english
Title: Re: SMF Shoutbox
Post by: 4fit? on August 31, 2007, 11:46:58 AM
Just installed.  Works great on my test forum, but not on my main forum.  The shoutbox displays where it is supposed to, but only contains errors in the box itself.   What appears is listed below.  Anyone know how I can fix this?  Thanks in advance!

On edit:  I tried removing the require SSI.php line from sboxDB.php, and that got rid of the error message, but now it just says "hacking attempt...".

Warning: main(../SSI.php): failed to open stream: No such file or directory in /home/musta2/public_html/bboard1/Sources/sboxDB.php on line 6

Warning: main(../SSI.php): failed to open stream: No such file or directory in /home/musta2/public_html/bboard1/Sources/sboxDB.php on line 6

Warning: main(../SSI.php): failed to open stream: No such file or directory in /home/musta2/public_html/bboard1/Sources/sboxDB.php on line 6

Fatal error: main(): Failed opening required '../SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/musta2/public_html/bboard1/Sources/sboxDB.php on line 6
Title: Re: SMF Shoutbox
Post by: Vampurge on September 01, 2007, 04:26:47 PM
Hey just installed the mod, is there a way i can have it defaulted to be minimized?
Title: Re: SMF Shoutbox
Post by: jagabongo on September 11, 2007, 06:14:58 PM
i get an error in my shoutbox it works but this notice is in my shoutbox anyone can help?

Notice: Undefined index: edited in /var/www/web346/html/SMF/Sources/Subs.php on line 1598

Line 1598 from Subs.php looks like:
'before' => '<div class="smalltext editline" style="font-style: italic">&#171;<b>' . $txt['edited'] . ':</b> {date} '. $txt['525']. ' {name} &#187;',


need help!!
Title: Re: SMF Shoutbox
Post by: DobleB on September 13, 2007, 07:17:45 PM
ok, maybe you have seen this question a lot... but i'm new using this so here it goes... Where do I have to put the files to install and use de shoutbox??
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 13, 2007, 08:54:20 PM
Quote from: DobleB on September 13, 2007, 07:17:45 PM
ok, maybe you have seen this question a lot... but i'm new using this so here it goes... Where do I have to put the files to install and use de shoutbox??

first you need to go to the admin section of your site. Then go to the "packages" link and click it.

Now at the bottom of that page is a "browse" button where you can search your computer for the zipped mod file and select it to show there. Click to install it and you will be given another page... or two. One tells you the items in the zip and if there was a problem in installing and then the next window will tell you if your were successful or not.

Read the installation file in the zip because it tells you what file you need to go and manually edit for the shoutbox to function...then upload it to your server...making sure you made a duplicate first for just in case problems should arise.

Once you get that all taken care of you return to  your site ... if you have Tiny Portal installed then go th the portal section/block manager and you will see the shoutbox setting area listed last in the right hand side of the page.
Title: Re: SMF Shoutbox
Post by: DobleB on September 14, 2007, 12:35:32 AM
Jajaja, yeah, that did the trick... Now I have another question... How can I do that the shoutbox appear in a new tiny window and in the main page of the forum could be a link to open that window?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 14, 2007, 04:23:56 AM
Glad that worked...as for little window...I use tiny portal and it comes in the block by itself where you can have it on the side or on top of the page.

do you have tiny portal installed?
Title: Re: SMF Shoutbox
Post by: DobleB on September 14, 2007, 11:57:24 AM
No, I don't have it... and I can't get it from the mod site because there says "Suspended until a more stable version is reached."... If I use tiny portal will I have the shoutbox on a new window? or will it be on the same window with the smf, and will I be able to move it around the page?
Is there any posibility that the users of the forum access the shoutbox with a link and a pop-up?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 14, 2007, 07:51:18 PM
No, having the portal will allow you to have it in a "box" which then you can choose to have it shown at the top of the forum index page only --- or the poratl page only (main front page) or either side of the page.

It will not be in a new window...as neither is the one you installed. The one you installed gave you the code to enter into the index.template.php or the boardindex.php file. 

I am still learning this software for it may function as any php does the files are just a little different meaning like in phpbb forums you would edit the overall_header.tpl file to show it on each page or the file pertaining to the page you wanted it to show on.

Now in your admin panel where the settings are for the shoutbox...you can set it to be visible or not.

You might try to make it not visible...then add a link but not sure what that would be: possibly

http://www.yoursite.com/forum or whatever yours is called/index.php?action=shoutbox

doubtful though.
Title: Re: SMF Shoutbox
Post by: DobleB on September 15, 2007, 04:46:33 PM
ok, but is there other way to do so without the tiny portal? I can't download it from the mod site... Is there another mod that works like the tiny portal??
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 15, 2007, 09:09:36 PM
Is this where you tried to get the tiny portal installer?

http://www.tinyportal.net/index.php?action=tpmod;dl=cat5
Title: Re: SMF Shoutbox
Post by: DobleB on September 16, 2007, 04:12:20 PM
Now I have a new problem... I installed the shoutbox, but I don't know what happend because the [History][Clear History] disappeared in the admin session, and the only thing you can see is [][][]... The shoutbox works fine anyway, you can shout and use the smileys, but the admin stuff disapeared... Why that happend? What can I do to correct it?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 16, 2007, 05:07:27 PM
possibly...

a setting got turned off
the font color is the same as the background

try taking a look at the settings first to see if something is different

did you edit anything except the file for the shoutbox to show?
Title: Re: SMF Shoutbox
Post by: BHClanGaming.com™ on September 16, 2007, 07:32:44 PM
is this compatible with smf 1.1.3 and the latest tp?  I just tried to install said not compatable.  Directions?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 16, 2007, 08:57:51 PM
first off, if you already have tiny posrt and the newest verison of smf installed you don't need to install that mod...at least I did not.

If you have TP installed then go to your admin panel / block manager / it should be listed in the links at the top of the manager control items.

Those that  need to install the shoutbox are the ones without TP
Title: Re: SMF Shoutbox
Post by: BHClanGaming.com™ on September 16, 2007, 09:13:06 PM
thank you.  I figured it out.  Okay what about auto refresher?  Java script is it?  So that I don't have to refresh the whole page?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 16, 2007, 09:27:34 PM
I can't find the setting but try it and if it crashes...some do...then turn it back off again.

i have ours set to not scroll and it refreshes on its own
Title: Re: SMF Shoutbox
Post by: BHClanGaming.com™ on September 16, 2007, 10:32:24 PM
I do too, it doesn't refresh on its own.  Ideas anyone please?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 17, 2007, 12:56:07 AM
do youhave many shouts yet?

a link to the site would be nice too...lol
Title: Re: SMF Shoutbox
Post by: cachua on September 18, 2007, 02:12:35 AM
someone help me please , my smiley do not work at the shoutbox
http://www.cachuashop.com/magic4rum
Title: Re: SMF Shoutbox
Post by: XtremeCrash on September 19, 2007, 01:12:42 AM
How can u adjust the width of the shoutbox?An also how can u change the name at the top from SMF Shoutbox  to whatever you want?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 19, 2007, 05:10:13 AM
Quote from: XtremeCrash on September 19, 2007, 01:12:42 AM
How can u adjust the width of the shoutbox?An also how can u change the name at the top from SMF Shoutbox  to whatever you want?

change name in the sbox.english.php file in the line that says $txt['sbox_ModTitle'] = 'just put your new name here;

in the admin panel you will find the shout box settings, under the features and settings. There is where you can change the height and width of the box...unless you mean the place where you post the shout in before hitting the submit button...that one i cant remember where
Title: Re: SMF Shoutbox
Post by: XtremeCrash on September 19, 2007, 04:57:03 PM
In the settings all it gives me is Height not the width.I need the width of the whole shouxbox.
Title: Re: SMF Shoutbox
Post by: Forte on September 19, 2007, 06:22:16 PM
For some reason it's telling me there's a server error, although I know there's no problem with anything else on my site. Anyone have any information about this?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 20, 2007, 01:31:59 AM
what file wa the last you altered and uploaded? look to it for typos
Title: Re: SMF Shoutbox
Post by: wildcat_j on September 26, 2007, 07:35:07 AM
hi there, this is a great mod..

my only question..  how do i delete the contents of the shoutbox - cos at the moment, every "shout" since i installed it is there.. meaning it is taking space on my server......  or, if i clear the history.html does this do the same thing?
Title: Re: SMF Shoutbox
Post by: desibollywood on September 26, 2007, 05:03:21 PM
HI I NEED HELP..PLEASE HELP ME..I HAVE DOWNLOADED THE SHOUTBOX AND TRYING TO INSTALL IT SAYS THAT MAY BE THE PACK IS CURRUPTED?????

WHY IT IS LIKE THIS..??I AM TRYING TO INSTALL IT ON SMF 1.1.4 PLEASE HELP ME...

I AM WAITING FOR HELPFUL ANSWER
Title: Re: SMF Shoutbox
Post by: DannyTMurphy on September 26, 2007, 07:41:02 PM
Same issue here! Corrupted once I upgraded to 1.1.4  :(
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 26, 2007, 11:40:01 PM
usually if you get that with any software it is becasue it isn't compatible with the verion you ae running.

since the smf software has just been updated the mod creators probably haven't had time to update theri stuff yet...I would contact the maker of the shoutbox and ask him for help.
Title: Re: SMF Shoutbox
Post by: TrueSatan on September 27, 2007, 07:11:48 AM
The SMF preferred way to handle version problems is to use:

Put ;emulate_version=1.1.2 at the end of the Package Manager URL

Change the 1.1.2 to whatever was the most recent version of SMF that the mod did support...as the mod isn't made for the version you are using it on it's always use at your own risk but if you do a backup of your database and files prior to adding or removing mods or themes (as you should anyhow) you should have no problems.
Title: Re: SMF Shoutbox
Post by: Con on September 28, 2007, 07:22:23 AM
Placing it on a custom theme, I got some problems with the 'catagory bar'.

The bar comes above the info center, while the shoutbox itself appears below it. (see screenshot)
The php file I edited is "BoardIndex.template.php"

Could someone point out where I need to add the code for it to look normal?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 28, 2007, 10:07:40 PM
@con:

Here is where we put it on one of the sites I admin at with no portal used. It will be just above the news fader.

approximately line 71 Find:

// 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>';
   }


immediately after it add:

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


hope that helps
Title: Re: SMF Shoutbox
Post by: Con on September 29, 2007, 07:13:32 AM
Quote from: DarkAngel612 on September 28, 2007, 10:07:40 PM
@con:

Here is where we put it on one of the sites I admin at with no portal used. It will be just above the news fader.

approximately line 71 Find:

// 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>';
   }


immediately after it add:

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


hope that helps
Heh.. That's the point, I dont want it at the top, but at the bottom. I managed to get it on the 'who's online' page correctly, but it just wont work on board index..
Title: Re: SMF Shoutbox
Post by: fous on September 29, 2007, 02:49:41 PM
Anyone figure out how to use this in 1.1.4 yet??
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 29, 2007, 08:38:11 PM
try the index.template.php file instead, maybe that will work...I found that not all the themes have that boardindex file either so we had to use the index one for some themes

just remember if there is a line where you insert it that starts with <script> then make sure you find the close tag </script> for it and then add your info so it wont be cut in two
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 29, 2007, 09:52:53 PM
Quote from: fous on September 29, 2007, 02:49:41 PM
Anyone figure out how to use this in 1.1.4 yet??

Have you tried contacting the maker of it yet?
Title: Re: SMF Shoutbox
Post by: Kuraj on September 30, 2007, 04:22:14 AM
Quote from: anshar on April 24, 2007, 10:11:01 AMmy forum is using iso-8859-2 charset (for polish language), everything works fine untill users trying to use special characters, instead of them I'm getting some ugly chars. Is there any solution? Those ugly chars are only in shoutbox, everything else is working very well.

[...]

this helped
"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 {"

remove it save and upload the file to server.

What if i don't even have this in my SboxDB.php?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimages13.fotosik.pl%2F117%2F614b6f05c354a5eem.jpg&hash=53674abd0cd8b8702b8c2cb7144dbf0e184052a4) (http://images13.fotosik.pl/117/614b6f05c354a5ee.jpg)

My board is under http://www.fallenheroes.ovh.org/forum/index.php. How do i fix this? ???
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 30, 2007, 03:18:28 PM
I took a look at the one we have and this is what I found but NOT on the line mentioned to look at---the code I found...not exactly like the one you were told about and is on about line 94.

The line is about line 83 on this file in SBox v1.6 upload:


// END: BORROWED FROM http://de2.php.net/manual/en/function.flock.php

function missinghtmlentities($text) {
  global $context;
  // entitify missing characters, ignore entities already there (Unicode / UTF8) (hopefully in &#123;-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;
}

Title: Re: SMF Shoutbox
Post by: ftvguy on October 02, 2007, 06:18:35 AM
i am getting this error
Warning: main(/home/kin/public_html/forums/Sources/home/kin/public_html/forums/Sources/QueryString.php) [function.main]: failed to open stream: No such file or directory in /home/kin/public_html/forums/SSI.php on line 57

Fatal error: main() [function.require]: Failed opening required '/home/kin/public_html/forums/Sources/home/kin/public_html/forums/Sources/QueryString.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kin/public_html/forums/SSI.php on line 57

installed the latest shoutbox.
Title: Re: SMF Shoutbox
Post by: samaticon on October 02, 2007, 07:38:52 PM
nm, got it working :D
Title: Re: SMF Shoutbox
Post by: rongsak on October 05, 2007, 03:57:08 AM
how can i chang to thailanguage on display board
Title: Re: SMF Shoutbox
Post by: Assistance on October 05, 2007, 10:43:20 AM
sbox.history.html can be seen by guest
Title: Re: SMF Shoutbox
Post by: Green Hornet on October 06, 2007, 06:32:10 AM
it works! thanks :)

is Shoutbox integrated in SSI functions?
Title: Re: SMF Shoutbox
Post by: mzeblu on October 08, 2007, 09:29:36 PM
Hi, this question was asked by a different member on page 60 but I did not see an answer.

Question: Where can I modify the width of the shoutbox. I can see where to modify the height, but not width.
Title: Re: SMF Shoutbox
Post by: Mz.Beotch on October 10, 2007, 01:28:48 PM
I have installed the mod Member Color Link, my members would like to see their specific membergroup colors in the shoutbox as well, is that possible? Where is this setting if there is one? 
Title: Re: SMF Shoutbox
Post by: Harvester on October 11, 2007, 01:21:10 PM
I have a problem.

I have a theme that is basically just the default theme copied and then I changed icons and some colors. Its called TBH2007114. When I apply the shoutbox mod, it installs and shows all the boardindex.template.php that it is going to modify and my theme is not in the list. My themes folder and all the php files in it are all CHMOD 777
After I apply the mod and go  to my forum index there is no shout box however if i change to, for instance, Babylon, (one of the boardindex.template.php that was modified during install) the shoutbox is there.
Please help as I would really like to get this to work for my members.

Thank You, Jared
Title: Re: SMF Shoutbox
Post by: Harvester on October 12, 2007, 09:21:37 AM
Can anyone help me with this please??
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 12, 2007, 07:48:14 PM
I tried telling you last night but the site just stalled and would not load the response.

what iA said is that even though you have just copied the default theme---it is still a "new " theme. Which means that the mods will only install into the default original theme...that is my understanding.

I find that for it to work, on the others that I have installed for other places, you need to manually edit either the boardindex or the indextemplate file (some themes do not have the boardindex file).

in the items that are zipped up for the install (you need to unzip that file to your computer) are the instructions of what to enter into that file...if not then go to the downloads page and it will tell you what to edit with.

hope that helps some.
Title: Re: SMF Shoutbox
Post by: Harvester on October 12, 2007, 09:23:21 PM
that helps alot. :D Thank you very much :D

Quote from: DarkAngel612 on October 12, 2007, 07:48:14 PM
I tried telling you last night but the site just stalled and would not load the response.

what iA said is that even though you have just copied the default theme---it is still a "new " theme. Which means that the mods will only install into the default original theme...that is my understanding.

I find that for it to work, on the others that I have installed for other places, you need to manually edit either the boardindex or the indextemplate file (some themes do not have the boardindex file).

in the items that are zipped up for the install (you need to unzip that file to your computer) are the instructions of what to enter into that file...if not then go to the downloads page and it will tell you what to edit with.

hope that helps some.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 13, 2007, 02:57:35 AM
you are very welcome
Title: Re: SMF Shoutbox
Post by: optimuslem on October 16, 2007, 08:47:14 PM
Here they left the Translation of English to Spanish Latin...

PS: What you could get on the Zip's Shout, because not as installing SRY

Sorry for my poor English

sbox.spanish_latin.php (http://www.gigasize.com/get.php?d=l7n6p7xtfqc)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 17, 2007, 01:20:17 AM
Quote from: optimuslem on October 16, 2007, 08:47:14 PM
Here they left the Translation of English to Spanish Latin...

PS: What you could get on the Zip's Shout, because not as installing SRY

Sorry for my poor English

sbox.spanish_latin.php (http://www.gigasize.com/get.php?d=l7n6p7xtfqc)


You are doing fine in the english part but

No puedes ponerlo en tu sitio or quieres que alguna persona poner las palabras en espanol para ti.

**english**
You can not install it on your site or do you want some one to put the words in spanish for you.
Title: Re: SMF Shoutbox
Post by: optimuslem on October 17, 2007, 11:44:01 AM
Quote from: DarkAngel612 on October 17, 2007, 01:20:17 AM
Quote from: optimuslem on October 16, 2007, 08:47:14 PM
Here they left the Translation of English to Spanish Latin...

PS: What you could get on the Zip's Shout, because not as installing SRY

Sorry for my poor English

sbox.spanish_latin.php (http://www.gigasize.com/get.php?d=l7n6p7xtfqc)


You are doing fine in the english part but

No puedes ponerlo en tu sitio or quieres que alguna persona poner las palabras en espanol para ti.

**english**
You can not install it on your site or do you want some one to put the words in spanish for you.

No ya esta traducido, lo que no puedo es ponerlo en mi sitio para que me aparezca en ese lenguaje, que tendria que editar...

gracias...

English:

It is already translated, so I can not put it on my site is for me to appear in that language, which would have to edit ...
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 17, 2007, 10:32:45 PM
OK, I see now. It says it does not work on some languages so maybe this is one of them.

I assume you uploaded that file you posted to you server....so maybe ---and I am not sure so BACK UP and use a DUPLICATE sbox.php file to edit and upload it, that way if it doesn't work you can just upload your original one.

in sbox.php file  FIND:

loadLanguage('sbox');
      loadTemplate('sbox');
      template_shout_box();

REPLACE:

loadLanguage('sbox');  with loadLanguage('sbox.spanish_latin');

Save and upload the file to where it is located on your server.


Me I would just remove the english language  file and see if the spanish one will take over....gut remember

BACKUP you  files (site) first BEFORE doing anything and always use duplicate files...leaving your originals for getting you out of trouble.

If you are using nneonneo's Shoutbox (http://custom.simplemachines.org/mods/index.php?mod=585) then click the name to go to that page and there is some instructions to follow

Sorry I am not much help but am trying to learn how too.
Title: Re: SMF Shoutbox
Post by: box.black on October 18, 2007, 08:37:37 AM
Works fine, but... what about UTF-8 support?
Title: Re: SMF Shoutbox
Post by: optimuslem on October 18, 2007, 10:52:33 AM
Quote from: DarkAngel612 on October 17, 2007, 10:32:45 PM
OK, I see now. It says it does not work on some languages so maybe this is one of them.

I assume you uploaded that file you posted to you server....so maybe ---and I am not sure so BACK UP and use a DUPLICATE sbox.php file to edit and upload it, that way if it doesn't work you can just upload your original one.

in sbox.php file  FIND:

loadLanguage('sbox');
      loadTemplate('sbox');
      template_shout_box();

REPLACE:

loadLanguage('sbox');  with loadLanguage('sbox.spanish_latin');

Save and upload the file to where it is located on your server.


Me I would just remove the english language  file and see if the spanish one will take over....gut remember

BACKUP you  files (site) first BEFORE doing anything and always use duplicate files...leaving your originals for getting you out of trouble.

If you are using nneonneo's Shoutbox (http://custom.simplemachines.org/mods/index.php?mod=585) then click the name to go to that page and there is some instructions to follow

Sorry I am not much help but am trying to learn how too.

Ohhh Thanks man, Now try it and see if it works

-------------------------------------------------------------

Many Perfect Works .. Thanks for Everything

I did not have to erase the English language since I took Spanish perfect ...

It may add to the Zip Shout? ? ?

Thanks and until then
Title: Re: SMF Shoutbox
Post by: insurectus on October 18, 2007, 06:18:38 PM
tried Deep's version of shoutbox sbox_v1.04 and im using
smf_1.1.4, installed successfully but shoutbox is not showing up
on the forum, I already tried to use the classic yabb and placed this code on boardindex.template.php that is placed on /smf/Themes/classic/


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


   // Show the "Board name      Topics  Posts    Last Post" header.
   echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
   <tr class="titlebg">
      <td colspan="2">', $txt[20], '</td>
      <td width="6%" align="center">', $txt[330], '</td>
      <td width="6%" align="center">', $txt[21], '</td>
      <td width="22%" align="center">', $txt[22], '</td>
   </tr>';

any idea why?
Also, should the shoutbox extracted files be placed on a separate
folder except the sboxdb.php which should be placed under Sources folder and the sbox_setup.php under smf folder
Title: Re: SMF Shoutbox
Post by: Silveri on October 19, 2007, 06:04:43 AM
Ok, I have a really stupid question. What directory in mbirth's shoutbox are the language files located after installation? I find the sbox.php and sboxDB.php -files in the Sources -directory, but languages, nowhere.

A bug that I found was that I cannot change the shoutbox's settings in the admin panel unless I change my own language to english.
Title: Re: SMF Shoutbox
Post by: h4ni on October 19, 2007, 10:56:59 AM
Hello
how i can host my shoutbox in other ftp site and display it in my forum
when i use it in my forum i get all the time "cpu quota excede"
can you help me
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 19, 2007, 09:45:32 PM
@insurectus:

This code--- // display shoutbox
     if (function_exists('sbox')) sbox();
--- is supposed to go into all the boardindex files  or  the index.template since not all themes have the other file.

The files when installed through the package manager in your admin panel will be put where they belong.

May be in the default theme language folder
sbox.english.php
sbox.french.php
sbox.german.php
sbox.template.php

Sources folder??
sbox.php
sboxDB.php

If after entering that code and saving the file then uploading it to overwrite the previous one does not let you see the shoutbox on your forum then try putting the code in a different section of that file.

@Silveri:

Have you checked the language fodler within your default theme folder?

@h4ni:

which shoutbox are you trying to use...there is one that will use a lot of sources and will give that error....also is your site in safe mode? try turning off safe mode in the config file...um I guess in smf it is the Settings_bak.php
Settings.php files.


hope this helps a little.
Title: Re: SMF Shoutbox
Post by: Night09 on October 19, 2007, 10:05:03 PM
Sorry to bump the thread, Is it not possible for me to post in this section? I have looked but theres no option to start a topic .

I have a few ideas but i cant post here ?

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 19, 2007, 11:35:55 PM
I know when viewing this thread you can only reply but if you want to start another subject you need to go to this section (the parent of where you are now)  SMF Coding Discussion (http://www.simplemachines.org/community/index.php?board=60.0)

You will se the 3 child boards at the top then go about half way down the page to find the new topic link.

I have no clue why the section we are in has no ability to make a new topic, unless the idea is to piggyback onto another of the same type of problem or solution.
Title: Re: SMF Shoutbox
Post by: Night09 on October 19, 2007, 11:40:02 PM
Thank you DarkAngel612 I will check it out  ;)
Title: Re: SMF Shoutbox
Post by: totoy on October 20, 2007, 04:02:54 AM
i installed the Deep's sbox_v1.14 mod on my 1.1.4 default theme forum... it works fine.

but i want to add some things to it... i searched over this thread and the other topic but i can't seem to fine the answers  :( .

i hope someone can help me...

i want to add a background image to the shoutbox; is it possible? if so how? what are the files to edit and what are the codes to change?

and also the shoutbox appear on top of the boards, below the newsbox... i want to place it below the boards right on top of the info center.

pls help me... i have a limited knowledge in php.

Thanks in advance...
Title: Re: SMF Shoutbox
Post by: RuneAvenue on October 20, 2007, 04:28:24 AM
I installed the mod without any problems and it didn't appear. I am using a theme that I downloaded from the customize thing.

I think i've gotta add a code to boardindex.template.php


Can someone help?
Title: Re: SMF Shoutbox
Post by: cmgangrel on October 20, 2007, 06:24:59 PM
Hi, i installed this mod (i am sure its this one) Version 1.16b and as an Admin, i cannot see the smilies in the shoutbox. They appear above the shoutbox, and guests and other posters are able to view it.

Whats gone wrong here? What needs changing in the code to enable this?

Sorry if its been asked, but i did a search, but couldnt find a solution...

Ta in advance

Gangrel
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 20, 2007, 08:02:38 PM
Quoteby totoy:and also the shoutbox appear on top of the boards, below the newsbox... i want to place it below the boards right on top of the info center.

the code you placed in the boardindex or the indextemplate file.... try posting it down further in that file. You might try looking for :

// "Users online" - in order of activity.

and adding the code just before it...if that doesn't place it where you want it then mmove it up further in the file.

I have no idea how to add a bg image to it...sorry

------------------------

@RuneAvenue:
I think this the line you need to add to that file...if you don't have that file then place it into the idex.template.php file

---------------------

@cmgangrel:

in your admin panel for the smileys settings, make sure you have enabled the ability to use custom smilies, even though you have the default smiley set selected.

I had to do that when I replaced the smilies with those that I got elsewhere.

Hope this hekps some of you

// display shoutbox
     if (function_exists('sbox')) sbox();
Title: Re: SMF Shoutbox
Post by: cmgangrel on October 20, 2007, 08:15:00 PM
It didnt work... :(

Its only the me (the admin) who is unable to see them... normal members are able to see them just fine.

All i have installed are the classic and Normal smilies (which are the default ones installed)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 20, 2007, 09:36:24 PM
That is strange...something that happened to me with a different board software...lol Needless to say they never figured out why but then I found this software and am much happier.

If it were the other way around I would have said to check the settings to make sure they are visible. I am sorry but I hav enot a clue as to how to help you other thant o say to recheck the settings for the shoutbox
Title: Re: SMF Shoutbox
Post by: cmgangrel on October 20, 2007, 09:56:54 PM
yeah checked both, and been playing with all settings thta i can find... just had to disable the BBCode so that i dont get the missing images.
Title: Re: SMF Shoutbox
Post by: Truxton on October 20, 2007, 11:51:46 PM
Is there a way to have the chatbox show up at the top throughout the entire forum?  Instead of only when you're at the index.

I've been looking through this thread, but it's 63 pages long so I *may* Have missed it.
Title: Re: SMF Shoutbox
Post by: cmgangrel on October 21, 2007, 12:46:31 AM
From what i remember you have to change index.template.php instead of BoardIndex.template.php

Still the same edit though.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 21, 2007, 12:50:36 AM
In the index.template.php file try this:

remember to work on a duplicate of the file ...


FIND:


/ Show a random news item? (or you could pick one from news_lines...)

Directly above it place the code to show the shoutbox

Save then upload the file and overwrite the one on the server this way. If it doesn't work then just put the original back up there.

IF it did work then you will need to edit all themes this same way.
Title: Re: SMF Shoutbox
Post by: asdas2 on October 21, 2007, 01:06:21 AM
okay i got some quest bfore installing this mod ...


Is this the latest SMF SHOUtBOX?
Does it have Permission .... i just dont want newbie to use this mod and also guest

is it possible ... if i dont giv permission to newbie and guest, but they still can view the messgs or converstaion of other ppl ??????????????


THANKZZZ

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 21, 2007, 02:22:44 AM
Quote from: asdas2 on October 21, 2007, 01:06:21 AM
Is this the latest SMF SHOUtBOX?
Does it have Permission .... i just dont want newbie to use this mod and also guest

is it possible ... if i dont giv permission to newbie and guest, but they still can view the messgs or converstaion of other ppl ??????????????

here are two pics of the settings you will see in the admin section of your boards. This is one I set up on a site without tinyportal installed. those are the setting you can set and like the board if you set it to no guest view or post they should not be able to see it or use it.
Title: Re: SMF Shoutbox
Post by: giggetto on October 21, 2007, 08:06:03 AM
Hi!
I have just istalled this mod. all works fine but I can't find the setting in the admin area... where i can find them???

i have smf 1.1.3 & tp 0.93 default theme.
Title: Re: SMF Shoutbox
Post by: asdas2 on October 21, 2007, 09:25:12 AM
Quote from: DarkAngel612 on October 21, 2007, 02:22:44 AM
Quote from: asdas2 on October 21, 2007, 01:06:21 AM
Is this the latest SMF SHOUtBOX?
Does it have Permission .... i just dont want newbie to use this mod and also guest

is it possible ... if i dont giv permission to newbie and guest, but they still can view the messgs or converstaion of other ppl ??????????????

here are two pics of the settings you will see in the admin section of your boards. This is one I set up on a site without tinyportal installed. those are the setting you can set and like the board if you set it to no guest view or post they should not be able to see it or use it.



ok say .... its okay with guest .........

but i dun want my NEWBIE to use it ...... and i cant see any option there ........
Title: Re: SMF Shoutbox
Post by: giggetto on October 21, 2007, 01:15:21 PM
Quote from: giggetto on October 21, 2007, 08:06:03 AM
Hi!
I have just istalled this mod. all works fine but I can't find the setting in the admin area... where i can find them???

i have smf 1.1.3 & tp 0.93 default theme.

I think that the problem was on the language. I made a sbox.italian.php from the english file and now I can see the SMF-shout admin panel.

I see tath the history consist in a html file. It would be better to have the history in a normal topic. Is it possibile? what about future release?
It would be great to have more setting like more xuser group setting or more what to see setting ( show or not show name of the week for example)

thank you for your great work! I'm testing it and just loving!
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 21, 2007, 08:13:14 PM
@giggetto:

If you still can't find the settings for the shoutbox then go (since you have timy portal installed), to the block manager link and it will be listed across the top of the list.
Title: Re: SMF Shoutbox
Post by: pcwizcomputer on October 21, 2007, 09:10:11 PM
SMF Version: 1.1.4
Forum: http://pcwizcomputer.com/forum/

I am currently using the Mesh theme by Bloc:

http://custom.simplemachines.org/themes/index.php?lemma=218

I wanted to install the SMF Shoutbox:

http://custom.simplemachines.org/mods/index.php?mod=412

It says at the bottom:

Quote
To make the shoutbox work with other themes, you have to do the following:

Add the code

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


at the position you want the shoutbox to appear. (Mostly you will put this into BoardIndex.template.php.)

The problem is, I have no clue where to paste this code. Here is my BoardIndex.template.php file:


<?php
// Version: 1.1; 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">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#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 '
<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;'
$txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">'
;

// 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>'
;
}

/* 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 image),
and boards. (see below.) */
$first true;
foreach ($context['categories'] as $category)
{

echo '
<table cellpadding="0" cellspacing="0">
<tr>
<td>'
;
if ($category['can_collapse'])
echo '<a href="'$category['collapse_href'], '"><img src="',$settings['images_url'],'/catbg_first' $category['is_collapsed'] ? '-push' '-pull' '.jpg" alt="" /></a>';
else
echo '<img src="',$settings['images_url'],'/catbg_first.jpg" alt="" />';

echo '</td>
<td width="100%" class="catbg" valign="top" style="padding: 6px 0 0 0;">'
;
$first false;

// If this category even can collapse, show a link to collapse it.

echo '
'
$category['link'], '
</td>
<td><img src="'
,$settings['images_url'],'/catbg_end.jpg" alt="" /></td>
</tr>
</table>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<div style="background: url('
.$settings['images_url'].'/box_midtop.jpg) repeat-x;">
<div style="background: url('
.$settings['images_url'].'/box_lefttop.jpg) no-repeat;">
<div style="padding: 20px; background: url('
.$settings['images_url'].'/box_righttop.jpg) top right no-repeat;">';

echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="font-size: smaller; margin-top: 1px;">'
;

/* 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>
<td ' 
, !empty($board['children']) ? 'rowspan="2"' '' ' class="smalltext" 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], '" />';
// 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], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td valign="top">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br /><span class="smalltext">
'
$board['description'],'</span>';

// 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 some basic information about the number of posts, etc.
echo '
</td>
<td valign="top" align="center"  nowrap="nowrap" style="width: 16ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' |
'
$board['topics'],' '$txt[330], '
</span></td>
<td  valign="middle" width="30%">
<span class="smalltext">'
;

/* 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 '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , ' <br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// 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 '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
<span class="smalltext"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>'
;
}
echo '</div></div></div>';
}

if ($context['user']['is_logged'])
{
echo '<hr />
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
<img src="' 
$settings['images_url'] . '/new_some.gif" alt="" /> '$txt[333], '
<img src="' 
$settings['images_url'] . '/new_none.gif" alt="" style="margin-left: 4ex;" /> '$txt[334], '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';

// Mark read button.
$mark_read_button = array('markread' => array('text' => 452'image' => 'markread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=all;sesc=' $context['session_id']));

// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
 '
template_button_strip($mark_read_button'top'), '
</tr>
</table>'
;
echo '
</td>
</tr>
</table>'
;
}

// Here's where the "Info Center" starts...
echo '<br /><br />
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="'
,$settings['images_url'],'/catbg_first.jpg" alt="" /></td>
<td width="100%" class="catbg" style="padding-top: 6px;  text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
'
$txt[685], '
</td>
<td><img src="'
,$settings['images_url'],'/catbg_end.jpg" alt="" /></td>
</tr>
</table>'
;

echo '<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<div style="background: url('
.$settings['images_url'].'/box_midtop.jpg) repeat-x;">
<div style="background: url('
.$settings['images_url'].'/box_lefttop.jpg) no-repeat;">
<div style="padding: 20px; background: url('
.$settings['images_url'].'/box_righttop.jpg) top right no-repeat;">';


echo '

<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" 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], '" /></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 cellpadding="0" cellspacing="0" 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 class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" 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="titlebg" 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'], '" /></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 YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" 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], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $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>' '''
</span>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" 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], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$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 ')';
}

echo $context['show_who'] ? '</a>' '''
<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>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</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="titlebg" 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], '" />'$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="titlebg" 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], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" 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></table>
</form>
</td>
</tr>'
;
}

echo '
</table>
</div></div></div></div>'
;

}

?>



Where do I paste the Shoutbox code to place it right above the Info Center on my forum?

Thanks
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 21, 2007, 10:15:05 PM
Quote
ok say .... its okay with guest .........

but i dun want my NEWBIE to use it ...... and i cant see any option there ........


try going into your permissions for GROUPS or members and manually remove the option to use it there...if it is listed that is.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 21, 2007, 10:27:44 PM
Quote

Add the code

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

at the position you want the shoutbox to appear. (Mostly you will put this into BoardIndex.template.php.)

FIND:

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


Paste that code directly above that line, save and upload to overwrite you file on the server...remember to work on a duplicate file so you can put the original back in caase something happens.

Now if it is still not in the spot you want it try putting it lower down on the file until you get it where you want it to show.
Title: Re: SMF Shoutbox
Post by: my1spot on October 22, 2007, 07:11:12 PM
Does any one know how i can post my shout box on a different page on my website..?
Title: Re: SMF Shoutbox
Post by: skander on October 22, 2007, 11:19:10 PM
hello i install shoutbox fine, everything is working only it displays a error in the text box ( where you see the message ) It looks like this :

[enter your message]

[smilyes]
--------------------------------------------------------------------------------------------------------------------

Notice: Use of undefined constant padexx_newsfader - assumed 'padexx_newsfader' in /mnt/web4/13/43/51567543/htdocs/movies/Sources/Load.php(1726) : eval()'d code on line 12

[oktober 23, 2007, 05:13:32 AM]
[] []
[X][di 01:14] <Moviez Online> Update : Prison Break Seizoen 3 Aflevering 1/4
[X][ma 17:28] <Moviez Online> Update : 5 Nieuwe films in New Release 

--------------------------------------------------------------------------------------------------------------------
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 23, 2007, 12:56:57 AM
@skander:

maybe you put the code in the wrong place...try moving the code either up be for the // or lower thatn the spot you put it in...

hard to tell you exactly since i can't see the file...sorry
Title: Re: SMF Shoutbox
Post by: skander on October 23, 2007, 11:03:33 AM
@ darkangel612

I changed is but if i put it any where most of the time i get a error page...

the code looks like this :


// 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>';
}

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

/* 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 image),
and boards. (see below.) */
$first = true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' , $first ? '0;' : '1ex;' , '' , $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' : '', '">
<div class="catbg', $category['new'] ? '2' : '', '" style="padding: 6px;">';
$first = false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="', $category['collapse_href'], '" class="collapse_expand">', $category['collapse_image'], '</a>';

echo '


( here is everything maby you need it )

<?php
// Version: 1.1; 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">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#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 '
<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td valign="middle" align="center" height="60">'
;

// 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>'
;
}

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

/* 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 image),
and boards. (see below.) */
$first true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">
<div class="catbg'
$category['new'] ? '2' '''" style="padding: 6px;">';
$first false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '" class="collapse_expand">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">'
;

/* 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>
<td ' 
, !empty($board['children']) ? '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], '" />';
// 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], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<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="smalltxt"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltxt">
'
$board['posts'], ' '$txt[21], ' <br />
'
$board['topics'],' '$txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltxt">'
;

/* 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 '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// 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 '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
<span class="smalltxt"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>'
;
}
echo '
</div>'
;
}

if ($context['user']['is_logged'])
{
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="tborder" style="margin-top:5px;">
<tr class="catbg">
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltxt">
<img src="' 
$settings['images_url'] . '/new_some.gif" alt="" align="middle" /> '$txt[333], '
<img src="' 
$settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> '$txt[334], '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';

// Mark read button.
if ($settings['show_mark_read'] && !empty($context['categories']))
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>'
;
}

// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="left" valign="middle" /></a>
'
$txt[685], '
</div>
<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor" style="margin-top: 1px;">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" 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'], '/icons/recent.gif" alt="'$txt[214], '" /></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="smalltxt">
'
$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 cellpadding="0" cellspacing="0" 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 class="middletext" valign="top" nowrap="nowrap"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" 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="titlebg" 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'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltxt">'
;

// 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 YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" 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], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $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>' '''
</span>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" 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], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$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 ')';
}

echo $context['show_who'] ? '</a>' '''
<div class="smalltxt">'
;

// 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>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</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="titlebg" 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], '" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
<div class="smalltxt">
'
$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="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltxt">(' $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], '" /></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></table>
</form>
</td>
</tr>'
;
}

echo '
</table>
</div>
</div>'
;
}

?>

Title: Re: SMF Shoutbox
Post by: Rafferty on October 23, 2007, 11:42:34 AM
OK heres a different one, this is my error message although the shoutbox works fine, it shows the line

QuoteNotice: Undefined variable: divclass in /home/www/***********.org/forum/Sources/sboxDB.php on line 206

The line clears when the window refreshes or I refresh manually

Your Ideas?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 23, 2007, 11:33:06 PM
Quote from: skander on October 23, 2007, 11:03:33 AM
@ darkangel612

I changed is but if i put it any where most of the time i get a error page...


OK, I think you still need to either move that code for the shout box above the :

// Show the news fader?  (assuming there are things to show...)

to get it to show above the news fader

now we put it in the same spot you currently have it so it may be something that got deleted by accident....hopefully this works as an attachment...the boardindex.template.php file of ours to test in yours...should be fairly generic file and interchangeable.



Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 23, 2007, 11:43:14 PM
Quote from: Rafferty on October 23, 2007, 11:42:34 AM
OK heres a different one, this is my error message although the shoutbox works fine, it shows the line

QuoteNotice: Undefined variable: divclass in /home/www/***********.org/forum/Sources/sboxDB.php on line 206

The line clears when the window refreshes or I refresh manually

Your Ideas?

After taking a peek at that file and that line it seems to have something to do with the url...but then I am not sure...have you tried uploading a fresh sboxDB.php file?

the actual line of code that it says is( In case anyone else may know the solution.):

          $output .= '<a href="' . $scripturl . '?action=profile;u=' . $context['user']['id'] . '" target="_blank" class="' . $divclass . '">';



Title: Re: SMF Shoutbox
Post by: Rafferty on October 24, 2007, 12:54:52 AM
Yes I checked the code with the original and it's identical. Also replaced it just in case but no difference

What does that code piece exactly do? LOL. Weird but I removed the last ref completely and the box appears to be working perfectly.
Title: Re: SMF Shoutbox
Post by: angelsluver on October 24, 2007, 02:35:42 AM
is there a way to put an image to it as background? and also i want to put a marquee on it, so that all the shout will scroll vertically.

PHP experts pls help me. i have a limited knowledge about php.
Title: Re: SMF Shoutbox
Post by: sdlacy on October 25, 2007, 09:26:37 AM
OK, I've read through most of this thread over the last couple of days....I've gotten most of my questions answered but there is one that has been asked without being answered and I was wondering if there is still anyone around that can help me with this.

I've figured out how to put the user input text box at the bottom of the Shout Box, but the new posts still go at the top.  What I would like to accomplish is reversing the SBox so that oldest posts are at the top, newest at the bottom and the text input is at the bottom as well.  Is there anyone that can help me get this working?
Title: Re: SMF Shoutbox
Post by: MothMan on October 25, 2007, 05:19:04 PM
Forgive me if this has already been asked, but is there a way to tweak this mod so the the History Log is reversed?  ie. so that the newest shouts are at the top of the history log?

Also, is there a way to make the History Log viewable to all members, not just admins?  I'd like for everyone with permission to shout (anyone who is not a Guest) to have access to the History... not to clear the history, but just to view it.
Title: Re: SMF Shoutbox
Post by: pcwizcomputer on October 25, 2007, 08:11:52 PM
Thanks DarkAngel, worked like a charm
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 25, 2007, 09:22:40 PM
Quote from: pcwizcomputer on October 25, 2007, 08:11:52 PM
Thanks DarkAngel, worked like a charm

Glad I could help
Title: Re: SMF Shoutbox
Post by: qubbah on October 26, 2007, 03:08:10 AM
how can i make this shoutbox have their own background?
Title: Re: SMF Shoutbox
Post by: TheLyricist on October 26, 2007, 06:26:35 AM
Hey, i get this:
Notice: Undefined index: bnews_enabled in /host/*******/forums/Sources/Subs-BoardNews.php on line 33

This is the file, and it's from a deleted mod (i guess...)
If anyone can help..........
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 26, 2007, 07:55:11 PM
if you are getting the error message concerning that fiel and you no longer have that item then delete the file...I use the smf software and the tp and do not have that critter in the sources folder at all.
Title: Re: SMF Shoutbox
Post by: angelsluver on October 29, 2007, 01:30:39 AM
is there a way to put an image to it as background? and also i want to put a marquee on it, so that all the shout will scroll vertically.

i hope someone can help me.

thank you in advance.
Title: Re: SMF Shoutbox
Post by: Grimmy2007 on October 29, 2007, 04:35:38 PM
Hi all,

Well I've installed this twice now, and the same thing.
The mod is not showing in admin or in the forum. I've place the snipet of code into the file still nothing.
I'm using a custom template and placed the code there too. Still nothing. Any ideas?

Thank you.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 29, 2007, 08:22:07 PM
are you using the verison 1.1.4 of smf or another version?

exactly which shoutbox are you trying to use?

A link to the site and I can see if I can get it to upload for you...you are using the package manager to upload it to the site, right?

And have removed the other installations right?
Title: Re: SMF Shoutbox
Post by: Truxton on October 30, 2007, 05:05:09 PM
Is there a way to limit the shoutbox to certain usergroups?
Title: Re: SMF Shoutbox
Post by: h4ni on October 31, 2007, 01:33:02 PM
hello
i cant stop autorefresh , delete messages
can anyone help me?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 01, 2007, 12:56:04 AM
@h4ni:

Have you looked in the admin section at the settings for it. You should be able to set it there---I think

as for delteing messages...do you not see the red x's next to the shouts? again this is in the setting area at the bottom of the page where you can  check off the ones you want to delete

are you getting any error messages?

is it working right every other way?
Title: Re: SMF Shoutbox
Post by: Silveri on November 02, 2007, 04:19:42 AM
Rough finnish translation (sbox.finnish.php):

<?php

//SMF Shoutbox
$txt['sbox_ModTitle'] = 'SMF Huutolaatikko';
$txt['sbox_KillShout'] = 'Haluatko poistaa tämän viestin?';
$txt['sbox_Refresh'] = 'Päivitä';
$txt['sbox_RefreshEnable'] = '<b>AKTIVOI päivitys</b>';
$txt['sbox_RefreshDisable'] = 'Keskeytä päivitys';
$txt['sbox_RefreshBlocked'] = '[<span class="Kill">Automaattinen päivitys keskeytetty toimettomuuden vuoksi</span>]';
$txt['sbox_History'] = 'Historia';
$txt['sbox_HistoryClear'] = 'Tyhjennä historia';
$txt['sbox_HistoryNotFound'] = 'Historiatietoa ei löytynyt.';
$txt['sbox_Guest'] = 'Vieras';
$txt['sbox_TypeShout'] = '<Kirjoita viestisi ja paina ENTER>';
$txt['sbox_Login'] = '<a href="' . $scripturl . '?action=login">Kirjaudu</a> tai <a href="' . $scripturl . '?action=register">rekisteröidy</a> osallistuaksesi keskusteluun.';

// Settings
$txt['sbox_Visible'] = 'Huutolaatikko näkyy';
$txt['sbox_ModsRule'] = 'Valvojat voivat poistaa viestejä';
$txt['sbox_DoHistory'] = 'Luo viestihistoria';

$txt['sbox_GuestVisible'] = 'Tee huutolaatikko näkyväksi kaikille vieraille';
$txt['sbox_GuestAllowed'] = 'Vieraat saavat kirjoittaa huutolaatikkoon';
$txt['sbox_GuestBBC'] = 'Salli BBCoden käyttö vierailijoiden viesteissä*';

$txt['sbox_SmiliesVisible'] = 'Hymiörivi on näkyvissä';
$txt['sbox_UserLinksVisible'] = 'Näytä linkit profiileihin';
$txt['sbox_AllowBBC'] = 'Salli BBCode';
$txt['sbox_NewShoutsBar'] = 'Näytä rivimerkki';
$txt['sbox_MaxLines'] = 'Näkyvien viestien enimmäismäärä';
$txt['sbox_Height'] = 'Huutolaatikon korkeus (px)';

$txt['sbox_RefreshTime'] = 'Päivitysväli (sekunnit)';
$txt['sbox_BlockRefresh'] = 'Estä päivitys toimettomuuden vuoksi (' . $modSettings['lastActive'] . ' minuuttia)';
$txt['sbox_EnableSounds'] = 'Äänet päällä';

$txt['sbox_FontFamily'] = 'Kirjasinperhe';
$txt['sbox_TextSize'] = 'Kirjasinkoko';
$txt['sbox_TextColor1'] = '2. Kirjasimen väri kirkkaille teemoille';
$txt['sbox_DarkThemes'] = 'Lista tummista teemoista<div class="smalltext">(Hakemistojen nimet erotettuna pystysuoralla viivalla, esim. "BlackDaySMF1|blood_and_black")</div>';
$txt['sbox_TextColor2'] = '2. Kirjasimen väri tummille teemoille';

?>
Title: Re: SMF Shoutbox
Post by: texastig on November 02, 2007, 09:25:00 PM
I've got smf 1.1.4 installed and sbox v1.16b
installed.
I don't have the smf shoutbox tab
in the features and options.
In the actual shoutbox, I don't have the
clear history or history options showing up.
All I can see is these brackets where they
should be.
I am using the Minerva Theme and installed
shoutbox while the Minerva Theme was active.
Please advise.
Thanks
TexasTig
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 02, 2007, 10:32:49 PM
@texastig:

have you tried it with another theme...even the default one?

I asked becasue I have had other mods---like the smf gallery lite and pro versions that work really great, installed easy but no config link in the admin AND if it works in another theme then it is  the theme that is misbehaving (not compatible).
Title: Re: SMF Shoutbox
Post by: texastig on November 03, 2007, 09:05:48 AM
DarkAngel612, thank you helping me out.
I will try another theme and see if everything shows up.
I'll get back with you to tell you how it went.
Thanks
Title: Re: SMF Shoutbox
Post by: friky19 on November 03, 2007, 11:45:12 PM
nice addon, i got it working perfectly fine on my site. had to fix that line 83 error when installing, and add it manually to my theme.

now im having the same problem as texastig, i dont see the shoutbox tab in features and options, nor the clear history or history options. same brackets.... using versatility theme

oh and one other request, is there a joomla mod or something so it can incorporate into it ?

EDIT: FiXed the clear history thingy, it appears now. Thing is that there was no language file for spanish. I created one and now it appears. It now appears in the configuration also
Title: Re: SMF Shoutbox
Post by: Silveri on November 04, 2007, 08:31:05 AM
@texastig

Are you using another language than the ones provided by the mod? (such as english-utf8 or something else). If you change your own language to english you should be able to access the shoutbox settings in the admin panel.

Another, better way to do it is to go to the default theme folder and copy the english language file to match your used language.
Title: Re: SMF Shoutbox
Post by: Nibogo on November 04, 2007, 02:23:40 PM
I have one problem with this mod:

Table 'nibo_nibogo.smf_sbox_content' doesn't exist
Archivo: /www/awesomewebspace.com/n/i/b/nibo/htdocs/FORO/Sources/sboxDB.php
Línea: 107

but i dont know of i have to create this table or not
Title: Re: SMF Shoutbox
Post by: friky19 on November 04, 2007, 03:45:58 PM
damn, now i know why someone left....

NIBOGO, create the table manually, open your mysql thingy and go to the smf database and put this line:

CREATE TABLE `smf_sbox_content` ( `id` int(11) unsigned NOT NULL auto_increment, `time` int(10) unsigned NOT NULL, `ID_MEMBER` mediumint unsigned NOT NULL, `content` text NOT NULL, PRIMARY KEY (`id`));

then edit your sbox_setup.php and comment out these lines:

//$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__);


save file, add it all again to a zip, upload and reinstall. it should work now. Next time just read the whole post or you can use the search box to find. I did yesterday
Title: Re: SMF Shoutbox
Post by: texastig on November 04, 2007, 05:27:54 PM
Everyone,  I got it working. The board was not set to English but English-utf8.
Thanks for your help.
DarkAngel, thank you for your first reply in helping me.
Thanks,
TT
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 04, 2007, 07:42:51 PM
you are very welcome and thanks for coming back and letting all know what they may look into if the same problem should arise for them too.
Title: Re: SMF Shoutbox
Post by: liten on November 05, 2007, 06:30:34 AM
I don't know if this can help but I resolved my "internal server error"  by un-installing the flash chat integration package (since we ended up not needing it that much).

ETA:  actually updating the integration mod works too   :P
Title: Re: SMF Shoutbox
Post by: TheLyricist on November 06, 2007, 11:25:51 AM
Hey, guys...
I see this:
Notice: Use of undefined constant shop - assumed 'shop' in /host/lodidodi/forums/Sources/Load.php(1756) : eval()'d code on line 258

Notice: Use of undefined constant gallery - assumed 'gallery' in /host/lodidodi/forums/Sources/Load.php(1756) : eval()'d code on line 259


in my shoutbox all the time... :s
Any idea how to remove it?
(do i need to upload load.php?)
Title: Re: SMF Shoutbox
Post by: tam2oo5 on November 06, 2007, 03:37:18 PM
Also getting this load.php error , heres my error below

Notice: Use of undefined constant donate - assumed 'donate' in /home/content/t/a/m/****/html/SMF2/Sources/Load.php(1733) : eval()'d code on line 39

Is there anyway of removing the notice?, just so it wont appear?
Title: Re: SMF Shoutbox
Post by: TheLyricist on November 06, 2007, 07:11:46 PM
I found my problem...
It was in Modifications.english.php ... i wrote
$txt[chat] = 'chat';
instead of:
$txt['chat'] = 'chat';... :\
Title: Re: SMF Shoutbox
Post by: friky19 on November 06, 2007, 07:14:08 PM
anyone know where i can get some "skull" smilies :D
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 06, 2007, 08:22:07 PM
I am a font and smilie junkie...lol

I know many places where you can go see if they have some skull...I don't know of any 1 place that has nothing but skul ones though but feel free to email me or pm me here.
Title: Re: SMF Shoutbox
Post by: Tony_tha_Mastha on November 07, 2007, 03:32:31 PM
Hi,
I'm getting the same "internal server error" lots of people have been getting. I've tried chmodding sboxDB.php to 644 & 777 but nothing happened.

I'm using SMF 1.1.3 and I instaled the sbox_v1.16b.zip version.
Help please!

Edit: Done! I don't really know what I did to fix it, actually, I did nothing  :P
Thanks anyway!
Title: Re: SMF Shoutbox
Post by: elian on November 12, 2007, 04:47:01 AM
I have a question,
am there a possibility all of removing bulletins in 1 time in the shoutbox?
If yes, how and on which manner can be done that.
With thanks
Title: Re: SMF Shoutbox
Post by: Sic0 on November 12, 2007, 05:23:15 AM
Installation of SMF Shoutbox went very smoothly indeed and placing it in the right position in a custom theme wasn't a problem.

Many thanks to all who helped with this mod and I like the SMS feel to it.

My only concern is that it does seem to be slowing my site down (probably due to refreshing). Is it possible to reduce this in any way?


Cheers
Title: Re: SMF Shoutbox
Post by: elian on November 12, 2007, 05:45:04 AM
Quote from: DarkAngel612 on November 01, 2007, 12:56:04 AM
@h4ni:

Have you looked in the admin section at the settings for it. You should be able to set it there---I think

as for delteing messages...do you not see the red x's next to the shouts? again this is in the setting area at the bottom of the page where you can  check off the ones you want to delete

are you getting any error messages?

is it working right every other way?

no error messages  and it works verry good

An image of the admin section : here (http://i167.photobucket.com/albums/u130/elian-007/shoutbox.jpg)


Title: Re: SMF Shoutbox
Post by: friky19 on November 12, 2007, 10:06:04 AM
theres a configuration option via the back end that lets you change the refresh rate.
Title: Re: SMF Shoutbox
Post by: ITB on November 12, 2007, 10:53:40 AM
Hi I love this mod thank you for making it. I do have one problem though, the shoutbox seems to be conflicting with my edit smileys option in the default theme. If I disable the shout box I can edit my smileys if it's enabled the smileys all dissapear in the edit screen and I only get 2 blank lines.

SMF version 1.1.4
SMF Shoutbox version 1.16b



ETA: I think it has to do with the smiley row being visible, I unchecked this option and was able to see the smileys in my edit screen, when I rechecked it they were gone in my edit screen.
Title: Re: SMF Shoutbox
Post by: tsilvereagle on November 12, 2007, 06:48:53 PM
Quote from: ITB on November 12, 2007, 10:53:40 AM
Hi I love this mod thank you for making it. I do have one problem though, the shoutbox seems to be conflicting with my edit smileys option in the default theme. If I disable the shout box I can edit my smileys if it's enabled the smileys all dissapear in the edit screen and I only get 2 blank lines.

SMF version 1.1.4
SMF Shoutbox version 1.16b
ETA: I think it has to do with the smiley row being visible, I unchecked this option and was able to see the smileys in my edit screen, when I rechecked it they were gone in my edit screen.

I too have this problem...and and another one that may or may not be related.

Second problem:
I am using smf and joomla using joomlahacks bridge. smf was being run wrapped in joomla. All seemed to be working well. I then tried to add an additional smilie in a popup. This is what is displayed now on the wrapped joomla page, a "compressed" shoutbox and no forum, along with this:

'); for (row = 0; row < smileys.length; row++) { for (i = 0; i < smileys[row].length; i++) { smileys[row][2] = smileys[row][2].replace(/"/g, '"'); smileyPopupWindow.document.write('' + smileys[row][2] + ' '); } smileyPopupWindow.document.write("
"); } smileyPopupWindow.document.write('
\n\t\n'); smileyPopupWindow.document.close(); } // ]]>


SMF version 1.1.2
SMF Shoutbox version 1.15b
Title: Re: SMF Shoutbox [sbox#7 - Broken XHTML format]
Post by: [email protected] on November 13, 2007, 12:24:27 PM
I just recently submit a Bug Report to the SMF Shoutbox tracker, I posted here so others can fix the code in their already deployed SMF Shoutbox mod themself without the need to wait for the next SMF Shoutbox package release(s).

sbox#7 - Broken XHTML format
http://flyspray.birth-online.de/details/task26


Details

There is no closing tag on the "refresh" code in the sboxDB.php output to make it a valid XHTML. It surely breaking many xml parser out there.

#########

## The code at line 116 of sboxDB.php was written:
<meta http-equiv="refresh" content="' . $modSettings['sbox_RefreshTime'] . ';URL=sboxDB.php?ts=' . time() . '">';

#########

## The code should be written as:
<meta http-equiv="refresh" content="' . $modSettings['sbox_RefreshTime'] . ';URL=sboxDB.php?ts=' . time() . '" />';

#########

i.e. the last '">'; that should be written as '" />'; instead. I would love to provide a .diff file but I believe the correction upon the code pointed above is clear enough already.

Looking into the future, I think we can introduce more improvements upon XHML validity by testing the output against http://validator.w3.org/

T.I.A.
Title: Re: SMF Shoutbox
Post by: Chopper on November 14, 2007, 04:48:48 PM
Excellent mod!! ;D

How do you delete shouts? Also i have no admin panel?? Should i?
Title: Re: SMF Shoutbox
Post by: Chopper on November 15, 2007, 09:22:09 AM
Any ideas how i make the SMF shoutbox admin appear? The shoutbox is working great but i cannot change the size of the shoutbox.

Thanks
Title: Re: SMF Shoutbox
Post by: ITB on November 15, 2007, 08:48:45 PM
Quote from: Chopper on November 15, 2007, 09:22:09 AM
Any ideas how i make the SMF shoutbox admin appear? The shoutbox is working great but i cannot change the size of the shoutbox.

Thanks

Try going to server settings in the Admin CP and changeing the language from Englist-UTF8 to English
Title: Re: SMF Shoutbox
Post by: Chopper on November 16, 2007, 09:31:52 AM
it was already English?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 16, 2007, 12:31:29 PM
try changing it to the utf8 and see if that helps...are you using the portal too if so then the settings are in the block manager
Title: Re: SMF Shoutbox
Post by: sneezcheez on November 16, 2007, 12:37:47 PM
I would like to restrict viewing and use of the shout box to a certain member group, such as "members."  Anyone know of a way to do this with this mod?

Thanks
Title: Re: SMF Shoutbox
Post by: Chopper on November 16, 2007, 01:07:11 PM
Quote from: DarkAngel612 on November 16, 2007, 12:31:29 PM
try changing it to the utf8 and see if that helps...are you using the portal too if so then the settings are in the block manager

no it still doesnt show?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 16, 2007, 08:16:22 PM
ok, we shall just assume you don't have the portal soooo

I would suggest that you remove it then reinstall it again...especially if the  settings do not show up in the features and options section of the admin in your default theme---not a custome installed one but the one that comes with smf boards
Title: Re: SMF Shoutbox
Post by: Chopper on November 17, 2007, 05:22:22 AM
Quote from: DarkAngel612 on November 16, 2007, 08:16:22 PM
ok, we shall just assume you don't have the portal soooo

I would suggest that you remove it then reinstall it again...especially if the  settings do not show up in the features and options section of the admin in your default theme---not a custome installed one but the one that comes with smf boards

So there is no other way to change the height and width? I have to unistall and try again?
Title: Re: SMF Shoutbox
Post by: TrueSatan on November 17, 2007, 05:36:27 AM
It would probably be best if Chopper were to check (via ftp then a decent text/programming editor or notepad if you must) each of the files the mod edits to see that the code is in place where it should be rather than uninstall/reinstall.
Title: Re: SMF Shoutbox
Post by: Chopper on November 17, 2007, 08:02:21 AM
Quote from: TrueSatan on November 17, 2007, 05:36:27 AM
It would probably be best if Chopper were to check (via ftp then a decent text/programming editor or notepad if you must) each of the files the mod edits to see that the code is in place where it should be rather than uninstall/reinstall.

I have no idea how do this so i think i will leave it at the size it is.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 17, 2007, 04:10:36 PM
That is why I sugested for him to reinstall it. To go to admin and uninstall it then reinstall it.

This way he can pay very close attention to the page that appears letting us see if there is a file that will not behave....it will have a red check mark and the page will tell him that there is a problem. It may be that he is missing a file and the installer needs it.

Do that and then if it shows everything with either a green mark or nothing at all beside the fiel then install it. Otherwise come back and let us know what is with red....or even email me if you want.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 17, 2007, 04:20:04 PM
If you go to your themes...do you have any other theme installed?

If so then you can go in and manually edit the index or bardtemplate file in the theme, upload the file---remember to use a duplicate file so you can replace the edited one if it messed up---overwriting the one on the server.

Then go see if the admin section shows your setting for the shoutbox.

If so then no need to reinstall...you can go to the setting and set the height (I think that is the setting given).

The other way is to go to the governing file on the server, find the code to change it then upload the new file (again duplicate file) and overwrite the one on the server then refresh your page.

I can't streess the notion of using a duplicate file...personally I had ruined many things by not duplicating the file.
Title: Re: SMF Shoutbox
Post by: kok3n on November 17, 2007, 06:41:04 PM
how do i make the shoutbox appear in all pages? i already added this code in my boardindex.template.php


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



just above


      /* Each category in categories is made up of:



but the shoutbox only appears on the main page of the forum and not inside the boards..

i'm using  Fg:.:Zm theme
smf version 1.1.4
sbox_v1.16b
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 17, 2007, 06:56:51 PM
@kok3n:

try putting that code in the index.template.php file and place it just above:

// Show a random news item?


I think this will put it just above the news fader.
Title: Re: SMF Shoutbox
Post by: kok3n on November 17, 2007, 07:42:38 PM
Quote from: DarkAngel612 on November 17, 2007, 06:56:51 PM
@kok3n:

try putting that code in the index.template.php file and place it just above:

// Show a random news item?


I think this will put it just above the news fader.

are you talking about the index.template.php of the current theme that i'm using? coz i can't find the code in there..
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 17, 2007, 09:02:22 PM
Quote from: kok3n on November 17, 2007, 07:42:38 PM


are you talking about the index.template.php of the current theme that i'm using? coz i can't find the code in there..

I am talking about the theme you are using if not using the default smf theme.

You will not find the coding in any other theme isntalled...the package installers only edit the smf default theme.....you have to manually edit any other theme.
Title: Re: SMF Shoutbox
Post by: kok3n on November 17, 2007, 09:28:05 PM
hi DarkAngel612..

im using  Fg:.:Zm for my theme and and attached is a copy of my index.template.php

please advise on where i should add the code..

thanks in advance!! ;)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 18, 2007, 12:47:34 AM
find:

// Show a random news item?

then place the code directly above that line
Title: Re: SMF Shoutbox
Post by: kok3n on November 18, 2007, 01:35:00 AM
Quote from: DarkAngel612 on November 18, 2007, 12:47:34 AM
find:

// Show a random news item?

then place the code directly above that line

strangely, that code is not in there..
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 18, 2007, 02:42:21 AM
shoot...I know some themes did not have the boardindex file but I did not know that line was not in the index file...sorry.

let's try here:

FIND:
echo '
      </div>';insert the code here
      if (!empty($settings['enable_news']))


hopefully that will show it above the news fader.
Title: Re: SMF Shoutbox
Post by: dvlasic on November 18, 2007, 12:17:32 PM
Nick AutoComplete MOD for Shoutbox

Let's say that there is user Davorin on your forum.

If you write in Shoutbox

dav: hey there!

this mod will find "Davorin" in user database and change your text to this:

[b]@Davorin:[/b] hey there!

MOD:

In sboxDB.php find

$content = $_REQUEST['sboxText'];

and replace with

$content = AutoNickInsertMOD($_REQUEST['sboxText']);


Then find

?>

and before add this:

function AutoNickInsertMOD($poruka)
{
@include("../Settings.php");

$prvi_razmak=strpos($poruka," ");
$prva_dvotocka=strpos($poruka,":");
$znak_ispred_razmaka=substr($poruka, $prvi_razmak-1,1);

if($znak_ispred_razmaka==":" && ($prva_dvotocka < $prvi_razmak))
{
// uzimam prednji dio
$sufix=substr($poruka,0,$prvi_razmak);

// trazmi u bazi nick slican tome
@MYSQL_CONNECT($db_server, $db_user, $db_passwd);
@mysql_select_db($db_name);
$sql_upit =  ("SELECT * FROM smf_members WHERE memberName LIKE '" . substr($sufix,0,strlen($sufix)-1) . "%'");

$rezultat = MYSQL_QUERY($sql_upit);
$rec_broj = mysql_numrows($rezultat);

if($rec_broj>0)
{
$slican_nick=mysql_result($rezultat, 0,"memberName");

// zamijenjujem
return "[b]@" . $slican_nick . "[/b]:" . substr($poruka,$prvi_razmak);
}
else
{
return $poruka;
}
}
else
{
return $poruka;
}
}


(sorry for Croatian comments and var names)
Title: Re: SMF Shoutbox
Post by: digital_freeway on November 19, 2007, 12:40:07 AM
If I am using Account other than administrator I get the attached error message. Anybody knows how I can fix this?
Title: Re: SMF Shoutbox
Post by: LaVioRtH_cL on November 19, 2007, 07:22:03 AM
How can I restrict my shoutbox to members of under 50 messages?
Title: Re: SMF Shoutbox
Post by: mansoor on November 19, 2007, 07:41:05 AM
i am trying to make the shout box ONLY for MODS/Admins...
How do i do this?

I am using sbox_v1.16b by Mbirth

Can some1 please advise.

Thanks in advance
Title: Re: SMF Shoutbox
Post by: trekkie2444 on November 19, 2007, 11:23:35 PM
My font is way too small on my shoutbox, how do I make the shout text larger? I'm using the Enterprise TP theme. Also, how do you change the time it takes to autorefresh?
Title: Re: SMF Shoutbox
Post by: sueco on November 20, 2007, 11:22:23 AM
Hey, where will i type this code,   // display shoutbox
  if (function_exists('sbox')) sbox();
In the themes files? and where there? I just installed sms websystem.
Title: Re: SMF Shoutbox
Post by: sweetgirlee on November 22, 2007, 04:20:51 PM
i've a problem when i want to instal the shoutbox.

When i'm running sbox_setup
i've this error

Incorrect table name ''
Bestand: /home/vhosts/kletsplezier.nl/httpdocs/forum2/sbox_setup.php
Regel: 83
Title: Re: SMF Shoutbox
Post by: beegator on November 22, 2007, 06:23:37 PM
I am running black22 theme. I can put the code into the BoardIndex.php but the text color is dark blue on a dark grey background. I would love to change the font color to white. Where do you change the font color?  Sorry for the stupid question.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 23, 2007, 12:17:03 AM
In admin section --- features and options, this is where your settings are found. At the bottom of the list there of things you can change is a section to adjust things for dark background themes. Make sure you have your themes name in there and then set the colors accordingly.


Quote from: beegator on November 22, 2007, 06:23:37 PM
I am running black22 theme. I can put the code into the BoardIndex.php but the text color is dark blue on a dark grey background. I would love to change the font color to white. Where do you change the font color?  Sorry for the stupid question.
Title: Re: SMF Shoutbox
Post by: beegator on November 23, 2007, 12:05:03 PM
Quote from: DarkAngel612 on November 23, 2007, 12:17:03 AM
In admin section --- features and options, this is where your settings are found. At the bottom of the list there of things you can change is a section to adjust things for dark background themes. Make sure you have your themes name in there and then set the colors accordingly.


Quote from: beegator on November 22, 2007, 06:23:37 PM
I am running black22 theme. I can put the code into the BoardIndex.php but the text color is dark blue on a dark grey background. I would love to change the font color to white. Where do you change the font color?  Sorry for the stupid question.

Thank you I saw that, I just don't see where I can change the text color within the shout box. Thanks anyway.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 23, 2007, 07:25:21 PM
in that same place...where it says font color at the bottom...you type in the hex color code to change the color of the font, we have ours set at #ffcc33 which is a goldish color.
Title: Re: SMF Shoutbox
Post by: beegator on November 23, 2007, 08:27:09 PM
Thanks DarkAngel, that option does not appear anywhere on my screen under any options or tab.  Then again i'm using internet explorer.  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv328%2Fbeegator%2Femoti_335.gif&hash=a1ca297e3f25a1968e3974cbd6784d8fd2447653)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 23, 2007, 09:30:56 PM
first....try the default theme and see if the option pictured is shown there sometimes things are not in the added themes...you might also check the folder containing the default theme on your server to make sure that any and all files that have to do with the sbox are also in the dark theme in the same locations as the default theme.

confused yet, I do confusion really well....sory.
Title: Re: SMF Shoutbox
Post by: beegator on November 23, 2007, 09:44:30 PM
That's ok, I do village idiot really well.  I loaded the default theme and that option to change the font is not there. I have the current version SMF via web install but maybe not all the templates are current. I'll try and figure this out tomorrow. Migrane headache is setting in.  :(
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 23, 2007, 10:48:17 PM
ouch, I know migraines and sometimes coding tends todo that to peeps.


when you get a chance go to the server files and compare files with the default theme and the theme you have installed---all of them.

if you downloaded the zip file holding the shoutbox then you will also need to open it up to have the files on your computer to upload to your server into the places that you found them in the default theme folder.

Once you make sure all the themes have the same sbox files in the proper places then you can reboot the browser and go to your site to check and see if the place ha shown up in the admin panel.

Another thing...if you installed it thru the packages part of admin and had gotten ANY red checkmarks or fiels that were flagged as not quite right then it may not have installed everything properly so you may need to delete the installation (remove it from the packages folder also on the server) then reinstall the shoutbox again. YUK I know.
Title: Re: SMF Shoutbox
Post by: LaVioRtH_cL on November 25, 2007, 07:19:33 AM
Anybody can help me? http://www.simplemachines.org/community/index.php?topic=76344.msg1314050#msg1314050
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 25, 2007, 04:41:08 PM
since nobody answered there must not be a way to do it
Title: Re: SMF Shoutbox
Post by: Government on November 27, 2007, 05:41:39 PM
Hello,

I was searching solution for setup this SB on another template and didnt find resolve.
Soo i must ask here.
I see there is too much posts for this plugin and i didnt find finaly solution for this or i didnt see.

Soo, can u someone tell me how to set sb in another theme (www.forum-freedom.org)

Thank you
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 28, 2007, 12:10:55 AM
In order for the shoutbox to show in ANY other theme than the SMF default one you need to follow the instructions in the zipped file or the download page and enter the code manually into the files for the themes you want it to be in.


I think you need to enter this code into the boardindex.template.php file of each theme you want it to appear in:

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

Some themes do not have that file so you may need to insert it into the index.template.php file instead.




Quote from: Government on November 27, 2007, 05:41:39 PM
Hello,

I was searching solution for setup this SB on another template and didnt find resolve.
Soo i must ask here.
I see there is too much posts for this plugin and i didnt find finaly solution for this or i didnt see.

Soo, can u someone tell me how to set sb in another theme (www.forum-freedom.org)

Thank you
Title: Re: SMF Shoutbox
Post by: Government on November 28, 2007, 05:44:14 AM
allright, i want to add whatever need, but didnt find in pack anythink where write what to write and where ...

Tnx. for advice
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 28, 2007, 09:30:46 PM
I looked it up and this is what it says to do

To make the shoutbox work with other themes, you have to do the following:

Add the code

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


at the position you want the shoutbox to appear. (Mostly you will put this into BoardIndex.template.php.)


with that you should be able to see t in the themes...remember some do not have this file ao you need to put it into the index.template.php  file


Quote from: Government on November 28, 2007, 05:44:14 AM
allright, i want to add whatever need, but didnt find in pack anythink where write what to write and where ...

Tnx. for advice
Title: Re: SMF Shoutbox
Post by: andygar on November 29, 2007, 06:32:10 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.handofnorth.it%2Fshoutbox.jpg&hash=7a000dd8d333b3719e5ff6ef923583e86c54503b)

TinyPortal v0.9.8
smf 1.1.3
shoutbox 1.16

b
I've just installed sbox_v1.16b, but i got an error

the path is
mipage.com
when i go to the forum and open the iframe of shoutbox
url is: mipage.comsources/sboxDB.php?         (...page.comsou...)
the correct is: mipage.com/Sources/sboxDB.php?

i dont know how to fix   please helpme


well,,, i fix  my error, is smfbox template...
Title: Re : SMF Shoutbox
Post by: Windux on November 30, 2007, 04:13:07 PM
Hi,

I have just installed this Shoutbox on my forum, but this one is not at the center of the page.
Could you help me to find a solution?
This is the address of my forum:
http://www.hardware-pc.fr/forum/index.php

Thanks for helping.

PS: excuse my english because i'm french.
Title: Re: SMF Shoutbox
Post by: Government on December 01, 2007, 07:19:41 AM
Quote from: DarkAngel612 on November 28, 2007, 09:30:46 PM
I looked it up and this is what it says to do

To make the shoutbox work with other themes, you have to do the following:

Add the code

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


at the position you want the shoutbox to appear. (Mostly you will put this into BoardIndex.template.php.)


with that you should be able to see t in the themes...remember some do not have this file ao you need to put it into the index.template.php  file


Quote from: Government on November 28, 2007, 05:44:14 AM
allright, i want to add whatever need, but didnt find in pack anythink where write what to write and where ...

Tnx. for advice

hm, i edit boardindex.template.php and index.template.php and nothink was change :S
Title: Re: SMF Shoutbox
Post by: rejetto on December 01, 2007, 07:28:35 AM
i found a bug:
if your nickname is contained in the URL of smileys, the URL will be broken by the nickname highlighter.

i solved this by moving the parse_bbc() [and all the IF block outside] after the nickname highlighter.
Title: Re: SMF Shoutbox
Post by: Government on December 01, 2007, 01:09:13 PM
i got sb to work on another themes.
andygar help me.

thank you mate.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 01, 2007, 04:09:14 PM
Thanks for the two of you that got your boxes to work for posting back and letting us know.
Title: Re: SMF Shoutbox
Post by: directive0 on December 04, 2007, 09:23:37 AM
Tried searching, got no results.

Hi, I'm using this mod on my forum and while my first few messages worked fine, now it omits the first 8 characters from every shout from every user.  I can't figure out why.

Any help would be appreciated, thanks.
Title: Re: SMF Shoutbox
Post by: robbie93 on December 04, 2007, 05:35:10 PM
i have installed the shoutbox into my forum and when i go to send a message instead of seeing these :) ;) :D ;D >:( :( :o :-X
all i see are these x x x x x x x x x x x x x x x x x x x x x x x x
yet when i logout i can see the smileys as a guest?  yet when i login ( and i am admin  )  all i can see when people send or i send smileys are x's ?  does anybody know what is causing this problem?
thank you. ;D
http://robbie93andhotchildxox.com/
Title: Re: SMF Shoutbox
Post by: charlys2112 on December 05, 2007, 06:01:24 AM
Quote from: andygar on November 29, 2007, 06:32:10 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.handofnorth.it%2Fshoutbox.jpg&hash=7a000dd8d333b3719e5ff6ef923583e86c54503b)

TinyPortal v0.9.8
smf 1.1.3
shoutbox 1.16

b
I've just installed sbox_v1.16b, but i got an error

the path is
mipage.com
when i go to the forum and open the iframe of shoutbox
url is: mipage.comsources/sboxDB.php?         (...page.comsou...)
the correct is: mipage.com/Sources/sboxDB.php?

i dont know how to fix   please helpme


well,,, i fix  my error, is smfbox template...

I have the same problem how did you corrected it
Title: Re: SMF Shoutbox
Post by: charlys2112 on December 05, 2007, 06:20:10 AM
I found a quick and durty solution if someone has a best solution thks by advance

in sbox.template.php i add this line
$sourceurl = str_replace("Sources", "/Sources",$sourceurl);
After
$sourceurl = str_replace($boarddir, $boardurl, $sourcedir);

I have a other template probleme

http://www.nightfall-wow.fr/index.php?action=forum

as you can see it is not pretty
Title: Re: SMF Shoutbox
Post by: robbie93 on December 05, 2007, 08:20:21 AM
does anybody know anything about my problem? i still have x's in my shoutbox?  this is the right section. :D
Title: Re: SMF Shoutbox
Post by: Bust_Ed on December 06, 2007, 05:27:31 AM
So, it won't work in UTF-8?
Title: Re: SMF Shoutbox
Post by: olandir on December 07, 2007, 11:46:51 PM
It appears that when I am on any other page of my forum the javascript that controls the shoutbox keeps refreshing.

So say I go to my board index where the shoutbox is, and then maybe I view my profile... the page continues to refresh every 20 seconds like it's trying to refresh the shoutbox... of course the shoutbox isn't there so I get the "parent.document.sbox.ts is null or not an object' when it refreshes

any reason why it would still try to reload the shoutbox on other pages in the forum?
Title: Re: SMF Shoutbox
Post by: softtouch on December 10, 2007, 10:33:52 PM
I have a problem with the shoutbox related to FF and IE
In FF, the shouts in the shoutbox are left aligned, as they should (I believe), but in IE, they are all centered, which is annoying and hard to read.
Where and how can I fix this?
Title: Re: SMF Shoutbox
Post by: Basie on December 15, 2007, 03:42:32 PM
How do I change the title? I want it to say "mysite shoutbox", not SMF shoutbox.
Title: Re: SMF Shoutbox
Post by: FotoZone on December 15, 2007, 04:13:10 PM
yes, i need  moved chat
Title: Re: SMF Shoutbox
Post by: FotoZone on December 15, 2007, 08:13:33 PM
PLEASE HELP


THX!!
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 16, 2007, 03:19:56 AM
Hi Fotozone...

To change the name of your shoutbox is not hard to do at all ...

you need to go to your sbox.english.php file, I think it is in the theme folder

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

Just highlight the name only and change it to whatever you want it to be.

Once you make your change-----on a duplicate in case it messes up----then upload the edited file to overwrite the one on your server....refresh your page and the name should be different on the screen.
Title: Re: SMF Shoutbox
Post by: robos85 on December 16, 2007, 06:21:49 AM
Can anyone post how to install it step by step ?
Title: Re: SMF Shoutbox
Post by: waste2 on December 16, 2007, 07:30:07 AM
After I send a message to shoutbox I see this:
Notice: Undefined variable: divclass in /www/usr/home/2/9/wb49292/www/-/a/Sources/sboxDB.php on line 206

Something is wrong with the code. At line 206 script is trying to use $divclass variable which wasn't previously set.

Version: last version from sbox_v1.16b.zip. Unmodified.

__( edit )______________________________
I can't also see odd/even color differences. All messages are the same color. On the screenshot it looks like there should lighter and darker font color.
Title: Re: SMF Shoutbox
Post by: FotoZone on December 16, 2007, 09:13:07 AM
Quote from: DarkAngel612 on December 16, 2007, 03:19:56 AM
Hi Fotozone...

To change the name of your shoutbox is not hard to do at all ...

you need to go to your sbox.english.php file, I think it is in the theme folder

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

Just highlight the name only and change it to whatever you want it to be.

Once you make your change-----on a duplicate in case it messes up----then upload the edited file to overwrite the one on your server....refresh your page and the name should be different on the screen.

No name i need moved to the footer....
Title: Re: SMF Shoutbox
Post by: FotoZone on December 16, 2007, 09:22:24 AM
i need moved the chat to the posistion on the forum,  footer..
Title: Re: SMF Shoutbox
Post by: robbie93 on December 16, 2007, 10:06:18 AM
hi darkangel612,  i can't find you're code anywhere on my server, ( $txt['sbox_ModTitle'] = 'SMF Shoutbox'; )
i have looked in the themes folder and the code isnt there?  can you be more specific please. 

thank you. :
Title: Re: SMF Shoutbox
Post by: waste2 on December 16, 2007, 10:42:18 AM
FORUM_ROOT/Themes/THEME_NAME/languages/sbox.LANGUAGE.php
Title: Re: SMF Shoutbox
Post by: Basie on December 16, 2007, 01:15:22 PM
Can someone please answer my question? How do I change the Title of the shoutbox?

Also I would like to know how to disable smilies, so that no graphics appear in the chat window.

Thanks.
Title: Re: SMF Shoutbox
Post by: waste2 on December 16, 2007, 01:21:25 PM
Reply #1364 was for you. Geeez ppl can't you read?
Title: Re: SMF Shoutbox
Post by: FotoZone on December 16, 2007, 01:33:56 PM
i need moved the chat to the posistion on the forum,  footer..
Title: Re: SMF Shoutbox
Post by: Basie on December 16, 2007, 01:35:24 PM
Quote from: waste2 on December 16, 2007, 01:21:25 PM
Reply #1364 was for you. Geeez ppl can't you read?

Ok, thanks (I didn't know you were replying to my question).


Also, how do you disable smiles, so that only text smilies appear, not images?
Title: Re: SMF Shoutbox
Post by: nick09 on December 16, 2007, 01:48:44 PM
Quote from: FotoZone on December 16, 2007, 01:33:56 PM
i need moved the chat to the posistion on the forum,  footer..

open your theme's BoardIndex.template.php

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


remove it.

if you want the chat under the Info Center.(area where stats are etc....)

find:
?>
replace:
// display shoutbox
  if (function_exists('sbox')) sbox();
?>


hope that helps. ;D
Title: Re: SMF Shoutbox
Post by: robbie93 on December 16, 2007, 01:52:27 PM
waste2?   was you're last but one post directed towards me?  if so i mean this FORUM_ROOT/Themes/THEME_NAME/languages/sbox.LANGUAGE.php

where would that be ?   on the forum itself or the server,  i have cpanel ?
Title: Re: SMF Shoutbox
Post by: nick09 on December 16, 2007, 02:10:51 PM
robbie i think its membergroup permission is your prob.
Title: Re: SMF Shoutbox
Post by: FotoZone on December 16, 2007, 02:35:12 PM
Quote from: nick09 on December 16, 2007, 01:48:44 PM
Quote from: FotoZone on December 16, 2007, 01:33:56 PM
i need moved the chat to the posistion on the forum,  footer..

open your theme's BoardIndex.template.php

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


remove it.

if you want the chat under the Info Center.(area where stats are etc....)

find:
?>
replace:
// display shoutbox
  if (function_exists('sbox')) sbox();
?>


hope that helps. ;D


now in header ...... why?  i need in footer...
Title: Re: SMF Shoutbox
Post by: waste2 on December 16, 2007, 04:46:52 PM
robbie93: It's on your FTP server. The same place where you store all your webpage files. You can access it by cPanel File Manager (one of icons) or by FTP client software.

FORUM_ROOT/Themes/THEME_NAME/languages/sbox.LANGUAGE.php

FORUM_ROOT - is a folder where are all main SMF files.
THEME_NAME - is a folder which has all Theme (Skin) files. You can have multiple themes on your forum installed so you have to enter each one and check for this file.
LANGUAGE - is a language translated file with all shoutbox texts. You can have multiple language files, for me this is: sbox.english.php and sbox.polish.php.

You have to open all language files in all themes and change variable $txt['sbox_ModTitle']="NEW_NAME_HERE" into whatever you want. NEW_NAME_HERE is your new shoutbox name of course.
Title: Re: SMF Shoutbox
Post by: FotoZone on December 16, 2007, 05:12:42 PM
Quote from: FotoZone on December 16, 2007, 02:35:12 PM
Quote from: nick09 on December 16, 2007, 01:48:44 PM
Quote from: FotoZone on December 16, 2007, 01:33:56 PM
i need moved the chat to the posistion on the forum,  footer..

open your theme's BoardIndex.template.php

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


remove it.

if you want the chat under the Info Center.(area where stats are etc....)

find:
?>
replace:
// display shoutbox
  if (function_exists('sbox')) sbox();
?>


hope that helps. ;D


now in header ...... why?  i need in footer...


help
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 16, 2007, 10:22:49 PM
the same code you used to display the shoutbox...just keep moving it down toward the bottom of that boardindex file.

t is trial and error...work on a duplicate and upload the edited file, saving the original to replace in case you accidently delete something wrong.
Title: Re: SMF Shoutbox
Post by: Andy134 on December 16, 2007, 11:12:55 PM
Hmm, I'm getting that error: "parent.document.sbox.ts is null or not an object" everytime I post in the shoutbox. What do I do to fix it?
Title: Re: SMF Shoutbox
Post by: FotoZone on December 17, 2007, 07:50:00 AM
what?
Title: Re: SMF Shoutbox
Post by: waste2 on December 17, 2007, 09:13:24 AM
Quote from: waste2 on December 16, 2007, 07:30:07 AM
After I send a message to shoutbox I see this:
Notice: Undefined variable: divclass in /www/usr/home/2/9/wb49292/www/-/a/Sources/sboxDB.php on line 206

Something is wrong with the code. At line 206 script is trying to use $divclass variable which wasn't previously set.

Version: last version from sbox_v1.16b.zip. Unmodified.

__( edit )______________________________
I can't also see odd/even color differences. All messages are the same color. On the screenshot it looks like there should lighter and darker font color.

Can someone answer? Or at least try to verify the code and confirm (or not) my investigation?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 17, 2007, 08:32:56 PM
Just for the record people...if you don't get an answer to your questions it probably means that there is nobody with an answer.

Sorry but since most are volunteers answering what they themselves have figured out, is all I myself can promise you.


@waste2

I have never seen that  code.... now that said this is what is in my unedited file sboxDB.php at the line you indicated:

          $output .= '<a href="' . $scripturl . '?action=profile;u=' . $context['user']['id'] . '" target="_blank" class="' . $divclass . '">';


@Andy134

I don't even find that file in this program anywhere...


Have either of you tried to delete it and reinstall the shoutbox thru your packages in admin?

About the div error....when you edited the board.index.template file (or the index.template file) did you put the code in the correct spot and not within the div code....try moving the code to another spot.

@wjhdiz

what do you mean "mode" classic theme? If you mean the classic theme that is installed by SMF software then the answer is yes...if you mean any theme older than the ones working with the latest version of SMF then the answer might be probably not.
Title: Re: SMF Shoutbox
Post by: waste2 on December 17, 2007, 09:23:53 PM
Quote from: DarkAngel612 on December 17, 2007, 08:32:56 PM
@waste2

I have never seen that  code.... now that said this is what is in my unedited file sboxDB.php at the line you indicated:

          $output .= '<a href="' . $scripturl . '?action=profile;u=' . $context['user']['id'] . '" target="_blank" class="' . $divclass . '">';
And that's the point. There is variable $divclass used which isn't set before. That's why PHP shows an error "Undefined variable: divclass in sboxDB.php on line 206". It happens everytime when a shout is added to history ("write" action).
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 17, 2007, 10:12:23 PM
@waste2

have you tried uploading a fresh sboxDB.php file to your server and overwriting the one there already?

maybe that will help
Title: Re: SMF Shoutbox
Post by: Andy134 on December 18, 2007, 12:46:15 AM
Quote@Andy134

I don't even find that file in this program anywhere...


Have either of you tried to delete it and reinstall the shoutbox thru your packages in admin?

About the div error....when you edited the board.index.template file (or the index.template file) did you put the code in the correct spot and not within the div code....try moving the code to another spot.
Well, actually I haven't touched the coding or anything - and yeah, I've tried reinstalling. Same problem. All I did was install it and it works fine other than the error I'm getting.
Title: Re: SMF Shoutbox
Post by: waste2 on December 18, 2007, 01:48:21 AM
Quote from: DarkAngel612 on December 17, 2007, 10:12:23 PM
@waste2

have you tried uploading a fresh sboxDB.php file to your server and overwriting the one there already?

maybe that will help
Mate, I checked installation files and they are identical as files in the ZIP archive (version 1.16b), I confirmed their CRC sums so there is no point in installing the same again. The problem is well known and it has beed raised several times in this thread before.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 18, 2007, 04:33:07 AM
@andy134:

so you are using the shoutbox in the default theme...since you did not need to edit the files with code, right?

I wish I could be more help but sorry  I am at a loss.


@waste2:

If the problem is well known and raised several times in this thread with no answer then I guess nobody knows what to do. Try searching the forum topics for more help since you checked the files ( I check them the hard way...line for line...and like I posted in my file there is no such line anywhere in that file, which is why I suggested to reupload that file.
Title: Re: SMF Shoutbox
Post by: waste2 on December 18, 2007, 10:29:18 AM
OK then as I underestand nobody is developing this addon anymore and nobody cares for removing a bugs. What a pitty... ;(

I personaly removed $divclass, it is not needed actually for the Shoutbox to work. But I thought addon author should do smth about it. Well, that's all I wanted to know.
Title: Re: SMF Shoutbox
Post by: peterpan72 on December 18, 2007, 02:00:19 PM
I am trying to install a Shout Box to SMF 1.1.4 but for ever Mod I get its saying its not compatible or something, any ideas?

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 19, 2007, 01:37:42 AM
I totally understand waste2....many fine mods out there but not many of the authors try to make them better or help out much.

At least you were kind enough to post what you did so if someone else has the same problem they will find a possible solution.
Title: Re: SMF Shoutbox
Post by: peterpan72 on December 19, 2007, 09:45:13 PM
I am trying to install a Shout Box to SMF 1.1.4 but for ever Mod I get its saying its not compatible or something, any ideas?

Title: Re: SMF Shoutbox
Post by: robbie93 on December 20, 2007, 06:11:45 AM
hi,  i have a shoutbox set up so that it appears on every page of our forum,  we want it on every page exept the home page,  does anybody know how to do this.


http://robbie93andhotchildxox.com/
Title: Re: SMF Shoutbox
Post by: 2bz2p on December 20, 2007, 08:20:25 PM
Hi,

     Not sure if this was posted or not though i did see it. Could some help me out in getting the code to ad user online list on to the shout box. I can fiqure out the layout though when i tried the php command my self I ended up with a syntex error.

any help will be greatly appreciated
thank
2b
Title: Re: SMF Shoutbox
Post by: littleone on December 20, 2007, 10:22:42 PM
Quote from: robbie93 on December 20, 2007, 06:11:45 AM
hi,  i have a shoutbox set up so that it appears on every page of our forum,  we want it on every page exept the home page,  does anybody know how to do this.


http://robbie93andhotchildxox.com/

Just a suggestion but you could try doing this with the Ad mod.  Add a new add that is PHP with the code :

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

The ad management mod will let u specify where and on what pages you can have it.  Havent tried myself, but was just a quick thought that might be the easiest way to try it first ;)
Title: Re: SMF Shoutbox
Post by: robbie93 on December 21, 2007, 11:24:55 PM
thanks for the info littleone, i will try that.

i have new problem now,  my shoutbox is appearing twice in the forum, once on every page

do you know how i can make it so that the shoutbox doesnt appear twice in the forum lol,  i have had to take out the code  // display shoutbox
  if (function_exists('sbox')) sbox();   because of this problem lol :D
Title: Re: SMF Shoutbox
Post by: nick09 on December 22, 2007, 04:55:56 PM
Quote from: NoDrAmaUk on December 19, 2007, 09:45:13 PM
I am trying to install a Shout Box to SMF 1.1.4 but for ever Mod I get its saying its not compatible or something, any ideas?



get the updated shoutbox by mbirth

http://custom.simplemachines.org/mods/index.php?mod=412
Title: Re: SMF Shoutbox
Post by: Spoodle on December 23, 2007, 08:25:54 AM
Can anyone tell me why the shouts are centre justified in IE?  Most odd to look at :-)

Spoodle
Title: Re: SMF Shoutbox
Post by: dheeraj on December 24, 2007, 01:00:15 AM
Hi,

I have installed SEO4SMF and after installing that one iam facing
problem with deleting shouts in SMF Shoutbox..
when i try to delete it a new page ( index.php)
was opening in that shout box..

here is a screenshot..
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi12.tinypic.com%2F6nw33o4.jpg&hash=4b5ebb63fccb416b950d1552c099b5251d2e6e1e)

can someone help me plz...
Title: Re: SMF Shoutbox
Post by: Basie on December 24, 2007, 01:21:00 PM
I have a suggestion...

In the next version of this please make it so that deleted shouts are marked as 'deleted' in the history page.

As it stands there is no way of knowing which shouts were deleted.
Title: Re: SMF Shoutbox
Post by: keith021773 on December 24, 2007, 03:20:03 PM
I am having a small problem now...    Just moved my site to a different host and now the shoutbox doesn't work.     All I get is a Server Not Found    and it's listing this as where the file is:     www.******.comsources     Any idea why it says that now?   

Thanks in advance.   Also, I have the 1.20 version.

You can also go straight to it just fine by using this URL    http://******.com/Sources/sboxDB.php

Any ideas?
Title: Re: SMF Shoutbox
Post by: nick09 on December 24, 2007, 03:32:17 PM
try installing this updated one:
http://custom.simplemachines.org/mods/index.php?mod=412
Title: Re: SMF Shoutbox
Post by: keith021773 on December 24, 2007, 03:47:05 PM
Thanks Nick..   But I'm getting a package is corrupt on both the 1.16 and the 1.16b
Title: Re: SMF Shoutbox
Post by: nick09 on December 24, 2007, 04:16:53 PM
try repairing the archive.

use http://rarlab.com/ winrar to do it.
Title: Re: SMF Shoutbox
Post by: keith021773 on December 24, 2007, 04:43:07 PM
I did that..    Didn't work.   Still looks for the same thing..   www.******.comsources
Title: Re: SMF Shoutbox
Post by: nick09 on December 24, 2007, 04:45:43 PM
here try the attached one i have here.
Title: Re: SMF Shoutbox
Post by: keith021773 on December 25, 2007, 12:17:00 AM
Thanks nick..   I got it to upload..   But same problem..    :(
Title: Re: SMF Shoutbox
Post by: keith021773 on December 26, 2007, 11:45:44 AM
Here is a screenshot of the error..     I just can't figure this out!     Everything was fine before the move to the new host.   And when the site came back up..   This is the error I had..

Any ideas?
Title: Re: SMF Shoutbox
Post by: khampster on December 27, 2007, 03:13:22 AM
I have manually installed the Shoutbox but this is what I got when I completed the manual install...

how can i fix this?

Table 'projekt1_forum.smf_sbox_content' doesn't exist
File: /home/projekt1/public_html/forum/Sources/sboxDB.php
Line: 107

Title: Re: SMF Shoutbox
Post by: khampster on December 27, 2007, 09:49:42 AM
Quote from: khampster on December 27, 2007, 03:13:22 AM
I have manually installed the Shoutbox but this is what I got when I completed the manual install...

how can i fix this?

Table 'projekt1_forum.smf_sbox_content' doesn't exist
File: /home/projekt1/public_html/forum/Sources/sboxDB.php
Line: 107



ok i got the box to work... now it wont let me type anything in the box.... i believe this is a database issue... you can go visit my site.. and i can actually let you try this out ...

here is a test account i made for the support group on this forum..

username: support
password: psesupport

http://www.projektshocker.com/pse
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 27, 2007, 06:15:40 PM
well I went there and it letsyou type intot he spot but it won't show what you typed....now you said you manually installed it...does that mean you did not use the function in the admin panel for installing the packages?

If you had tried before using this function did it toss you errors or not work?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 27, 2007, 06:25:39 PM
Quote from: keith021773 on December 26, 2007, 11:45:44 AM
Here is a screenshot of the error..     I just can't figure this out!     Everything was fine before the move to the new host.   And when the site came back up..   This is the error I had..

Any ideas?

according to the image your url is not right...you might try going into the admin panel and making sure that ---I think it is in the configuration for server--- where it lists the url for the files is corectly put in there...like the tailing forward slash "/" should be in there after the main part of the url " www.******.comsources "

the / needs to be just before the word sources.

so it should read http://www.yoursitename.com/directory or your forum location/sources

maybe in the 2 files on your server...settings.php and settings_bak.php there is a section there to locate:

########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = '/home/***/***/***';      # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/***/***/***/Sources';      # Path to the Sources directory.

here is where to check for that /to be set also...add it then reupload the files ... remember to do the changes on a duplicate of each one.
Title: Re: SMF Shoutbox
Post by: khampster on December 27, 2007, 06:38:24 PM
Quote from: DarkAngel612 on December 27, 2007, 06:15:40 PM
well I went there and it letsyou type intot he spot but it won't show what you typed....now you said you manually installed it...does that mean you did not use the function in the admin panel for installing the packages?

If you had tried before using this function did it toss you errors or not work?

It works fine now... i have to manually install all of my mods on the forum because somehow my package manager doesnt work with my host server that i have. 

the only problem is that, when i use mozilla firefox at my home... i cannot post anything on the shout box, but if i switch browsers... example... internet explorer... it allows me to post on the shout box and i also have the admin functions in there... ill give u a screen shot of it in a few.
Title: Re: SMF Shoutbox
Post by: khampster on December 27, 2007, 06:41:15 PM
Heres the screen shot... you will see Internet explorer has the admin functions while the firefox doesnt have admin functions...

I have tried it on a different computer and it works on both browsers.

just the one computer i have at home is not working for some reason.. :(
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 27, 2007, 07:29:57 PM
i also saw where someone stated it did not work on mac...lol

that is what I am using is a mac but as you can see from a couple of shouts i just did...it works with IE but not FF nor safari or netscape...lol

I know that i experienced many problems when I first moved our stuff from one server host to another too. I don't know why the packages won't work on this new server of yours and not being able to get into the admin part to roust about is difficult. I can only suggest that you check the setting in everwhere in admin to make sure the urls are all the same...your password for the server is correctly installed into the admins section and that the packages on the server has the correct permissions set...755 to allow access

hope something in here helps.
Title: Re: SMF Shoutbox
Post by: khampster on December 27, 2007, 07:39:37 PM
Quote from: DarkAngel612 on December 27, 2007, 07:29:57 PM
i also saw where someone stated it did not work on mac...lol

that is what I am using is a mac but as you can see from a couple of shouts i just did...it works with IE but not FF nor safari or netscape...lol

I know that i experienced many problems when I first moved our stuff from one server host to another too. I don't know why the packages won't work on this new server of yours and not being able to get into the admin part to roust about is difficult. I can only suggest that you check the setting in everwhere in admin to make sure the urls are all the same...your password for the server is correctly installed into the admins section and that the packages on the server has the correct permissions set...755 to allow access

hope something in here helps.

yea i have chmodded the whole directory to '777'

and still no luck... i believe this is more of a software issue than a mod issue...
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 27, 2007, 10:01:22 PM
could be sorry i wasn't much help
Title: Re: SMF Shoutbox
Post by: Davart on December 29, 2007, 03:02:51 AM
Got it, installed it into a custom theme, works great.

One question? How can I make the display font larger and change the color?

I found the 'xx-small' in the sbox_setup.php

I need to edit this and and color, but I can't find the file anywhere? It's almost to small for my old eyes.

Thanks

Title: Re: SMF Shoutbox
Post by: Rafferty on December 29, 2007, 04:43:14 AM
Can set that in Admin/Features & Options

My Shout History isn't working though, did for some time then suddenly stopped. Displays only the last shout. Why would that be?
Title: Re: SMF Shoutbox
Post by: aFiEND on December 29, 2007, 06:20:00 AM
Quote from: Spoodle on December 23, 2007, 08:25:54 AM
Can anyone tell me why the shouts are centre justified in IE?  Most odd to look at :-)

Spoodle

same problem here

anyone?
Title: Re: SMF Shoutbox
Post by: robbie93 on January 02, 2008, 09:41:07 PM
to
         waste2

thanks for the reply on page 69 mate,  just to let you know what you told me to do worked,  thanks for you're help,  you're a diamond .

thanks again. :D    sorry for the late reply.
Title: Re: SMF Shoutbox
Post by: Theler on January 03, 2008, 04:12:47 PM
Edit: Nevermind!
Title: Re: SMF Shoutbox
Post by: cctvguy on January 05, 2008, 12:58:20 PM
Managed to get the following

Notice: Undefined index: sbox_KillShout in /home/fhlinux171/l/lindaswholefoods.co.uk/user/htdocs/smf/Sources/sboxDB.php on line 130

[January 05, 2008, 05:52:42 PM]
Notice: Undefined index: sbox_RefreshBlocked in /home/fhlinux171/l/lindaswholefoods.co.uk/user/htdocs/smf/Sources/sboxDB.php on line 252


Notice: Undefined index: sbox_HistoryNotFound in /home/fhlinux171/l/lindaswholefoods.co.uk/user/htdocs/smf/Sources/sboxDB.php on line 263
[]

...within the shoutbox window...any ideas how I get rid of it?  please
Title: Re: SMF Shoutbox
Post by: leet8845 on January 05, 2008, 08:48:29 PM
 :(
I installed this shout box today version 1.16.on SMF 1.1.4

Nothing happened so added

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

to the BoardIndex.template.php as instructed in the desription for this mod. Then I got HTTP 500. I still had the template.php open so I undo back to normal and upload but still HTTP 500. I cant understand why if i changed it back?

Any ideas else i've lost alot of work  :'(
Title: Re: SMF Shoutbox
Post by: trekkie2444 on January 06, 2008, 04:42:17 PM
Whenever I go to install this, it tells me that it needs my ftp info, so I put that in, but then I get a "This page cannot be displayed" in both the mesh theme and the default theme of my forum.
Title: Re: SMF Shoutbox
Post by: JW21 on January 08, 2008, 02:18:55 PM
I'm not sure where I'm supposed to post this and I'm new here and to php so be gentle!.. :D

I installed the SMF Shoutbox to my forum and while I can post and everything seems to work ok, so far, I do get an error message. Can anyone help me fix this problem and perhaps explain in simple terms so I understand? I would appreciate it!

This is the error I get:

Line: 11
Char: 5
Error: 'parent.document.sbox.ts' is null or not an object
Code: 0
URL: http://gitxsanculture.com/forum/Sources/sboxDB.php?ts=1199812042
Title: Re: SMF Shoutbox
Post by: leet8845 on January 09, 2008, 05:47:05 PM
Quote from: leet8845 on January 05, 2008, 08:48:29 PM
:(
I installed this shout box today version 1.16.on SMF 1.1.4

Nothing happened so added

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

to the BoardIndex.template.php as instructed in the desription for this mod. Then I got HTTP 500. I still had the template.php open so I undo back to normal and upload but still HTTP 500. I cant understand why if i changed it back?

Any ideas else i've lost alot of work  :'(

I managed to fix this be reinstalling SMF(no thanks to anyone on this thread;P), i didnt loose my database so it didnt take long.
I have now modded SMF shoutbox, the instructions for modding custom themes should be changed!!! You edit the index.template.php file not the boardindex or whatever it tells you on the mod page. That worked for me but the latter crashed my whole site.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 09, 2008, 08:44:08 PM
ok, let me start off with.....excuse me if this sounds harsh and mean but it has been a very bad day with many complainers.

Nobody helped...maybe becasue nobody has had your problem before and no idea what to do.

I for one am always telling people to uninstall and reinstall but many don't want to cause it is too much work for them...so sorry but youwant a board then get ready for headaches too.

i manage 3 sites including my own so I guess that is 4 in all and am very new at boards, php,smf and I can do it so can you.

There must be something that is not inserted right...maybe the code you inserted into the index file broke up something and you seem to have cut it off at the knees.

reinstall a fresh unedited file from your template back in....the file to edit IS the boardindex file...unless your theme does not have this one then use the index.template file.

Be careful where you put the code...not to split apart another code or you will get mistakes.

check...double check your manual edits to make sure they are correct and please don't say you know what you are doing cause then you shouldnt be here asking for help.

We are all volunteers helping each other so don't get amde if you don't get an answer right away or have to find the answer on your own we have other lifes outside of here too.

If management thinks I have over stepped my bound in here then they may remove this post but as I have stated it has been a bad day and I blew up.
Title: Re: SMF Shoutbox
Post by: fmofmpls on January 11, 2008, 12:02:08 PM
Just installed the mod on my default theme as well as my other custom themes with no problems whatsoever. The custom themes were done by editing the board index template.

A couple questions though as I couldn't find the answers here.

Can the Shout Box be moved further down the page?
Can the Shout Box title be renamed to something else?

Thanks for a great mod!
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 11, 2008, 09:15:49 PM
for moving the shoutbox like to the bottom you need to play with the code by moving it down towards the bottom of the file....remember use a duplicate.

to rename your shoutbox to ---for instance "let's talk"

you need to get your sbox.english.php

and find:
$txt['sbox_ModTitle'] = 'change the name here;
Title: Re: SMF Shoutbox
Post by: Theler on January 12, 2008, 02:04:06 PM
I installed the shoutbox, on the default theme, and it said it was successful. It is most definitely in the database, but the shoutbox does not appear on the forum. I am not really sure what I am doing wrong.
I would appreciate any help thanks in advance.

Edit: Figured it out.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 12, 2008, 10:47:38 PM
theler: did you add the code to the boardtemplate.index file?

// display shoutbox
  if (function_exists('sbox')) sbox();
Title: Re: SMF Shoutbox
Post by: Theler on January 12, 2008, 10:55:22 PM
Quote from: DarkAngel612 on January 12, 2008, 10:47:38 PM
theler: did you add the code to the boardtemplate.index file?

// display shoutbox
  if (function_exists('sbox')) sbox();
No I just realized this only works with an older version and I am using 1.1.4, thanks anyways for the response.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 12, 2008, 11:45:18 PM
if you are using version 1.1.6 then it should work with this version of smf...others do
Title: Re: SMF Shoutbox
Post by: bound2bmine on January 13, 2008, 12:11:55 PM
I can't change name no matter what I do. I changed it as indicated in a post I read here. Still remains SMF Shoutbox.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 14, 2008, 05:29:00 AM
once you changed it and reuploaded it to your server (overwriting the one there) it still did not change the name???

or are you looking at the bottom of the shout box where it says smf shoutbox...i don't think that ones can be changed but give me a day or two and feel free to pm me a reminder too.
Title: Re: SMF Shoutbox
Post by: johnlena5252 on January 14, 2008, 05:22:28 PM
SOME ONE PLZ HELP ME.....FOR SOME REASON THE FORUM SHOUT BOX IS CENTERED

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg144.imageshack.us%2Fimg144%2F3443%2Fforumav3.th.jpg&hash=14a3eb97f4f9472c6df4e5ef217a459c9e2fab81) (http://img144.imageshack.us/my.php?image=forumav3.jpg)


can any one help me i tryed everthing..... i want it so that its is in left margin
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 14, 2008, 05:40:30 PM
johnlena525:

when you inserted the code did you accidently insert it into existing code that was centered?

is this on all your themes or just the current or default one
Title: Re: SMF Shoutbox
Post by: johnlena5252 on January 15, 2008, 01:53:26 PM
idk

it just happensin that one i dont like it can you help me plz...

and yea i checks trouth the theme script but cant find the probleam...

i even chenged all the "center" to "left" well not all of but most of it
Title: Re: SMF Shoutbox
Post by: johnlena5252 on January 15, 2008, 02:30:41 PM
never mind i found the probleam lol

it my my sytle.css

....


but there is another probleam  that when you try to "CLEAR HISTORY" it dont do nothing my post are still there
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 15, 2008, 09:53:16 PM
glad you found where to fix the center thing but I am sorry that I can't help with the other problem...I have never experienced it so don't know a solution to fix it.

I have seen it posted here in the forum so do a search for that problem.
Title: Re: SMF Shoutbox
Post by: zepfms on January 16, 2008, 07:55:25 PM
Hello, I installed SMF Shoutbox 1.16 on smf 1.1.4 successfuly. The problem is that i cant see any options at the permitions menu

Any ideas?
I which file should I look ?

Thank you in advance.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 17, 2008, 03:25:33 AM
sometimes it depends on the theme if you are using a different one than the default theme.

now do you find it in the "features and options" section in admin or do you mean the permissions for the different groups.

If the groups then I don't think it is listed there.
Title: Re: SMF Shoutbox
Post by: zepfms on January 17, 2008, 06:57:37 AM
Quote from: DarkAngel612 on January 17, 2008, 03:25:33 AM
sometimes it depends on the theme if you are using a different one than the default theme.

now do you find it in the "features and options" section in admin or do you mean the permissions for the different groups.

If the groups then I don't think it is listed there.

Sorry it was my misunderstanding..

I have no problem now
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 18, 2008, 08:06:58 PM
oh I am so glad you got it fixed, I could not access this site at all yesterday.

You will find setting for the shoutbox ---when using tiny protal--in the admin/tiny portal/settings.

There are not many settings for it when you have te portal and If you installed the portal first there is no need to install the seperate shoutbox found in the smf downloads anywhere.
Title: Re: SMF Shoutbox
Post by: zepfms on January 19, 2008, 05:15:45 AM
Quote from: DarkAngel612 on January 18, 2008, 08:06:58 PM
oh I am so glad you got it fixed, I could not access this site at all yesterday.

You will find setting for the shoutbox ---when using tiny protal--in the admin/tiny portal/settings.

There are not many settings for it when you have te portal and If you installed the portal first there is no need to install the seperate shoutbox found in the smf downloads anywhere.

Thank you my friend. The Shoutbox just rockz!!

I have a suggestion: is it difficult to make nicknames to have different colors?

Thnx again!
Title: Re: SMF Shoutbox
Post by: NintendoFan on January 19, 2008, 03:18:17 PM
Hey,

Amazing ShoutBox, works fantastic.
I have a question, is it possible to somehow (by editing the code) to give Global Mods the permission to mod in the shout box? I know I can set it so all mods can, but I would prefer to select the member(s) or just have global mods mod it. Is this at all possible by editing something?

Thanks.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 19, 2008, 04:09:27 PM
@nintendofan:

I have not seen that feature anywhere, sorry

@zepfms:

the other spot to set some things for it is in the admins/tiny portal/block manager

it is in the list at the top of the blocks. You can set a few more things there

to change the color for the different members is by member groups:

admin/members/member groups

just click the "edit" link at the end of the group youwant to edit the color of and in the next window "Color in online list" here is where to put in the hex number for what you want that member group to look like.

Here is a web page to get the hex numbers at and to  (at the bottom) input the number click the button and find complementary ones that should go with it...to assit in theme  making/editing of colors:

http://www.2createawebsite.com/build/hex-colors.html
Title: Re: SMF Shoutbox
Post by: Gooch on January 20, 2008, 01:10:03 AM
I actually can't get 1.16b to download, it just loads a blank page off of the site. 1.16 downloads correctly, but I can't install it on 1.4. Is there a mirror somewhere?
Title: Re: SMF Shoutbox
Post by: culprit on January 20, 2008, 01:30:16 AM
Quote from: Gooch on January 20, 2008, 01:10:03 AM
I actually can't get 1.16b to download, it just loads a blank page off of the site. 1.16 downloads correctly, but I can't install it on 1.4. Is there a mirror somewhere?


Hi. You can download 1.16b  HERE  (http://www.mediafire.com/?edytlygny1n)
Title: Re: SMF Shoutbox
Post by: RAASOFT on January 20, 2008, 05:30:06 AM
Hi People!
How can I have a version of this shoutbox in italian? I tried to translate the language files and rename it sbox.italian.php but it doesn't work... How can I do it?
Title: Re: SMF Shoutbox
Post by: culprit on January 20, 2008, 10:09:51 AM
HELP PLEASE!!! anyone here having trouble using the sbox_v1.16b in Internet Explorer? Because in Mozilla Firefox it works just fine.. But in IE browser,  i cant shout using it and also the other members of my forum..

Thanks in advance..
Title: Re: SMF Shoutbox
Post by: yuvi100 on January 21, 2008, 02:16:38 AM
Can Sum1 plz help me. I dont know how to put the box on my forums, i looked at tutorials and it says access all these folders which i dont know whre they are located for eg. sources/smileys/....
if sum1 can plz explain me so i can understand how to this since i am a beginer at this stuff.
THNX
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 21, 2008, 03:19:54 AM
yuvi100, have you installed it yet through the admin panel of your forum?


That is step 1...admin/packages
Title: Re: SMF Shoutbox
Post by: kashwak on January 22, 2008, 09:56:33 AM
dont know if this has been asked i looked but could not find it. i am getting this error.

Network Error (dns_unresolved_hostname)


Your requested host "www.gwarriorz.comhttp" could not be resolved by DNS. 


For assistance, contact your network support team.


that is what is showing in my shout box please help.
Title: Re: SMF Shoutbox
Post by: kashwak on January 22, 2008, 12:14:01 PM
// ]]></script>
<div class="tborder">
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center;">
<a href="#" onclick="shrinkHeaderSB(!current_header_sb); return false;"><img id="upshrink_sb" src="http://www.gwarriorz.com/Themes/default/images/collapse.gif" alt="*" title="Shrink or expand the header." style="margin-right: 2ex;" align="right" /></a>SMF Shoutbox
</div>
<div id="upshrinkHeaderSB">
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="windowbg" align="right" style="width:13%">
<td class="windowbg" style="width:87%">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="center" valign="middle">
        <form name="sbox" action="http://www.gwarriorz.comhttp://www.gwarriorz.com/Sources/sboxDB.php?action=write" method="post" target="sboxframe" style="margin: 0;" onSubmit="return submitSbox();" enctype="multipart/form-data" accept-charset="ISO-8859-1">
<a href="http://www.gwarriorz.comhttp://www.gwarriorz.com/Sources/sboxDB.php?" target="sboxframe"><img src="http://www.gwarriorz.com/Themes/default/images/sbox_refresh.gif" border="0" width="16" height="17" align="absmiddle" alt="Refresh" /></a>
        <input type="hidden" name="ts" value="1200994911">
<input class="windowbg2" type="text" name="sboxText" size="100" maxlength="320" onFocus="if (this.value=='<Type your message and press ENTER>') this.value = '';" onBlur="if (this.value=='') this.value='<Type your message and press ENTER>';" />&nbsp;<input type="submit" class="input" value="&nbsp;shout&nbsp;" />
          </form>
                  <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                    document.sbox.sboxText.value = '<Type your message and press ENTER>';
                  // ]]></script>
</td>
</tr>
              <tr>
                <td align="center">
<a href="javascript:void(0);" onclick="replaceText(' :)', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/smiley.gif" align="bottom" alt="Smiley" title="Smiley" /></a>
<a href="javascript:void(0);" onclick="replaceText(' ;)', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/wink.gif" align="bottom" alt="Wink" title="Wink" /></a>
<a href="javascript:void(0);" onclick="replaceText(' :D', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/cheesy.gif" align="bottom" alt="Cheesy" title="Cheesy" /></a>
<a href="javascript:void(0);" onclick="replaceText(' ;D', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/grin.gif" align="bottom" alt="Grin" title="Grin" /></a>
<a href="javascript:void(0);" onclick="replaceText(' >:(', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/angry.gif" align="bottom" alt="Angry" title="Angry" /></a>
<a href="javascript:void(0);" onclick="replaceText(' :(', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/sad.gif" align="bottom" alt="Sad" title="Sad" /></a>
<a href="javascript:void(0);" onclick="replaceText(' :o', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/shocked.gif" align="bottom" alt="Shocked" title="Shocked" /></a>
<a href="javascript:void(0);" onclick="replaceText(' 8)', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/cool.gif" align="bottom" alt="Cool" title="Cool" /></a>
<a href="javascript:void(0);" onclick="replaceText(' ???', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/huh.gif" align="bottom" alt="Huh" title="Huh" /></a>
<a href="javascript:void(0);" onclick="replaceText(' ::)', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/rolleyes.gif" align="bottom" alt="Roll Eyes" title="Roll Eyes" /></a>
<a href="javascript:void(0);" onclick="replaceText(' :P', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/tongue.gif" align="bottom" alt="Tongue" title="Tongue" /></a>
<a href="javascript:void(0);" onclick="replaceText(' :-[', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/embarrassed.gif" align="bottom" alt="Embarrassed" title="Embarrassed" /></a>
<a href="javascript:void(0);" onclick="replaceText(' :-X', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/lipsrsealed.gif" align="bottom" alt="Lips sealed" title="Lips sealed" /></a>
<a href="javascript:void(0);" onclick="replaceText(' :-\\', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/undecided.gif" align="bottom" alt="Undecided" title="Undecided" /></a>
<a href="javascript:void(0);" onclick="replaceText(' :-*', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/kiss.gif" align="bottom" alt="Kiss" title="Kiss" /></a>
<a href="javascript:void(0);" onclick="replaceText(' :\'(', document.forms.sbox.sboxText); return false;"><img src="http://www.gwarriorz.com/Smileys/default/cry.gif" align="bottom" alt="Cry" title="Cry" /></a>
                </td>
              </tr>
<tr>
<td>
      <iframe name="sboxframe" src="http://www.gwarriorz.comhttp://www.gwarriorz.com/Sources/sboxDB.php?" width="100%" height="180" frameborder="0" style="border: 2px ridge silver;"></iframe>


this is what i get when i right click and veiw source. so where do i find this on my server? i have downloaded all my php files and still can not find this no matter what. if someone could help me with this part i would be very thankful.  if you notice it is doing this

http://www.gwarriorz.comhttp://www.gwarriorz.com/Sources/sboxDB.php?action=write
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 23, 2008, 12:00:35 AM
http://www.gwarriorz.comhttp://www.gwarriorz.com

If you notice in that file you have the url is repeated sooooo your software can't find it.

remove the last part then reupload the document and see if that fixes it.

It looks like it is the index.template.php file in your themes folder.

Now if this is what is showing in the forum without anything else then you need to take a look at your:

Settings_bak.php
Settings.php

make sure the url is not repeated anywhere in there and if it is then take out the part that I indicated in red then reupload them both to your server replacing the ones there.
Title: Re: SMF Shoutbox
Post by: AuDaCiOuS on January 24, 2008, 06:26:02 PM
Has anyone found a fix for this error? Any help would be much appreciated...

Notice: Undefined index: bnews_enabled in /home/content/s/o/c/socom/html/hgforum/Sources/Subs-BoardNews.php on line 33
[January 24, 2008, 04:24:22 PM]
[Disable refresh]

Screen Shot:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg227.imageshack.us%2Fimg227%2F1113%2Fshoutboxsy6.png&hash=1bdd369f497ff2bf6856032407f32697e3f553ce)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 24, 2008, 08:17:19 PM
check the index.template.php or the boardindex.template file---whichever one you inserted the code for the shoutbox into.

Maybe you accidently split up the code for the news fader box.
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 24, 2008, 09:19:49 PM
How can I have colors for my name? I mean, the usergroup's color, the name will be red if he is admin, you know what I mean?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 24, 2008, 09:58:57 PM
theough the membergroup editing is the only way I know of...and yes if the member is admin then it will be the color of that group --- as will be the others.
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 24, 2008, 10:20:37 PM
What? I only want to have colors for the names instead of all white... Look:

My admins: NAME
My Global mods: NAME

So, if I post a shout: I will see:

[X][Thu 21:55] <[SAP]Francis> Hey man.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 24, 2008, 10:48:22 PM
yes to do that you need to go to admin/membergroups

clilck the edit link  from the group then enter the hex number for the color you want them to be

save the changes and you should have the names in color you chose.

welllll, I just went into my admin and the colors for the names work for the "user online" but not the shoutbox...I also have tiny portal installed.

sorry but the only place i find to change the font colors is in the admin/features and options/shoutbox

at the bottom is where to change the font colors for light or dark themes but nowhere else can I see to change for individual groups.
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 24, 2008, 11:22:15 PM
Yeah... That's why I ask... I need to modify the code...
Title: Re: SMF Shoutbox
Post by: AuDaCiOuS on January 24, 2008, 11:40:41 PM
I tried moving this bit of code // display shoutbox
  if (function_exists('sbox')) sbox();
in different places in the boardindex.template but the error still shows up no fix yet.

Could I possibly put it some were in the index.template.php were I would not get this error DarkAngel612?

Thanks for helping by the way.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 25, 2008, 01:53:52 AM
ok first I need you to try something....get the exact same file off your server from the "default" theme directory.

then upload it to overwrite the naughty one in that theme's directory...this way we will see if it is he code or the file. Using the one from the default because it was edited by the software not manually, if I remember right.

Then let me know what happens
Title: Re: SMF Shoutbox
Post by: AuDaCiOuS on January 25, 2008, 02:50:41 PM
Ok I fallowed what you said in your post and still have the same error. So does this mean its in the code some were?

Notice: Undefined index: bnews_enabled in /home/content/s/o/c/socom/html/hgforum/Sources/Subs-BoardNews.php on line 33
[January 24, 2008, 04:24:22 PM]
[Disable refresh]
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 25, 2008, 06:30:51 PM
Help?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 25, 2008, 07:49:23 PM
just got home from work. I need to take a look at the file mentioned in the code there and will come back in a little bit.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 25, 2008, 07:54:45 PM
ok try this:

go to the home/content/s/o/c/socom/html/hgforum/Sources/Subs-BoardNews.php

on your server and remove that file (Subs-BoardNews.php) completely. I checked the 3 sites that I manage and none of them have that file.

refresh your page and see if the message goes away.
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 25, 2008, 11:21:55 PM
Quote from: [SAP]Francis on January 24, 2008, 10:20:37 PM
What? I only want to have colors for the names instead of all white... Look:

My admins: NAME
My Global mods: NAME

So, if I post a shout: I will see:

[X][Thu 21:55] <[SAP]Francis> Hey man.
Any help??
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 26, 2008, 03:32:52 AM
obviously not or you would have gotten an answer by now...sorry
Title: Re: SMF Shoutbox
Post by: RuneFire on January 26, 2008, 09:20:46 AM
i have a specific usergroup on my forum "restricted" for all the naughtyboys.
is it possible to deny posting access to the shoutbox for that specific group?

thx
Title: Re: SMF Shoutbox
Post by: leet8845 on January 26, 2008, 04:51:50 PM
Hello all,

Is there anyway of embedding my SMF shoutbox in my main HTML/CSS site outside the forum?
Title: Re: SMF Shoutbox
Post by: AuDaCiOuS on January 26, 2008, 09:03:04 PM
Hey DarkAngel612 I deleted Subs-BoardNews.php and it did now work it actually made my forums not work at all, but I did find a fix for this were ever your getting the error just comment those lines out. I did this and that error is now gone and my site runs just like it did before.

Thanks for all your help DarkAngle612 and I'm glad we found a fix for this for now.
Title: Re: SMF Shoutbox
Post by: blueranchu on January 26, 2008, 11:01:51 PM
How can I close autorefresh?
and have a button to refresh by manual.
It is very load server.
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 26, 2008, 11:22:45 PM
Quote from: blueranchu on January 26, 2008, 11:01:51 PM
How can I close autorefresh?
and have a button to refresh by manual.
It is very load server.
Look, that thing has it...

Refresh: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcfaclan.gta-sa-mp.com%2Fforum%2FThemes%2Fdefault%2Fimages%2Fsbox_refresh.gif&hash=a12b0a2b952dff905c49406fe87f84204821218d)
Stop refresh: "[Disable refresh]"
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 27, 2008, 05:01:59 AM
glad you found out what to do. I still do not find that file in any of our forums so no idea why you have it.

Commenting lines is something I always tend to forget to do...that is just too simple and I think difficult...lol

Quote from: AuDaCiOuS on January 26, 2008, 09:03:04 PM
Hey DarkAngel612 I deleted Subs-BoardNews.php and it did now work it actually made my forums not work at all, but I did find a fix for this were ever your getting the error just comment those lines out. I did this and that error is now gone and my site runs just like it did before.

Thanks for all your help DarkAngle612 and I'm glad we found a fix for this for now.
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 27, 2008, 09:10:21 AM
Well, nice for him. If someone finds how, can that parson post here or send me a PM on how to do it ;)?

Thanks.
Title: Re: SMF Shoutbox
Post by: RAASOFT on January 27, 2008, 11:29:44 AM
Hi People!
How can I have a version of this shoutbox in italian? I tried to translate the language files and rename it sbox.italian.php but it doesn't work... How can I do it?
Title: Re: SMF Shoutbox
Post by: Bacon on January 27, 2008, 11:47:12 AM
hi.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg162.imageshack.us%2Fimg162%2F9800%2Ffffkn2.jpg&hash=fae91fcc4268078f081e7b586a41bed63bfac05d)
this is my shoutbox and i have some questions.

i want to delete the vertical scroll and the background and i don't know how to do it.

can anyone help me?

sorry for my english.
Title: Re: SMF Shoutbox
Post by: AuDaCiOuS on January 27, 2008, 02:23:29 PM
QuoteWell, nice for him. If someone finds how, can that parson post here or send me a PM on how to do it ;)?
Thanks.

If your talking about how to comment lines out of your code just look at the green text in your .php. Those have been commented out.

/* code would be here */
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 27, 2008, 02:46:19 PM
No........ I am searching how to get the user's to have colors as they have in the online list.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 27, 2008, 04:09:14 PM
@Bacon:

The setting for stopping scrolling is in the admin panel of your site. Do you have tiny portal installed?

if no then go to admin/features and options/shoutbox

if yes then go to admin/tiny portal/block manager/shoutbox

depending on the theme the background may be changed in the style.css file in your themes folder
Title: Re: SMF Shoutbox
Post by: Bacon on January 27, 2008, 04:20:05 PM
i don't have tiny portal. in my admin panel there is no function with scrolling ;/
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 29, 2008, 05:05:18 PM
Hey guys! I now have my membergroup colors in the shoutbox! With the permission of the author, I will post my sboxDB.php file for you to have it!

Demo: http://cfaclan.gta-sa-mp.com/forum
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 29, 2008, 08:07:30 PM
are you using the default theme or another?
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 29, 2008, 09:09:51 PM
Default.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 29, 2008, 09:23:49 PM
oops sorry there but I guess the name didn't show up...I meant Bacon but since you answered that will be my next question to you too...

I followed your link and the shoutbox shows no colors in it...for your name or the others, or are they suppposed to be white?
Title: Re: SMF Shoutbox
Post by: [SAP]Francis on January 29, 2008, 11:02:45 PM
Its a bug I must fix. It displays YOUR color in every name. If I'm logged as admin, all the names will be red. I want them separed... lol
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 29, 2008, 11:32:33 PM
bright side is at least now you get colors...lol never easy that is for sure but do keep us posted.
Title: Re: SMF Shoutbox
Post by: BuRacK on January 31, 2008, 05:26:46 PM
turkish language :(
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on January 31, 2008, 08:06:36 PM
Quote from: BuRacK on January 31, 2008, 05:26:46 PM
turkish language :(




What do you mean by this...

that does not tell anyone anything of your problem
Title: Re: SMF Shoutbox
Post by: Vegeta_gameland on February 01, 2008, 06:46:29 AM
i have this problem on http://www.monstars.ro/forum
when i write a text and press shout, the text remanis in that box and is not deleted, and i have to delete it manualy every time, before i write another message
except this, i don`t have other errors
can somebody help?
thank you

ps:sorry for the english
Title: Re: SMF Shoutbox
Post by: RuneFire on February 01, 2008, 09:40:59 AM
Quote from: RuneFire on January 26, 2008, 09:20:46 AM
i have a specific usergroup on my forum "restricted" for all the naughtyboys.
is it possible to deny posting access to the shoutbox for that specific group?

thx


someone, please?
the only way to "restrict" users, is to ban them and turn them into "guests".

plz
Title: Re: SMF Shoutbox
Post by: Nibogo on February 02, 2008, 07:24:42 PM
i have a problem with the sb_setup.php , i upload to my forum and say:

Incorrect table name ''
Archivo: /www/zzl.org/s/e/-/se-world/htdocs/foro/sbox_setup.php
Línea: 83

what i can do?
Title: Re: SMF Shoutbox
Post by: dmz_pt on February 04, 2008, 08:25:54 AM
Quote from: RuneFire on January 26, 2008, 09:20:46 AM
i have a specific usergroup on my forum "restricted" for all the naughtyboys.
is it possible to deny posting access to the shoutbox for that specific group?

thx


Same question, can anyone try to help us ?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 04, 2008, 07:27:42 PM
if you are not getting any answers to this then maybe there is no way.


since there is a setting to not allow guests to post you may just have to make them a part of the guest usergroup.
Title: Re: SMF Shoutbox
Post by: leet8845 on February 04, 2008, 08:19:44 PM
hi,

Does anyone know if there is anyway of making the SMF collapsed by default, so the user must click '+'  to open it
Title: Re: SMF Shoutbox
Post by: N3RVE on February 05, 2008, 11:48:33 AM
omG - Long Talk . .
Aight now! Is there any version of SMF Shoutot Box that is compatible with SMF 1.1.4?
And which version is it. .

I just tried 1.6 and 1.0 - no luck
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 05, 2008, 02:37:17 PM
These should work (http://custom.simplemachines.org/mods/index.php?action=search;basic_search=shoutbox) the first one showing is the one that was just updated yesterday.
Title: Re: SMF Shoutbox
Post by: Vegeta_gameland on February 07, 2008, 03:35:52 AM
Quote from: Vegeta_gameland on February 01, 2008, 06:46:29 AM
i have this problem on http://www.monstars.ro/forum
when i write a text and press shout, the text remanis in that box and is not deleted, and i have to delete it manualy every time, before i write another message
except this, i don`t have other errors
can somebody help?
thank you

ps:sorry for the english


now i realise that the forums message "Type your message and press ENTER" does not appear
it is related, for sure, but i still don`t know how to fix it
Title: Re: SMF Shoutbox
Post by: RuneFire on February 07, 2008, 10:23:10 PM
Quote from: DarkAngel612 on February 04, 2008, 07:27:42 PM
if you are not getting any answers to this then maybe there is no way.


since there is a setting to not allow guests to post you may just have to make them a part of the guest usergroup.


...and the only way to "force a member to be a guest" is to ban them....
Title: Re: SMF Shoutbox
Post by: Maliante on February 11, 2008, 01:14:45 AM
Hi guys i try to install a smf shoutbox in a dilber mc and dont work the solution for this problem its very easy i make a new table to host it.

Quote
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
            <tr>';
                // display shoutbox
               if (function_exists('sbox')) sbox();
      echo '
            </tr>
</table>

whit this code my shoutbox working great.

Thanks for this mod to the creator.

Maliante
Title: Re: SMF Shoutbox
Post by: pipo_il_primero on February 13, 2008, 07:45:30 AM
How can I unistall this mod?
It doesn't uninstall, it says to contact mod author???
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 13, 2008, 08:23:44 PM
You should be able to go to your admin panel/packages and uninstall it there.

If all else fails go to your server directory for packages and remove the page from there.





Quote from: pipo_il_primero on February 13, 2008, 07:45:30 AM
How can I unistall this mod?
It doesn't uninstall, it says to contact mod author???
Title: Re: SMF Shoutbox
Post by: pipo_il_primero on February 14, 2008, 07:29:41 AM
thanks, in the packages it says there's no uninstall script or something like that.
I think I need to delete the page manually, but what about the code installed on the smf files?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 14, 2008, 11:02:46 PM
you will need to manually edit it out too.

look in either the boardindex.template.php or the index.template.php files for this code

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


just hilight it and delete it then save and reupload to override the file on the server.

you need to do that in all the themes you have it in.

it is strange that you can not remove it from admin/packages/installed packages --- that is where mine has a link to uninstall it.
Title: Re: SMF Shoutbox
Post by: sunnyslp on February 22, 2008, 01:25:14 AM
hi all

i have installed "SMF Shoutbox 1.16b " on our smf 1.14 forum (i am not sure if i am posting in the relevant topic ,our admin is out of town and i had to deal with this :(  )

  i get this error instead of the shoutbox
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.

u can have a look at it here http://img207.imageshack.us/img207/8109/sbnv8.png

can some one is simple terms say whats wrong

we also have     nneonneo's shoutbox installed (It stopped working and i can't uninstall it no uninstaller ,should i just remove the files ? )


any help will be greatly appreciated  :)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 22, 2008, 01:42:19 AM
I went and took a look but it would seem visitors can't view the shoutbox at all...we need to register.

Title: Re: SMF Shoutbox
Post by: sunnyslp on February 22, 2008, 06:21:44 AM
thnx for the reply   :)

yes,i disabled it so that it doesn't scare off guests .i have given a screen shot though .

i will enable it for the time being ,could you please take another look at it
Title: Re: SMF Shoutbox
Post by: eNOOBz on February 22, 2008, 07:11:22 AM
Hello,
SMF Shoutbox give me 13 errors when I validate the XHTML.

This is the validation errors page http://validator.w3.org/check?uri=http%3A%2F%2Flimbang.net%2Fforum%2Findex.php

Please help!
Title: Re: SMF Shoutbox
Post by: Azzyh on February 22, 2008, 02:53:37 PM
Hey.
I use 1.1.4 SMF
www.cwalk.dk
It says it dont support? i just downloaded.. sbox v.1_04 ... ?

HELP
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 23, 2008, 12:52:14 AM
OK, I took another look and at your post too.
Then when you are sure you have it all removed reinstall the second one through the packages.

Let me know if you have trouble.










Quote from: sunnyslp on February 22, 2008, 06:21:44 AM
thnx for the reply   :)

yes,i disabled it so that it doesn't scare off guests .i have given a screen shot though .

i will enable it for the time being ,could you please take another look at it
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 23, 2008, 12:54:38 AM
download the one that has the 1.1.3 smf listed...it will work in 1.1.4


Quote from: Azzyh on February 22, 2008, 02:53:37 PM
Hey.
I use 1.1.4 SMF
www.cwalk.dk
It says it dont support? i just downloaded.. sbox v.1_04 ... ?

HELP
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 23, 2008, 12:55:49 AM
May I ask why you felt the need to run it through the verifyer? Were you having problems or error messages?

Quote from: eNOOBz on February 22, 2008, 07:11:22 AM
Hello,
SMF Shoutbox give me 13 errors when I validate the XHTML.

This is the validation errors page http://validator.w3.org/check?uri=http%3A%2F%2Flimbang.net%2Fforum%2Findex.php

Please help!
Title: Re: SMF Shoutbox
Post by: Azzyh on February 23, 2008, 10:39:11 AM
Quote from: DarkAngel612 on February 23, 2008, 12:54:38 AM
download the one that has the 1.1.3 smf listed...it will work in 1.1.4


Quote from: Azzyh on February 22, 2008, 02:53:37 PM
Hey.
I use 1.1.4 SMF
www.cwalk.dk
It says it dont support? i just downloaded.. sbox v.1_04 ... ?

HELP

Can i get the link please, thanks for answer.
(I dont want the nennoeo shoutbox one, but the other version of this there is working on 1.1.4)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 23, 2008, 03:44:05 PM
the main link is modifications-shoutboxes (http://custom.simplemachines.org/mods/index.php?action=search;basic_search=shoutbox)

this one is for 1.1Rc2 and may work : SMF Shoutbox [1.1 RC2] (http://custom.simplemachines.org/mods/index.php?mod=294)

Urlobox (http://custom.simplemachines.org/mods/index.php?mod=818) is with the mkportal integration and I have not used this box but I did at one time have phpbb installed and used their portal...has many features and  pretty but very hard to customize and code cause it is majoly in Italian and I am not...lol

On the other hand you could just install TinyPortal (http://www.tinyportal.net/index.php?action=tpmod;dl=cat5) and the shoutbox come integrated with it already. You may have to register to see that page so click the home link when you get there.
Title: Re: SMF Shoutbox
Post by: nick09 on February 23, 2008, 03:45:43 PM
Quote from: DarkAngel612 on February 23, 2008, 03:44:05 PM
the main link is modifications-shoutboxes (http://custom.simplemachines.org/mods/index.php?action=search;basic_search=shoutbox)

this one is for 1.1Rc2 and may work : SMF Shoutbox [1.1 RC2] (http://custom.simplemachines.org/mods/index.php?mod=294)

Urlobox (http://custom.simplemachines.org/mods/index.php?mod=818) is with the mkportal integration and I have not used this box but I did at one time have phpbb installed and used their portal...has many features and  pretty but very hard to customize and code cause it is majoly in Italian and I am not...lol

On the other hand you could just install TinyPortal (http://www.tinyportal.net/index.php?action=tpmod;dl=cat5) and the shoutbox come integrated with it already. You may have to register to see that page so click the home link when you get there.

There is a English version of MKportal....
Title: Re: SMF Shoutbox
Post by: Azzyh on February 23, 2008, 04:11:36 PM
i tried but it wont damn work SMF shoutbox! it worked before but then i dl'ed this one then it dont work.. and the other one that worked did i delete by an accident
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 23, 2008, 04:24:52 PM
yes I know there is an englich version but the pages that are uploaded---the actual coding parts---are still primarily in italian...they did not translate everything in there.
Title: Re: SMF Shoutbox
Post by: Damian1221 on February 23, 2008, 11:34:33 PM
Sry I can't find it but is there a way to make it so only certain usergroups can use the shoutbox?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 24, 2008, 12:16:00 AM
sorry but none of us have found they way to do that either...not possible as far as I can see.
Title: Re: SMF Shoutbox
Post by: ironh1d3 on February 24, 2008, 12:24:17 AM
i have installed smf shoutbox...
everything is succesfull
but how to make the shoutbox visible...
bcoz after installation is successfull, i go to the front page but there is no shoutbox..

thank you very much
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 24, 2008, 12:48:07 AM
did you manually insert the code into the theme you are using---if different than the default theme?

You need to add the code to either the boardindex.template file or the indextemplate.php file

something like that.

the code will be in the files you downloaded or go up a ways in this post to find the code and the exact name of the files too.
Title: Re: SMF Shoutbox
Post by: ironh1d3 on February 24, 2008, 03:57:20 AM
i'm using the default template...
from the description at download page i don't need to paste any code in boardindex.template file or the indextemplate.php file
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 24, 2008, 07:02:41 PM
after installing the file did you go back and click the apply mod link?  no offense but even I frgot to do that the first time I installed it.
Title: Re: SMF Shoutbox
Post by: ironh1d3 on February 24, 2008, 10:41:46 PM
go back meaning the back button on the browser is it?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on February 24, 2008, 10:52:33 PM
ummmm, bear with me i have had a total of 3, maybe 3 hours sleep here...lol

when you go to packages in admin and install the package you should get a window with it listed. To the right of the name of the packages is [uninstall] or [apply mod] depending on whether it was totally installed or not.

Click the [apply mod] link to finish the installation. This should also activate the mod. Sometimes you will get a window listing the files it installs which also tell you whether they passed or had trouble.

Once that gets done you should be installed totally unless it tell you --- that it did not install for whatever reason it gives.
Title: Re: SMF Shoutbox
Post by: Fatality- on February 29, 2008, 02:37:51 AM
Is there anyway to use the /me function?

Example: if i type /me throws up, it will display as

Fatality- throws up

Another thing, is there a way for the shoutbox to support Chinese characters?
Title: Re: SMF Shoutbox
Post by: ZukePrime on March 02, 2008, 06:29:51 PM
Howdy folks!

Had this installed on a different board and recently just tried to install it to my most recent SMF installation.

The download page says SMF Shout 1.1 RC2...but the download is 1.04.  This version WILL NOT install into SMF 1.1.4.

This is the mod link  -->  http://custom.simplemachines.org/mods/index.php?mod=294 (http://custom.simplemachines.org/mods/index.php?mod=294)  There appears to be a discrepancy here. 

Can someone with "powers" help out?  I think a number of people have mentioned this previously. 

Thanks!

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on March 03, 2008, 02:07:29 AM
Yes that is true...I have been trying to install the shoutbox onto a forum for a friend and:

numerous downloads of them all gives no joy---no installations with message stating that it is not for this version of board software or corrupted. they can't all be corrupted and they all won't work

we even installed the boards totally new again with nothing to fight against it and still none will install...smf 1.1.4

I have tried to install neoones with no success, it claims to be installed but even with all the codes in place no shoutbox

smf shoutbox in the link above is listed the way they said, I have even tried to installed the 1.1.6b and 1.1.6 versions to no avail, which is strange for I installed the 1.1.6 vesion in november onto a 1.1.4 board in november and it was with other mods installed and no problems were tossed at me but not now.

I tried the other two and still nothing. I would really like to get the SMF 1.1.6 version installed becasue it I know does not have conflictions with some servers as does neoones, that one can sometimes crash the sites, I have no idea why other thatn the hosts are not compatible with the "ajax" part.

any insights as to what to do to get this installed?
Title: Re: SMF Shoutbox
Post by: Fatality- on March 03, 2008, 02:16:39 AM
Not sure is this the 1, but I cant find it in the mod page, it works with 1.14.

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on March 03, 2008, 02:27:23 AM
thanks I will try that one again...it is the beta of the 1.1.6 version that I have installed. But even this one---it should work in 1.1.4 but I have not been able to get it to work. It claims to be either corrupted or not for this versin of software...they are all confused you know...lol
Title: Re: SMF Shoutbox
Post by: Fatality- on March 03, 2008, 02:29:59 AM
Also, anyone can help me with the questions I posted earlier?
Title: Re: SMF Shoutbox
Post by: trekkie2444 on March 03, 2008, 07:02:46 PM
Is there a way to get the shoutbox to appear on my topics and every other part of the forum instead of just on the main forum page?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on March 03, 2008, 10:45:57 PM
in the default theme take a look at the board.index.template.php file and the indextemplate.php file

I think if you put the code into the index template file then you should be able to have it on all pages...but check first before you do that and see which one it is in.

I can't remember right at this minute, sorry
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on March 03, 2008, 10:46:54 PM
Quote from: Fatality- on March 03, 2008, 02:29:59 AM
Also, anyone can help me with the questions I posted earlier?
the shoutbox does not work with all languages, yours may be one of those, sorry
Title: Re: SMF Shoutbox
Post by: Fatality- on March 03, 2008, 10:48:45 PM
Quote from: DarkAngel612 on March 03, 2008, 10:46:54 PM
the shoutbox does not work with all languages, yours may be one of those, sorry

Is there anyway to make Chinese work with it?

How about the /me function?
Title: Re: SMF Shoutbox
Post by: foxit2007 on March 04, 2008, 01:10:53 PM
I have a problem gives this error  :( The requested URL /mysite\Sources/sboxDB.php was not found on this server.

help
Title: Re: SMF Shoutbox
Post by: trekkie2444 on March 07, 2008, 08:32:57 PM
What do you mean, Are the code blocks for the shoutbox what I need to put in those files for my forum?
Title: Re: SMF Shoutbox
Post by: robbie93 on March 09, 2008, 08:49:36 PM
just uploaded the shoutbox to our forum and it uploads ok,  trouble is nobody can see it lol,  i think the mod is broken :'( :D
Title: Re: SMF Shoutbox
Post by: StarChildxox on March 09, 2008, 10:08:03 PM
Hi,
I know that the simple machines site crashed a month or two ago, and some how ever since,
we have tried to download the ultimate shoutbox, and also a few avatar mods, which
don't seem to work anymore.. so I am assuming that it had something to do with
the site crashing? I was wondering if anyone has an ultimate shoutbox from before the site
crash they are willing to give to us ?   It would be appreciated...  opps I just found the shout box
on the previous page, and robbie installed it perfectly, anyone who doesn't know about it should
download that shoutbox, on page 77, thanks ... xx

              hotchildxox
                      O:) 
Title: Re: SMF Shoutbox
Post by: Andos on March 11, 2008, 04:56:20 AM
Hi guys.
I have a problem with this mod. When I use xampp on my computer this mod works perfect. The problem show when i upload all file (include database) to web hosting.

visit my forum at  http://www.reunion.web.id

Go to tab chat.

You can see the smf shoutbox form, but u can't type anything into it, even the result box not show.
When I access http://reunion.web.id/Sources/sboxDB.php it show 1 record that I insert directly to my database.

I think the problem is with the variable declaration ($scripturl,  $sourcedir, $boarddir, $boardurl) but I don't know how to solve it.
It works on my computer, but didnt work on my hosting. I haved checked all the smf shoutbox files, but cannot find the caused :(
Is this mod use a database record to save location/URL settings?

Sorry for my poor English, I'm Indonesian
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on March 11, 2008, 07:14:29 PM
well I posted the link on page 77 and am glad itw orked for you but I still can't get it to load up either.

says corrupted or not for the 1.1.4 version of smf which is silly cause it used to upload.

I don't know what to tell everyone and it weems maybe the pwers that be here still can't figure out why they won't work either...


it would be nice to hear from someone here thought.
Title: Re: SMF Shoutbox
Post by: Daronmalakian on March 17, 2008, 08:11:52 AM
Hello Darkangel, I had the same problem as you. I've just fixed it modifying the "package-info.xml" file, changing this line:

<install for="1.1 RC2">

For this one:

<install>

Hope that helps you. Good luck!

Daronmalakian.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on March 17, 2008, 05:07:36 PM
thanks and we finally got it to upload---after reuploading the files for the default theme...lol

the hoops we jump thru just to get our mods to work...lol
Title: Re: SMF Shoutbox
Post by: 4riders.de on March 18, 2008, 07:24:44 PM
thx a lot for this cool mod.. works pretty fine on 1.1.4.. THX!
Title: Re: SMF Shoutbox
Post by: Andos on March 18, 2008, 10:52:52 PM
Quote from: Andos on March 11, 2008, 04:56:20 AM
Hi guys.
I have a problem with this mod. When I use xampp on my computer this mod works perfect. The problem show when i upload all file (include database) to web hosting.

visit my forum at  http://www.reunion.web.id

Go to tab chat.

You can see the smf shoutbox form, but u can't type anything into it, even the result box not show.
When I access http://reunion.web.id/Sources/sboxDB.php it show 1 record that I insert directly to my database.

I think the problem is with the variable declaration ($scripturl,  $sourcedir, $boarddir, $boardurl) but I don't know how to solve it.
It works on my computer, but didnt work on my hosting. I haved checked all the smf shoutbox files, but cannot find the caused :(
Is this mod use a database record to save location/URL settings?

Sorry for my poor English, I'm Indonesian
Help me please
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on March 19, 2008, 01:18:19 AM
andos, have you tried reinstalling the shoutbox software?
Title: Re: SMF Shoutbox
Post by: albanian on March 25, 2008, 03:10:58 PM
Unknown column 'b.anonymousBoard' in 'field list'
File: /customers/peja.in/peja.in/httpd.www/forum/Sources/Subs-Boards.php
Line: 1470

on my Boards  can you help me ?
Title: Re: SMF Shoutbox
Post by: Soulja_Sandman on March 25, 2008, 03:58:52 PM
Hey guys,

Just wanna first say I like the mod but I was wondering if it would be able to modify it so that when someone in a membergroup shouts, the color they shout in will be the color they apper when they are online. For example: We have Administrator, Global Moderator, and Moderator.

<Administrator>: Hi everyone
<Global Moderator>: Hi
<Moderator>: Hi guys

I would just like to know if this is possible and if it is then would someone mind telling me please?  Thank you for your time.

Soulja_Sandman
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on March 25, 2008, 10:26:03 PM
Quote from: Soulja_Sandman on March 25, 2008, 03:58:52 PM
Hey guys,

Just wanna first say I like the mod but I was wondering if it would be able to modify it so that when someone in a membergroup shouts, the color they shout in will be the color they apper when they are online. For example: We have Administrator, Global Moderator, and Moderator.

well I don't think so unless someone can code it that way. It has been asked before with no results...sorry
Title: Re: SMF Shoutbox
Post by: Soulja_Sandman on March 26, 2008, 06:01:34 AM
Darn guess I'lll try to d but thanks for your help anyway.
Title: Re: SMF Shoutbox
Post by: gianko82 on March 27, 2008, 10:44:25 AM
Does anyone know how can make the sound to the shoutbox when something is typed?

the sound in SMF shoutbox works if I delete the check between && ($alert === true) && ($div === true)), but it sound every time the shoutbox refreshes, even if none write something! help me!

QuoteQuote from: Poreman on October 13, 2006, 09:44:39 AM

    The new message sound doesn't seem to be working, I have the sound turned on in configuration in admin cp.  The wav file is in the root of forum but when a new shout comes in no sound anybody know where to look or why this feature may not be working for me?

    All help appreciated

    Poreman




I found it - sth in sboxDB.php is not right as far as the sound  is concerned.

It says at the end:
Code: [Select]


if (($modSettings['sbox_EnableSounds']) && ($alert === true) && ($div === true)) {
    echo '<embed src="' . $boardurl . '/chat-inbound_GSM.wav" hidden="true" autostart="true" loop="false"></embed>' . "\n";
  }


so above that I searched for $alert and $div and found that they cannot be true simultaneously - so the sound doesn't get embeded ...

The sboxDB.php is installed from the shoutbox's dir into Sources/ - so modify it there.

I tried removing the check against  && ($alert === true) && ($div === true) - and the sound worked.
Title: Re: SMF Shoutbox
Post by: qubbah on March 31, 2008, 03:36:15 PM
<tr>
<td>
      <iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>
</td>
</tr>
</table>
  </td>


where must i put css class in the code above to make their own background?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on March 31, 2008, 04:46:49 PM
i hope someone answers because so many out there would like this.
Title: Re: SMF Shoutbox
Post by: TGB on March 31, 2008, 05:20:51 PM
I haven't checked in on this mod in ages, last i knew mbirth was supporting it and I've got v1.20

what is the latest version, where can i download it, and who is supporting this??   thanks!
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on April 01, 2008, 12:05:20 AM
well the one we all have so far is version 1.1.6 and it would seem there is nobody supporting it anymore which accounts for nobody getting answers here---unless some of us figured it out for ourselves and shared the info...lol
Title: Re: SMF Shoutbox
Post by: sipko on April 01, 2008, 02:50:25 AM
Quote from: DarkAngel612 on April 01, 2008, 12:05:20 AM
well the one we all have so far is version 1.1.6 and it would seem there is nobody supporting it anymore which accounts for nobody getting answers here---unless some of us figured it out for ourselves and shared the info...lol

More's the pity no one is supporting it. I can't get it to run on SMF 2.0 Beta and liked it best of the few shout box options.
Title: Re: SMF Shoutbox
Post by: gianko82 on April 01, 2008, 05:08:55 AM
Also, I have the version 1.16b, I downloaded it somewhere, searching on goole. I think it's the latest version.
Title: Re: SMF Shoutbox
Post by: TGB on April 01, 2008, 08:56:31 PM
how on earth do i have 1.20 and you're all stuck on old crap

here (http://psxhaven.archive.4.googlepages.com/sbox_v1.20.zip) is 1.20, you can also find links for it in this thread if you look hard enough lol

i'll try and help if i can
when i get some time i'll install a test board for 2beta and have a look at this
i wont be switching my sites to 2 until it goes final  8)
Title: Re: SMF Shoutbox
Post by: gianko82 on April 02, 2008, 05:09:27 AM
OK thanks......
but even with this version I have the sounds problems....
None can fix this little bug? I'm new to php... I'm not able!
Title: Re: SMF Shoutbox
Post by: gianko82 on April 02, 2008, 06:41:34 AM
Also, I changed the colour of shouts in Control Panel, but if two users write one is always in Black, does anyone know how change this black colour? thanks.
Title: Re: SMF Shoutbox
Post by: robbie93 on April 09, 2008, 10:16:39 PM
this mod i feel is a very important part of an smf forum,  it allows users to interact with each other,  unlike any other shoutbox mod on here,  we use this on our site and all of our members love this mod,  we also have a chat room from tufat,  but nobody ever uses the chat room,  they prefere to use the shoutbox,  it is a fun mod and a valiable tool for smf i feel.

it is a shame that nobody is supporting this mod.  :'(

i can't imagine upgrading to smf 2 and not having this mod avaliable,  it would feel like a downgrade :'(

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on April 10, 2008, 08:42:44 PM
yes you are so right, I fortunately have installed Tiny Portal on the majority of our forums and other sites I have put together and am equally pleased with the shoutbox...which I believe is the same one for without the portal.

It has been integrated into the portal software and you can show it on the left -- right -- center of every page too.
Title: Re: SMF Shoutbox
Post by: gianko82 on April 12, 2008, 06:05:29 AM
Quote from: gianko82 on April 02, 2008, 06:41:34 AM
Also, I changed the colour of shouts in Control Panel, but if two users write one is always in Black, does anyone know how change this black colour? thanks.
I solved it:
in Sources/sboxDB.php
find:
$sbox_DarkThemes = explode('|', strtolower($modSettings['sbox_DarkThemes']));

if (in_array($sbox_CurTheme, $sbox_DarkThemes)) {

  $sbox_TextColor2 = $modSettings['sbox_TextColor2'];

} else {

  $sbox_TextColor2 = $modSettings['sbox_TextColor1'];

}


and replace with:
$sbox_DarkThemes = explode('|', strtolower($modSettings['sbox_DarkThemes']));

  $sbox_TextColor2 = $modSettings['sbox_TextColor2'];


  $sbox_TextColor1 = $modSettings['sbox_TextColor1'];


then, in the same sboxDB file find:
.windowbg2 {

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

      font-style: normal;

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

      font-weight: normal;

      text-decoration: none;


and replace it with:
    .windowbg2 {

color: ' . $sbox_TextColor1 . ';

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

      font-style: normal;

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

      font-weight: normal;

      text-decoration: none;

    }

In this way The shoutbox uses the two colours you can change in the control panel. Ignoring if it is a dark theme or not.
Byebye ;)
Title: Re: SMF Shoutbox
Post by: Psycojimi on April 14, 2008, 06:07:59 PM
I encountered a problem installing the shout box to my forum now all I see when trying to get on my forum is this error message:

Parse error: syntax error, unexpected $end in /home/wernkin8/public_html/forum/Sources/Subs.php on line 3601


I need help,I have members trying to get on the board.

This is the bottom half of my Sub.php

The error is in here..somewhere...any help would be appriciated.

}
function smfshout(){ global $sourcedir; include_once("$sourcedir/shout.php"); shout_display(true);}

// Debugging.
function db_debug_junk()
{
global $context, $scripturl, $boarddir, $modSettings;
global $db_cache, $db_count, $db_show_debug, $cache_count, $cache_hits;

// Add to Settings.php if you want to show the debugging information.
if (!isset($db_show_debug) || $db_show_debug !== true || (isset($_GET['action']) && $_GET['action'] == 'viewquery') || WIRELESS)
return;

if (empty($_SESSION['view_queries']))
$_SESSION['view_queries'] = 0;
if (empty($context['debug']['language_files']))
$context['debug']['language_files'] = array();

$files = get_included_files();
$total_size = 0;
for ($i = 0, $n = count($files); $i < $n; $i++)
{
$total_size += filesize($files[$i]);
$files[$i] = strtr($files[$i], array($boarddir => '.'));
}

$warnings = 0;
foreach ($db_cache as $q => $qq)
{
if (!empty($qq['w']))
$warnings += count($qq['w']);
}

$_SESSION['debug'] = &$db_cache;

// Gotta have valid HTML ;).
$temp = ob_get_contents();
if (function_exists('ob_clean'))
ob_clean();
else
{
ob_end_clean();
ob_start('ob_sessrewrite');
}

echo preg_replace('~</body>\s*</html>~', '', $temp), '
<div class="smalltext" style="text-align: left; margin: 1ex;">
Templates: ', count($context['debug']['templates']), ': <i>', implode('</i>, <i>', $context['debug']['templates']), '</i>.<br />
Sub templates: ', count($context['debug']['sub_templates']), ': <i>', implode('</i>, <i>', $context['debug']['sub_templates']), '</i>.<br />
Language files: ', count($context['debug']['language_files']), ': <i>', implode('</i>, <i>', $context['debug']['language_files']), '</i>.<br />
Files included: ', count($files), ' - ', round($total_size / 1024), 'KB. (<a href="javascript:void(0);" onclick="document.getElementById(\'debug_include_info\').style.display = \'inline\'; this.style.display = \'none\'; return false;">show</a><span id="debug_include_info" style="display: none;"><i>', implode('</i>, <i>', $files), '</i></span>)<br />';

if (!empty($modSettings['cache_enable']) && !empty($cache_hits))
{
$entries = array();
$total_t = 0;
$total_s = 0;
foreach ($cache_hits as $h)
{
$entries[] = $h['d'] . ' ' . $h['k'] . ': ' . comma_format($h['t'], 5) . ' - ' . $h['s'] . ' bytes';
$total_t += $h['t'];
$total_s += $h['s'];
}

echo '
Cache hits: ', $cache_count, ': ', comma_format($total_t, 5), 's for ', comma_format($total_s), ' bytes (<a href="javascript:void(0);" onclick="document.getElementById(\'debug_cache_info\').style.display = \'inline\'; this.style.display = \'none\'; return false;">show</a><span id="debug_cache_info" style="display: none;"><i>', implode('</i>, <i>', $entries), '</i></span>)<br />';
}

echo '
<a href="', $scripturl, '?action=viewquery" target="_blank">Queries used: ', $db_count, $warnings == 0 ? '' : ', ' . $warnings . ' warning(s)', '</a>.<br />
<br />';

if ($_SESSION['view_queries'] == 1)
foreach ($db_cache as $q => $qq)
{
$is_select = substr(trim($qq['q']), 0, 6) == 'SELECT' || preg_match('~^INSERT(?: IGNORE)? INTO \w+(?:\s+\([^)]+\))?\s+SELECT .+$~s', trim($qq['q'])) != 0;

echo '
<b>', $is_select ? '<a href="' . $scripturl . '?action=viewquery;qq=' . ($q + 1) . '#qq' . $q . '" target="_blank" style="text-decoration: none;">' : '', nl2br(str_replace("\t", '&nbsp;&nbsp;&nbsp;', htmlspecialchars(ltrim($qq['q'], "\n\r")))) . ($is_select ? '</a></b>' : '</b>') . '<br />
&nbsp;&nbsp;&nbsp;';
if (!empty($qq['f']) && !empty($qq['l']))
echo 'in <i>' . $qq['f'] . '</i> line <i>' . $qq['l'] . '</i>, ';
echo 'which took ' . round($qq['t'], 8) . ' seconds.<br />
<br />';
}

echo '
<a href="' . $scripturl . '?action=viewquery;sa=hide">[' . (empty($_SESSION['view_queries']) ? 'show' : 'hide') . ' queries]</a>
</div></body></html>';
}

// Get an attachment's encrypted filename.  If $new is true, won't check for file existence.
function getAttachmentFilename($filename, $attachment_id, $new = false)
{
global $modSettings;

// Remove special accented characters - ie. sí.
$clean_name = strtr($filename, 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$clean_name = strtr($clean_name, array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', 'œ' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u'));

// Sorry, no spaces, dots, or anything else but letters allowed.
$clean_name = preg_replace(array('/\s/', '/[^\w_\.\-]/'), array('_', ''), $clean_name);

$enc_name = $attachment_id . '_' . strtr($clean_name, '.', '_') . md5($clean_name);
$clean_name = preg_replace('~\.[\.]+~', '.', $clean_name);

if ($attachment_id == false || ($new && empty($modSettings['attachmentEncryptFilenames'])))
return $clean_name;
elseif ($new)
return $enc_name;

if (file_exists($modSettings['attachmentUploadDir'] . '/' . $enc_name))
$filename = $modSettings['attachmentUploadDir'] . '/' . $enc_name;
else
$filename = $modSettings['attachmentUploadDir'] . '/' . $clean_name;

return $filename;
}

// Lookup an IP; try shell_exec first because we can do a timeout on it.
function host_from_ip($ip)
{
global $modSettings;

if (($host = cache_get_data('hostlookup-' . $ip, 600)) !== null)
return $host;
$t = microtime();

// If we can't access nslookup/host, PHP 4.1.x might just crash.
if (@version_compare(PHP_VERSION, '4.2.0') == -1)
$host = false;

// Try the Linux host command, perhaps?
if (!isset($host) && (strpos(strtolower(PHP_OS), 'win') === false || strpos(strtolower(PHP_OS), 'darwin') !== false) && rand(0, 1) == 1)
{
if (!isset($modSettings['host_to_dis']))
$test = @shell_exec('host -W 1 ' . @escapeshellarg($ip));
else
$test = @shell_exec('host ' . @escapeshellarg($ip));

// Did host say it didn't find anything?
if (strpos($test, 'not found') !== false)
$host = '';
// Invalid server option?
elseif ((strpos($test, 'invalid option') || strpos($test, 'Invalid query name 1')) && !isset($modSettings['host_to_dis']))
updateSettings(array('host_to_dis' => 1));
// Maybe it found something, after all?
elseif (preg_match('~\s([^\s]+?)\.\s~', $test, $match) == 1)
$host = $match[1];
}

// This is nslookup; usually only Windows, but possibly some Unix?
if (!isset($host) && strpos(strtolower(PHP_OS), 'win') !== false && strpos(strtolower(PHP_OS), 'darwin') === false && rand(0, 1) == 1)
{
$test = @shell_exec('nslookup -timeout=1 ' . @escapeshellarg($ip));
if (strpos($test, 'Non-existent domain') !== false)
$host = '';
elseif (preg_match('~Name:\s+([^\s]+)~', $test, $match) == 1)
$host = $match[1];
}

// This is the last try :/.
if (!isset($host) || $host === false)
$host = @gethostbyaddr($ip);

// It took a long time, so let's cache it!
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5)
cache_put_data('hostlookup-' . $ip, $host, 600);

return $host;
}

// Chops a string into words and prepares them to be inserted into (or searched from) the database.
function text2words($text, $max_chars = 20, $encrypt = false)
{
global $func, $context;

// Step 1: Remove entities/things we don't consider words:
$words = preg_replace('~([\x0B\0' . ($context['utf8'] ? ($context['server']['complex_preg_chars'] ? '\x{A0}' : pack('C*', 0xC2, 0xA0)) : '\xA0') . '\t\r\s\n(){}\\[\\]<>!@$%^*.,:+=`\~\?/\\\\]|&(amp|lt|gt|quot);)+~' . ($context['utf8'] ? 'u' : ''), ' ', strtr($text, array('<br />' => ' ')));

// Step 2: Entities we left to letters, where applicable, lowercase.
$words = un_htmlspecialchars($func['strtolower']($words));

// Step 3: Ready to split apart and index!
$words = explode(' ', $words);

if ($encrypt)
{
$possible_chars = array_flip(array_merge(range(46, 57), range(65, 90), range(97, 122)));
$returned_ints = array();
foreach ($words as $word)
{
if (($word = trim($word, '-_\'')) !== '')
{
$encrypted = substr(crypt($word, 'uk'), 2, $max_chars);
$total = 0;
for ($i = 0; $i < $max_chars; $i++)
$total += $possible_chars[ord($encrypted{$i})] * pow(63, $i);
$returned_ints[] = $max_chars == 4 ? min($total, 16777215) : $total;
}
}
return array_unique($returned_ints);
}
else
{
// Trim characters before and after and add slashes for database insertion.
$returned_words = array();
foreach ($words as $word)
if (($word = trim($word, '-_\'')) !== '')
$returned_words[] = addslashes($max_chars === null ? $word : substr($word, 0, $max_chars));

// Filter out all words that occur more than once.
return array_unique($returned_words);
}
}

// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}

?>
Title: Re: SMF Shoutbox
Post by: midiof[f] on April 18, 2008, 03:58:07 AM
Hi a i find a litle bug

if post to shout :
--

then

The page cannot be found

in the shout box
Title: Re: SMF Shoutbox
Post by: Apllicmz on April 19, 2008, 05:21:45 AM
where can finder update for 114
Title: Re: SMF Shoutbox
Post by: Ruediger63 on April 22, 2008, 05:51:18 PM
Hello,

i have installed SMF Shoutbox 1.20 on the SMF 1.1.4

The Shoutbox have a Problem when i go of the Forum-Settings in the Admin CP the i become this:

Fatal error: Cannot redeclare modifysboxsettings() (previously declared in /nmt/web3/34/01/53388302/htdocs/sozialer/brennpunkt/Forum/Sources/ModSettings.php:357) in /nmt/web3/34/01/53388302/htdocs/sozialer/brennpunkt/Forum/Sources/ModSettings.php on line 435

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

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

What can i do ?

Sorry my English is not so good ...

Rüdiger

EDIT:

I have found the Problem, i have 2 Code in the Modsetting.php , i delete any and the Shoutbox run !

Thx.

Rüdiger
Title: Re: SMF Shoutbox
Post by: Chopper on April 24, 2008, 10:50:32 AM
Does this mod work?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on April 24, 2008, 05:52:00 PM
It would seem that the version in the mod section here and the versin 1.20 do work for people....however the link to the higher version doesn't work so not sure what is going on.

If the creator doesn't mind I have the aip and could send it to people that request it.
Title: Re: SMF Shoutbox
Post by: Chopper on April 25, 2008, 07:14:49 AM
Quote from: DarkAngel612 on April 24, 2008, 05:52:00 PM
It would seem that the version in the mod section here and the versin 1.20 do work for people....however the link to the higher version doesn't work so not sure what is going on.

If the creator doesn't mind I have the aip and could send it to people that request it.

Im looking for a good shoutbox so if you could possibly that would be great
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on April 25, 2008, 09:03:12 PM
as long as the creator doesn't pitch a fit I can send to you just email me for link.

on the other hand...you could do what i did and install the smf tiny portal that has the choutbox incorporated with the ability to have it either at the top...bottom or side with the same theme blocks.

let me know my email should  be available
Title: Re: SMF Shoutbox
Post by: gianko82 on April 27, 2008, 05:55:20 PM
Yes!! this mod works great!
Now I have this question... everyone knowk html or php can help and answer this:

This shoutbox underlines and shows in bold the own nickname, if it appear on the shouts, i think the lines that do this are these:
// highlight username, realname and make sound
    if (!empty($context['user']['name']) && strpos($content, $context['user']['name']) !== false) {
      if ($div === false) $alert = true;
      $content = str_replace($context['user']['name'], '<b><u>' . $context['user']['name'] . '</u></b>', $content);


Ok, if there's an user called "USer" it appears underlined and bolded only if it appers in the shouts "USer", but not if it appears "user" or "USER" or "usER". Does someone know how make became this feature "case INSENSITIVE"?
(I found a case insensitive smilies mod, and it add onli an "i" in the code, maybe here's a similar stupid thing to fix this!)
thanks
thanks
Title: Re: SMF Shoutbox
Post by: qubbah on April 29, 2008, 11:22:50 PM
how can i add the custom backgroud and not using the forum background fot this shoutbox?
Title: Re: SMF Shoutbox
Post by: rtyug on April 30, 2008, 04:45:28 PM
 possibly that was a forum broken up from this chat?
I described a theme here

http://www.simplemachines.org/community/index.php?topic=236698.0
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on April 30, 2008, 09:59:56 PM
Have you possibly tried to remove the shoutbox package?

Can you get to the server where your files are stored?
for the shoutbox on your computer...this way you can open the file>find which files were edited when installed>find the file on server>remove the edit and reupload to overwrite the file

this will remove the shoutbox then you can see if your site returns to normal

OR

you may have been possibly hacked by someone, this happened to another site I go to and that was their trouble....a hacker. You may need to reupload the files for your SMF software to overwrite the files you have....

you might also check your Settings_bak.php and Settings.php files to make sure the information there is still correct...any changes to the first section may be a problem too.





Quote from: rtyug on April 30, 2008, 04:45:28 PM
possibly that was a forum broken up from this chat?
I described a theme here

http://www.simplemachines.org/community/index.php?topic=236698.0
Title: Re: SMF Shoutbox
Post by: rtyug on May 01, 2008, 07:09:55 AM
excuse me

works already!

I do not know that it was, but works already
Title: Re: SMF Shoutbox
Post by: thefix24 on May 09, 2008, 03:47:15 PM
i just installed SMF Shoutbox 1.20 on the SMF 1.1.5

everything works fine expect for this message on the top of the shoutbox.

Notice: Undefined offset: 1 in /home/tf24/public_html/tfv4/Sources/Load.php(1741) : eval()'d code on line 72

Notice: Undefined offset: 2 in /home/tf24/public_html/tfv4/Sources/Load.php(1741) : eval()'d code on line 72


My members can still post messages and everything like this, its just this message I cant seem to fix.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on May 09, 2008, 06:14:28 PM
have you opened that file>look at the line it mentions to see what that says, sometimes it tells you which file to attack

or get a new file, compare the two load.php files codes and see what the dif may be...could be it is missing some code or the code got split

sometimes just replacing the naughty file will fix trouble
Title: Re: SMF Shoutbox
Post by: thefix24 on May 09, 2008, 06:32:31 PM
yea here is line 72 in load.php

Quotevoid loadTemplate(string template_name, bool fatal = true)
      - loads a template file with the name template_name from the current,
        default, or base theme.
      - uses the template_include() function to include the file.
      - detects a wrong default theme directory and tries to work around it.
      - if fatal is true, dies with an error message if the template cannot
        be found. <--this is line 72

thats it, I had check an over copy i had of my site and its the same thing. (I keep backups of everything)



Title: Re: SMF Shoutbox
Post by: DarkAngel612 on May 09, 2008, 10:36:48 PM
I am so proud of you for keeping those backups **pats back**

have you tried replacing the file with a new one either from your backups or by opening the current smf version and using a pritine file to overwrite the one on your server?
Title: Re: SMF Shoutbox
Post by: thefix24 on May 09, 2008, 11:24:29 PM
Thank you,

I tried what you suggested, with 3 back up copies and a new one I downloaded. Same Error.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on May 10, 2008, 04:18:13 AM
is this with the default theme or with another theme?

check your Settings_bak.php and Settings.php

make sure the paths written in there are correct

makesure the path to the sources directory are actually the ones written there  in the ########## Directories/Files ########## section of the files I mentioned and in the admin section of your forum, check paths
Title: Re: SMF Shoutbox
Post by: thefix24 on May 10, 2008, 04:48:09 AM
I looked at all the paths and settings and everything is pointing where it should, however when I have my theme set to default those two errors go away. I looked over everything twice and everything was set correctly.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on May 10, 2008, 02:08:30 PM
in the index.template.php or the boardindex.template.php file of any additional theme you have installed need to be looked at to ensure the code for the sbox is in them. Look at the default one to find out which file it got installedinto by the package installer then just put it in the same fila nd same place as the other templates you have installed.

open to compare like you did--work off duplicate file (if you already knew this sorry tis foroce of habit with me)--add the coding then upload and overwrite the file...refresh and see if that helped.

what you look for is:

// display shoutbox
  if (function_exists('sbox'));
Title: Re: SMF Shoutbox
Post by: thefix24 on May 10, 2008, 03:40:19 PM
I did everything you said and yea still nothing.

The theme I have (blueskies) doesn't have a boardindex.template.php file but it did have a index.template so I put it in there. I got the shoutbox twice (i knew that was going to happen).

I comment out

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

on the default theme (which made skyblue theme now only have one shoutbox) but same error.


Ill send you the link to my site in PM if you want to look at it.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on May 10, 2008, 06:21:33 PM
sure
cause my onlyother suggestion is to delete it then reinstall it
Title: Re: SMF Shoutbox
Post by: Nibogo on May 19, 2008, 10:35:48 PM
I have this shoutbox but i think of have an ugly appareance but is possible to give a better appareance??
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on May 20, 2008, 01:21:52 AM
not that i know of but then of course it may just be your theme if not the default one. some themes govern the inside of the shoutbox background color and title bar
Title: Re: sound in smf shoutbox
Post by: omsharma on May 22, 2008, 01:13:59 PM
there is an option for sound in smf shoutbox, but it doesnt seems to work in my forum..can anyone tell me the solution to make it work...please, it wil be of great help to me. im using smf shoutbox 1.16b on smf v1.1.4
Title: Re: SMF Shoutbox
Post by: picos on May 22, 2008, 04:39:08 PM
Does this work with smf beta 2 3.1?
Title: Re: SMF Shoutbox
Post by: boompagirl on May 23, 2008, 06:03:54 PM
Hey folks:

We are running SMF 1.1.5 and I am attempting to use SMF Shoutbox 1.16b.  The mod appears to have installed just fine.  However, when you look at the shoutbox, the error "the page cannot be displayed" shows where the sent messages should be.

I checked the sboxDB.php file and ensured the permissions are 777. 

What else am I missing? 

Thanks for reading!

Nicole
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on May 23, 2008, 08:42:55 PM
boompagirl: if using a different theme tan the default make sure the same shoutbox files are in that theme too and that the index.template.php file also has the sbox coding for the shoutbox.
Title: Re: SMF Shoutbox
Post by: picos on May 27, 2008, 09:03:46 AM
Does anyone know how to make the posts in the shoutbox stop the horizontal scroll bar appearing?  Some kind of text wrap so all posts are within a set parameter?  thanks
Title: Re: SMF Shoutbox
Post by: leet8845 on May 28, 2008, 08:05:08 PM
I had a problem with my forum and had to do reinstall, trouble is when I appley the shoutbox mod, i now get 'Hacking attempt...' message in the shout box,

any ideas how to fix this anyone?

Thanks

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on May 28, 2008, 08:18:19 PM
@leet8845:

did you have to do a total reinstall or just the shoutbox...meaning did you install EVERYTHING from scratch?
Title: Re: SMF Shoutbox
Post by: leet8845 on May 28, 2008, 08:26:56 PM
DarkAngel,

Thanks for replying,I treid to upgrade my database by uploading the upgrade files and runnnig upgrade.php but this failed so I just uploaded and  ran the install.php file again but used my old database. Everything went smooth expect shoutbox
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on May 28, 2008, 08:43:27 PM
i tried that wiht one of my boards and found that not only did the update --files only-- NOT update all of them but doing it then reinstalling fresh files sometimes leaves the info in database files and most importantly....


leaves the old one in the packages folder.

go to your server files and check the packages directory to make sure the shoutbox is not in there anymore...if it is still in there then go to your board---uninstall it---then recheck the directory to make sure it is out of there.

sometimes i have to also delete the browser cache, not sure why but it is a good idea anyway...lol

then after you make sure that all sbox files are not in server---anywhere, reload the default textures index.template.php file, if no other mods installed yet then you can replace the sources files again to really make sure no sbox info is found.

then try reinstalling it again.

sorry if i confused you, that is a job I do really well...lol
Title: Re: SMF Shoutbox
Post by: leet8845 on May 29, 2008, 07:35:00 AM
I have uninstalled it but they no longer have the version of SMF shoutbox I used in the mods, is there anywhere else I can download it?
Title: Re: SMF Shoutbox
Post by: leet8845 on May 29, 2008, 07:39:39 AM
ok I got it from another site of mine but I still get 'Hacking attempt...' is there anyway other of getting rid of this?
Title: Re: SMF Shoutbox
Post by: slyone on June 03, 2008, 06:18:30 PM
Wow there is so much information in this forum. Its great!
Although I have been reading here for the past two days, I still cant find the answer I need.


I am running SMF 1.1.5 and installed the SMF shoutbox 1.16b.
Both installed with no problems.
What I am looking for is:

1. How to get the shoutbox on all pages, not just the main page?

2. What code do I need and where and what files needs to be modified?

I apologize if this has been asked before, but after two days of reading I can't find it. Any help with this will be greatly appreciated!   
Title: Re: SMF Shoutbox
Post by: L'AltroWeb on June 03, 2008, 06:36:15 PM
At all: http://www.simplemachines.org/community/index.php?topic=227536.0 (http://www.simplemachines.org/community/index.php?topic=227536.0) :)
Title: Re: SMF Shoutbox
Post by: slyone on June 03, 2008, 07:21:24 PM
Quote from: Dark-Wolf on June 03, 2008, 06:36:15 PM
At all: http://www.simplemachines.org/community/index.php?topic=227536.0 (http://www.simplemachines.org/community/index.php?topic=227536.0) :)


Hey this is a nice fix!
Didn't know it had this problem.

But this didn't answer what I need.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on June 03, 2008, 09:46:40 PM
[quote
Hey this is a nice fix!
Didn't know it had this problem.

But this didn't answer what I need.
[/quote]



You need to get the index.template.php file in the themes folder you are using. Then go to the default theme folder and look in the board.indextemplate.php (something like that is the name) or the index.template.php file and look for something like "show sbox"

there should be the code in the file, just copy paste it to the one I told you for your theme you are using and that should show it on each page. You may play around ---where you paste it to---to see where it  shows when you refresh the page. If it is not in the right spot then move it further up or down in the coding and try again till you get it where you want it.

remember to work off a duplicate file so you can overwrite the one on the server or replace with the good one should you mess something up...lol
Title: Re: SMF Shoutbox
Post by: slyone on June 04, 2008, 01:10:51 AM
Thanks DarkAngel612 That worked!  :)
It shows on every page, but now it shows twice on the main page.

I did figure out that if I take out the code from the board.index file in the default theme it removes the second box.  But only at the expense of not showing in the default theme any more. 

Not that it's a big deal because I may use my modified theme as the  default, but any idea on how to remove the second box without removing it from the default theme. Maybe a different file needs code removed or added??

I keep this up, I just might learn something here......... :P

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on June 04, 2008, 01:22:19 AM
LOL well slyone you live up to your name for figuring out what to do to remove the second one...but just add that code to the defaults index.template.php file in the same place you did the other themes file and it should show for it too.

In the forums I have set up---mainly have the portal but on the one I use the default only to be able to install the mods then I manually add the coding to the proper files for the actual themes they use.

Title: Re: SMF Shoutbox
Post by: leet8845 on June 04, 2008, 05:39:28 AM
Quote from: DarkAngel612 on May 28, 2008, 08:43:27 PM
i tried that wiht one of my boards and found that not only did the update --files only-- NOT update all of them but doing it then reinstalling fresh files sometimes leaves the info in database files and most importantly....


leaves the old one in the packages folder.

go to your server files and check the packages directory to make sure the shoutbox is not in there anymore...if it is still in there then go to your board---uninstall it---then recheck the directory to make sure it is out of there.

sometimes i have to also delete the browser cache, not sure why but it is a good idea anyway...lol

then after you make sure that all sbox files are not in server---anywhere, reload the default textures index.template.php file, if no other mods installed yet then you can replace the sources files again to really make sure no sbox info is found.

then try reinstalling it again.

sorry if i confused you, that is a job I do really well...lol

Hey DarkAngel12,

thanks for advice! I ran the install.php and then reinstalled the SMF shout box a few times and it suddenly started working!! I don't total understand why but all I care is its working, thanks for your advice cause without it I wouldnt have kept trying to reinstall and would have gave up,

Many many thanks

:) ;) ;) :)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on June 04, 2008, 12:52:26 PM
I have no clue either...it just has a mind of its own but it has been known to happen that way...lol

Glad I could help.
Title: Re: SMF Shoutbox
Post by: slackerpunk on June 05, 2008, 04:18:12 AM
anyone know how can I change the font color for the input box? it's black and my theme is darcke
Title: Re: SMF Shoutbox
Post by: slackerpunk on June 05, 2008, 07:44:37 PM
anyone have any ideas on where I can start
Title: Re: SMF Shoutbox
Post by: gianko82 on June 05, 2008, 08:00:34 PM
I posted a fw posts ago a method to edit manually both colours with the control panel off the shoutbox, look there: http://www.simplemachines.org/community/index.php?topic=76344.msg1505517#msg1505517 (http://www.simplemachines.org/community/index.php?topic=76344.msg1505517#msg1505517)
Title: Re: SMF Shoutbox
Post by: slackerpunk on June 06, 2008, 06:29:52 AM
anyone have ideas with my question above
Title: Re: SMF Shoutbox
Post by: leet8845 on June 07, 2008, 11:46:19 PM
Login to ADMIN>Features and Options>then look across the top there are four tabs just under the 'features and options heading',  one of them 'SMF Shoutbox', change in there.
Title: Re: SMF Shoutbox
Post by: slackerpunk on June 08, 2008, 12:17:04 AM
never found it in style.css
Title: Re: SMF Shoutbox
Post by: gianko82 on June 08, 2008, 07:47:54 PM
why if I type " or < or > it shows &quot; &lt; &gt; ????????
Title: Re: SMF Shoutbox
Post by: Damith on June 15, 2008, 02:15:12 AM
Hi Im using SMF shoutbox in the BlueLine theme.
Can you pls let me know how I can edit the width and height of the shoutbox.

Thanks.
Title: Re: SMF Shoutbox
Post by: buddhika_s on June 15, 2008, 10:40:46 PM
Hi,

I've been trying to decrease the width of the shoutbox so it'll line up with rest of the forum.  I've tried editing the shoutbox source and everything, but I wasn't able to get it to work :(

Can someone please tell me what file I need to edit and where I need to edit, so the shoutbox will line up with rest of the forum?

Thank you
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on June 15, 2008, 11:06:58 PM
have you tried the sbox.template.php file


FIND:

                          <iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>

and change the red part overwrite your file on the server with a copy of this file. see if that works by just decreasing the % a little at a time until you get it where you want it.
Title: Re: SMF Shoutbox
Post by: master2oo8 on June 24, 2008, 12:30:19 PM
How can i set premission for every Usergroup? I want that only defined usergroups can see the SB (exactly i want, that only user over 15 Posts see the Shoutbox)
Title: Re: SMF Shoutbox
Post by: dmz_pt on June 25, 2008, 08:00:43 AM
Hi there.
can anyone tell me what is the right sbox version to install on SMF 1.1.5 ?  The last sbox version that i have is 1.16b.
Title: Re: SMF Shoutbox
Post by: GreenStork on June 26, 2008, 04:10:50 PM
Greetings! =)
I tried to install this mode (v 1.20) manually on smf 1.1.4
But inside the box I have a message about the error:

Code (data base error) Select
Table 'vigilance.vigilance_sbox_content' doesn't exist
File: C:\AppServ\www\Sources\sboxDB.php
Line: 107


I think, that I have to create this table, but I don't know, what there should be)))
Can you give me a hint, please? ;)
Title: Re: SMF Shoutbox
Post by: trekkie2444 on June 26, 2008, 05:52:41 PM
This shoutbox might be too out of date for that theme.
Title: Re: SMF Shoutbox
Post by: nneonneo on June 27, 2008, 06:59:25 PM
Looks like a typo! It should say '{$db_prefix}_sbox_content'.
Title: Re: SMF Shoutbox
Post by: jepot5 on June 28, 2008, 05:41:07 AM
can anyone please help me on how to display the smilies on this shoutbox?
i got it working but when i enter the message with smilies on it, it doesnt work
and the direct link for the smiley goes to a url like this
http://www.<b><u>crappy-ownage<.com/u%3E%3C/b%3E.net/Smileys/default/smiley.gif
it adds <b><u> so the smileys dont show up

please help
Title: Re: SMF Shoutbox
Post by: jepot5 on June 29, 2008, 12:07:53 AM
pls anyone
Title: Re: SMF Shoutbox
Post by: GreenStork on June 29, 2008, 06:34:34 AM
Quote from: nneonneo on June 27, 2008, 06:59:25 PM
Looks like a typo! It should say '{$db_prefix}_sbox_content'.
Oops, sorry) It says: Table 'vigilance.vigilance_sbox_content' doesn't exist
Title: Re: SMF Shoutbox
Post by: Damith on July 02, 2008, 12:09:26 PM
Hi this is my shoutbox

I want to edit the height and width of it.
Pls help me

<?php

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

$themedir $settings['default_theme_url'];
$imgdir $themedir."/images/";
$sourceurl str_replace($boarddir$boardurl$sourcedir);

if ($context['user']['is_guest'] && $modSettings['sbox_GuestVisible'] != '1') return;

echo '
  <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;
}

     function clearSbox() {
       // Delete shoutbox message text after shout has been submitted
       if (document.sbox)
       document.sbox.sboxText.value="";
      }
      
      function submitSbox() {
        pretxt = \'' 
$txt['sbox_TypeShout'] . '\';
        prelen = pretxt.length;
        xval = document.sbox.sboxText.value;
        if (xval.toLowerCase() == pretxt.toLowerCase()) return false;
        ctr = 0;
        while (xval.toLowerCase().indexOf(pretxt.toLowerCase()) >= 0 && ctr < 8) {
          xpos = xval.toLowerCase().indexOf(pretxt.toLowerCase());
          xval = xval.substring(0, xpos) + xval.substring(xpos+prelen, xval.length);
          ctr++;
        }
        document.sbox.sboxText.value = xval;
        setTimeout(\'clearSbox()\', 500);
        return true;
      }
   // ]]></script>
<div class="tborder"'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center;">
<a href="#" onclick="shrinkHeaderSB(!current_header_sb); return false;"><img id="upshrink_sb" src="'
$settings['images_url'], '/', empty($options['collapse_header_sp']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>'.$txt['sbox_ModTitle'].'
</div>
<div id="upshrinkHeaderSB"'
, empty($options['collapse_header_sb']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="windowbg" align="right" style="width:13%">
<td class="windowbg" style="width:87%">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="center" valign="middle">
         <form name="sbox" action="' 
$sourceurl '/sboxDB.php?action=write" method="post" target="sboxframe" style="margin: 0;" onSubmit="return submitSbox();" enctype="multipart/form-data" accept-charset="' $context['character_set'] . '">
    <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>';
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" onFocus="if (this.value==\'' 
$txt['sbox_TypeShout'] . '\') this.value = \'\';" onBlur="if (this.value==\'\') this.value=\'' $txt['sbox_TypeShout'] . '\';" />&nbsp;<input type="submit" class="input" value="&nbsp;shout&nbsp;" />';
} else {
  // guest is not allowed to shout ~~> show message
  echo $txt['sbox_Login'];
}
  echo 
'
           </form>
                  <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                    document.sbox.sboxText.value = \'' 
$txt['sbox_TypeShout'] . '\';
                  // ]]></script>
</td>
</tr>'
;

if (($modSettings['sbox_SmiliesVisible'] == "1") && ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1"))) {
    
sbox_loadSmileys();
    echo 
'
              <tr>
                <td align="center">'
;
    
sbox_printSmileys();
    echo 
'
                </td>
              </tr>'
;
}

  echo
'
<tr>
<td>
      <iframe name="sboxframe" src="' 
$sourceurl '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>
</td>
</tr>
</table>
   </td>
   </tr>
   </table>
   </div>
  </div>'
;
}

// BEGIN: Borrowed from theme_postbox($msg) in Subs-Post.php (1.1rc3)
function sbox_loadSmileys() {
  global 
$context$settings$user_info$txt$modSettings$db_prefix;
  
// Initialize smiley array...
$context['smileys'] = array(
'postform' => array(),
'popup' => array(),
);

// Load smileys - don't bother to run a query if we're not using the database's ones anyhow.
if (empty($modSettings['smiley_enable']) && $user_info['smiley_set'] != 'none')
$context['smileys']['postform'][] = array(
'smileys' => array(
array('code' => ':)''filename' => 'smiley.gif''description' => $txt[287]),
array('code' => ';)''filename' => 'wink.gif''description' => $txt[292]),
array('code' => ':D''filename' => 'cheesy.gif''description' => $txt[289]),
array('code' => ';D''filename' => 'grin.gif''description' => $txt[293]),
array('code' => '>:(''filename' => 'angry.gif''description' => $txt[288]),
array('code' => ':(''filename' => 'sad.gif''description' => $txt[291]),
array('code' => ':o''filename' => 'shocked.gif''description' => $txt[294]),
array('code' => '8)''filename' => 'cool.gif''description' => $txt[295]),
array('code' => '???''filename' => 'huh.gif''description' => $txt[296]),
array('code' => '::)''filename' => 'rolleyes.gif''description' => $txt[450]),
array('code' => ':P''filename' => 'tongue.gif''description' => $txt[451]),
array('code' => ':-[''filename' => 'embarrassed.gif''description' => $txt[526]),
array('code' => ':-X''filename' => 'lipsrsealed.gif''description' => $txt[527]),
array('code' => ':-\\''filename' => 'undecided.gif''description' => $txt[528]),
array('code' => ':-*''filename' => 'kiss.gif''description' => $txt[529]),
array('code' => ':\'(''filename' => 'cry.gif''description' => $txt[530])
),
'last' => true,
);
elseif ($user_info['smiley_set'] != 'none')
{
if (($temp cache_get_data('posting_smileys'480)) == null)
{
$request db_query("
SELECT code, filename, description, smileyRow, hidden
FROM 
{$db_prefix}smileys
WHERE hidden IN (0, 2)
ORDER BY smileyRow, smileyOrder"
__FILE____LINE__);
while ($row mysql_fetch_assoc($request))
{
$row['code'] = htmlspecialchars($row['code']);
$row['filename'] = htmlspecialchars($row['filename']);
$row['description'] = htmlspecialchars($row['description']);

$context['smileys'][empty($row['hidden']) ? 'postform' 'popup'][$row['smileyRow']]['smileys'][] = $row;
}
mysql_free_result($request);

cache_put_data('posting_smileys'$context['smileys'], 480);
}
else
$context['smileys'] = $temp;
}

// Clean house... add slashes to the code for javascript.
foreach (array_keys($context['smileys']) as $location)
{
foreach ($context['smileys'][$location] as $j => $row)
{
$n count($context['smileys'][$location][$j]['smileys']);
for ($i 0$i $n$i++)
{
$context['smileys'][$location][$j]['smileys'][$i]['code'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['code']);
$context['smileys'][$location][$j]['smileys'][$i]['js_description'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['description']);
}

$context['smileys'][$location][$j]['smileys'][$n 1]['last'] = true;
}
if (!empty($context['smileys'][$location]))
$context['smileys'][$location][count($context['smileys'][$location]) - 1]['last'] = true;
}
$settings['smileys_url'] = $modSettings['smileys_url'] . '/' $user_info['smiley_set'];
}
// END: Borrowed from theme_postbox($msg) in Subs-Post.php

// BEGIN: Borrowed from template_postbox(&$message) in Post.template.php (1.1rc3)
function sbox_printSmileys() {
  global 
$context$txt$settings;
  
  
loadLanguage('Post');
  
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{
// Show each row of smileys ;).
foreach ($context['smileys']['postform'] as $smiley_row)
{
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' '
$smiley['code'], '\', document.forms.sbox.sboxText); return false;"><img src="'$settings['smileys_url'], '/'$smiley['filename'], '" align="bottom" alt="'$smiley['description'], '" title="'$smiley['description'], '" /></a>';

// If this isn't the last row, show a break.
if (empty($smiley_row['last']))
echo '<br />';
}

// If the smileys popup is to be shown... show it!
if (!empty($context['smileys']['popup']))
echo '
<a href="javascript:sbox_moreSmileys();">['
$txt['more_smileys'], ']</a>';
}

// If there are additional smileys then ensure we provide the javascript for them.
if (!empty($context['smileys']['popup']))
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smileys = ['
;

foreach ($context['smileys']['popup'] as $smiley_row)
{
echo '
['
;
foreach ($smiley_row['smileys'] as $smiley)
{
echo '
["'
$smiley['code'], '","'$smiley['filename'], '","'$smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}

echo ']';
if (empty($smiley_row['last']))
echo ',';
}

echo '];
var smileyPopupWindow;

function sbox_moreSmileys()
{
var row, i;

if (smileyPopupWindow)
smileyPopupWindow.close();

smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\');
smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>'
$txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="'$settings['theme_url'], '/style.css" />\n\t</head>\');
smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">'
$txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');

for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'&quot;\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; \' + smileys[row][i][0] + \'&quot;, window.opener.document.forms.sbox.sboxText); window.focus(); return false;"><img src="'
$settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \');
}
smileyPopupWindow.document.write("<br />");
}

smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\\">'
$txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
smileyPopupWindow.document.close();
}
// ]]></script>'
;
}
}
// END: Borrowed from template_postbox(&$message) in Post.template.php

?>

Title: Re: SMF Shoutbox
Post by: GreenStork on July 03, 2008, 03:27:16 AM
Quote from: Damith on July 02, 2008, 12:09:26 PM
Hi this is my shoutbox

I want to edit the height and width of it.
Pls help me

<?php

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

$themedir $settings['default_theme_url'];
$imgdir $themedir."/images/";
$sourceurl str_replace($boarddir$boardurl$sourcedir);

if ($context['user']['is_guest'] && $modSettings['sbox_GuestVisible'] != '1') return;

echo '
  <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;
}

     function clearSbox() {
       // Delete shoutbox message text after shout has been submitted
       if (document.sbox)
       document.sbox.sboxText.value="";
      }
      
      function submitSbox() {
        pretxt = \'' 
$txt['sbox_TypeShout'] . '\';
        prelen = pretxt.length;
        xval = document.sbox.sboxText.value;
        if (xval.toLowerCase() == pretxt.toLowerCase()) return false;
        ctr = 0;
        while (xval.toLowerCase().indexOf(pretxt.toLowerCase()) >= 0 && ctr < 8) {
          xpos = xval.toLowerCase().indexOf(pretxt.toLowerCase());
          xval = xval.substring(0, xpos) + xval.substring(xpos+prelen, xval.length);
          ctr++;
        }
        document.sbox.sboxText.value = xval;
        setTimeout(\'clearSbox()\', 500);
        return true;
      }
   // ]]></script>
<div class="tborder"'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center;">
<a href="#" onclick="shrinkHeaderSB(!current_header_sb); return false;"><img id="upshrink_sb" src="'
$settings['images_url'], '/', empty($options['collapse_header_sp']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>'.$txt['sbox_ModTitle'].'
</div>
<div id="upshrinkHeaderSB"'
, empty($options['collapse_header_sb']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="windowbg" align="right" style="width:13%">
<td class="windowbg" style="width:87%">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="center" valign="middle">
         <form name="sbox" action="' 
$sourceurl '/sboxDB.php?action=write" method="post" target="sboxframe" style="margin: 0;" onSubmit="return submitSbox();" enctype="multipart/form-data" accept-charset="' $context['character_set'] . '">
    <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>';
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" onFocus="if (this.value==\'' 
$txt['sbox_TypeShout'] . '\') this.value = \'\';" onBlur="if (this.value==\'\') this.value=\'' $txt['sbox_TypeShout'] . '\';" />&nbsp;<input type="submit" class="input" value="&nbsp;shout&nbsp;" />';
} else {
  // guest is not allowed to shout ~~> show message
  echo $txt['sbox_Login'];
}
  echo 
'
           </form>
                  <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                    document.sbox.sboxText.value = \'' 
$txt['sbox_TypeShout'] . '\';
                  // ]]></script>
</td>
</tr>'
;

if (($modSettings['sbox_SmiliesVisible'] == "1") && ((!$context['user']['is_guest']) || ($modSettings['sbox_GuestAllowed'] == "1"))) {
    
sbox_loadSmileys();
    echo 
'
              <tr>
                <td align="center">'
;
    
sbox_printSmileys();
    echo 
'
                </td>
              </tr>'
;
}

  echo
'
<tr>
<td>
      <iframe name="sboxframe" src="' 
$sourceurl '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>
</td>
</tr>
</table>
   </td>
   </tr>
   </table>
   </div>
  </div>'
;
}

// BEGIN: Borrowed from theme_postbox($msg) in Subs-Post.php (1.1rc3)
function sbox_loadSmileys() {
  global 
$context$settings$user_info$txt$modSettings$db_prefix;
  
// Initialize smiley array...
$context['smileys'] = array(
'postform' => array(),
'popup' => array(),
);

// Load smileys - don't bother to run a query if we're not using the database's ones anyhow.
if (empty($modSettings['smiley_enable']) && $user_info['smiley_set'] != 'none')
$context['smileys']['postform'][] = array(
'smileys' => array(
array('code' => ':)''filename' => 'smiley.gif''description' => $txt[287]),
array('code' => ';)''filename' => 'wink.gif''description' => $txt[292]),
array('code' => ':D''filename' => 'cheesy.gif''description' => $txt[289]),
array('code' => ';D''filename' => 'grin.gif''description' => $txt[293]),
array('code' => '>:(''filename' => 'angry.gif''description' => $txt[288]),
array('code' => ':(''filename' => 'sad.gif''description' => $txt[291]),
array('code' => ':o''filename' => 'shocked.gif''description' => $txt[294]),
array('code' => '8)''filename' => 'cool.gif''description' => $txt[295]),
array('code' => '???''filename' => 'huh.gif''description' => $txt[296]),
array('code' => '::)''filename' => 'rolleyes.gif''description' => $txt[450]),
array('code' => ':P''filename' => 'tongue.gif''description' => $txt[451]),
array('code' => ':-[''filename' => 'embarrassed.gif''description' => $txt[526]),
array('code' => ':-X''filename' => 'lipsrsealed.gif''description' => $txt[527]),
array('code' => ':-\\''filename' => 'undecided.gif''description' => $txt[528]),
array('code' => ':-*''filename' => 'kiss.gif''description' => $txt[529]),
array('code' => ':\'(''filename' => 'cry.gif''description' => $txt[530])
),
'last' => true,
);
elseif ($user_info['smiley_set'] != 'none')
{
if (($temp cache_get_data('posting_smileys'480)) == null)
{
$request db_query("
SELECT code, filename, description, smileyRow, hidden
FROM 
{$db_prefix}smileys
WHERE hidden IN (0, 2)
ORDER BY smileyRow, smileyOrder"
__FILE____LINE__);
while ($row mysql_fetch_assoc($request))
{
$row['code'] = htmlspecialchars($row['code']);
$row['filename'] = htmlspecialchars($row['filename']);
$row['description'] = htmlspecialchars($row['description']);

$context['smileys'][empty($row['hidden']) ? 'postform' 'popup'][$row['smileyRow']]['smileys'][] = $row;
}
mysql_free_result($request);

cache_put_data('posting_smileys'$context['smileys'], 480);
}
else
$context['smileys'] = $temp;
}

// Clean house... add slashes to the code for javascript.
foreach (array_keys($context['smileys']) as $location)
{
foreach ($context['smileys'][$location] as $j => $row)
{
$n count($context['smileys'][$location][$j]['smileys']);
for ($i 0$i $n$i++)
{
$context['smileys'][$location][$j]['smileys'][$i]['code'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['code']);
$context['smileys'][$location][$j]['smileys'][$i]['js_description'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['description']);
}

$context['smileys'][$location][$j]['smileys'][$n 1]['last'] = true;
}
if (!empty($context['smileys'][$location]))
$context['smileys'][$location][count($context['smileys'][$location]) - 1]['last'] = true;
}
$settings['smileys_url'] = $modSettings['smileys_url'] . '/' $user_info['smiley_set'];
}
// END: Borrowed from theme_postbox($msg) in Subs-Post.php

// BEGIN: Borrowed from template_postbox(&$message) in Post.template.php (1.1rc3)
function sbox_printSmileys() {
  global 
$context$txt$settings;
  
  
loadLanguage('Post');
  
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{
// Show each row of smileys ;).
foreach ($context['smileys']['postform'] as $smiley_row)
{
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' '
$smiley['code'], '\', document.forms.sbox.sboxText); return false;"><img src="'$settings['smileys_url'], '/'$smiley['filename'], '" align="bottom" alt="'$smiley['description'], '" title="'$smiley['description'], '" /></a>';

// If this isn't the last row, show a break.
if (empty($smiley_row['last']))
echo '<br />';
}

// If the smileys popup is to be shown... show it!
if (!empty($context['smileys']['popup']))
echo '
<a href="javascript:sbox_moreSmileys();">['
$txt['more_smileys'], ']</a>';
}

// If there are additional smileys then ensure we provide the javascript for them.
if (!empty($context['smileys']['popup']))
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smileys = ['
;

foreach ($context['smileys']['popup'] as $smiley_row)
{
echo '
['
;
foreach ($smiley_row['smileys'] as $smiley)
{
echo '
["'
$smiley['code'], '","'$smiley['filename'], '","'$smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}

echo ']';
if (empty($smiley_row['last']))
echo ',';
}

echo '];
var smileyPopupWindow;

function sbox_moreSmileys()
{
var row, i;

if (smileyPopupWindow)
smileyPopupWindow.close();

smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\');
smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>'
$txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="'$settings['theme_url'], '/style.css" />\n\t</head>\');
smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">'
$txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');

for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'&quot;\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; \' + smileys[row][i][0] + \'&quot;, window.opener.document.forms.sbox.sboxText); window.focus(); return false;"><img src="'
$settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \');
}
smileyPopupWindow.document.write("<br />");
}

smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\\">'
$txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
smileyPopupWindow.document.close();
}
// ]]></script>'
;
}
}
// END: Borrowed from template_postbox(&$message) in Post.template.php

?>



Quote from: DarkAngel612 on June 15, 2008, 11:06:58 PM
have you tried the sbox.template.php file


FIND:

                          <iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>

and change the red part overwrite your file on the server with a copy of this file. see if that works by just decreasing the % a little at a time until you get it where you want it.

height is next to the width (red)
Title: Re: SMF Shoutbox
Post by: GreenStork on July 03, 2008, 03:37:09 AM
so guys, can anyone help me, please? :-[

Quote from: The Great Heretic on June 26, 2008, 04:10:50 PM
inside the box I have a message about the error:
Code (data base error) Select
Table 'vigilance.vigilance_sbox_content' doesn't exist
File: C:\AppServ\www\Sources\sboxDB.php
Line: 107

I think, that I have to create this table, but I don't know, what there should be)))
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 03, 2008, 03:48:53 AM
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__);


that is what the table should be...check the database to make sure it is not in there and the {$db_prefix} should be the name of the table in your error message.

otherwise I would suggest you uninstall it and try again so that it can create the table it needs by itself.
Title: Re: SMF Shoutbox
Post by: GreenStork on July 03, 2008, 04:38:43 AM
thanks for attention! but a new problem arrived)

Quote#1064 - 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 '", __FILE__, __LINE__)' at line 6

what shall I do next? :)

or how can I make this:   PRIMARY KEY (`id`))", __FILE__, __LINE__);  ?
Title: Re: SMF Shoutbox
Post by: Ron_W on July 10, 2008, 02:04:37 AM
how come this topic is still going actually the smf shoutbox is exploitable and yet people still use it doesnt make any sense. or have i missed something entirely
Title: Re: SMF Shoutbox
Post by: qubbah on July 11, 2008, 12:01:17 PM
How can i resize the box 'your text here' to fix my forum size?
Title: Re: SMF Shoutbox
Post by: Damith on July 18, 2008, 02:37:01 AM
Hi I want to put this widget next to my shoutbox on the forum.

<object type="application/x-shockwave-flash" data="http://widgets.clearspring.com/o/482c264908cd8b29/488039a737387e85/482c264908cd8b29/3f8f4955" id="W482c264908cd8b29488039a737387e85" height="250" width="300"><param value="http://widgets.clearspring.com/o/482c264908cd8b29/488039a737387e85/482c264908cd8b29/3f8f4955" name="movie"/><param value="transparent" name="wmode"/><param value="all" name="allowNetworking"/><param value="always" name="allowScriptAccess"/></object>

Here is my forum
http://www.cricketanytime.net/index.php

It it possible to put this say on the left hand side of the shoutbox and move the shoutbox more the right ?
Title: Re: SMF Shoutbox
Post by: master2oo8 on July 18, 2008, 07:16:26 AM
Quote from: master2oo8 on June 24, 2008, 12:30:19 PM
How can i set premission for every Usergroup? I want that only defined usergroups can see the SB (exactly i want, that only user over 15 Posts see the Shoutbox)
Title: Re: SMF Shoutbox
Post by: memyselfandI on July 31, 2008, 01:24:36 AM
Maybe someone can help me with this. I looked through this thread and didn't find the solution. for some reason the SMF shoutbox options aren't showing in my Features and options in my admin panel. Isn't it supposed to show up there?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 31, 2008, 01:39:24 AM
@memyselfan

if you added the code to the default index.template.php file as you should heve it should show up.

on the other hand

if you are using a different theme then enter that same info into the file for it too and it should show up
Title: Re: SMF Shoutbox
Post by: memyselfandI on July 31, 2008, 11:43:22 AM
Quote from: DarkAngel612 on July 31, 2008, 01:39:24 AM
@memyselfan

if you added the code to the default index.template.php file as you should heve it should show up.

on the other hand

if you are using a different theme then enter that same info into the file for it too and it should show up

I didn't see any code to make it show up in my features and options, Did I miss something somewhere? could you possibly direct me where the code is? - thanks
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 31, 2008, 03:29:54 PM
not sure...i may have put the code in one of my replies here in this entire thread or you can go to the smf downloads/mods/the shoutbox you chose and look to the bottom of the page...one of the shoutboxes has the code written there and also in the read me of the download if you extract the zip onto yorur computer

i am at the wrong comp today to see what it is sorry
Title: Re: SMF Shoutbox
Post by: memyselfandI on July 31, 2008, 03:39:48 PM
okay I'll look in the read me file and see what i can find. thanks for your help
Title: Re: SMF Shoutbox
Post by: nneonneo on July 31, 2008, 05:30:00 PM
@The Great Heretic: Use this code:
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`))

(the __FILE__ stuff is from the PHP code, and isn't actually part of the query)
Title: Re: SMF Shoutbox
Post by: memyselfandI on July 31, 2008, 06:37:30 PM
Quote from: memyselfandI on July 31, 2008, 03:39:48 PM
okay I'll look in the read me file and see what i can find. thanks for your help

I read it and I didn't find anything about not showing up in Options and Features :(
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on July 31, 2008, 07:10:35 PM
go HERE (http://custom.simplemachines.org/mods/index.php?mod=294) and look toward the bottom of the page on how to get it to work in other themes.

also make sure that the files for sbox that are in the default theme folder are also in all the other themes you have installed and are using.
Title: Re: SMF Shoutbox
Post by: memyselfandI on July 31, 2008, 11:52:09 PM
Quote from: DarkAngel612 on July 31, 2008, 07:10:35 PM
go HERE (http://custom.simplemachines.org/mods/index.php?mod=294) and look toward the bottom of the page on how to get it to work in other themes.

also make sure that the files for sbox that are in the default theme folder are also in all the other themes you have installed and are using.

I'm using and I loaded it on the default theme - so would I still need to do this on the default theme
Title: Re: SMF Shoutbox
Post by: memyselfandI on August 01, 2008, 12:00:43 AM
Quote from: DarkAngel612 on July 31, 2008, 07:10:35 PM
go HERE (http://custom.simplemachines.org/mods/index.php?mod=294) and look toward the bottom of the page on how to get it to work in other themes.

also make sure that the files for sbox that are in the default theme folder are also in all the other themes you have installed and are using.

I don't know if you looked at that but it doesn't solve the problem that I'm having at all. the shoutbox shows fine in my forum the problem I'm having is that it doesn't have a spot in my features and options under admin panel where you can make adjustments/permissions and all that.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 01, 2008, 12:24:02 AM
well if I had not looked at it do you really think I would have posted the link to it.

To find the answer one must rule out the obvious things also...process of elimination.

Now if you still wish to continue then look in the theme folder>languages>any file in there (probable the index.something or other file) at the bottom before ?> see if there is an entry for the shoutbox.

you are looking thru these files and if you need to look at all the files it claims to have edited for sometimes the mods story to us...saying that they are functinal when in reality a little bit of code got left out.

I think languages may be it so take a look...open the sbox_latest.xml

read it very carefully for this is the file that tells you each and every file it was to edit and what got put in them.

compare what it tells you with the actual server file to ensure they got edited...takes a bit of time but will help narrow it down.
Title: Re: SMF Shoutbox
Post by: memyselfandI on August 01, 2008, 12:44:17 AM
okay thanks
Title: Re: SMF Shoutbox
Post by: trekkie2444 on August 02, 2008, 04:09:00 AM
Why does it say that the file has been corrupted or it doesn't support my version when I download?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 02, 2008, 06:53:35 AM
for some odd reason it has done that to a few of us...you may need to re-zip it or manually edit the files and create the sql for it too.

Or just try downloading it again til it works
Title: Re: SMF Shoutbox
Post by: trekkie2444 on August 02, 2008, 03:22:03 PM
I've tried uploading to my package manager about 5 times and still no success, each time I redownloaded the zip file.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 02, 2008, 03:52:55 PM
yup that happens unfortunately. It did it to me too even when I rezipped it...claimed it was not a zipped file.

Along with uploading thru package manager ---before you do that again---you need to go to the server and make sure all the package is out of the directory called 'Packages"

Open the zip and in a text edito open the sbox_latest.xml to see what files are edited...look in the default theme for them.

You are using version 1.1.5 of AMF, right?

If all else fails you can always install the tiny portal mod, it comes with the shoutbox already integrated and you can put it at the top of the forum or the side boxes also.
Title: Re: SMF Shoutbox
Post by: trekkie2444 on August 03, 2008, 06:28:39 AM
Errr I didn't quite understand your post. You mean I have to make sure I deleted the entire thing before reuploading, and then rezip it to see if that will make my forum believe that it's a zipped file when uploading to the forum?
Title: Re: SMF Shoutbox
Post by: memyselfandI on August 03, 2008, 03:17:37 PM
Anyone know how to fix this error?

Undefined index: sbox_TypeShout
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 03, 2008, 03:30:09 PM
Sorry for confusing you---a job I do really well with years experience...lol

Yes download a fresh copy>extract items>re-zip it

Go to the server>your forum>packages>make sure it is no longer in there.

reupload the package through admin panel and hope for the best.

If you are using the one for shoutbox version 1.1.6 then you will probably not be able to  install it in version 1.1.5 of SMF

There is a version 1.20 of the shoutbox but I have lost the link to it...I do not think it is on this site. I will look for it so email me and I can send you the link when I find it.

Other than that I would suggest you manually edit the respective files to manually install this item.

(((edited becasue I found I have the zip of version 1.20 and am attaching it...if not allowed to do this the admins may remove it sorry for the boo boo)))



Quote from: trekkie2444 on August 03, 2008, 06:28:39 AM
Errr I didn't quite understand your post. You mean I have to make sure I deleted the entire thing before reuploading, and then rezip it to see if that will make my forum believe that it's a zipped file when uploading to the forum?
Title: Re: SMF Shoutbox
Post by: memyselfandI on August 03, 2008, 08:15:11 PM
Quote from: memyselfandI on August 03, 2008, 03:17:37 PM
Anyone know how to fix this error?

Undefined index: sbox_TypeShout

Never mind I changed the language to just english and it works. The features and options now works too.  :D
Title: Re: SMF Shoutbox
Post by: trekkie2444 on August 04, 2008, 05:27:50 AM
Thank you, uploading now.
Title: Re: SMF Shoutbox
Post by: trekkie2444 on August 04, 2008, 05:30:31 AM
Still getting the same error message when I upload that package to my forum.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 04, 2008, 07:34:47 PM
you are using version 1.1.5 of smf software right?

after all this and if you tried version 1.20 that I attached to my post then you will probably need to manually edit the files to install it.

in admin section where you upload the package...have you tried getting it from there at the smf site? maybe getting it straight that way might work...otherwise you will need to manually edit the files.
Title: Re: SMF Shoutbox
Post by: trekkie2444 on August 04, 2008, 09:11:21 PM
I didn't understand a single word of that post. Upload it from the SMF site?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 04, 2008, 10:55:32 PM
same place you go in admin to upload the package from your computer is the option to directly get it from smf mods...assuming from the wording.

try that, yes
Title: Re: SMF Shoutbox
Post by: Kylezz on August 04, 2008, 11:51:30 PM
Wow I never stop downloading theese kinds of mods  :-*
Title: Re: SMF Shoutbox
Post by: trekkie2444 on August 05, 2008, 02:54:52 AM
When clicking the download button:

An Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 

Back
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 05, 2008, 04:08:48 AM
i would say then the admins need to take a peek at it...might be corrupted somehow.

which means you will need to manually install by editing the files
Title: Re: SMF Shoutbox
Post by: trekkie2444 on August 06, 2008, 01:32:59 AM
How do I contact them?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 06, 2008, 03:21:54 AM
Go  HERE (http://www.simplemachines.org/about/contact.php) for the contact form.

Have your info of software version, shoutbox giving you trouble with link, error message and they should be able to check it out...otherwise manual installation is in your future

it really is not as hard as it sounds, just takes concentration to not get lost in the code you copy paste to the proper file then upload to overwrite the ones on the server (working on duplicates that is to preserve the originals)
Title: Re: SMF Shoutbox
Post by: master2oo8 on August 09, 2008, 10:49:11 AM
How can i set premission for every Usergroup? I want that only defined usergroups can see the SB (exactly i want, that only user over 15 Posts see the Shoutbox)
Title: Re: SMF Shoutbox
Post by: trekkie2444 on August 10, 2008, 02:39:51 AM
Wasn't there some kind of modification that showed admin and mod membergroup colors in the shoutbox?
Title: Re: SMF Shoutbox
Post by: Daytona on August 11, 2008, 01:55:31 PM
I finally installed this mod, took 3 attempt but made.
Now I am asking if I can delete some files created by my many installation.
I guess that files like sbox_remove.php should be removed but what about the other remaining files?
Or any clue what must stay.
Title: Re: SMF Shoutbox
Post by: divecall on August 29, 2008, 10:20:22 AM
Hello!

I have 2 questions:

1. Please can somebody give me a DL-Link, where i can find the v1.16 ?
2. What i need do to, that the name of the box in the forum is on the left side, not in the middle ?

My forum is 1.1.5 and my shoutbox is 1.14

Thanks in advance
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 29, 2008, 02:12:11 PM
not sure about the 2nd question but you an find v 1.20  right here attatched (http://www.simplemachines.org/community/index.php?action=profile;u=74793)

you might look in the index.template.php to see if you can change it there...I know there is  that place in there to make the change in the size of it.
Title: Re: SMF Shoutbox
Post by: divecall on August 29, 2008, 04:45:08 PM
Thank you for the answer DarkAngel612, but the Link you give me, bring me to your profile  ???.

Anyway, until now i have no problems with my SMF 1.1.5 and the shoutbox 1.14, only two  ;)

Please, can somebody help me?
1. My Forum is in german uft-8. All looks very well, only in the shoutbox it is not possible to use typical german letters like "ü,ö,ä or ß". What i need to do, to change this ? (I WAS FIXING THIS)

2. When i change the Settings for the shoutbox, and press "save", all the changes are away, going back to the original issues, when i enter the shoutbox-ACP again. Why ?

thank you !

Divecall
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 29, 2008, 07:21:31 PM
sorry about that it has been a rough week...lol

first off I told you the wrong file for adjusting height/width and possible centering off of title

look at this file and belowis the code to look for that may help:

sbox.template.php file


FIND:

                          <iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>

and change the red part overwrite your file on the server with a copy of this file. see if that works by just decreasing the % a little at a time until you get it where you want it.

You may also be able to place an align=left but not sure.

and attaching it is so much easier than finding that link a bout 4-5 pages back in this thread...lol

here is 1.16 and 1.20 versions

also make sure this file: sbox.german.php

is in the lanquage folder, I think that is where it goes...lol sorry just got in from work and am tired of standing. you might look in the default theme fodler since it installs there and if you are using a different theme you will need to manually place the files in the other themes.
Title: Re: SMF Shoutbox
Post by: GreenStork on August 30, 2008, 10:40:38 AM
Quote from: nneonneo on July 31, 2008, 05:30:00 PM
@The Great Heretic: Use this code:

Thank you very much, nneonneo! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs.rimg.info%2F028a67c6c0f589bb8ceb8e6e308054f5.gif&hash=9b50164e75dfc771489cef769ca1ee69d934ee8a) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs.rimg.info%2F028a67c6c0f589bb8ceb8e6e308054f5.gif&hash=9b50164e75dfc771489cef769ca1ee69d934ee8a) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs.rimg.info%2F028a67c6c0f589bb8ceb8e6e308054f5.gif&hash=9b50164e75dfc771489cef769ca1ee69d934ee8a)
Title: Re: SMF Shoutbox
Post by: divecall on August 31, 2008, 03:31:02 AM
Hello!

At first, i want to say thank you for the developers from this shoutbox and for the User, who give a lot of help here.

But i have a little problem:

In the ACP from my Forum (v1.1.5 with Shoutbox 1.16 german) i can see the settings for the shoutbox. But if i change something e.g. refresh-time 20 reduce to 10 or something, and then i press "save", nothing change.

When i enter again the ACP => Shoutbox i always see the original settings (e.g. refresh-time again is 20, not 10)

Locks like, the changed settings are not saved.

My question is: how can i do this, that the settings are saved OR in what File i can change the settings manually ?
And where i can delete the history of the shoutbox ? The "clear history" Button is not function...
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on August 31, 2008, 04:25:30 PM
divecall:

Have you tried opening the zip file and checking in admin/packages/installed packages to see that they were all installed?

Make sure the files that get installed into the default theme are also manually installed into all themes you have installed.

IF all else fails you could go into the database and manually change those setting in there
Title: Re: SMF Shoutbox
Post by: dkitchen on September 07, 2008, 01:43:07 AM
Where can i find a link to the latest version so i can get it uploaded to my forum?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 07, 2008, 02:12:43 AM
go up a few posts...both the 1.16 and 1.20 versions are attached to my post
Title: Re: SMF Shoutbox
Post by: dkitchen on September 07, 2008, 03:16:53 AM
I just added nneonneo's Shoutbox  through my packages tab and installed it but how do i activate/use it?
I can find where it is
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 07, 2008, 05:53:32 PM
you need to go back to the downloads page, where you got it, and the instructions are at the bottom for you to follow.

Any mod is usually installed into the default themes only so any other theme needs to be manually edited with code and files if any.
Title: Re: SMF Shoutbox
Post by: Malteaser22 on September 08, 2008, 10:31:46 PM
Well since DarkAngel's 1.1.6 version of the shoutbox didn't work for me....

I spent all night messing with the code to make it work :) And I did. This SHOULD work and i patched a vulnerability in it wich you can inject html code and javascript code a way to hack your forum.

So it's all patched and working with 1.1.6 will try to make one for the 2.0 versions... im gonna go to sleep for now :P

BTW

add this code
// display shoutbox
  if (function_exists('sbox')) sbox();


To show were you want the shoutbox in your theme folder in boardindex.template.php

Any questions? Please PM me.
Title: Re: SMF Shoutbox
Post by: tom155 on September 09, 2008, 07:47:20 PM
I moved my forum to a new home here
http://tomsinternetyardsale.com/index.php?action=forum  got about 98% of it all working but for the life of me I cant get my shout box to work is there some other setting some were that I need to change and I think I put this in awhile back when my forum was version 1.1.1

If my memory serves me right I had to manually install and I changed some of the wording to fit my site
This is my old site here still online were it works great and I did run the repair_settings.php on the link above
http://tomswebplace.dyndns.org/index.php?action=forum
Title: Re: SMF Shoutbox
Post by: qubbah on September 17, 2008, 04:58:56 PM
I cant here the sound....

what must i set it up... the sound is enable...
Title: Re: SMF Shoutbox
Post by: robbie93 on September 19, 2008, 06:18:23 PM
how do you change the background colour of the sbox?
Title: Re: SMF Shoutbox
Post by: dkitchen on September 20, 2008, 11:36:07 AM
where can i find a shoutbox like the one located at
www.clan-sas.ca/forum
thats the shoutbox i want but cant seem to find it
Title: Re: SMF Shoutbox
Post by: robbie93 on September 20, 2008, 01:42:52 PM
Quote from: dkitchen on September 20, 2008, 11:36:07 AM
where can i find a shoutbox like the one located at
www.clan-sas.ca/forum
thats the shoutbox i want but cant seem to find it


this is the sbox you want  :D
Title: Re: SMF Shoutbox
Post by: dkitchen on September 22, 2008, 09:42:36 PM
SWEET Got it
now to get my smileys working
any ideas?
heres my board
www.groupsixclan.com/forum
Title: Re: SMF Shoutbox
Post by: robbie93 on September 22, 2008, 10:50:13 PM
go to smileys and messages icons in admin>check these boxes>Enable smiley set selection by members>and>Enable customized smileys>Enable customized message icons then click save ;D

you now get an option for add smiley on the top of the menu> click on upload smiley>browse select smiley from you're pc,  then in the code box add something like this [grin] then save changes,  and you're smiley will appear in sbox and posts :D
Title: Re: SMF Shoutbox
Post by: kizley on September 30, 2008, 09:15:20 AM
hi,

i want to remove this shoutbox for some reason for few days.

Accidently i clicked on 'delete' instead of 'uninstall'.
Now ,shoutbox is still present,cant uninstall it.

pls help.
Title: Re: SMF Shoutbox
Post by: kizley on September 30, 2008, 04:34:28 PM
any one pls..


how do i uninstall shoubox,i am trying and message is oming you cant uninstall .
Title: Re: SMF Shoutbox
Post by: robbie93 on September 30, 2008, 08:13:43 PM
how can you uninstall if you said you deleted it?

the only way to delete it now is to do it manually I think :'(

you have to send the sbox file you used to the package parser and click uninstall and it will show you what you have to do to remove it from you're site ( I hate that crap :'(  )

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on September 30, 2008, 08:54:19 PM
if it is only temprarily go to the boardindex.template.php file and remove the code for sbox. Keep a copy of the code for later, you can then when ready add the code in the very same spot so take not of where you remove it from.

This will not allow the sbox to show thus appearing as if it is removed.

If you are using themes other than the default one then you may need to remove the code from them also.
Title: Re: SMF Shoutbox
Post by: kizley on October 01, 2008, 11:32:18 AM
yeah i am using 1.1.6 default,

let me try the above methods,thanks guys.

i will tell you the result
Title: Re: SMF Shoutbox
Post by: kizley on October 01, 2008, 11:54:46 AM
this is saying we cant uninstall in smf 1.1.6

:sad:

i am not the main admin,any help pls..
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 01, 2008, 11:40:40 PM
you do not have access to the server files?

if you remove the code you remove the shoutbox from being seen but it is not uninstalled....so later you can put the code back to let it be seen when you wish it to be.

another way is to go into the packages folder on your server and remove it from there and the index file that is in there

but you do need access to the files -- if you cant then contact your main admin to do it.
Title: Re: SMF Shoutbox
Post by: master2oo8 on October 05, 2008, 01:35:48 PM
For everybody who want, that the shoutbox is only to member over xx posts.

open
Quote
BoardIndex.template.php
search
Quote
   global $context, $settings, $options, $txt, $scripturl, $modSettings;
replace with
Quote
   global $context, $settings, $options, $txt, $scripturl, $modSettings, $user_settings;
search
Quote
if (function_exists('sbox')) sbox();
replace with
Quote
  if ($user_settings['posts'] > NUMBEROFPOSTS)
   sbox();

Thanks again to TE (http://www.simplemachines.org/community/index.php?action=profile;u=73029)
Title: Re: SMF Shoutbox
Post by: rarach on October 09, 2008, 02:56:18 PM
Just today we have experienced some issues on our forum. While editing some of the codes for our default theme, the theme .php files got messed up and we ended up having to re-install the theme from scratch. Now we need to re-customize everything, including get the shoutbox back up and working.

The shoutbox is installed on our forum, and works on one of the themes that no one uses, but it will not show up on the default layout. I'm not so well versed in coding.. so I do not know what would need to be added and where if that is the case to solve this issue.

All and any advice/help would be greatly appreciated!
Thanks! :)
Title: Re: SMF Shoutbox
Post by: mickeyb107 on October 10, 2008, 11:08:54 PM
can anyone tell me how to change color where member would type message... <Type your message and press enter>...

in one theme its white in another theme its black and hard to see.. how could i change this to stay the color white
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 11, 2008, 01:45:49 AM
it might be governed by the theme's style.css file

change the hex color there and see if that helps.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 11, 2008, 01:49:07 AM
I guess you found out the hard way to work off a duplicate file...I did that myself a few years ago.

the best way is to open the zip file on your computer and find the file that tells you what it modifies.

I know there is the sbox code to insert into boardtemplate.index.php file

of course you could go into admin>packages and uninstall the shoutbox then reinstall it.


Quote from: rarach on October 09, 2008, 02:56:18 PM
Just today we have experienced some issues on our forum. While editing some of the codes for our default theme, the theme .php files got messed up and we ended up having to re-install the theme from scratch. Now we need to re-customize everything, including get the shoutbox back up and working.

The shoutbox is installed on our forum, and works on one of the themes that no one uses, but it will not show up on the default layout. I'm not so well versed in coding.. so I do not know what would need to be added and where if that is the case to solve this issue.

All and any advice/help would be greatly appreciated!
Thanks! :)
Title: Re: SMF Shoutbox
Post by: rarach on October 11, 2008, 04:33:26 PM
I sure did learn the hard way! :/

I'll have to look around more to see what file in the mod says what it modifies.
I tried to uninstall and reinstall, but that did not do a thing. :(
The shoutbox still appears on the dark day layout, but it does not show up on our default layout (helios multicolor)

Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 11, 2008, 07:16:52 PM
ok "default" to me meant the one smf comes with...the blue one. Now that I know you meant another theme then what you need to do is open the boardtemplate.index.php file in the default theme folder NOT helios.

do a search in the text editor for sbox and you should find the code to make it appear.

copy-paste it into the helios file of the same name and that should make it appear.

or go to the download section hee for the box you downloaded, at the bottom of the page should be the code to place in that file.

the package only gets installed into the basic original default theme you have to manually edit the files of the other themes.


Title: Re: SMF Shoutbox
Post by: rarach on October 11, 2008, 08:57:28 PM
alright. i'll work on that. thanks! :D

[edit]

worked like a charm. thanks! ;)
Title: Re: SMF Shoutbox
Post by: Eva on October 11, 2008, 10:04:19 PM
Quote from: agridoc on November 03, 2006, 01:13:44 AM
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.

I know this is a very old post I'm reviving but can anyone please tell me whether we have found a solution for this?  :-\


If you remove the above mentioned code along with this from the sboxDB.php file
// enquote html and script code to avoid html/javascript injection$content = htmlentities($content, ENT_QUOTES);
the greek characters appear correctly.

But isn't this "fix" jeopardize the security of the Shoutbox and make it vulnerable to possible attacks?  ???
Title: Re: SMF Shoutbox
Post by: Goodman854 on October 11, 2008, 11:42:43 PM
Could you fix the screen shot?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 12, 2008, 01:19:41 AM
yes that is the security feature and taking it out will allow people with nothing but time on their hands to attack
Title: Re: SMF Shoutbox
Post by: Eva on October 12, 2008, 10:47:31 AM
Quote from: DarkAngel612 on October 12, 2008, 01:19:41 AM
yes that is the security feature and taking it out will allow people with nothing but time on their hands to attack

I understand that, but does anyone understand why this code messes up the display of non-english characters?
Is there a way to fix this?

I'm attaching a screenshot
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 12, 2008, 02:58:51 PM
only thing i can think of is to make sure you have the languae file you need installed in the theme folders
Title: Re: SMF Shoutbox
Post by: Chopper on October 14, 2008, 02:15:22 PM
Is there a way to alter the width of the shoutbox? It seems to take up the full width of the forum
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 14, 2008, 10:44:51 PM
you might try opening the sbox template file and see if it is in there. I know you can but I can't remember where I changed it prior to installing Tiny Portal
Title: Re: SMF Shoutbox
Post by: SpelingMistakes on October 17, 2008, 06:05:21 AM
Quote from: master2oo8 on October 05, 2008, 01:35:48 PM
For everybody who want, that the shoutbox is only to member over xx posts.

open
Quote
BoardIndex.template.php
search
Quote
   global $context, $settings, $options, $txt, $scripturl, $modSettings;
replace with
Quote
   global $context, $settings, $options, $txt, $scripturl, $modSettings, $user_settings;
search
Quote
if (function_exists('sbox')) sbox();
replace with
Quote
  if ($user_settings['posts'] > NUMBEROFPOSTS)
   sbox();

Interesting – I am not a coder, but if I read this careful, I am thinking that this can be also coded for forbid to some special members and groups of users? Am I right?

I need something like that to forbid usage of shoot box for some users – I think I am not only one who needs this

Any suggestion how to change cod to fulfill requests?

Spel
Title: Re: SMF Shoutbox
Post by: Chopper on October 17, 2008, 11:21:23 AM
Quote from: DarkAngel612 on October 14, 2008, 10:44:51 PM
you might try opening the sbox template file and see if it is in there. I know you can but I can't remember where I changed it prior to installing Tiny Portal

I have no idea where to check in that template?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 17, 2008, 08:00:59 PM
Quote from: Chopper on October 14, 2008, 02:15:22 PM
Is there a way to alter the width of the shoutbox? It seems to take up the full width of the forum

in the sbox.template.php file:

FIND and adjust the width and height where indicated in red.:

<iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>

that is approximately line 93
Title: Re: SMF Shoutbox
Post by: Chopper on October 18, 2008, 09:55:49 AM
Quote from: DarkAngel612 on October 17, 2008, 08:00:59 PM
Quote from: Chopper on October 14, 2008, 02:15:22 PM
Is there a way to alter the width of the shoutbox? It seems to take up the full width of the forum

in the sbox.template.php file:

FIND and adjust the width and height where indicated in red.:

<iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>

that is approximately line 93

Thank you this is exactly what i was looking for.

One more question if i may, now that the shoutbox width is reduced and leaving a gap to the left hand side. Is it possible to create a list of the members who are currently using the shoutbox?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 18, 2008, 03:46:28 PM
so you want it to look like a chat box with the users to the side area...lol

that I am afraid someone else will need to address since I am still a very new novice at php...sorry
Title: Re: SMF Shoutbox
Post by: SuperZambezi on October 18, 2008, 09:13:40 PM
Quote from: Psycojimi on April 14, 2008, 06:07:59 PM
I encountered a problem installing the shout box to my forum now all I see when trying to get on my forum is this error message:

Parse error: syntax error, unexpected $end in /home/wernkin8/public_html/forum/Sources/Subs.php on line 3601


I need help,I have members trying to get on the board.

This is the bottom half of my Sub.php

The error is in here..somewhere...any help would be appriciated.

}
function smfshout(){ global $sourcedir; include_once("$sourcedir/shout.php"); shout_display(true);}

// Debugging.
function db_debug_junk()
{
global $context, $scripturl, $boarddir, $modSettings;
global $db_cache, $db_count, $db_show_debug, $cache_count, $cache_hits;

// Add to Settings.php if you want to show the debugging information.
if (!isset($db_show_debug) || $db_show_debug !== true || (isset($_GET['action']) && $_GET['action'] == 'viewquery') || WIRELESS)
return;

if (empty($_SESSION['view_queries']))
$_SESSION['view_queries'] = 0;
if (empty($context['debug']['language_files']))
$context['debug']['language_files'] = array();

$files = get_included_files();
$total_size = 0;
for ($i = 0, $n = count($files); $i < $n; $i++)
{
$total_size += filesize($files[$i]);
$files[$i] = strtr($files[$i], array($boarddir => '.'));
}

$warnings = 0;
foreach ($db_cache as $q => $qq)
{
if (!empty($qq['w']))
$warnings += count($qq['w']);
}

$_SESSION['debug'] = &$db_cache;

// Gotta have valid HTML ;).
$temp = ob_get_contents();
if (function_exists('ob_clean'))
ob_clean();
else
{
ob_end_clean();
ob_start('ob_sessrewrite');
}

echo preg_replace('~</body>\s*</html>~', '', $temp), '
<div class="smalltext" style="text-align: left; margin: 1ex;">
Templates: ', count($context['debug']['templates']), ': <i>', implode('</i>, <i>', $context['debug']['templates']), '</i>.<br />
Sub templates: ', count($context['debug']['sub_templates']), ': <i>', implode('</i>, <i>', $context['debug']['sub_templates']), '</i>.<br />
Language files: ', count($context['debug']['language_files']), ': <i>', implode('</i>, <i>', $context['debug']['language_files']), '</i>.<br />
Files included: ', count($files), ' - ', round($total_size / 1024), 'KB. (<a href="javascript:void(0);" onclick="document.getElementById(\'debug_include_info\').style.display = \'inline\'; this.style.display = \'none\'; return false;">show</a><span id="debug_include_info" style="display: none;"><i>', implode('</i>, <i>', $files), '</i></span>)<br />';

if (!empty($modSettings['cache_enable']) && !empty($cache_hits))
{
$entries = array();
$total_t = 0;
$total_s = 0;
foreach ($cache_hits as $h)
{
$entries[] = $h['d'] . ' ' . $h['k'] . ': ' . comma_format($h['t'], 5) . ' - ' . $h['s'] . ' bytes';
$total_t += $h['t'];
$total_s += $h['s'];
}

echo '
Cache hits: ', $cache_count, ': ', comma_format($total_t, 5), 's for ', comma_format($total_s), ' bytes (<a href="javascript:void(0);" onclick="document.getElementById(\'debug_cache_info\').style.display = \'inline\'; this.style.display = \'none\'; return false;">show</a><span id="debug_cache_info" style="display: none;"><i>', implode('</i>, <i>', $entries), '</i></span>)<br />';
}

echo '
<a href="', $scripturl, '?action=viewquery" target="_blank">Queries used: ', $db_count, $warnings == 0 ? '' : ', ' . $warnings . ' warning(s)', '</a>.<br />
<br />';

if ($_SESSION['view_queries'] == 1)
foreach ($db_cache as $q => $qq)
{
$is_select = substr(trim($qq['q']), 0, 6) == 'SELECT' || preg_match('~^INSERT(?: IGNORE)? INTO \w+(?:\s+\([^)]+\))?\s+SELECT .+$~s', trim($qq['q'])) != 0;

echo '
<b>', $is_select ? '<a href="' . $scripturl . '?action=viewquery;qq=' . ($q + 1) . '#qq' . $q . '" target="_blank" style="text-decoration: none;">' : '', nl2br(str_replace("\t", '&nbsp;&nbsp;&nbsp;', htmlspecialchars(ltrim($qq['q'], "\n\r")))) . ($is_select ? '</a></b>' : '</b>') . '<br />
&nbsp;&nbsp;&nbsp;';
if (!empty($qq['f']) && !empty($qq['l']))
echo 'in <i>' . $qq['f'] . '</i> line <i>' . $qq['l'] . '</i>, ';
echo 'which took ' . round($qq['t'], 8) . ' seconds.<br />
<br />';
}

echo '
<a href="' . $scripturl . '?action=viewquery;sa=hide">[' . (empty($_SESSION['view_queries']) ? 'show' : 'hide') . ' queries]</a>
</div></body></html>';
}

// Get an attachment's encrypted filename.  If $new is true, won't check for file existence.
function getAttachmentFilename($filename, $attachment_id, $new = false)
{
global $modSettings;

// Remove special accented characters - ie. sí.
$clean_name = strtr($filename, 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$clean_name = strtr($clean_name, array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', 'œ' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u'));

// Sorry, no spaces, dots, or anything else but letters allowed.
$clean_name = preg_replace(array('/\s/', '/[^\w_\.\-]/'), array('_', ''), $clean_name);

$enc_name = $attachment_id . '_' . strtr($clean_name, '.', '_') . md5($clean_name);
$clean_name = preg_replace('~\.[\.]+~', '.', $clean_name);

if ($attachment_id == false || ($new && empty($modSettings['attachmentEncryptFilenames'])))
return $clean_name;
elseif ($new)
return $enc_name;

if (file_exists($modSettings['attachmentUploadDir'] . '/' . $enc_name))
$filename = $modSettings['attachmentUploadDir'] . '/' . $enc_name;
else
$filename = $modSettings['attachmentUploadDir'] . '/' . $clean_name;

return $filename;
}

// Lookup an IP; try shell_exec first because we can do a timeout on it.
function host_from_ip($ip)
{
global $modSettings;

if (($host = cache_get_data('hostlookup-' . $ip, 600)) !== null)
return $host;
$t = microtime();

// If we can't access nslookup/host, PHP 4.1.x might just crash.
if (@version_compare(PHP_VERSION, '4.2.0') == -1)
$host = false;

// Try the Linux host command, perhaps?
if (!isset($host) && (strpos(strtolower(PHP_OS), 'win') === false || strpos(strtolower(PHP_OS), 'darwin') !== false) && rand(0, 1) == 1)
{
if (!isset($modSettings['host_to_dis']))
$test = @shell_exec('host -W 1 ' . @escapeshellarg($ip));
else
$test = @shell_exec('host ' . @escapeshellarg($ip));

// Did host say it didn't find anything?
if (strpos($test, 'not found') !== false)
$host = '';
// Invalid server option?
elseif ((strpos($test, 'invalid option') || strpos($test, 'Invalid query name 1')) && !isset($modSettings['host_to_dis']))
updateSettings(array('host_to_dis' => 1));
// Maybe it found something, after all?
elseif (preg_match('~\s([^\s]+?)\.\s~', $test, $match) == 1)
$host = $match[1];
}

// This is nslookup; usually only Windows, but possibly some Unix?
if (!isset($host) && strpos(strtolower(PHP_OS), 'win') !== false && strpos(strtolower(PHP_OS), 'darwin') === false && rand(0, 1) == 1)
{
$test = @shell_exec('nslookup -timeout=1 ' . @escapeshellarg($ip));
if (strpos($test, 'Non-existent domain') !== false)
$host = '';
elseif (preg_match('~Name:\s+([^\s]+)~', $test, $match) == 1)
$host = $match[1];
}

// This is the last try :/.
if (!isset($host) || $host === false)
$host = @gethostbyaddr($ip);

// It took a long time, so let's cache it!
if (array_sum(explode(' ', microtime())) - array_sum(explode(' ', $t)) > 0.5)
cache_put_data('hostlookup-' . $ip, $host, 600);

return $host;
}

// Chops a string into words and prepares them to be inserted into (or searched from) the database.
function text2words($text, $max_chars = 20, $encrypt = false)
{
global $func, $context;

// Step 1: Remove entities/things we don't consider words:
$words = preg_replace('~([\x0B\0' . ($context['utf8'] ? ($context['server']['complex_preg_chars'] ? '\x{A0}' : pack('C*', 0xC2, 0xA0)) : '\xA0') . '\t\r\s\n(){}\\[\\]<>!@$%^*.,:+=`\~\?/\\\\]|&(amp|lt|gt|quot);)+~' . ($context['utf8'] ? 'u' : ''), ' ', strtr($text, array('<br />' => ' ')));

// Step 2: Entities we left to letters, where applicable, lowercase.
$words = un_htmlspecialchars($func['strtolower']($words));

// Step 3: Ready to split apart and index!
$words = explode(' ', $words);

if ($encrypt)
{
$possible_chars = array_flip(array_merge(range(46, 57), range(65, 90), range(97, 122)));
$returned_ints = array();
foreach ($words as $word)
{
if (($word = trim($word, '-_\'')) !== '')
{
$encrypted = substr(crypt($word, 'uk'), 2, $max_chars);
$total = 0;
for ($i = 0; $i < $max_chars; $i++)
$total += $possible_chars[ord($encrypted{$i})] * pow(63, $i);
$returned_ints[] = $max_chars == 4 ? min($total, 16777215) : $total;
}
}
return array_unique($returned_ints);
}
else
{
// Trim characters before and after and add slashes for database insertion.
$returned_words = array();
foreach ($words as $word)
if (($word = trim($word, '-_\'')) !== '')
$returned_words[] = addslashes($max_chars === null ? $word : substr($word, 0, $max_chars));

// Filter out all words that occur more than once.
return array_unique($returned_words);
}
}

// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}

?>


I'm having this same problem. does anyone have an answer? Thanks. :)
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on October 18, 2008, 10:19:23 PM
are you sure that info is from the Subs.php
file?

// Change the seed.
updateSettings(array('rand_seed' => mt_rand()));
}

?>


that is the ending of mine and I don't see anything like what you have near it in mine.

also the  first line in your code asks for :
include_once("$sourcedir/shout.php")
and yet the file I found in the fodler with the shoutbox files is called sbox.php

make sure all your files are where they should be located:

Sources: sbox.php and sboxDB.php
theme directory/languages (the default core theme) You will need to put these into any other themes you have installed: sbox.englilsh.php and sbox.german.php
theme directory: sbox.template.php
theme directory/images: sbox_refresh.gif
board directory: chat-inbound_GSM.wav
Title: Re: SMF Shoutbox
Post by: Chopper on October 18, 2008, 10:53:51 PM
Quote from: Chopper on October 18, 2008, 09:55:49 AM
Quote from: DarkAngel612 on October 17, 2008, 08:00:59 PM
Quote from: Chopper on October 14, 2008, 02:15:22 PM
Is there a way to alter the width of the shoutbox? It seems to take up the full width of the forum

in the sbox.template.php file:

FIND and adjust the width and height where indicated in red.:

<iframe name="sboxframe" src="' . $sourceurl . '/sboxDB.php?" width="100%" height="'.$modSettings['sbox_Height'].'" frameborder="0" style="border: 2px ridge silver;"></iframe>

that is approximately line 93

Thank you this is exactly what i was looking for.

One more question if i may, now that the shoutbox width is reduced and leaving a gap to the left hand side. Is it possible to create a list of the members who are currently using the shoutbox?

Thanks for your help mate.

Is this feature possible?
Title: Re: SMF Shoutbox
Post by: trekkie2444 on November 21, 2008, 09:17:16 AM
How do you change the background of the shoutbox?
Title: Re: SMF Shoutbox
Post by: qubbah on November 22, 2008, 04:28:34 AM
Quote from: trekkie2444 on November 21, 2008, 09:17:16 AM
How do you change the background of the shoutbox?

This is what im looking for a long time.. hope anybody here can tell about that.
Title: Re: SMF Shoutbox
Post by: SpelingMistakes on November 22, 2008, 12:32:17 PM
Is this possible?

http://www.simplemachines.org/community/index.php?topic=76344.msg1755709#msg1755709

Antibody - Thanks in advance

Spel
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 22, 2008, 04:33:26 PM
changing background of shoutbox:

Please work off a duplicate file and  have the original handy for just in case this fails....


I am not sure for it has been a long time since I used the standalone shoutbox, I have the one with the Tiny Portal now.

In the sbox.template.php file (might be in the default smf theme folder) look for this on approximately line 70 and add what is in red to it, you substitute the hex code for the color you want it to be.

Upload it to overwrite the one on the server then check to see if it worked, if not then put back the original, when I changed one of mine I used the templates style.css file  :


<div id="upshrinkHeaderSB"', empty($options['collapse_header_sb']) ? '' : ' style="display: none;"', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="windowbg" align="right" style="width:13%" color="#ffffff">
<td class="windowbg" style="width:87%">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
Title: Re: SMF Shoutbox
Post by: SpelingMistakes on November 22, 2008, 07:00:11 PM
Will this work for forbid some of people using SB who have some kind of position groups?

Quoteif ($user_settings['position'] != "forbiden1" || $user_settings['position'] != "forbiden2")
   sbox();


Spel
Title: Re: SMF Shoutbox
Post by: SpelingMistakes on November 22, 2008, 07:14:15 PM
I have lots of errors :( and that dont work - Any help
Title: Re: SMF Shoutbox
Post by: trekkie2444 on November 23, 2008, 01:52:05 AM
DarkAngel: That had no effect.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 23, 2008, 03:49:45 PM
Quote from: trekkie2444 on November 23, 2008, 01:52:05 AM
DarkAngel: That had no effect.

You may need to play around with the style.css file from the theme you are using. I had to change mine from that file too cause it was a red background and hurt the eyes. I can't remember which one it was in there that I changed but think it was one of the windowbg entries.
Title: Re: SMF Shoutbox
Post by: trekkie2444 on November 23, 2008, 07:57:34 PM
Are you saying change the sbox_template file or the style.css?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 23, 2008, 08:39:57 PM
Quote from: trekkie2444 on November 23, 2008, 07:57:34 PM
Are you saying change the sbox_template file or the style.css?


go to the theme you are using and change the color hex number in its style.css
Title: Re: SMF Shoutbox
Post by: trekkie2444 on November 23, 2008, 08:56:50 PM
I don't have any of that text in the style.css of my theme.
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on November 23, 2008, 09:47:00 PM
no you won't have any of that code in there...that code came from the shoutbox.

what you do have in the style file is the hex codes for the particular section and you need to find which one of those codes govern it...try looking for windowbg

of course not knowing what file or a link would be helpful to get better info too.
Title: Re: SMF Shoutbox
Post by: qubbah on November 26, 2008, 01:30:36 PM
when i set refresh second to 40 second, with firefox it going exactly time what i want. but with ie its going refresh i think every 5 or 6 second.

maybe the auto refresh not working properly with ie.
Title: Re: SMF Shoutbox
Post by: robbie93 on November 26, 2008, 02:38:51 PM
the sbox gives errors in ie any idea why this is?  and how to fix?
Title: Re: SMF Shoutbox
Post by: trekkie2444 on December 01, 2008, 02:49:41 AM
The background image is the background for my shoutbox! How do I disconnect them from each other on this theme?
Title: Re: SMF Shoutbox
Post by: DarkAngel612 on December 01, 2008, 05:12:51 PM
Quote from: trekkie2444 on December 01, 2008, 02:49:41 AM
The background image is the background for my shoutbox! How do I disconnect them from each other on this theme?

I probably can't help but just in case...what theme are you using?

A link to see the site would be helpful too for if there is someone else with the same theme that may have had the same problem...might see and help too
Title: Re: SMF Shoutbox
Post by: qubbah on December 10, 2008, 07:13:08 PM
why chat-inbound_GSM.wav cannot running?
Title: Re: SMF Shoutbox
Post by: qubbah on January 31, 2009, 01:49:18 PM
how can this shoutbo read arabic?
Title: Re: SMF Shoutbox
Post by: Maggie302 on February 07, 2009, 09:36:54 PM
Hello, I awoke to this issue this morning in my shoutbox.  I have not installed or uninstalled anything.  Any suggestions??  Thanks for any help in advance.

Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/stlphi1/public_html/stlscooter/SSI.php on line 1043
Title: Re: SMF Shoutbox
Post by: N3RVE on February 08, 2009, 02:59:33 AM
Attach that file and I'll fix it :)

-[n3rve]
Title: Re: SMF Shoutbox
Post by: Maggie302 on February 08, 2009, 06:03:55 AM
Thanks N3rve!!

PS, is it something I did wrong?
Title: Re: SMF Shoutbox
Post by: N3RVE on February 08, 2009, 08:03:47 AM
Yes, it's probably due to incorrect code insertion, I'm unable to look over your file now as I'm mobile, can you open the file and post a few lines above and below the line in the error. That way I can just tell you what changes to make or even post the fixed code.

-[n3rve]
Title: Re: SMF Shoutbox
Post by: Maggie302 on February 08, 2009, 08:41:59 AM
N3rve, thanks I actually figured it out opening it up as you asked.  Thanks a MILLION!
Title: Re: SMF Shoutbox
Post by: N3RVE on February 08, 2009, 09:12:29 AM
Quote from: Maggie302 on February 08, 2009, 08:41:59 AM
N3rve, thanks I actually figured it out opening it up as you asked.  Thanks a MILLION!

Good to see you got it sorted by yourself ;)

-[n3rve]
Title: Re: SMF Shoutbox
Post by: qubbah on February 17, 2009, 12:17:03 PM
there is a problem with shoutbox width using IE8
Title: Re: SMF Shoutbox
Post by: robbie93 on February 17, 2009, 04:19:11 PM
shoutbox gives errors on ie7 to has anybody got a fix for this?
Title: Re: SMF Shoutbox
Post by: Vampy on February 18, 2009, 11:47:52 AM
I have this mod installed on my site and absolutely love it.

I recently redid my test site with a fresh install of 1.1.8 and can no longer install this mod as when I try it says "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Is there any way to manually edit the mod to make it install in 1.1.8? OR would someone please please please update the mod for 1.1.8?
Title: Re: SMF Shoutbox
Post by: M4ST3R™ on March 01, 2009, 08:49:36 PM
i instaled in SMF 1.1.8  and give me that error... how can i chaNGE it
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi162.photobucket.com%2Falbums%2Ft247%2Fking_zona%2Fshout-1.jpg&hash=55678ead225ea338713d3676e105b439a08d4d60)

http://g4m3zz0n3.pt.vu/
Title: Re: SMF Shoutbox
Post by: ne.miguelito on March 02, 2009, 04:18:30 PM
Hello,

I have installed the version 1.04 and I want to put more people moderating the shout like Global Moderators and Moderators. Can someone help me, the best is that If I can put a array with IP...

Any ideas how to do this?

Here is the code:

      if ($context['user']['is_admin'])
         echo '<a title="'.$txt['sbox_KillShout'].'" class="Kill" onclick="return killYesNo();" href="sboxDB.php?action=kill&kill='.$row['id'].'"><span style="color: red;"><b>[X]</b></span></a>&nbsp;';



I have already request help support here:

http://www.simplemachines.org/community/index.php?topic=296687.msg1958510#msg1958510


Best regards.
Title: Re: SMF Shoutbox
Post by: opensorce on March 20, 2009, 11:19:09 AM
http://www.juniper.net/security/auto/vulnerabilities/vuln27727.html shows a security problem with SMF Shoutbox. Is this really an issue?

Title: Re: SMF Shoutbox
Post by: opensorce on April 04, 2009, 04:47:11 PM
The above post? Yes, no....maybe? Anyone?
Title: Re: SMF Shoutbox
Post by: Chopper on April 20, 2009, 03:38:30 PM
Does this work for 1.1.8? If not, is there a working shoutbox except nanneos?
Title: Re: SMF Shoutbox
Post by: robbie93 on April 20, 2009, 07:24:31 PM
Quote from: Chopper on April 20, 2009, 03:38:30 PM
Does this work for 1.1.8? If not, is there a working shoutbox except nanneos?

yep this sbox works for 1.1.8  :D

http://robbie93andhotchildxox.com  go see :D
Title: Re: SMF Shoutbox
Post by: Chopper on April 21, 2009, 02:19:01 PM
Quote from: robbie93 on April 20, 2009, 07:24:31 PM
Quote from: Chopper on April 20, 2009, 03:38:30 PM
Does this work for 1.1.8? If not, is there a working shoutbox except nanneos?

yep this sbox works for 1.1.8  :D

http://robbie93andhotchildxox.com  go see :D

Cool, where can i get that?
Title: Re: SMF Shoutbox
Post by: robbie93 on April 21, 2009, 02:43:08 PM
Quote from: Chopper on April 21, 2009, 02:19:01 PM
Quote from: robbie93 on April 20, 2009, 07:24:31 PM
Quote from: Chopper on April 20, 2009, 03:38:30 PM
Does this work for 1.1.8? If not, is there a working shoutbox except nanneos?

yep this sbox works for 1.1.8  :D

http://robbie93andhotchildxox.com  go see :D

Cool, where can i get that?

this is the one you want Chopper ;D
Title: Re: SMF Shoutbox
Post by: Chopper on April 21, 2009, 02:49:00 PM
Excellent :D This is just what i have been looking for. Thanks for your help robbie :D
Title: Re: SMF Shoutbox
Post by: robbie93 on April 21, 2009, 02:51:30 PM
No problem   :D
Title: Re: SMF Shoutbox
Post by: Vampy on May 12, 2009, 06:30:28 AM
Any chance this mod will be upgraded or re-released for 2.0 RC1?
Title: Re: SMF Shoutbox
Post by: CedarMill on July 05, 2009, 03:34:05 AM
Actually.
Please, write, probably to update - SMF Shoutbox for SMF 2.0 RC1-1
?
Title: Re: SMF Shoutbox
Post by: SpelingMistakes on November 02, 2009, 01:15:00 PM
I have use this mode till 2 moths before – Everything works great till I transfer my whole httdocs folder from one to another drive – After that I have next problem – I have turned off chat but I will gladly turn it on – How to solve this problem – its says it can find www.mysite.com/sources folder

What I need to change to make this work

I am also owned of my server and I can check whole thing.

I suppose that change is minor - - but I want to make it working

I am delighted with this chat for years - now i am on 1.1.10

Spel
Title: Re: SMF Shoutbox
Post by: BetaBlocker on March 15, 2010, 01:00:54 PM
I have the chat installed twice!


I have the Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 97600 bytes) in /data/1xxxxxxxx/Sources/Subs.php  on line 3337


PLEASE HELP ME! MY SITE IS DEAD!
Title: Re: SMF Shoutbox
Post by: Plutuss on August 03, 2011, 02:17:08 PM

When the person doesn't use a smiley, the text and username are aligned perfectly.

But if a graphical smiley is used, it makes the text about a half-line down from the username, which looks pretty bad.

Is there a fix for this?
Title: Re: SMF Shoutbox
Post by: Plutuss on August 03, 2011, 02:31:37 PM
Quote from: Plutuss on August 03, 2011, 02:17:08 PM

When the person doesn't use a smiley, the text and username are aligned perfectly.

But if a graphical smiley is used, it makes the text about a half-line down from the username, which looks pretty bad.

Is there a fix for this?

This wonderful mod, "Align Smileys", does the trick!

http://custom.simplemachines.org/mods/index.php?mod=2690