Ultimate Shoutbox

Started by Grudge, March 28, 2004, 09:11:20 AM

Previous topic - Next topic

Grudge

Link to Mod

This is your basic shoutbox.  Your registers users type in a message and click shout.  Guests on your
site (if you give them access to the block) will type in their name, email address and message before
clicking shout.

The format of each 'shout' is Date, Name, Message.  If a registered user posts a shout, their name
becomes a link to their profile.  If a guest posts a shout, their name is a mailto: to the email
address they entered.

For administrators, there is also a delete button next to each individual shout.

The ultimate shoutbox for YaBB SE was originally written by Greg Haase.

Making the shoutbox appear:
This modification will NOT modify any of your themes for you during install - this is to allow you to put the shoutbox where you want it to appear - not where I say! To actually make the shoutbox appear you need to modify the themes to display it. This is a VERY simple process I will take you through below.

Firstly, confirm the installation was successful. You can do this by going to "Feature Settings and Options", if you see some shoutbox options at the bottom of this page the install worked - well done!

Now, you need to edit a template to display the shoutbox. Most people will want the shoutbox to appear on every page - in this case you want to edit the file called index.template.php found in each theme directory - the default theme is Themes/default/index.template.php

Work out where you want the shoutbox to appear, and add the following code to the template:

if (function_exists('smfshout'))
  smfshout();


You may find that you want to put the code in the middle of some existing HTML, and if you are not familiar to PHP may find adding this is causing your forum to error. If this is the case replace the code above with:

';
if (function_exists('smfshout'))
  smfshout();
echo '


and this should fix the error!

Editing the shoutbox template itself:
If you want to edit how the shoutbox itself looks (for example making the message box bigger, putting it in two columns), you need to look at the shoutbox template. The shoutbox template is in the file called shout.template.php, and is located in your Themes/default directory. There are three functions in this file, one does the archive, one does the main shoutbox, and one does the form people shout into. Just edit the HTML in this file to change the appearance of the shoutbox on your site.

Please note, if you do change this file I recommend you keep a copy of the changes you made - as if you upgrade your forum in the future and reinstall the mod - your changes will of course be overwritten!

Putting the shoutbox elsewhere on your site:
If you want ideas for where to put the shoutbox on your page, please read this thread for examples. Note also you can use SSI to add the shoutbox elsewhere on your site - refer to: www.yoursite.com/smf/ssi_examples.php for examples of this!
I'm only a half geek really...

marcnyc

I found a bug in the Ultimate Shoutbox... It appears to be working only in English.
I have SMF 1.0 RC1 installed with the italian language pack and after having installed it succesffully, when I try to access its Preferences I get no title plus these errors at the top of the page:

Notice: Undefined index: shoutlimit in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutsep in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutmaxchr in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutsplitchr in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutdir in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: enablearchiveshout in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: enablescrollshout in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrollwidth in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrollheight in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrolldelay in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrolldir in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrollspeed in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutallow in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520

If I set the forum in english I don't get these errors but I don't see the shoutbox either (I might have to do something I don't know yet - I am not searching in the forum for instructions since unfortunately these mods come without instructions).

FaSan

Quote from: marcnyc on October 06, 2004, 10:23:07 AM
I found a bug in the Ultimate Shoutbox... It appears to be working only in English.
I have SMF 1.0 RC1 installed with the italian language pack and after having installed it succesffully, when I try to access its Preferences I get no title plus these errors at the top of the page:

Notice: Undefined index: shoutlimit in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutsep in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutmaxchr in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutsplitchr in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutdir in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: enablearchiveshout in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: enablescrollshout in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrollwidth in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrollheight in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrolldelay in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrolldir in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutscrollspeed in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520
Notice: Undefined index: shoutallow in /home/placeh00/domains/placeholder.com/public_html/gull/Sources/ModSettings.php on line 520

If I set the forum in english I don't get these errors but I don't see the shoutbox either (I might have to do something I don't know yet - I am not searching in the forum for instructions since unfortunately these mods come without instructions).


Devi aggiungere le traduzioni in Italiano.... tutte le Mod che trovi quì sono rilasciate in Inglese (tranne le mie che hanno la traduzione in Ita ovviamente o alcuni che oltre l' inglese inseriscono le relative nella loro lingua).

Controlla il file ".mod" della mod che stai installando ed aggiungi manualmente (tradotte) nel file relativo.



FaSan



PS : The user need add the relative translate and the mod work fine in his language.

marcnyc

are you sure that's all it takes? (sei sicuro che basta questo?)

where would I have to do these translations? inside the shoutbox_v1.01.mod file or somewhere else? (dove dovrei fare queste traduzioni? dentro il file shoutbox_v1.01.mod o da qualche altra parte?)

FaSan

Le modifiche vanno fatte, manualmente, all' interno dei tuoi file di lingua.

Guardando, con un editor di testo, il file .mod che trovi all' interno della Mod, quali sono le linee e qual'è il file da modificare.

---

You need add the mod language's line in you language's files.



marcnyc


Ryan


umiya

#7
hes upgradeing it.....he go most of it upgtraded but the ssi part(most important to me)

weekend camper

I'm having a heck of a time getting this installed.

I believe I have CHMODDED correctly.  I have to manually install it (meaning upload the .gz file to the server), and then run the package manager.

This has gone on several times.  I am now checking to see if the shoutbox files that were extracted are needing to be chmodded, and sure enough, they do (manually -- they are 666 so far)

I get a "550 Could not change perms on /public_html/smf/Sources/Shout.php: Bad file descriptor" when I try though.

any help?

(the board was a clean RC1 install, then an invision 1.3 conversion, then a RC 2 install -- no other mods in there, just the shoutbox that doesn't show up on the index page).


marcnyc

I am not an expert but my guess is you should install it on a clean RC1 first and then go from there, but before you re-start the whole installation process ask somebody else. I know it worked for me on a clean english RC1 (didn't work with other languages).

[Unknown]

Quote from: weekend camper on October 13, 2004, 03:46:31 PM
I get a "550 Could not change perms on /public_html/smf/Sources/Shout.php: Bad file descriptor" when I try though.

Gah!!  Can you even delete it?

It may be owned by nobody.  If this is the case, you need to download it, delete it, and reupload it.

-[Unknown]

de3jeh

hello i have also a problem in the file modstettings he can not find noting there is noting to put in :-\


<edit file>
Sources/ModSettings.php
</edit file>

<search for>
array('text', 'cal_maxspan', &$txt['calendar53']),
</search for>

<add after>
"Shoutbox",
array('text', 'shoutlimit', &$txt['shoutbox_23']),
array('text', 'shoutsep', &$txt['shoutbox_21']),
array('text', 'shoutmaxchr', &$txt['shoutbox_24']),
array('text', 'shoutsplitchr', &$txt['shoutbox_25']),
array('select', 'shoutdir', &$txt['shoutbox_18'], null, array(
'1' => &$txt['shoutbox_19'],
'0' => &$txt['shoutbox_20'],
)),
array('check', 'enablearchiveshout', &$txt['shoutbox_22']),
array('check', 'enablescrollshout', &$txt['shoutbox_26']),
array('text', 'shoutscrollwidth', &$txt['shoutbox_28']),
array('text', 'shoutscrollheight', &$txt['shoutbox_29']),
array('text', 'shoutscrolldelay', &$txt['shoutbox_41']),
array('select', 'shoutscrolldir', &$txt['shoutbox_36'], null, array(
'up' => &$txt['shoutbox_37'],
'down' => &$txt['shoutbox_38'],
'left' => &$txt['shoutbox_39'],
'right' => &$txt['shoutbox_40'],
)),
array('select', 'shoutscrollspeed', &$txt['shoutbox_30'], null, array(
'1' => &$txt['shoutbox_31'],
'2' => &$txt['shoutbox_32'],
'3' => &$txt['shoutbox_33'],
'4' => &$txt['shoutbox_34'],
'5' => &$txt['shoutbox_35'],
)),
array('select', 'shoutallow', &$txt['shoutbox_14'], null, array(
'everyone' => &$txt['shoutbox_15'],
'members_only' => &$txt['shoutbox_16'],
'admins_only' => &$txt['shoutbox_17'],
)),
</add after>

<search for>
$config_bools = array(
</search for>

<add after>
'enablearchiveshout',
'enablescrollshout',
</add after>

<search for>
$config_ints = array(
</search for>

<add after>
'shoutmaxchr',
'shoutsplitchr',
'shoutlimit',
'shoutscrollwidth',
'shoutscrollheight',
'shoutscrolldelay',
</add after>

<search for>
$config_strs = array(
</search for>

<add after>
'shoutsep', 'shoutscrolldir', 'shoutdir', 'shoutscrollspeed', 'shoutallow',

so this i cant use it :-\

Does sombody willing to give me there files so i can use the shout board

thanx in advance

Hello all i am here to help u all ;)

de3jeh

Hello all i am here to help u all ;)

FaSan

Try to download that : http://www.mymods.co.uk/Packages/shout.tar.gz

and apply the appropriate .mod ;)




FaSan

de3jeh

Witch one is te appropriate one ??? ;)
Hello all i am here to help u all ;)

FaSan


de3jeh

he is giving errors :'(  he is not showing the text in modsettings :'(  if i collaps the features
Hello all i am here to help u all ;)

Grudge

Are you using English language? Also, don't install the version found on the mod site (I haven't updated these mods yet!) Instead download it from my package server!!
I'm only a half geek really...

de3jeh

No i am using the dutch version but i have tried to put my language to enlish it doesen't work eihter

Ok i will do try that
Hello all i am here to help u all ;)

Jerry

I am thinking about moving my boards over to smf, and I tried to install the shoutbox from the package server, and it installed and evrything just fine. . . but how do I activate it? It does not show up on the index of the forum or anything. . . I see the options for it on the options page. But it does not show up any where to be used.

*EDIT* nevermind I found out what I missed forgot to add it to the template.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Advertisement: