News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Shoutbox

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

Previous topic - Next topic

invisiblex

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

TLM

Wow that sounds just like what I told someone to do not to long ago...

nermeen_elhelw

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

LazyBum

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 [nofollow]) this doesn't happen. Any idea how to fix this?

Kettu

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.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

uptown

How to expand the shoutbox? after I edit some code, it become collapse by default.

Kettu

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?
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

tL0z

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

nermeen_elhelw

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

Ehemm

Cool Mod.
Succesfull but don't know how to change the font size ?
Pls help ...  ;)

Kettu

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
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

MasterChief

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

MasterChief

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

mbirth

#253
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. 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:

(And before anyone asks: The smiley-set is Logan which I made up of 'borrowed' smileys from here.)


NEVER contact me via ICQ/MSN/whatever for support inquiries unless I told you to do so! Use the forum threads instead.
Only send PMs if you need to tell me sensitive data.

tL0z

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


mark25

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!  ???

mbirth

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


NEVER contact me via ICQ/MSN/whatever for support inquiries unless I told you to do so! Use the forum threads instead.
Only send PMs if you need to tell me sensitive data.

mbirth

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


NEVER contact me via ICQ/MSN/whatever for support inquiries unless I told you to do so! Use the forum threads instead.
Only send PMs if you need to tell me sensitive data.

Kettu

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.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

mark25

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!  ;)

Advertisement: