Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Grudge on March 28, 2004, 09:11:20 AM

Title: Ultimate Shoutbox
Post by: Grudge on March 28, 2004, 09:11:20 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=22)

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!
Title: Re: Ultimate Shoutbox
Post by: 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).
Title: Re: Ultimate Shoutbox
Post by: FaSan on October 06, 2004, 04:21:16 PM
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.
Title: Re: Ultimate Shoutbox
Post by: marcnyc on October 06, 2004, 08:46:18 PM
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?)
Title: Re: Ultimate Shoutbox
Post by: FaSan on October 07, 2004, 02:37:49 AM
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.


Title: Re: Ultimate Shoutbox
Post by: marcnyc on October 07, 2004, 06:48:09 AM
Thanks...
Title: Re: Ultimate Shoutbox
Post by: Ryan on October 11, 2004, 10:55:06 PM
dont work on rc2 :/
Title: Re: Ultimate Shoutbox
Post by: umiya on October 12, 2004, 11:16:58 AM
hes upgradeing it.....he go most of it upgtraded but the ssi part(most important to me)
Title: Re: Ultimate Shoutbox
Post by: weekend camper on October 13, 2004, 03:46:31 PM
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).

Title: Re: Ultimate Shoutbox
Post by: marcnyc on October 13, 2004, 04:12:25 PM
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).
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on October 13, 2004, 05:18:03 PM
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]
Title: Re: Ultimate Shoutbox
Post by: de3jeh on October 15, 2004, 05:01:01 AM
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

Title: Re: Ultimate Shoutbox
Post by: de3jeh on October 15, 2004, 03:06:36 PM
Anybody ??? ::)
Title: Re: Ultimate Shoutbox
Post by: FaSan on October 15, 2004, 03:50:43 PM
Try to download that : http://www.mymods.co.uk/Packages/shout.tar.gz

and apply the appropriate .mod ;)




FaSan
Title: Re: Ultimate Shoutbox
Post by: de3jeh on October 15, 2004, 05:48:03 PM
Witch one is te appropriate one ??? ;)
Title: Re: Ultimate Shoutbox
Post by: FaSan on October 16, 2004, 03:42:49 AM
Read the .xml file  8)
Title: Re: Ultimate Shoutbox
Post by: de3jeh on October 18, 2004, 05:21:15 AM
he is giving errors :'(  he is not showing the text in modsettings :'(  if i collaps the features
Title: Re: Ultimate Shoutbox
Post by: Grudge on October 18, 2004, 06:47:26 AM
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!!
Title: Re: Ultimate Shoutbox
Post by: de3jeh on October 18, 2004, 11:02:22 AM
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
Title: Re: Ultimate Shoutbox
Post by: Jerry on October 23, 2004, 07:50:38 PM
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.
Title: Re: Ultimate Shoutbox
Post by: allfripou on October 25, 2004, 07:48:37 AM
worked fine for me .... after I struggled with my template set (being a newbie). I think a small example (even if the shoutbox is not at the right location) will be useful.

Secondly, I increased the size of the submit box : a bit small maybe ? :)

thx
Title: Re: Ultimate Shoutbox
Post by: DeadMetal on October 26, 2004, 06:07:23 PM
I succesfully installed the mod, but I can't see it yet. Do I have to manually edit some of the templates and where can I find more information about it? (Using dutch RC2, classic and modern theme).
Title: Re: Ultimate Shoutbox
Post by: Grudge on October 27, 2004, 05:57:02 AM
Installation instructions should say when you install it - and it's been asked many times before. You need to edit the index.template.php file of whatever templates you want to add it to, and add the following functions:
smfshout();

An example (Incase you have trouble working with quotes) may be:

<table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table>


Insert that within the HTML in the template and it will work. Obviously you'll need to adjust the HTML to fit your needs
Title: Re: Ultimate Shoutbox
Post by: CapriSkye on October 27, 2004, 04:57:56 PM
doesn't this work with other language? my forum has chinese language, but it doesn't work. it works when i change the language to english though.
Title: Re: Ultimate Shoutbox
Post by: Grudge on October 27, 2004, 05:08:47 PM
It should do if you put the language entries manually into Modifications.chinese.php. It won't do it for you. Just copy the contents it added to Modifications.english.php to your language of choice.
Title: Re: Ultimate Shoutbox
Post by: DeadMetal on October 28, 2004, 01:29:49 AM
Maybe it's a good idea to automate that. For example: while installing the mod, you get the message: 'The language files need to be updated. Please select which languages you want to modify'. And then a multiple selectbox.
Title: Re: Ultimate Shoutbox
Post by: Jerry on October 30, 2004, 02:30:25 AM
an example would have been cool, but it all worked out :). The SMF template system was easy for me to learn, http://www.raclan.org/forums/ I put mine to the left of my boards. probably not the most popular spot for it :P but thats what my members wanted.
Title: Re: Ultimate Shoutbox
Post by: Grudge on October 30, 2004, 04:16:02 AM
Quote from: Jerry on October 30, 2004, 02:30:25 AM
an example would have been cool, but it all worked out :). The SMF template system was easy for me to learn, http://www.raclan.org/forums/ I put mine to the left of my boards. probably not the most popular spot for it :P but thats what my members wanted.
That's where I have it on my board :P
Title: Re: Ultimate Shoutbox
Post by: allfripou on November 01, 2004, 06:46:31 PM
It works perfectly now.

Would it  be possible to have also the smileys ? Even within a popup ?

:)
Title: Re: Ultimate Shoutbox
Post by: Dndro Dankin on November 15, 2004, 06:14:12 AM
My problem with shoutbox is that after following all the steps included in the installation documentation, the shoutbox shows an error with the message:
      'Unable to load the 'shout' template. '

Can anybody help me?

Thnx in advance
Title: Re: Ultimate Shoutbox
Post by: Jerry on November 15, 2004, 10:26:54 AM
make shure the shout.template.php is in your themes/default :)
Title: Re: Ultimate Shoutbox
Post by: Dndro Dankin on November 15, 2004, 05:27:22 PM
Thnx... I was sure I had the shout.template in my Theme directory, but I had some problems with the name of the directory (I had it duplicated under another directory) and that was the problem, because my themes settings where pointing to the old directory where y didn't have the shout.templates file

Thnx
Title: Re: Ultimate Shoutbox
Post by: ANARCH¥ on November 15, 2004, 05:58:35 PM
the shoutbox eat a lot of bandwith ?
Title: Re: Ultimate Shoutbox
Post by: Jerry on November 15, 2004, 06:43:54 PM
no, not that I notice since it only loads once when you open the page you have it installed on. think iof it as a never ending post I guess :P
Title: Re: Ultimate Shoutbox
Post by: Ryan on November 16, 2004, 09:14:05 AM
Can we get a working version for SMF 1.0 (preview)

It dont go on that i dont think...

When i had rc2 it used to nearly install but had errors since i upgraded i thought id try again..  but i think my version is too new for the mod is that possible...

Title: Re: Ultimate Shoutbox
Post by: Grudge on November 16, 2004, 09:57:35 AM
Quote from: M3THOD on November 16, 2004, 09:14:05 AM
Can we get a working version for SMF 1.0 (preview)

It dont go on that i dont think...

When i had rc2 it used to nearly install but had errors since i upgraded i thought id try again.. but i think my version is too new for the mod is that possible...


I shall address this, it should just be that no install actions are defined
Title: Re: Ultimate Shoutbox
Post by: Ryan on November 16, 2004, 02:26:42 PM
Yes thats what i was getting lol!
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 17, 2004, 01:25:47 PM
Updated. Should hopefully work with RC2 and preview now. Also made shouting and deleting a permission ;)
Title: Re: Ultimate Shoutbox
Post by: Ryan on November 17, 2004, 03:28:41 PM
it uploads but when i click apply i get this...

im deffinately using the version that was updated on 17th of november... today..
Please remember to always make regular backups of your sources and database before installing mods, especially beta versions. 

Package Manager - Install Actions
Install Actions for archive shout_v1_211f.tar.gz:
There are no installation or uninstallation actions defined! 
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 17, 2004, 03:47:15 PM
That makes no sense at all! I removed all of the specific install actions just so it would work! Can you do a hard refresh (Ctrl + F5), and also delete it off your server, check it's not showing it as present then reupload it?
Title: Re: Ultimate Shoutbox
Post by: Ryan on November 17, 2004, 06:11:39 PM
ok now when i click proceed i get this :/

Fatal error: packageinstall(): Failed opening required '/home/virtual/site1/fst/var/www/html/Packages/temp/shoutPdb.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site1/fst/var/www/html/Sources/Packages.php on line 414
Title: Re: Ultimate Shoutbox
Post by: Jerry on November 20, 2004, 05:08:51 PM
Not sure about your problem M3THOD

Grudge,  I think that the function template_shout_form() in shout.template.php be changed from :
function template_shout_form()
{
global $context, $settings, $options, $txt, $user_info, $scripturl, $modSettings, $ID_MEMBER;

echo '
<center>
<form action="', $scripturl, '?action=shout" method="post">
<input type="hidden" value="', $context['qstr'], '" name="qstr" />
<input type="hidden" value="" name="email" />';

if ($user_info['is_guest'])
echo '
<input type="hidden" value="0" name="memberID" />
<input type="text" value="', $txt['shoutbox_6'], '" name="displayname" maxlength="100" onfocus="this.value=\'\'" /><br />
<input type="text" value="', $txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" /><br />';
else
echo '
<input type="hidden" value="', $user_info['name'], '" name="displayname" />
<input type="hidden" value="', $ID_MEMBER, '" name="memberID" />';

echo '
<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="16"  maxlength="100" onfocus="this.value=\'\'" /><br />
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
</form>
</center>';

}
to
function template_shout_form()
{
global $context, $settings, $options, $txt, $user_info, $scripturl, $modSettings, $ID_MEMBER;

echo '
<center>
<form action="', $scripturl, '?action=shout" method="post">
<input type="hidden" value="', $context['qstr'], '" name="qstr" />
<input type="hidden" value="" name="email" />';

if ($user_info['is_guest'])
echo '
<input type="hidden" value="0" name="memberID" />
<input type="text" value="', $txt['shoutbox_6'], '" name="displayname" maxlength="100" onfocus="this.value=\'\'" /><br />
<input type="text" value="', $txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" /><br />';
else
echo '
<input type="hidden" value="', $user_info['name'], '" name="displayname" />
<input type="hidden" value="', $ID_MEMBER, '" name="memberID" />';

echo '
<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="16"  maxlength="100" onblur="if(this.value==\'\') this.value=\'', $txt['shoutbox_8'], '\';" onfocus="if(this.value==\'', $txt['shoutbox_8'], '\') this.value=\'\';" /><br />
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
</form>
</center>';

}
that way when you are typing a message, and you click out of the input area the message stays, but "Message" still disapears when you click it for the first time, but if you click again the message you are typing does not dissapear. I actually
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 22, 2004, 07:07:58 PM
Sorry for the delay M3THOD,

Quite confused by that problem. Could you use an ftp client when at that step and see whether the temp directory contains any files? If for some reason it's just something not working on your server I can spent a few minutes tomorrow trying to make up a package that will work for you!

Jerry,
Thanks for that, not a bad idea
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 22, 2004, 07:09:58 PM
PS, Jerry, think I've decided on just doing this instead:

<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />


Shall be in next version
Title: Re: Ultimate Shoutbox
Post by: Jerry on November 22, 2004, 08:34:57 PM
Great work on this mod, its used almost more than posting on my forums :P
Title: Re: Ultimate Shoutbox
Post by: Webby on November 24, 2004, 05:42:17 AM
What if I want to adjust the time, date and name font sizes....?

Also, I would like to have the date and name on line 1, and the shout on the next line.  Do I have to edit the shout.php or the shout.template.php ?

[edit]

Never mind, I fixed that already.

One question still : how do I display the last shout on the main page on my website? If I use SSI, it would display all shouts and I just want 1 to be displayed.....

[/edit]
Title: Re: Ultimate Shoutbox
Post by: Webby on November 24, 2004, 08:40:24 AM
One thing :

it seems that you can use codes like [ b], [ i], [ move] etc. and also : the [ img] code.........

The problem I have is that very big pictures can ruin the whole template.
So there has to be some kind of check I guess.  On my board the check is active and set to a maximum size, but the shoutbox will display the whole picture !!!
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 25, 2004, 06:44:40 AM
Displaying last shout by SSI... maybe I could add that to the next version if I get time? Would be *very* easy to do, just query the shout table and get the message.

As the BBC, good point on the [img] tag. Maybe we should just strip out the img tag to stop it happening? Something like:
$shout = preg_replace('~\[img\](.+?)\[/img\]~s', '', $shout);
Title: Re: Ultimate Shoutbox
Post by: HRM on November 25, 2004, 08:16:52 AM
Quote from: Jerry on November 22, 2004, 08:34:57 PM
Great work on this mod, its used almost more than posting on my forums :P

And you do have  a very good looking forum!! Wow.  Nice theme!

I was jus looking for an example of a good working shoutbox and you sure have one. , and your chat looks good too.
Ed
Title: Re: Ultimate Shoutbox
Post by: HRM on November 25, 2004, 08:34:20 AM
ANd is this one compatible with Rc2 and where says how to activate /install it?
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 25, 2004, 08:35:49 AM
Yes it is, it gives you install instructions when you load it into the package server.
Title: Re: Ultimate Shoutbox
Post by: HRM on November 25, 2004, 08:46:15 AM
Ok, Tnx grudge.

Although I Didn't really saw any instructions the package manager saif that everything was installed succesful right away  :) .

So now only need to make it appaer somewhere. It said it modificated my ssi.php also, so will check how to make it appear. ;)
Title: Re: Ultimate Shoutbox
Post by: Webby on November 26, 2004, 04:33:20 AM
Quote from: Grudge on November 25, 2004, 06:44:40 AM
Displaying last shout by SSI... maybe I could add that to the next version if I get time? Would be *very* easy to do, just query the shout table and get the message.

As the BBC, good point on the [img] tag. Maybe we should just strip out the img tag to stop it happening? Something like:
$shout = preg_replace('~\[img\](.+?)\[/img\]~s', '', $shout);

Where should I put this $shout = preg_replace('~\[img\](.+?)\[/img\]~s', '', $shout); exactly ?
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 26, 2004, 04:44:49 AM
That was somewhat pseudo, it would be the shout() function though I'd think... I'm always at work when answering these at the moment so don't have code with me ;)
Title: Re: Ultimate Shoutbox
Post by: Webby on November 26, 2004, 04:57:04 AM
function Shout()
{
global $db_prefix, $user_info, $settings, $modSettings, $txt, $user_info, $sourcedir;

isAllowedTo('make_shout');

$time = time();

$_POST['message'] = isset($_POST['message']) ? $_POST['message'] : '';
$_POST['displayname'] = isset($_POST['displayname']) ? $_POST['displayname'] : '';
$message = $_POST['message'];

//Put a space in front of the message - so we can just enter 1 smiley. We make up for it in the display
$message = " " . $message . " ";

$message = htmlspecialchars($message, ENT_QUOTES);
include_once($sourcedir . '/Subs-Post.php');
preparsecode($message);
//Here we put in some validation so we don't have to put up with too much crap

//make sure all the fields are filled in
if (($_POST['displayname'] == "") || ($_POST['message'] == ""))
fatal_error($txt['shoutbox_11'], false);

//make sure nobody hit submit without filling in all the fields
if (($_POST['displayname'] == $txt['shoutbox_6']) || ($_POST['email'] == $txt['shoutbox_7']) || ($_POST['message'] == $txt['shoutbox_8']))
fatal_error($txt['shoutbox_11'], false);

//make sure nobody puts in a bogus email address
if ($user_info['is_guest'] && preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]+@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $_POST['email']) == 0)
fatal_error($txt['shoutbox_12'], false);

if ($_POST['displayname'] == "")
$_POST['displayname'] = $user_info['name'];

// Now we're ready to insert the shout
$result = db_query("
INSERT INTO {$db_prefix}shoutbox
(ID_MEMBER, displayname, message,time,email)
VALUES ('$_POST[memberID]', '$_POST[displayname]', '$message','$time','$_POST[email]')", __FILE__, __LINE__);

ob_end_clean();
header("Location: $_POST[qstr]");
obExit(false);
}


:)
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 26, 2004, 09:35:13 AM
After:
$message = " " . $message . " ";

put:

$message = preg_replace('~\[img(.+?)\](.+?)\[/img\]~s', '', $message);

I haven't checked the regex is right but it shouldn't hurt to try. That will just strip out [img] tags... I think. I'll try remember check when I get home
Title: Re: Ultimate Shoutbox
Post by: Webby on November 26, 2004, 10:53:31 AM
Checked it and it seemed ok, but when I tried it again it showed me a (very) big image and a ruined layout.

Maybe you'll find the time to check it when you get home ;)

Thanx !
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 26, 2004, 10:58:10 AM
Did you try the same thing the second time? Were you just using [img] tags, or other attributes? What bout if you make it this?
$message = preg_replace('~\[img(.+?)*\](.+?)\[/img\]~s', '', $message);
Title: Re: Ultimate Shoutbox
Post by: Webby on November 28, 2004, 08:36:08 AM
I was using the same line and no other attributes.  With this new code it gives me the same big picture.

I use :


[img]http://www.karinhexspoor.nl/images/introfoto2copy.jpg[/img]
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 28, 2004, 04:16:35 PM
Note that this will obviously only work for *new* messages, not existing ones. The below doesn't work?
function Shout()
{
global $db_prefix, $user_info, $settings, $modSettings, $txt, $user_info, $sourcedir;

isAllowedTo('make_shout');

$time = time();

$_POST['message'] = isset($_POST['message']) ? $_POST['message'] : '';
$_POST['displayname'] = isset($_POST['displayname']) ? $_POST['displayname'] : '';
$message = str_replace('~\[img.+?\].+?\[/img\]~is', '', $_POST['message']);

//Put a space in front of the message - so we can just enter 1 smiley. We make up for it in the display
$message = " " . $message . " ";

$message = htmlspecialchars($message, ENT_QUOTES);
include_once($sourcedir . '/Subs-Post.php');
preparsecode($message);
//Here we put in some validation so we don't have to put up with too much crap

//make sure all the fields are filled in
if (($_POST['displayname'] == "") || ($_POST['message'] == ""))
fatal_error($txt['shoutbox_11'], false);

//make sure nobody hit submit without filling in all the fields
if (($_POST['displayname'] == $txt['shoutbox_6']) || ($_POST['email'] == $txt['shoutbox_7']) || ($_POST['message'] == $txt['shoutbox_8']))
fatal_error($txt['shoutbox_11'], false);

//make sure nobody puts in a bogus email address
if ($user_info['is_guest'] && preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]+@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $_POST['email']) == 0)
fatal_error($txt['shoutbox_12'], false);

if ($_POST['displayname'] == "")
$_POST['displayname'] = $user_info['name'];

// Now we're ready to insert the shout
$result = db_query("
INSERT INTO {$db_prefix}shoutbox
(ID_MEMBER, displayname, message,time,email)
VALUES ('$_POST[memberID]', '$_POST[displayname]', '$message','$time','$_POST[email]')", __FILE__, __LINE__);

ob_end_clean();
header("Location: $_POST[qstr]");
obExit(false);
}


:)
Quote
Title: Re: Ultimate Shoutbox
Post by: Webby on November 29, 2004, 02:01:51 AM
Nope, it doesn't work............
Title: Re: Ultimate Shoutbox
Post by: Ravey76 on November 29, 2004, 04:38:35 AM
 mine doesn't work, too ...

I just installed "Ultimate Shoutbox"; everything worked fine - but no changes. Cannot find this "Shout"-button.
Had a look in Admin area. There's a new tab underneath tab "Karma", but it is absolutely blank. Some checkboxes and fields, but no text.

Maybe this problem occurs because I am using german language for my board?

Kind regards,
Ravey76
Title: Re: Ultimate Shoutbox
Post by: Jerry on November 29, 2004, 04:57:06 AM
you need to add '.smfshout().' to your BoardIndex.template.php file ;)
Title: Re: Ultimate Shoutbox
Post by: Ravey76 on November 29, 2004, 06:33:42 AM
Hello Jerry,

thank you for your quick reply.

Can you tell me where to place exactly this '.smfshout().'  ?  Is this a button?

Thanks in advance,
Ravey76
Title: Re: Ultimate Shoutbox
Post by: Webby on November 29, 2004, 08:09:14 AM
Ravey76, you have to put that code :

smfshout()

somewhere in your template. You decide yourself where you want it.....

And, it works for me, I was talking about the [ img] tags, so don't say it doesn't work for you either, ok ?
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 30, 2004, 05:33:23 PM
Ravey76,

Because you are using German you need to open English.modifications.php and copy and paste all the language entries to do with the shoutbox into German.modifications.php
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 30, 2004, 05:40:24 PM
Webby, Apologies, the line with str_replace on should be:

$message = preg_replace('~\[img.*?\].+?\[/img\]~is', '', $_POST['message']);


Sorry it took so long to get a working reply!
Title: Re: Ultimate Shoutbox
Post by: Webby on November 30, 2004, 05:53:51 PM
Well, it works and that is what counts !  Thanx again.

Now for another challenge : would it be possible to make it so that you can use another smileyset ?  I mean, the smileys are too big actually for the shoutbox, so I thought it would be fun if you could use very small smileys.  It would take a lot of coding wouldn't it ;) ?
Title: Re: Ultimate Shoutbox
Post by: Ravey76 on November 30, 2004, 06:11:06 PM
@ Grudge:

Yes, now that point works. I added the stuff from English.modifications.php to the egrman one and now the Shoutbox-settings appear in admin area.

about that code-stuff Jerry mentioned ... still trying and going crazy.
It works ... somehow ... but still need to figure out where's the best place to put it in ...

Ravey
Title: Re: Ultimate Shoutbox
Post by: Grudge on November 30, 2004, 06:23:33 PM
Webby, this is a bodge but after this:

$row['message'] = doUBBC($row['message']);


Add:

$row['message'] = preg_replace('~/' . $user_info['smiley_set'] . '/~is', '/shoutsmiley/', $row['message']);

Then create a new smiley set and call it "shoutsmiley", hopefully the code is obvious enough to see what it's doing?

Ravey76, once you have the shoutbox appearing you've done the hard bit, now you just need to decide how you want your HTML to fit around it. There are lots of examples of integrations on peoples sites you can steal. My site (www.p0stwh0res.com/smf) has one such example, look at the source to get some HTML ideas
Title: Re: Ultimate Shoutbox
Post by: JayBachatero on November 30, 2004, 11:01:16 PM
Hello.  i tried editing the shout.template.php script to make the shout show in 2 columns.  i want on the left the marquee window and on da right the fields to post.  this is the code i have but wen i upload it it says parse error.  can any one help me fix this?

<?php

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

echo '
<table border="0" cellspacing="0" cellpadding="4" align="center" width="100%">
<tr>
<td class="catbg" align="center">'
$txt['shoutbox_1'], '</td>
</tr><tr>
<td class="titlebg" align="left">'
$context['page_index'], '</td>
</tr><tr>
<td class="windowbg">'
;
foreach ($context['arc_shouts'] as $shout)
{
if ($context['canDelete'])
echo '
<a href="'
$scripturl'?action=delete_shout;id='$shout['id'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
if (empty($shout['email']))
echo '
<span class="smtxt">'
$shout['time'], '</span> - <a href="'$scripturl'?action=profile;u='$shout['memberID'], '">'$shout['displayname'], '</a> -' $shout['message'] . $modSettings['shoutsep'];
// Guest?
else
echo '
<span class="smtxt">'
$shout['time'], '</span> - <a href="mailto:'$shout['email'], '">'$shout['displayname'], '</a> -' $shout['message'] . $modSettings['shoutsep'];
}
echo '
<center>'
;

if ($modSettings['enablearchiveshout'] == && $context['canPost'])
template_shout_form();

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

// Pull the delete options for the administrator
if ($context['canDelete'])
echo '
<table border="0" cellspacing="1" cellpadding="4" align="center" width="100%">
<tr>
<td class="catbg" align="center" colspan="2">'
$txt['shoutbox_42'], '
</td>
</tr>
<tr>
<td class="windowbg2" valign="top" width="50%">
<form action="'
$scripturl'?action=delete_shout_age" method="post">'$txt['shoutbox_2'], '
<input type="text" name="age" id="age" value="25" size="4" /> '
$txt['shoutbox_3'], '
</td>
<td class="windowbg2" valign="top">
<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />
</form><br />
</td>
</tr><tr>
<td class="windowbg2" valign="top" width="50%">
<form action="'
$scripturl'?action=delete_all_shouts" method="post">'$txt['shoutbox_4'], ' '$modSettings['shoutlimit'], '
</td>
<td class="windowbg2" valign="top">
<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />
</form>
</td>
</tr>
</table>'
;
}

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

echo '
<center>'
;
// Scrolling?
if ($modSettings['enablescrollshout'] == 1)
echo '
<marquee direction="'
$modSettings['shoutscrolldir'], '" width="'$modSettings['shoutscrollwidth'], '" 
height="'
$modSettings['shoutscrollheight'], '" scrollamount="'$modSettings['shoutscrollspeed'], '" 
scrolldelay="'
$modSettings['shoutscrolldelay'], '" onmouseover="this.stop()" onmouseout="this.start()">';

// Loop through the shouts!
foreach ($context['shouts'] as $shout)
{
// If it's an admin - they get the delete button...
if ($context['canDelete'])
echo '
<a href="'
$scripturl'?action=delete_shout;id='$shout['id'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
<span class="smtxt">'
$shout['time'], '</span> <a href="', ($shout['email'] == '' $scripturl '?action=profile;u=' $shout['memberID'] : 'mailto:' $shout['email']), '">'$shout['displayname'], '</a> -'$shout['message'] . $modSettings['shoutsep'];

}

// End the marquee?
if ($modSettings['enablescrollshout'] == 1)
echo '
</marquee>'
;</td>
            <td>
echo '
<center>
<p><a href="'
$scripturl'?action=shout_archive">'$txt['shoutbox_43'], '</a></p>
</p>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>'
;
}

function 
template_shout_form()
{
global $context$settings$options$txt$user_info$scripturl$modSettings$ID_MEMBER;

echo '
<center>
<form action="'
$scripturl'?action=shout" method="post">
<input type="hidden" value="'
$context['qstr'], '" name="qstr" />
<input type="hidden" value="" name="email" />'
;

if ($user_info['is_guest'])
echo '
<input type="hidden" value="0" name="memberID" />
<input type="text" value="'
$txt['shoutbox_6'], '" name="displayname" maxlength="100" onfocus="this.value=\'\'" /><br />
<input type="text" value="'
$txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" /><br />';
else
echo '
<input type="hidden" value="'
$user_info['name'], '" name="displayname" />
<input type="hidden" value="'
$ID_MEMBER'" name="memberID" />';

echo '
<input type="text" value="'
$txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="this.value=\'\'" /><br />
<input type="submit" name="submit" value="'
$txt['shoutbox_9'], '" />
</form>
</center></td>
          </tr>
        </table>'
;

}
?>

Title: Re: Ultimate Shoutbox
Post by: Webby on December 01, 2004, 01:41:02 AM
Wow, that works perfectly !  Great, and thanx for you quick reply ;)
Title: Re: Ultimate Shoutbox
Post by: JayBachatero on December 01, 2004, 10:40:55 PM
Is there a way to make the shout autorefresh every how many seconds?
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 02, 2004, 12:01:17 AM
you would have to make your whole page refresh, just add a meta refresh to your index.template.php with the meta tags. . .
Title: Re: Ultimate Shoutbox
Post by: JayBachatero on December 02, 2004, 11:47:41 PM
iight thanks
Title: Re: Ultimate Shoutbox
Post by: Perti on December 04, 2004, 07:05:31 AM
what I'm doing wrong ???, I have installed mod and now when I put ', smfshout(), ' in index.templates.php that template stops working
Title: Re: Ultimate Shoutbox
Post by: Webby on December 04, 2004, 09:57:28 AM
You only use :

smfshout()

I guess ?  Without a comma and such ?
Title: Re: Ultimate Shoutbox
Post by: Perti on December 04, 2004, 11:03:40 AM
so if I want to put shoutbox right side of my board, what I must put to index.template.php besides smfshout()?
Title: Re: Ultimate Shoutbox
Post by: Webby on December 04, 2004, 04:04:34 PM
You will have to work with tables ......
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 04, 2004, 07:33:13 PM
I had tried ',smfshout(),' but in the end I had to use '.smfshout().'

@perti, you will have to edit the boardindex.template.php
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 05, 2004, 07:36:11 AM
', smfshout(), ' does depend on where you put it. Basically you can try these two things, one will definetly work:

' . smfshout() . '

OR

smfshout();


Just depends where you are putting it.
Title: Re: Ultimate Shoutbox
Post by: Perti on December 05, 2004, 01:14:14 PM
so where I must put it in BoardIndex.tempöate.php
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 05, 2004, 02:54:04 PM
If you put it in boardindex.template.php it will only be shown on the main page of the forum, put it in index.template.php otherwise. The best thing to do is trial and error - I can't tell you how to template your forum. Basically, load up whichever file you want to use, and put in the smfshout() code I put above "somewhere". Then load up the page and see how it looks, once you have it working you can think about where you want to position it (Down the left, up the top etc).
Title: Re: Ultimate Shoutbox
Post by: Midgard on December 06, 2004, 03:35:32 AM
very nice mod.
Title: Re: Ultimate Shoutbox
Post by: Ravey76 on December 06, 2004, 10:50:44 AM
@ Grudge:

Nice mod; I got it installed finally. But unfortunately I don't know how to "design" (don't know other word) the ShoutBox.

-> If I place the ShoutBox in a table cell, it "destroys" the whole table (of "InfoCenter" on the bottom of my forum)
-> If I create a separate cell (and set ShoutBox in AdminArea to small for testing purposes; 50*100 pixels) -> even in this case it breaks my  table construction

Then I placed an additional vertical column and placed the shoutbox-code there -> whole table breaks up ...

What can I do?

I saw a nice page with the shoutbox on the left side (I think it was yours); shoutbox was in a small, vertical box -> how do you solve this problem?

Thanks in advance,
Ravey76
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 06, 2004, 11:18:35 AM
Easiest way, open up index.template.php and find:

<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';


Change to:

<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td width="120">', smfshout(), '</td>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';

My template is more complicated that this but you get the idea.
Title: Re: Ultimate Shoutbox
Post by: Midgard on December 16, 2004, 06:54:12 AM
hey Grudge,

how this shoutbox with <iframe></iframe> tags?

please, can you help me?

Ex.:
<iframe src="SSI.php?ssi_shoutbox"></iframe>

But don't work these example...
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 16, 2004, 07:12:22 AM
Not sure why you'd really want this, but anyway. You'd have to make a dummy PHP page called, for example, shout.php containing:

<?php
include('SSI.php');
ssi_shoutbox();
?>


(May not be exactly right but you get the idea, basically enough to just show shoutbox on an SSI page)

Then link to this with the iframe.


EDIT: Ignore me! The problem is it has to be SSI.php?ssi_function=shoutbox not what you put
Title: Re: Ultimate Shoutbox
Post by: Midgard on December 16, 2004, 07:15:25 AM
Oh no. I not want this. Ex.: i click the "shout" button, but page didn't refesh. can this?
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 16, 2004, 07:44:03 AM
If you put it in an iframe then it wouldn't refresh, that's the whole point of it. Or do you mean the shoutbox doesn't refresh?
Title: Re: Ultimate Shoutbox
Post by: Midgard on December 16, 2004, 07:45:29 AM
Quote from: Grudge on December 16, 2004, 07:44:03 AM
If you put it in an iframe then it wouldn't refresh, that's the whole point of it. Or do you mean the shoutbox doesn't refresh?

Ups, now working... Thanks Matt
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 17, 2004, 03:35:51 PM
I think Midgard means that they want to be able to make a shout without it refreshing the whole page.. .
Title: Re: Ultimate Shoutbox
Post by: erzon on December 20, 2004, 07:04:04 AM
shoutbox dont work with mine. my version is rc2
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 20, 2004, 07:26:31 AM
What does it say? Bear in mind all my mods are now verified for 1.0 Final, and not the current RC version - although they should still work.
Title: Re: Ultimate Shoutbox
Post by: erzon on December 21, 2004, 11:08:57 PM
nothing says it just there no effect after i upload the shoutbox mod nothing happen i dont see any shoubox in my forum
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 21, 2004, 11:21:53 PM
Did you manually edit the theme file where you want to add it? you need to add ', smfshout() ,' or '. smfshout() .' some where in your themes( a spot you choose.)
Title: Re: Ultimate Shoutbox
Post by: erzon on December 22, 2004, 12:27:02 PM
oh i didnt do that lol i dont know it should put that code. by the way where do i put that?
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 22, 2004, 12:49:38 PM
I recommend BoardIndex.template.php, I would check the rest of this post for more specific info ;)
Title: Re: Ultimate Shoutbox
Post by: erzon on December 22, 2004, 11:36:06 PM
ok thanks dude.
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 23, 2004, 04:42:10 AM
I was wondering - as this gets asked all the time is there anyone who would mind posting the code that they changed on their install in the end, along with maybe a screenshot? I'd love to start a thread with maybe 5 example imlpementations of the shoutbox in different places with the corresponding code to help people. The problem is I can't make adding it part of the package as it just won't work in like 50% of cases because people use different themes and/or at the very least aren't using the "default" directory one. So if anyone has some code snippets and a screenshot if you could post them here (OR email me) I'll open a "Showcase" type thread somewhere and link to it from my mod install screen.
Title: Re: Ultimate Shoutbox
Post by: Unstable Fears on December 23, 2004, 04:40:48 PM
hi,

I'm completely lost on installing this. It's quite different installing mods in this sofware then phpBB, vBulletin, or IPB (which i'm used to).

I installed the package, but don't see anything on the main board. A couple posts above it says add  '. smfshout() .'  or ', smfshout(), ' but i'm getting a parse error....0_o.

Some instructions on how to install this would be nice for newbies like myself who are not accustomed to the SMF coding....

Thanks.
Title: Re: Ultimate Shoutbox
Post by: Tendulkar on December 23, 2004, 04:50:02 PM
Does anyone have a 'demo' of this on their forums I can take a look at?

Thanks  :)
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 23, 2004, 05:41:17 PM
http://www.raclan.org/forums . . . . I have the mod running on my forums ;)
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 23, 2004, 07:46:29 PM
Unstable Fears,

You add that code to one of your templates like index.template.php, whereever you want it to appear. If you get a parse error use:

smf_shout();

Instead
Title: Re: Ultimate Shoutbox
Post by: Unstable Fears on December 23, 2004, 08:50:22 PM
nvm problem fixed :)
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 23, 2004, 08:58:25 PM
Quote from: Grudge on December 23, 2004, 04:42:10 AM
I was wondering - as this gets asked all the time is there anyone who would mind posting the code that they changed on their install in the end, along with maybe a screenshot? I'd love to start a thread with maybe 5 example imlpementations of the shoutbox in different places with the corresponding code to help people. The problem is I can't make adding it part of the package as it just won't work in like 50% of cases because people use different themes and/or at the very least aren't using the "default" directory one. So if anyone has some code snippets and a screenshot if you could post them here (OR email me) I'll open a "Showcase" type thread somewhere and link to it from my mod install screen.
Here is how I added mine to the left of my forums:

Open /Themes/default/BoardIndex.template.php
- /Themes/yourtheme/ if your theme has its own BoardIndex.template.php

Find:
/* 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.) */

Add After:
               echo '<div><table border="0" width="100%" cellspacing="1" cellpadding="5">';
               echo '<tr><td width="180" valign="top">';
// Shout Box is right here!
echo '<div class="tborder"style="width: 180px;"><table border="0" width="180" cellspacing="1" cellpadding="5" style="table-layout: fixed;">
<tr>
<td class="catbg" width="100%">ShoutBox</td>
</tr>
<tr>
<td class="windowbg2" width="100%" valign="middle" align="center" colspan="2"><div style="overflow: auto; width: 100%;">',smfshout(),'</div></td>
</tr>
        </table></div><br />';
               echo '</td>
                    <td width="100%" valign="top">';

Find:
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}

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

Replace with:
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}

echo '
</table></div>';
echo '
</td></tr></table></div>
<br />';
}

Was used in a default theme "look alike"
Title: Re: Ultimate Shoutbox
Post by: m33pstah on December 28, 2004, 08:27:30 AM
Well ive installed the MOD seems to be there fine and the table is there in the Sql but it wont show up on the board anywhere... im new to SMF but have used ipb etc for years but this line in the help file threw me.

"Anywhere in your template call the function smfshout() to show the shoutbox"

wat does this mean...am i just being thick ?

help please :)

Sy :-X
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 28, 2004, 09:06:05 AM
Basically, you need to add it to the template so it actually appears. Different people want it to appear in different places, so I can't really say where's best to put it (Hence I don't try as part of the mod). If you read through this thread (I know it's long!), there will be some good examples of where people have added it in the past. It's a simple case to actually get it to appear - but you'll want to put some HTML around it so it looks pretty. There is an example above your post, but loads others throughout the topic. If you get really stuck just add smfshout() to your index template (As per the instructions), and move it around until it looks nice :)
Title: Re: Ultimate Shoutbox
Post by: johnm on December 28, 2004, 01:09:04 PM
isnt there an option to restrict shouts to members/admins im sure ive seen it before but i cant find it under edit features and options

thanks
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 28, 2004, 01:09:47 PM
check Admin -> Edit Permissons -> (usergoup) -> search for shout
Title: Re: Ultimate Shoutbox
Post by: edi67 on December 30, 2004, 10:34:07 AM
one little question grudge i upgraded to your 1.21 shoutbox version and before i saw this little pic (http://www.forumzoneru.25.com1.ru/Themes/default/images/deleteshout.gif) to in main index but now i see it only in shoutbox page where there is the list of all messages

this is normal in new version ?
Title: Re: Ultimate Shoutbox
Post by: ivanjs on December 31, 2004, 09:09:19 PM
Trying to install the shoutbox package. Tells me some files are not writeable.

I first try the ftp option, entering the correct ftp information and it didn't do anything except return back to the install actions screen with no message whether it worked or not (I'm assuming not since it still shows 1 thru 4 without the word success.

So then I go change all the files to 777 in the terminal using chmod, as well as move the relevant files to the proper places based on the image below. Come back and hit proceed and still tells me some files need to be made writeable.

Any ideas?

here's what I have after I hit proceed (ftp info removed intentionally):

(http://www.lyzrd.com/modthingy.gif)
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on December 31, 2004, 09:38:38 PM
You're probably using the wrong FTP information.  Make sure you're using the correct:
  - server: almost always localhost.
  - port: very very likely 21.
  - username/password: these you've probably got right ;).
  - path: the path you see *IN YOUR FTP CLIENT*.  Often, /public_html/forum/.

Remember, on most servers, the path looks like this:
/home/username/public_html/forum/

*However*, when you log into FTP, you just see:
/public_html/forum/

So that's the only part you put here.

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 31, 2004, 10:46:04 PM
Grudge,(or anyone else who can answer) I am trying to install the shoutbox on some forums, I worked around this one time but cannot seem to find how I did it.

I am trying to do this (without the class info for less typing. .)
<td><div>'.smfshout().'</div></td>
but when you view the page it comes up as
(shows the shoutbox)<td><div></div></td>

anyone know how to fix that? I read the thread and couldn't find anything. ..
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on December 31, 2004, 11:25:26 PM
It will do that if you don't have <tr>s around it properly.

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: Jerry on December 31, 2004, 11:26:16 PM
well its like this. .
<tr>
<td> shoutbox</td>
<td>another one. . .</td>
<td>another. . </td>
</tr>

I was just giving you the line that the box was in ..
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on January 01, 2005, 10:55:49 AM
Oh.  You also want to use commas instead of dots (so it's output at the right time.)

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: andyat11 on January 01, 2005, 12:16:09 PM
Hey im haveing problems with this shoutbox like if I put the code for it on the page it wont reconize it and if I went to index.php?actions=shout_archive it will be there but you cant post help me out here is there an URL just for the shout box thats accesable
Title: Re: Ultimate Shoutbox
Post by: Jerry on January 01, 2005, 01:46:43 PM
Thank you [Unknown] for helping me with that :), on fresh installs of the shoutbox mod on SMF1.0 I get this error when viewing the error log:
Undefined index: canDelete
File: /****/Themes/default/shout.template.php (eval?)
Line: 86
Title: Re: Ultimate Shoutbox
Post by: dennis on January 01, 2005, 01:58:46 PM
Like Jerry said above.  In my site of SMF 1.0 final, and Ultimate Shoutbox version 1.21, when I take a look at the error log, I see multiple thousounds of lines saying:

8: Undefined index: canDelete
File: /home/mysite/public_html/forum/Themes/default/shout.template.php (eval?)
Line: 86

Anyone has any idea how to fix this, please help  :)

Thanks,
Dennis
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on January 01, 2005, 02:54:58 PM
Find, Sources/shout.php:

function shout_display()
{
global $user_info, $db_prefix, $modSettings, $settings, $sourcedir, $scripturl, $txt, $context;


Add after:



$context['canDelete'] = allowedTo('delete_shout');


-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: edi67 on January 01, 2005, 03:03:35 PM
wonderful work unknown your suggestions helped me too there:

http://www.simplemachines.org/community/index.php?topic=8415.msg180706#msg180706

grazie super  ;D
Title: Re: Ultimate Shoutbox
Post by: dennis on January 01, 2005, 03:06:46 PM
Me too, that did the fix wonderfully.  Thank you so much Unknown, you are the best  :D

Dennis
Title: Re: Ultimate Shoutbox
Post by: andyat11 on January 01, 2005, 05:10:28 PM
Guys I still need help can you guys whip up me my code for me or what to add for this heading?

(http://www.ehdeals.com/untitled.JPG)
Title: Re: Ultimate Shoutbox
Post by: Webby on January 01, 2005, 05:12:04 PM
That did the trick for me also, but I still get this error :

Quote
8: Undefined index: qstr
Bestand: /home/admin/domains/salesplaza.nl/public_html/forum/Themes/default/shout.template.php (eval?)
Regel: 110

What to do ?
Title: Re: Ultimate Shoutbox
Post by: edi67 on January 01, 2005, 05:15:01 PM
Quote from: [Unknown] on January 01, 2005, 02:54:58 PM
Find, Sources/shout.php:

function shout_display()
{
global $user_info, $db_prefix, $modSettings, $settings, $sourcedir, $scripturl, $txt, $context;


Add after:



$context['canDelete'] = allowedTo('delete_shout');


-[Unknown]

read and apply the unknown istructions and you will solve.
Title: Re: Ultimate Shoutbox
Post by: Webby on January 01, 2005, 05:16:52 PM
Did that, and it still shows the error I mentioned. That's why I posted the problem.........

It shows now :


function shout_display()
{
global $user_info, $db_prefix, $modSettings, $settings, $sourcedir, $scripturl, $txt, $context;
$context['canDelete'] = allowedTo('delete_shout');
Title: Re: Ultimate Shoutbox
Post by: edi67 on January 01, 2005, 05:23:27 PM
strange i had the same errors and making unknown suggestions i resolved.
Title: Re: Ultimate Shoutbox
Post by: Webby on January 01, 2005, 05:36:58 PM
It looks like it's because I use the "old" index.template.php ?!

It shows me this :

(http://www.salesplaza.nl/images/ellende.jpg)
Title: Re: Ultimate Shoutbox
Post by: andyat11 on January 01, 2005, 05:41:15 PM
OK goto EhDeals.com I have text that says the code I put it in boardindex.template.php and I dont know why it dont work plz help
Title: Re: Ultimate Shoutbox
Post by: Webby on January 01, 2005, 05:46:13 PM
I've moved


// Now do the printing...
loadTemplate('shout');
// Run the template!
template_shout_form();


to the top of the shoutbox, and that's why it goes wrong......
Title: Re: Ultimate Shoutbox
Post by: andyat11 on January 01, 2005, 05:50:53 PM
actually I think its a database error visit EhDeals
Title: Re: Ultimate Shoutbox
Post by: Webby on January 01, 2005, 05:53:35 PM
No, it is when I move the above code to the top. So : how can I put the input box to the top of the shoutbox ?
Title: Re: Ultimate Shoutbox
Post by: andyat11 on January 01, 2005, 08:09:54 PM
can someone tell me the code so I can make it an inline frame instead
Title: Re: Ultimate Shoutbox
Post by: Amacythe on January 01, 2005, 09:53:09 PM
I'm getting an internal server error when I try to set the shoutbox to ascending order.  Any ideas?
Title: Re: Ultimate Shoutbox
Post by: Amacythe on January 02, 2005, 02:32:13 AM
I'm also getting tons of errors in my error log:

One of these every time someone clicks a link:

8: Undefined variable: user_info
File: /home/mysite/forum/Themes/default/Errors.template.php (eval?)
Line: 102

And up to ten of these (depending on how many posts there are to the shoutbox):

8: Undefined index: canDelete
File: /home/mysite/forum/Themes/default/shout.template.php (eval?)
Line: 86
Title: Re: Ultimate Shoutbox
Post by: andyat11 on January 02, 2005, 08:36:20 AM
CDan someone tel me what the url would be or the code to put it in an inline frame
Title: Re: Ultimate Shoutbox
Post by: Amacythe on January 02, 2005, 01:57:06 PM
Quote from: Amacythe on January 02, 2005, 02:32:13 AM
I'm also getting tons of errors in my error log:

One of these every time someone clicks a link:

8: Undefined variable: user_info
File: /home/mysite/forum/Themes/default/Errors.template.php (eval?)
Line: 102

And up to ten of these (depending on how many posts there are to the shoutbox):

8: Undefined index: canDelete
File: /home/mysite/forum/Themes/default/shout.template.php (eval?)
Line: 86

found solution here: http://www.simplemachines.org/community/index.php?topic=8415.msg182625#msg182625

But ...
QuoteI'm getting an internal server error when I try to set the shoutbox to ascending order.  Any ideas?
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 02, 2005, 05:11:18 PM
Sorry, I've been away for the New Year. I've uploaded a version 1.22 which should fix the canDelete stuff. The internal server error I expect may be because your server doesn't support temporary tables?

The other problems may come as a result of some of this. Please update the mod and then report back :)
Title: Re: Ultimate Shoutbox
Post by: Bitwiz44 on January 02, 2005, 10:12:15 PM
Thanks, 1.22 works fine. However, I noticed in posts at SMF you will see "Click Here" which is connect to a Http link so when you click , it takes you there.
Reason for asking... When you try a link in the shout box, it breaks the link and is non functional. So, I was thinking, "IF" everywhere in a post or the shout box, it saw Http, it would mask it with "Click here". Is this something that can be done? would be great for the shout box...( Unless I miss somewhere how This could be done)
Thanks.
Title: Re: Ultimate Shoutbox
Post by: Amacythe on January 02, 2005, 10:42:48 PM
I believe the patch has been applied already.  
/me smiles and thanks someone else around here ;)

The server does indeed support temp tables.  I contacted the host and was instructed to start a new subuser and password.  Evidently there were many subuser accounts that were corrupted.  All works great now.  Thank you :)
Title: Re: Ultimate Shoutbox
Post by: Bitwiz44 on January 03, 2005, 01:37:16 AM
Where can I increase the char limit? Currently it seems to be 57.
Thanks.
Title: Re: Ultimate Shoutbox
Post by: andyat11 on January 04, 2005, 12:53:49 AM
<?php
// Version: 1.0 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 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 '
<div class="tborder" style="border-bottom: 0;">
<div class="titlebg" align="center" style="padding: 5px 5px 5px 5px;">'
$txt[102], '</div>
</div>
<table border="0" width="100%" cellspacing="0" cellpadding="5" class="tborder" style="border-bottom: 0;">
<tr>
<td class="windowbg2" valign="middle" align="center" height="60">'
;

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #000000;"><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": 248, "g": 248, "b": 248};
// 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>'
;
}

// Show the "Board name      Topics  Posts    Last Post" header.
echo ' <br>
What would I put here?
<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>'
;

/* 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)
{
// Show the category's name, and let them collapse it... if they feel like it.
echo '
<tr>
<td colspan="5" 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>'
;

// Only if it's NOT 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>
<td class="windowbg" width="6%" align="center" valign="top"><img src="'
$settings['images_url'], $board['new'] ? '/on.gif" alt="' $txt[333] . '" title="' $txt[333] : '/off.gif" alt="' $txt[334] . '" title="' $txt[334], '" border="0" /></td>
<td class="windowbg2" align="left" width="60%">
<a name="b'
$board['id'], '"></a>
<b>'
$board['link'], '</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 '<i class="smalltext"><br />
'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i>';

// 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)
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];

echo '
<i class="smalltext"><br />
'
$txt['parent_boards'], ': 'implode(', '$children), '</i>';
}

echo '
</td>
<td class="windowbg" valign="middle" align="center" width="6%">'
$board['topics'], '</td>
<td class="windowbg" valign="middle" align="center" width="6%">'
$board['posts'], '</td>';

/* 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.) */
echo '
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">
'
$board['last_post']['time'], '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[525], ' '$board['last_post']['member']['link'], '
</span>
</td>
</tr>'
;
}
}
}

// Show the "New Posts" and "No New Posts" legend.
if ($context['user']['is_logged'])
{
echo '
<tr class="titlebg">
<td colspan="2" align="left">
<img src="' 
$settings['images_url'] . '/' $context['user']['language'] . '/new_some.gif" alt="' $txt[333] . '" border="0" />&nbsp;&nbsp;<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_none.gif" alt="' $txt[334] . '" border="0" />
</td>
<td colspan="3" align="right" class="smalltext">'
;
// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
<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>';
echo '
</td>
</tr>'
;
}

echo '
</table>'
;

// Here's where the "Info Center" starts...
echo '
<br />
<br />
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<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. (it's id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b><br />
<span class="smalltext">
'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</span>'
;
}
// 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" border="0" width="20" 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> ' '''<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">'
$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" border="0" width="20" alt="'$txt[332], '" />'$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><br />
<span class="smalltext">'
$txt[200], '</span>
</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">
'
$txt[94], ' '$txt[64], ': <b>'$modSettings['totalTopics'], '</b> &nbsp;&nbsp;&nbsp;&nbsp; '$txt[94], ' '$txt[95], ': <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 class="smalltext">
'
$txt[94], ' '$txt[19], ': <b>'$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' $modSettings['memberCount'] . '</a>' $modSettings['memberCount'], '</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'] && $context['allow_pm'])
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%">
'
$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'], $context['num_users_hidden'] > ' (' $context['num_users_hidden'] . ' ' $txt['hidden'] . ')' ''$context['show_who'] ? '</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">
'
$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><br />
<span class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], $context['allow_pm'] ? ' <a href="' $scripturl '?action=pm">' $txt[662] . '</a>' ''' '$txt[663], '
</span>
</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" value="ON" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>'
;
}

echo '
</table>'
;
}

?>


Code replace with What would I put here
Title: Re: Ultimate Shoutbox
Post by: Atari on January 04, 2005, 01:26:20 AM
is this available in SSI yet?


I'd like to get rid of my stand alone Shout box and use one linked to the forum but on my main page.
;D

Title: Re: Ultimate Shoutbox
Post by: Grudge on January 04, 2005, 07:45:03 AM
andyat will need to use SSI. Atari, the shoutbox has always worked with SSI!

www.p0stwh0res.com/smf/ssi_examples.php

You can see it in action above
Title: Re: Ultimate Shoutbox
Post by: Atari on January 06, 2005, 01:44:59 AM
OMG when did that happen? I read a lot of this thread but admit not all of it. What version is this mod currently working in and/or is it part of it now? I haven't attempted to upgrade mine from RC1 yet


ok re read them all again  :P
Title: Re: Ultimate Shoutbox
Post by: spiketowriss on January 07, 2005, 12:12:44 PM
can someone show me what code n where to put it on my index template? Im having issues following this thread as i aint very good at coding or php. If someone could just type me the code n show me where to place it i would be very grateful :)

Ive tried loads but keep getting load errors. I am wanting it to be jus below the main board section, just above the users online list..
Title: Re: Ultimate Shoutbox
Post by: spiketowriss on January 07, 2005, 01:15:53 PM
<table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table>

is this the code i have to enter? n if so where?
Title: Re: Ultimate Shoutbox
Post by: spiketowriss on January 07, 2005, 01:43:53 PM
is sum1 cud jus show me a working example it would be great :)
Title: Re: Ultimate Shoutbox
Post by: Jerry on January 07, 2005, 11:34:16 PM
here is how I have mine:
http://www.simplemachines.org/community/index.php?topic=8415.msg176923#msg176923

and an example is here:
http://www.raclan.org/forums
Title: Re: Ultimate Shoutbox
Post by: Atari on January 09, 2005, 03:46:19 AM
OK fianally went through all the upgradein but I can't get the shout to show. I checked the settinga and can't finad any place to "enable" it. I'm trying to put it in an Iframe with this code.....
<IFRAME ID="Shout" NAME="ShoutName" SRC="smf/SSI.php?ssi_function=shoutbox"

WIDTH="190"
HEIGHT="2000"
MARGINWIDTH="5"
MARGINHEIGHT="5"
HSPACE="5"
VSPACE="0"
FRAMEBORDER="1"
SCROLLING="no"
ALLOWTRANSPARENCY="true">
</IFRAME>   

Any ideas what I'm missing?  :'(

Sample page : http://www.oldskoolgamers.com/index2.php
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 09, 2005, 05:45:29 AM
The ssi_function should be shout, not shoutbox I believe - see here:

http://www.p0stwh0res.com/smf/SSI.php?ssi_function=shout
Title: Re: Ultimate Shoutbox
Post by: OvermindDL1 on January 09, 2005, 10:12:36 AM
Would you mind if I wrapped a module around it on the portal I am making (http://www.overminddl1.com)?  It would still be required to install your mod, the module would just access, display, etc...  It would actually be easier to build it into a standalone module, but for the sake of all, I'd just wrap what I needed.
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 09, 2005, 05:44:07 PM
As long as the credit is still there in some form (Both to myself and Greg Haase who actually made the original - only from a install point of view), and the portal is built for SMF then that is perfectly fine with me :)
Title: Re: Ultimate Shoutbox
Post by: Atari on January 09, 2005, 06:33:37 PM
OK got it running. Next question is how do I get the view all/(orwhen you click on someones name) to open in it's own window and not in the iframe? Also can I edit the template for just the shout? I'd like to getthe color scheme with the rest of the website. Black background with white and red text. Looking at the shout.php but not sure what is controling the style.

<edit>
I know if I don't use iframe it will take my formating from my page but I like the "safety" of the iframe. ( it wont break my template if some one post large picture or the like)
</edit>

you can see them both right now at www.oldskolgamers.com/index2.php
iframe and below it is without iframe.

I know the shout.template needs edited but i can't tell what effects what as far as style.
Perhaps adding this to settings in next release?  ;)

*Oh and for Unknown why do I keep losing my images? My signature here, has a picture that is linked from my forum yet it gives me the big 'ol X after a few days. I still works On my forum  ??? ???
Title: Re: Ultimate Shoutbox
Post by: ^Raven^ on January 10, 2005, 01:19:30 AM
Okay perhaps I'm dense but I don't understand how I get the shoutbox to show.  David kindly installed the mod, upgraded it and everything, and I see in the Admin Center how I can work with the features to tweak the shoutbox.  But, how do I get it to appear on my forum?  Do I gotta type like <SMFShout> somewhere in the template or something?
Title: Re: Ultimate Shoutbox
Post by: Jerry on January 10, 2005, 01:54:42 AM
',smfshout(),'

look on page 8 of this thread for one example that I posted, this makes it show on the left of the forum. . . but it gives you the idea :)
Title: Re: Ultimate Shoutbox
Post by: casper_shadowrider on January 10, 2005, 10:40:20 AM
Quote from: Bitwiz44 on January 03, 2005, 01:37:16 AM
Where can I increase the char limit? Currently it seems to be 57.
Thanks.

Just bumping this question, which I also want to change.

I also have other questions that have been asked, but no answer yet

1.  Can the smilies be added via a pop-up select box, and

2.  Can the code be made to automattically recognise and format links.

This is a very nice mod, which I have running on a site, showing on all pages, including an integrated coppermine gallery.

Many thanks.
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 10, 2005, 01:11:07 PM
Atari,

I'm not sure how you get View All to open in the main window. The idea of a iframe is the window acts like a seperate browser window, so honestly have no idea - except you'd probably need to use javascript to achieve it. Otherwise could you put view all outside of the iframe?

Styles use the same name as the SMF classes (titlebg, windowbg, catbg). Text also uses a class called smtxt, but this isn't defined as part of the mod. If I were you instead of having the src of the iframe SSI.php itself, I'd create a "dummy" php file called something like shoutbox.php, and have this include SSI.php and also put a inline stylesheet at the top of it, something like:


<?php
include_once('SSI.php');
<
STYLE SHEET STUFF HERE>
ssi_shoutbox();
?>



I don't know where the character limit is coming from, apart from this line in shout.template.php:

<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />


If you make maxlength = 500 does it still have a limit?

I think it should automatically do links, not sure why it isn't - BBC works though doesn't it?
Title: Re: Ultimate Shoutbox
Post by: ^Raven^ on January 10, 2005, 02:03:37 PM
Quote from: Jerry on January 10, 2005, 01:54:42 AM
',smfshout(),'

look on page 8 of this thread for one example that I posted, this makes it show on the left of the forum. . . but it gives you the idea :)

Thanks for the info.  I tried that but kept receiving an error message.  David investigated, and fixed the issue, seems I didn't have an echo statement in there (I don't know the PHP so that causes problems) plus there were some other issues he resolved.  I did notice, and it could have been just for me, but putting the shoutbox in a table in my sidebar caused the forum to go wonky.  This could have been just for my forum or it could be for all that were migrated from YaBBSE.  The contents were squished to the right and two tables, above the shoutbox, spanned the entire width of the page.  I effected the easy resolution of putting the shoutbox at the bottom of the forum.  Not my favorite spot for one but I'll likely move it to its own page in the near future when I get the no sidebar theme operational.
Title: Re: Ultimate Shoutbox
Post by: i-bystander on January 10, 2005, 03:22:36 PM
I posted this under Support, but perhaps it will be more appropriate here:

I uninstalled Ultimate ShoutBox from the Package Manager and I got this error message:

Fatal error: Call to undefined function: smfshout() in /home/user/domains/mydomain.com/public_html/smf/Sources/Load.php(1036) : eval()'d code on line 286

I can't access the forum anymore, so I can't access the admin settings to see what happened. Any ideas? Thanks.
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 10, 2005, 03:23:53 PM
Visit your forum using ?theme=2 in the URL (To temporarily change to the "classic" theme). Then go to admin -> Theme settings and options -> Select Default theme => Edit index.template.php

Then remove the call to smfshout()
Title: Re: Ultimate Shoutbox
Post by: i-bystander on January 10, 2005, 03:56:39 PM
Ok, Matt - that did it. I commented out the line calling smfshout() earlier, but I guess that doesn't work.

Another question: I already uninstalled the shoutbox, but I'm still seeing it in my features and options - how can I get rid of it? A look at Package Manager says it's not installed anymore (no green box). Incidentally, the main reason why I deleted it in the first place is because I had two ShoutBox/es in my features and options page - is that normal? 
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 10, 2005, 05:25:29 PM
Ummm... no. You obviously installed it twice in error. The result of this is that it hasn't uninstalled correctly. Not sure what mess your files may be in, personally I'd recommend just uploading a new modSettings.php IF you don't have any mods installed. Otherwise edit the modSettings.php file on your server and remove the references to the shoutbox area (Search for shout and remove the chunk of stuff there)
Title: Re: Ultimate Shoutbox
Post by: casper_shadowrider on January 10, 2005, 06:32:51 PM
Quote from: Grudge on January 10, 2005, 01:11:07 PM
I don't know where the character limit is coming from, apart from this line in shout.template.php:

<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />


If you make maxlength = 500 does it still have a limit?

Yes, that worked a treat, thanks.


Quote from: Grudge on January 10, 2005, 01:11:07 PM
I think it should automatically do links, not sure why it isn't - BBC works though doesn't it?

Sorry, they do work, a breakdown in understanding at this end.

Thanks for a great mod.  You can see the install I've set up here (http://www.photo-sense.co.uk/gallery2/home.php?), which is smf/coppermine integrated site, with the shoutbox on every page.  Please note this is still under construction and testing, and only open to the management team of the site, so please don't register.


To answer the earlier question about iframes, I could not get coppermine to accept the ssi method, so used the exact method you suggested above, called it into a blank php page within coppermine, and then called that page from the iframe.

I had to add the formating to the new php file for IE to show the correct styles, and change the links to target="blank", and it now all works perfectly.

Title: Re: Ultimate Shoutbox
Post by: Webby on January 11, 2005, 04:32:52 AM
Quote from: Grudge on November 30, 2004, 05:40:24 PM
Webby, Apologies, the line with str_replace on should be:

$message = preg_replace('~\[img.*?\].+?\[/img\]~is', '', $_POST['message']);


Sorry it took so long to get a working reply!

It doesn't show the right smilies in the "shout-archive", how can I change that too ?
Title: Re: Ultimate Shoutbox
Post by: pj on January 14, 2005, 01:07:30 PM
Hi
Can somebody help me...and give detailed info on how to install ultimate shoutbox  mod manually.
I cant use Package Manager ...my host is safe mode  :(

I have SMF 1.0 RC2 

Title: Re: Ultimate Shoutbox
Post by: pj on January 14, 2005, 01:18:05 PM
I have done that,  but after I get something about the subs file and the forum dosent work anymore...
Title: Re: Ultimate Shoutbox
Post by: pj on January 14, 2005, 03:26:45 PM
I  have done so I`m not in safe mode now, but now I get this when I tried to install Ultimate Shoutbox from the package manager...

Fatal error: packageinstall(): Failed opening required '/home/virtual/site89/fst/var/www/html/smf/Packages/temp/shoutPdb.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site89/fst/var/www/html/smf/Sources/Packages.php on line 437

I test to install the mods SMF Arcade from the package manager and this install fine...

What do I wrong  :(
Title: Re: Ultimate Shoutbox
Post by: millenio on January 16, 2005, 02:53:31 AM
how much sql space any server bandwidth does this use per shout?
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 16, 2005, 11:07:56 AM
SQL space is minimal, less than a message on your board. Bandwidth will obviously depend on how many views your site gets. I'd estimate with all the HTML etc you'd be sending 1kB of data per page load to the user (8 shouts at 100 characters plus HTML around it). The main thing is it will add an extra query to your page load, but that doesn't effect space nor bandwidth.
Title: Re: Ultimate Shoutbox
Post by: LordAnki on January 17, 2005, 01:43:35 PM
I tried using the package manager to install the shoutbox and it dosnt show up anywhere on my board. The settings thing in the admin panel works but when i am viewing my board it dosnt show up anywhere.
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 17, 2005, 01:52:42 PM
You need to manually add smfshout() to your templates to make it appear (As only you can decide WHERE you want it to show). Read this thread for lots of ideas and comments on this. :)
Title: Re: Ultimate Shoutbox
Post by: LordAnki on January 17, 2005, 07:04:25 PM
what template file do i put the


smfshout()


function?
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 18, 2005, 03:32:42 AM
Ok, I am trying to add the Shout Box to my DGS Under the Menu with the same type Box as the menu on the index.template.php ...  I want it so up on every page under the menu. 

Although, I am not sure where to put it.

// Show the menu here, according to the menu sub template.
echo '<table id="menu_background" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
<td align="left" valign="top"><img border="0" src="' . $settings['images_url'] . '/layout/dg_menu_left.gif" width="25" height="28" alt="left" /></td>
<td align="center" valign="bottom"><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'], '" style="margin: 3px; 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 1ex;" />'; template_menu();
  echo '</td>
<td align="right" valign="top"><img src="' . $settings['images_url'] . '/layout/dg_menu_right.gif" width="25" height="28" alt="right" /></td>
  </tr>
</table><br />';
}


I have tried and tried everything, anyone care to take a shot ?? Basically I am looking to add a identical Box like the menu under the menu with the shout box in it.

www.DanceDancekc.com/Forums/  test:test
Title: Re: Ultimate Shoutbox
Post by: Webby on January 18, 2005, 04:06:42 AM
Quote from: Webby on January 11, 2005, 04:32:52 AM
Quote from: Grudge on November 30, 2004, 05:40:24 PM
Webby, Apologies, the line with str_replace on should be:

$message = preg_replace('~\[img.*?\].+?\[/img\]~is', '', $_POST['message']);


Sorry it took so long to get a working reply!

It doesn't show the right smilies in the "shout-archive", how can I change that too ?
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 18, 2005, 05:40:14 AM
Another Quick Question? I would like to Format the "Shouts" from center to LEFT so all the little X's line up on the left.  Where can I edit this??
Title: Re: Ultimate Shoutbox
Post by: Midgard on January 18, 2005, 05:41:49 AM
<div align="left">Shout</div>
<span style="float: left">Shout</span>

e.g.
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 18, 2005, 11:44:51 AM
Quote from: Midgard on January 18, 2005, 05:41:49 AM
<div align="left">Shout</div>
<span style="float: left">Shout</span>

e.g.

Tried, although maybe we are not putting in the same place or right place?  Where do I need to change or add this? I added and changed in index.template, although thinking maybe in another file?

Solved: If anyone else is intrested, in shout.template.php on or around line 76

Search echo '
<center>';
// Scrolling?


Replace echo '
<left>';
// Scrolling?


Maynot the the RIGHT way to do this, but it worked the way I wanted.
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 18, 2005, 04:24:43 PM
I have a new idea here, is it possible to make the senders name the Color defined in the users group? Example on our site, Admins are a RED. I would like to make it where when a Admin posts something in the Shout their name would be that Red Color.

I would also like to change the color of the text somehow.  I have an ideas for this;

First would alternate the text colors.  Just two colors would be needed to kinda separate the texts.  Alternative would be to Bold line 1 and NonBold on line 2.  Alternating Bold/nonBold on each line.

Thanks for any help! :)

edit:
Sorry for the Double Post, I could have swore there was another post there after mine.
Title: Re: Ultimate Shoutbox
Post by: 9210 on January 19, 2005, 02:51:20 PM
This is the 4th MOD i'd tried to install, but again, troubles.......It installs allright, but ONLY in the default theme....So now I'm stuck with empty fields in the settings page in the forum (Features and Options).......Why is this??? And how to solve it?
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 19, 2005, 03:27:55 PM
You need to open the .mod file, and find files that are in the Theme/ directory. Open those files and make manual edits to those files as instructed in the .mod file...

Currently all packages will only modify the default templates. So if you have another theme you will need to modify it yourself.

Maybe someone else can explain this better for you.  If this is the FIRST time you have done this, it will be a little scary and overwhelming. But it is way easier than it looks at first.  Also, make a BACKUP of the file you are going to edit so if you mess up, and you will, you can start over.

If you need some help, I can try to help you some more.  Again in this mod you have to add the SSI function to where you want the shoutbox.
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 19, 2005, 05:47:51 PM
Actually, on the shoutbox you needn't make any changes. 9210, would the empty fields be because you're using a different language that isn't english??

If you read this thread you'll find plenty of examples on how to get the shoutbox to show, it basically just requires you to add smfshout() to your template - it's mentioned so many times in this topic it's not funny :D
Title: Re: Ultimate Shoutbox
Post by: 9210 on January 20, 2005, 02:46:14 PM
I changed the language to English and the options appeared. Tried to install it again, but for me, (a real PHP n00b), it's just too much of a hassle to get it working. Too much template changing etc, to afraid to ****** something up....Oh well....just got to live with it, I guess...... :'( :'(
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 20, 2005, 03:20:12 PM
Shouldn't have tried to install it twice. Basically, the two things you needed to do are:

1) With it installed using ftp go into your forum directory then Themes/default/languages/Modifications.english.php and COPY this will to Modifications.language.php where language is the name of the langauge you are using. That will make the options always appear in your language.

2) In your theme, open up index.template.php, and add:
<div>' . smfshout() . '</div>

Somewhere in the file near where you think you want it. If doing that gives you an error change it to say:
echo '<div>' . smfshout() . '</div>';

Then you'll have to play with it to get the HTML to work, but it's a start.
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 20, 2005, 03:54:55 PM
Quote from: Alisha on January 18, 2005, 04:24:43 PM
I have a new idea here, is it possible to make the senders name the Color defined in the users group? Example on our site, Admins are a RED. I would like to make it where when a Admin posts something in the Shout their name would be that Red Color.

I would also like to change the color of the text somehow. I have an ideas for this;

First would alternate the text colors. Just two colors would be needed to kinda separate the texts. Alternative would be to Bold line 1 and NonBold on line 2. Alternating Bold/nonBold on each line.

Thanks for any help! :)

Thought I might ask again?? Maybe some place to start?
Title: Re: Ultimate Shoutbox
Post by: Champi on January 20, 2005, 09:30:02 PM
Fatal error: Call to undefined function: smfshout() in /home/champi.nl/smf/Sources/Load.php(1040) : eval()'d code on line 314

i got this message when installing shoutbox... i have installed 1.0.1... i put al files manual trough ftp atthe directories and run shoutdb.php...  ???

Title: Re: Ultimate Shoutbox
Post by: Alisha on January 21, 2005, 12:07:22 AM
Quote from: champi.nl on January 20, 2005, 09:30:02 PM
Fatal error: Call to undefined function: smfshout() in /home/champi.nl/smf/Sources/Load.php(1040) : eval()'d code on line 314

i got this message when installing shoutbox... i have installed 1.0.1... i put al files manual trough ftp atthe directories and run shoutdb.php...  ???



I had the same problem, its how you are using the shout function. All depends on where you are putting it in the code.

This worked well for me. Although, it might not work, so you will have to play with it to make it work.

        // Shout Box Start
        echo '
<tr>
<td class="catbg" colspan="2">"Shout Outs"</td>
        </tr><tr>
<td class="windowbg2" align="left" colspan="2"><span class="smalltext">', smfshout(), '</span></td>
        </tr>';
Title: Re: Ultimate Shoutbox
Post by: TedNigma on January 21, 2005, 02:45:29 AM
Installed it on 1.0.1..  nothing changed except for the admin..  There is a shout box variable drop down menu..  However, browsing the board, nothing that says 'Shout Box' from a user stand point..

Any help?  Or am I just a 'Dork Fish'?
-Blue Comedy Tour Rides Again-

Thanks,
LinuxMWB
Title: Re: Ultimate Shoutbox
Post by: Jerry on January 21, 2005, 02:47:33 AM
you need to add it to your theme manually. with ',smfshout(),' you can check this post for some examples... :)
Title: Re: Ultimate Shoutbox
Post by: TedNigma on January 21, 2005, 02:53:09 AM
Quote from: Jerry on January 21, 2005, 02:47:33 AM
you need to add it to your theme manually. with ',smfshout(),' you can check this post for some examples... :)

Thanks..  I suppose I should RTFM before I ask a 'Dork Fish' question.  LOL.. 

I did not realize there was a variable involved.  The package manager said 'Pack installed successfully' so i just figured it would 'work'..  ROFL!!  I've been doing this long enough to realize that is never the case.   ;)

I DO love the software..  and the community is the best..
Title: Re: Ultimate Shoutbox
Post by: Champi on January 21, 2005, 07:07:44 AM
"Shout Outs"
Fatal error: Call to undefined function: smfshout() in /home/champi.nl/smf/Sources/Load.php(1040) : eval()'d code on line 301 or

"Shout Outs"
Fatal error: Call to undefined function: smfshout() in /home/champi.nl/smf/Sources/Load.php(1040) : eval()'d code on line 326

at the place where i put it... i get this message.. are you sure that could be the only problem... i also made changes to default template.. i get the same error there....

also with default theme... anyone idea  ???
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 21, 2005, 01:00:32 PM
Quote from: champi.nl on January 21, 2005, 07:07:44 AM
"Shout Outs"
Fatal error: Call to undefined function: smfshout() in /home/champi.nl/smf/Sources/Load.php(1040) : eval()'d code on line 301 or

"Shout Outs"
Fatal error: Call to undefined function: smfshout() in /home/champi.nl/smf/Sources/Load.php(1040) : eval()'d code on line 326

at the place where i put it... i get this message.. are you sure that could be the only problem... i also made changes to default template.. i get the same error there....

also with default theme... anyone idea  ???


I mentioned I am not sure about anything... Just a noob trying to help.  Can you post your Code where you have the  smfshout()  and the Function code from your SSI.PHP.  I do recall that it isn't an error in the load.php. That I am sure about! :)
Title: Re: Ultimate Shoutbox
Post by: BabyGz on January 21, 2005, 02:39:00 PM
Hello ppl...

How do you make the shoutbox auto refresh every 1 minute or so?..
Is that possible?.. or do you have to autorefresh the whole page?..
thanks
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 21, 2005, 02:45:40 PM
Quote from: BabyGz on January 21, 2005, 02:39:00 PM
Hello ppl...

How do you make the shoutbox auto refresh every 1 minute or so?..
Is that possible?.. or do you have to autorefresh the whole page?..
thanks

Its a function, so you would have to refresh the whole page.  Unless you wanted to put the Shoutbox in another empty file, set its refresh for 1 min, and add it to your forum page with a iframe or in-line code.  This I have not tried but I have seen it work on other sites, and I was told this is how you do it. 


Example:
include('/path/to/script/pages/shoutbox.html');

This is place the Shoutbox into the template, Now I am not sure if this will refresh or not.

<iframe src="http://www.yourdomain.com/phpfiles/shoutbox.html" name="frame1" scrolling="no" frameborder="no" align="center" height = "300px" width = "300px">
</iframe>


You'll need to adjust height/width to meet the size of the table you have generated. This should work on most HTML 4.0+ compliant browsers.

These are just same type codes, you will need to edit them to look right and show the refresh.   If they will not auto refresh, then I would add a little "Refresh" button into the Box on the Iframe option. then it will just refresh what is inside the frame.
Title: Re: Ultimate Shoutbox
Post by: Champi on January 21, 2005, 03:22:40 PM
i ve put the shoutbox at the bottom (between copyright and loadtime) ... i made changes in index.template.php....

around line 283:

// The main content should go here.  A table is used because IE 6 just can't handle a div.
   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}

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

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

// 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"><!--
         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 valign="middle" align="center" style="white-space: nowrap;">
               ', theme_copyright(), '<br /><font size="1">
                   </font>
             </td>
         </tr>

      </table>';
// Show shoutbox!
<table>
<tr>
<td>
' , smfshout() , '
</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>';

   echo '
      </div>';

What function, lines do you want to know of my ssi.php file....??

greetzz
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 21, 2005, 04:14:58 PM
// Show shoutbox!
<table>
<tr>
<td>
' , smfshout() , '
</td>
</tr>
</table>


First thing I can see is there is NO echo ' statment.  If you are putting html into PHP you need to echo it.

        // Shout Box Start
        echo '
<tr>
<td class="catbg" colspan="2">"Shout Outs"</td>
        </tr><tr>
<td class="windowbg2" align="left" colspan="2"><span class="smalltext">', smfshout(), '</span></td>
        </tr>';


Also, you are placing a table inside of a table here, I am not sure of what skin you are using, but this might now look / work right.  I added mine under tha users online section.

At the bottom of your SSI.php you will see somthing like

function ssi_smfshout ($message_id = null, $output_method = 'echo')

Everything after that untill ';  This is the Function you are trying to call up in the template file.
Title: Re: Ultimate Shoutbox
Post by: Champi on January 21, 2005, 06:18:50 PM
 
"Shout Outs"
Fatal error: Call to undefined function: smfshout() in /home/champi.nl/www/smf/Sources/Load.php(1040) : eval()'d code on line 300


i followed your advise with echo... was forgotten that... i am sorry...

i still got the same error message... perhaps something else went wrong...

i also do not see the specific rule in the ssi.php file.. i had to install everything manually.. do i also have to modify that file...add that rule? i am a little confused...  perhaps you can post me an example of the default template... and ssi file.. i can check then what the real problem is..

i use the black template...

thanx for your time..
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 21, 2005, 06:25:35 PM
Check your .mod file:

<edit file>
SSI.php
</edit file>

<search for>
?>
</search for>

<add before>
function ssi_shout()
{
global $sourcedir;

include_once("$sourcedir/shout.php");
shout_display();
shout_form();
}
</add before>

<edit file>
ssi_examples.php
</edit file>

<search for>
<h3>Recent Calendar Events Function: &lt;?php ssi_recentEvents(); ?&gt;</h3>
<?php ssi_recentEvents(); ?>

<hr />
</search for>

<add after>
<h3>Shoutbox: &lt;?php ssi_shout(); ?&gt;</h3>
<?php ssi_shout(); ?>

<hr />
</add after>


If you didnt add this to the SSI.php then well that would explain a lot! lol

Here is my SSI.php entry:

function ssi_shout()
{
global $sourcedir;

include_once("$sourcedir/shout.php");
shout_display();
shout_form();
}


Maybe this will solve the problem! :)
Title: Re: Ultimate Shoutbox
Post by: Champi on January 21, 2005, 06:41:44 PM
you are right... i will give it a good try now... that package manager is confusing.....  better do everything manual...  ;)
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 21, 2005, 06:52:46 PM
Quote from: champi.nl on January 21, 2005, 06:41:44 PM
you are right... i will give it a good try now... that package manager is confusing..... better do everything manual... ;)

Well in this case if you used the Manager with the auto install, I assumed you did,  it would have automatically changed what you needed. The problem most people have with the manager is that it only changes the "default" theme files.  You have to change the custom themes your self. 

I always try to use the manager because a theme that does not use a specified file, ie SSI.php, it will use the information in the default theme. This makes your install a lot easier. Just locate the /$themedir/ files in the .mod file and see what ones are in your theme and only edit those. 

An example is I installed a message bar showing how many PMs are used out of allowed. The files that required a change were not found in any of my themes except the default. Well Once I changed the default files it appeared in EVERY theme I have installed. This make sense?
Title: Re: Ultimate Shoutbox
Post by: Champi on January 21, 2005, 07:39:04 PM
you are right... but the problem with my package manager is that it does not edit the files... it says succes but there is no succees... i am sure that i ve the good ftpdetails and the maps are chmodded correctly...
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 21, 2005, 07:42:01 PM
Quote from: champi.nl on January 21, 2005, 07:39:04 PM
you are right... but the problem with my package manager is that it does not edit the files... it says succes but there is no succees... i am sure that i ve the good ftpdetails and the maps are chmodded correctly...

Ok, now that is over my scope.. No idea why it wouldn't... hmmm
Title: Re: Ultimate Shoutbox
Post by: TedNigma on January 22, 2005, 04:40:49 PM
Quote from: Jerry on January 21, 2005, 02:47:33 AM
you need to add it to your theme manually. with ',smfshout(),' you can check this post for some examples... :)

Geeze, amazing what you can learn if you read the whole thread.    ::)

Thanks for being kind, and I got it to function.

Yes, I play a Dork Fish in real life.   ;D
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 22, 2005, 04:46:28 PM
Quote from: champi.nl on January 21, 2005, 07:39:04 PM
you are right... but the problem with my package manager is that it does not edit the files... it says succes but there is no succees... i am sure that i ve the good ftpdetails and the maps are chmodded correctly...

Did you ever get yours working ??
Title: Re: Ultimate Shoutbox
Post by: Webby on January 23, 2005, 11:07:53 AM
Quote from: Webby on January 11, 2005, 04:32:52 AM
Quote from: Grudge on November 30, 2004, 05:40:24 PM
Webby, Apologies, the line with str_replace on should be:

$message = preg_replace('~\[img.*?\].+?\[/img\]~is', '', $_POST['message']);


Sorry it took so long to get a working reply!

It doesn't show the right smilies in the "shout-archive", how can I change that too ?

???
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 23, 2005, 01:59:05 PM
Webby, do you just mean you want that same thing in the archive? If so:

Find:

while($row = mysql_fetch_array($request))
$context['arc_shouts'][] = array(
'time' => timeformat($row['time']),
'id' => $row['ID_SHOUT'],
'message' => doUBBC(censorText($row['message'])),
'memberID' => $row['ID_MEMBER'],
'displayname' => $row['displayname'],
'email' => $row['email']
);


Replace:

while($row = mysql_fetch_array($request))
{
$row['message'] = preg_replace('~\[img.*?\].+?\[/img\]~is', '', $row['message']);
$context['arc_shouts'][] = array(
'time' => timeformat($row['time']),
'id' => $row['ID_SHOUT'],
'message' => doUBBC(censorText($row['message'])),
'memberID' => $row['ID_MEMBER'],
'displayname' => $row['displayname'],
'email' => $row['email']
);
}
Title: Re: Ultimate Shoutbox
Post by: danking on January 23, 2005, 03:27:48 PM
Hi

I would like my shoutbox at the top of my forum here is my forum  www.connexions.mfhosting.com/smf or www.peertopeerchat.tk I would like it like the one in Invision board instead of on the left e.g.  www.kompletlywyred.com/vbtt/ also I cant seem to adjust the amount of letters allowed in shouts by the admin panel I would be happy to have it as unlimited but cant set it atm. So my main query is the shoutbox at the top like the e.g. given and how to do it step by step as im very new to this.

Thanks
Title: Re: Ultimate Shoutbox
Post by: Webby on January 24, 2005, 03:00:51 AM
Quote from: Grudge on January 23, 2005, 01:59:05 PM
Webby, do you just mean you want that same thing in the archive? If so:

Yes :)

Although this solution doesn't work.......
Title: Re: Ultimate Shoutbox
Post by: Webby on January 24, 2005, 04:04:14 AM
This works for me :

Quote
   while($row = mysql_fetch_array($request))
{
      $row['message'] = doUBBC($row['message']);
      $row['message'] = preg_replace('~/' . $user_info['smiley_set'] . '/~is', '/shoutsmiley/', $row['message']);
      $context['arc_shouts'][] = array(
         'time' => timeformat($row['time']),
         'id' => $row['ID_SHOUT'],
         'message' => doUBBC(censorText($row['message'])),
         'memberID' => $row['ID_MEMBER'],
         'displayname' => $row['displayname'],
         'email' => $row['email']
      );
}
Title: Re: Ultimate Shoutbox
Post by: danking on January 24, 2005, 08:16:53 AM
Quote from: danking on January 23, 2005, 03:27:48 PM
Hi

I would like my shoutbox at the top of my forum here is my forum  www.connexions.mfhosting.com/smf or www.peertopeerchat.tk I would like it like the one in Invision board instead of on the left e.g.  www.kompletlywyred.com/vbtt/ also I cant seem to adjust the amount of letters allowed in shouts by the admin panel I would be happy to have it as unlimited but cant set it atm. So my main query is the shoutbox at the top like the e.g. given and how to do it step by step as im very new to this.

Thanks


anyone please
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 24, 2005, 01:42:09 PM
Quote from: danking on January 24, 2005, 08:16:53 AM
Quote from: danking on January 23, 2005, 03:27:48 PM
Hi

I would like my shoutbox at the top of my forum here is my forum www.connexions.mfhosting.com/smf or www.peertopeerchat.tk I would like it like the one in Invision board instead of on the left e.g. www.kompletlywyred.com/vbtt/ also I cant seem to adjust the amount of letters allowed in shouts by the admin panel I would be happy to have it as unlimited but cant set it atm. So my main query is the shoutbox at the top like the e.g. given and how to do it step by step as im very new to this.

Thanks


anyone please

I am lost to what you need to know? Its all in the thread, Find where you want it, and Add your Function, ssi_smfshout.  Poof Done... Tweak it a little and make it perfect.

You want it on the top, add it to the top!

Title: Re: Ultimate Shoutbox
Post by: danking on January 24, 2005, 01:45:30 PM
What I would like to kow is the code of how to add it to the top i said I am new to this all I want to know is the code to add it to the top if anyone could and I showed a example of what I want it to look like  :)
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 24, 2005, 01:50:18 PM
       // Shout Box Start
        echo '
<tr>
<td class="catbg" colspan="2">"Shout Outs"</td>
        </tr><tr>
<td class="windowbg2" align="left" colspan="2"><span class="smalltext">', smfshout(), '</span></td>
        </tr>';


This is my code and has worked on 7 themes.  If this doesn't work there are at least 30 other versions 'IN THIS THREAD' to look at and use...  These are all examples. of course you need to modify it to what you want on your site.
Title: Re: Ultimate Shoutbox
Post by: danking on January 24, 2005, 02:02:36 PM
Ok great  I would like my shoutbox exactly like yours but at the top of my forum would it be possible for you to set tyhat code so it would do that? and where abouts do I put this code aswell? Thanks for all your help. :)
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 24, 2005, 02:10:53 PM
Quote from: danking on January 24, 2005, 02:02:36 PM
Ok great I would like my shoutbox exactly like yours but at the top of my forum would it be possible for you to set tyhat code so it would do that? and where abouts do I put this code aswell? Thanks for all your help. :)

No this isn't possible for me to do, I don't know your templates, theme, or what you think is right.  This is what you NEED to do for your site.. This code will work at the top as it is on my site. I had it there, didn't like it, moved it. 

But not there is no way *I* can do that for you... I wouldn't have any idea where to start or what to code with out knowing your templates.
Title: Re: Ultimate Shoutbox
Post by: nk111 on January 25, 2005, 12:35:26 PM
Hi there,

i have just one question regarding this mod.

1. Is it possible to install it with the package manager?

I'm sorry, but i found so many instructions on how to install this mod but i dont know
which one is the definite one...

I tried it again and again and after setting alle chmod's i still get stuck with this error:

2: copy(index.php~): failed to open stream: Permission denied
Datei: /home/www/einsweb/_md/mad-d-sign.com/smf/Sources/Subs-Package.php
Zeile: 1285

Any Ideas?

regards
Nico
Title: Re: Ultimate Shoutbox
Post by: nk111 on January 25, 2005, 05:51:22 PM
Ok,

took me lots of tries but i figured it out...

i had to uncheck the "create backups ... with character (~) at the end" checkbox
under "install options".

Seems my server has a problem with such filenames...

anyway

maybe this helps someone else

regards

Nico
Title: Re: Ultimate Shoutbox
Post by: Ryan on January 25, 2005, 06:09:03 PM
All the confusion!

is becuase people are calling the function ssi_smfshout

When it isnt that its ssi_shout...


<?php
// Shout Box Start
        echo '
', ssi_shout(), '';
?>
Title: Re: Ultimate Shoutbox
Post by: Krispl on January 25, 2005, 06:19:10 PM
how much shoutbox slow down forum ? how many question to  mysql ?
Title: Re: Ultimate Shoutbox
Post by: Ryan on January 25, 2005, 06:22:54 PM
But still ive used the ssi include...

And this..
<?php
// Shout Box Start
       echo '
', ssi_shout(), '';
?>

And yet im still getting 1000's of error logs! Its killing my mysql datasbase with all the activity!

What shud i do :(
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 25, 2005, 06:34:11 PM
Quote from: M3THOD on January 25, 2005, 06:22:54 PM
But still ive used the ssi include...

And this..
<?php
// Shout Box Start
        echo '
', ssi_shout(), '';
?>

And yet im still getting 1000's of error logs! Its killing my mysql datasbase with all the activity!

What shud i do :(


Never have used the SSI_Shout  never heard of it, On my site we use ', smfshout(), ' and works just fine, no errors or anything..  There is NO SSI involved except in that fact that it uses the SSI File.

', smfshout(), '  if you look down a bit, I made a post that came DIRECTLY from my template code.   
Title: Re: Ultimate Shoutbox
Post by: Ryan on January 25, 2005, 06:38:28 PM
Nope!

This is taken from the .mod file itself..

<edit file>
ssi_examples.php
</edit file>

<search for>
<h3>Recent Calendar Events Function: &lt;?php ssi_recentEvents(); ?&gt;</h3>
<?php ssi_recentEvents(); ?>

<hr />
</search for>

<add after>
<h3>Shoutbox: &lt;?php ssi_shout(); ?&gt;</h3>
<?php ssi_shout(); ?>

<hr />
</add after>
Title: Re: Ultimate Shoutbox
Post by: nk111 on January 25, 2005, 07:46:35 PM
Hi there,

i just found a bug regarding the max characters function.
It won't work if you type one single word  without spaces
and a length of more then three times of the maxlength setting.

Or with other words: When you type in one very long word and
have a quite low setting vor the maxlength seting the code will
do a maximum of 2 line breaks.

Example: max characterlength: 20
Break words after: 17

if you now type in a word of about 70 'W's this will happen:

wwwwwwwwwwwwwwwww...
wwwwwwwwwwwwwwwww...
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww



solution:

change (in shout.php)

    while ($mlimit >= $mcounter)
    {
      $wordlength = strlen($message[$mcounter]);
        if ($wordlength > $modSettings['shoutmaxchr'])
        {
          $firsthalf = substr($message[$mcounter], 0, $modSettings['shoutsplitchr']) . '...';
          $secondhalf = substr($message[$mcounter], ($modSettings['shoutsplitchr'] - $wordlength));
          $returned = array_splice($message, $mcounter, 1, array($firsthalf, $secondhalf));
        }
      $mcounter++;
    }


to:

    while ($mlimit >= $mcounter)
    {
      $wordlength = strlen($message[$mcounter]);
        if ($wordlength > $modSettings['shoutmaxchr'])
        {
          $firsthalf = substr($message[$mcounter], 0, $modSettings['shoutsplitchr']) . '...';
          $secondhalf = substr($message[$mcounter], ($modSettings['shoutsplitchr'] - $wordlength));
          $returned = array_splice($message, $mcounter, 1, array($firsthalf, $secondhalf));
          $mlimit = count($message) - 1;
        }
      $mcounter++;
    }


If we add entries to the array then we should set the upper bound
again. right?  ;)

regards
Nico
Title: Re: Ultimate Shoutbox
Post by: Alisha on January 25, 2005, 10:03:03 PM
Quote from: M3THOD on January 25, 2005, 06:38:28 PM
Nope!

This is taken from the .mod file itself..

<edit file>
ssi_examples.php
</edit file>

<search for>
<h3>Recent Calendar Events Function: &lt;?php ssi_recentEvents(); ?&gt;</h3>
<?php ssi_recentEvents(); ?>

<hr />
</search for>

<add after>
<h3>Shoutbox: &lt;?php ssi_shout(); ?&gt;</h3>
<?php ssi_shout(); ?>

<hr />
</add after>


Well I dont know, but this is DIRECTLY from my boardindex.template.php file, and mine is working, so I am not sure what exactly is going on then.

        // Shout Box Start
        echo '
<tr>
<td class="catbg" colspan="2">"Shout Outs"</td>
        </tr><tr>
<td class="windowbg2" align="left" colspan="2"><span class="smalltext">', smfshout(), '</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>';
        }


So maybe ignore the SSI.php and use', smfshout(), ' and see if that eliminates the errors and works for you also.

Title: Re: Ultimate Shoutbox
Post by: ryanbsoftware on January 28, 2005, 03:23:34 PM
i tried to install it and kept getting erros about files, after chmodding them to 777 for the package manager to write to them i then got this error, in the white screen of death, lol, like the name?

QuoteFatal error: Cannot redeclare smfshout() (previously declared in /home/chf/public_html/Sources/Subs.php:1822) in /home/chf/public_html/Sources/Subs.php on line 1829
Title: Re: Ultimate Shoutbox
Post by: Jerry on January 28, 2005, 07:33:21 PM
in your /Sources/Subs.php find:
function smfshout()
{
global $sourcedir;

include_once("$sourcedir/shout.php");
shout_display();
shout_form();
}

there are two, one right after the other... remove one :)
Title: Re: Ultimate Shoutbox
Post by: ryanbsoftware on January 29, 2005, 12:38:13 AM
Quote from: Jerry on January 28, 2005, 07:33:21 PM
in your /Sources/Subs.php find:
function smfshout()
{
global $sourcedir;

include_once("$sourcedir/shout.php");
shout_display();
shout_form();
}

there are two, one right after the other... remove one :)

ok thanks

perhaps the package should be updated, i got it from the smf package server. ;)

edit: ok no erros, but no shoutbox...
Title: Re: Ultimate Shoutbox
Post by: RedAlert2 on January 29, 2005, 01:49:12 AM
i just uploaded it and everything and it said that: 
Fatal error: Cannot redeclare smfshout() (previously declared in /home/csidog/public_html/forum/Sources/Subs.php:1849) in /home/csidog/public_html/forum/Sources/Subs.php on line 1856

i can't even view the forums, can someone help??
Title: Re: Ultimate Shoutbox
Post by: Jerry on January 29, 2005, 01:49:58 AM
RedAlert2 please read my post, it is right above RyanB's post.


Grudge, guess I wasn't the only one with this problem :-X
Title: Re: Ultimate Shoutbox
Post by: RedAlert2 on January 29, 2005, 01:57:02 AM
k, thnx, fixed it, but there isn't a shoutbox......... is there a way to make it show up?
Title: Re: Ultimate Shoutbox
Post by: Jerry on January 29, 2005, 02:56:03 AM
again, read back further in this post.. it will tell you how to add the shoutbox to your forums :)
Title: Re: Ultimate Shoutbox
Post by: Anguz on January 29, 2005, 05:47:55 AM
Grudge, about what we talked

<marquee direction="', $modSettings['shoutscrolldir'], '"', (!empty($modSettings['shoutscrollwidth']) ? ' width="' . $modSettings['shoutscrollwidth'] . '"' : ''), (!empty($modSettings['shoutscrollheight']) ? ' height="' . $modSettings['shoutscrollheight'] . '"' : ''), ' scrollamount="', $modSettings['shoutscrollspeed'], '" scrolldelay="', $modSettings['shoutscrolldelay'], '" onmouseover="this.stop()" onmouseout="this.start()">';
Title: Re: Ultimate Shoutbox
Post by: Krispl on January 29, 2005, 01:16:03 PM
mod work pefect you can see   at   forum.ocm.pl
thx :)
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 29, 2005, 07:28:10 PM
You should only be using ssi_shout() for SSI integration, I don't know how it will work as part of SMF.

I need to find some time to correct a few things with this so people have less problems in the future.
Title: Re: Ultimate Shoutbox
Post by: olli on January 30, 2005, 03:03:00 PM
Is there a way to refresh the shoutbox without clickin refresh all the time? like when u go into a different section
Title: Re: Ultimate Shoutbox
Post by: BabyGz on February 01, 2005, 05:53:51 PM
Is there a way for making guest NOT see the shoutbox at all??..

I only got 2 options in the edit permissions panel.

"Can Shout"
"Remove Shouts"

So..You have to login..Then you will see the shoutbox..
Title: Re: Ultimate Shoutbox
Post by: hypnoticpimp on February 04, 2005, 12:00:12 AM
hey! where is the shoutbox? my site is http://nl.he4t.com but where is my shoutbox. it said everything installed correctly. but i dont see it! please help
Title: Re: Ultimate Shoutbox
Post by: Alisha on February 04, 2005, 05:24:58 PM
Ya know this thread is here to help you... Please Guys take the time to READ it... 

There must be 50 posts on why your shout box does not show up.  Simple answer, becuse you have not put in the smfshout line into your template. 

Take a few mins and read part of the thread before you post the same thing over and over. 
Title: Re: Ultimate Shoutbox
Post by: hypnoticpimp on February 05, 2005, 12:48:57 AM
alisha! Everytime i install the shoutbox! When i click on permissionit gives me errors! This is 1 in particualr "{Fatal error: Cannot redeclare smfshout"() (previously declared in Sources/Subs.php:2025)"

please alisha can you install it for me
Title: Re: Ultimate Shoutbox
Post by: Jerry on February 05, 2005, 12:53:23 AM
find
function smfshout()
{
global $sourcedir;

include_once("$sourcedir/shout.php");
shout_display();
shout_form();
}

there are two of them, remove one.
Title: Re: Ultimate Shoutbox
Post by: the INFAMOUS on February 06, 2005, 04:20:53 PM
i installed the mod but i do not see it on my forums. i read through this and tried to do it but it still doesnt work. could anyone help me? my aim is mguin25
Title: Re: Ultimate Shoutbox
Post by: Jerry on February 06, 2005, 09:52:42 PM
you must add ',smfshout(),' to your theme some where, it has been said in this topic and there is one example of how to do it also...
Title: Re: Ultimate Shoutbox
Post by: sacred-tear on February 06, 2005, 11:32:39 PM
Quote<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td width="120">', smfshout(), '</td>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';

I tried it on the index.template.php just as grudge and I get this error

QuoteFatal error: Call to undefined function: smfshout() in /home/sacred/public_html/forum/Sources/Load.php(1040) : eval()'d code on line 286
:(
Title: Re: Ultimate Shoutbox
Post by: Jerry on February 06, 2005, 11:40:18 PM
doesn't look like you installed the shoutbox mod all the way.
Title: Re: Ultimate Shoutbox
Post by: Aqua on February 08, 2005, 09:45:08 PM
QuoteI have a new idea here, is it possible to make the senders name the Color defined in the users group? Example on our site, Admins are a RED. I would like to make it where when a Admin posts something in the Shout their name would be that Red Color.

This is what I want to do, but I haven't seen any solutions to this.  I tried doing it the same way I did the topic names, etc. but it didn't work.
Title: Re: Ultimate Shoutbox
Post by: mexie on February 08, 2005, 09:55:15 PM
Hi - can anyone help a newbie please
I tried using package manager but couldnt get it to instal the mod, this is my first mod instal so maybe I just missed something obvious, anyway I decided to read the mod file and do a manual install. 
I seem to have the done this reasonably well because the shout box is working in my default SMF template and appears at the top of my page ok 
I decided to insert at the top of my board, using the BoardIndex.template.php (so it doesnt show on my login page) instead of index.template.php using the following statement. 
// Shout Box Start
        echo '
<tr>
<td class="catbg" colspan="2">"Shout Outs"</td>
        </tr><tr>
<td class="windowbg2" align="left" colspan="2"><span class="smalltext">', smfshout(), '</span></td>
        </tr>';

As I know very little of php I just read this thread over and over  and followed some of the comments to get to this statement.

So now its there and I think its working basically ok but having not seen this shoutbox working before  I have a few questions.

Is it possible to reduce the number of shouts so the box doesnt take up so much screen height?.  I have a very small board so I thought maybe 6 or 8 messages would be enough.....

When I tested the shouts and  reached the 9th message the box started 'quivering' as if it wants to scroll but doesnt - which is pretty distracting. On the 10th message it starts scrolling continually but goes pretty fast and again distracting.  Mousing over the box stops the scrolling but it starts again as soon as the mouse leaves the area
Is this normal that the messages should scroll continually? - I expected the 11 th message just to appear at the top of the list and knock the bottom - oldest - message off.

Also - in the standard default SMF theme I find the text in the messages too small to read.
Can I reconfigure this along with other settings  like the box background color and if so where or in which file?


Appreciate any help on this - and sorry if I appear completely ignorant - its mainly cos I am - LOL!

thanks
mexie
Title: Re: Ultimate Shoutbox
Post by: Jerry on February 09, 2005, 04:40:02 AM
you can edit the number of shouts it shows on the admin panel, Admin Panel -> Edit Features and Options -> Shoutbox. You can also configure the scrolling here.

QuoteCan I reconfigure this along with other settings  like the box background color and if so where or in which file?
take out the span=smalltext :)
Title: Re: Ultimate Shoutbox
Post by: mexie on February 09, 2005, 09:15:10 AM
Thanks Jerry - thats a great help - everything is now sorted and working fine ;)
As usual i missed the obvious with that Admin panel settings tip (arghh!) but now everything is now ok

Thanks to Grudge for this really useful mod and the great support from all in this thread
:)
Title: Re: Ultimate Shoutbox
Post by: Aqua on February 09, 2005, 10:50:34 AM
Now for some help about the colors please :)
Title: Re: Ultimate Shoutbox
Post by: mexie on February 09, 2005, 01:17:50 PM
Wow - this is really working fine !!!

2 last questions (I hope) - with my shoutbox at the top of my home page - is there any easy way I can reduce the screen height a couple of lines  by having  the shout message input box  - followed by the 'shout'  button and then 'View All',   all display on the same line (centred)?
   
Also how do I increase the width of the message input box - say to double its default size.

Thanks again

Title: Re: Ultimate Shoutbox
Post by: Aqua on February 09, 2005, 08:28:57 PM
Moved my question to the Charter area.
Title: Re: Ultimate Shoutbox
Post by: kerux4 on February 14, 2005, 01:18:48 PM
Cool, I actually figured it out!!! 8)
Title: Re: Ultimate Shoutbox
Post by: [darksteel] on February 14, 2005, 04:14:59 PM
Spanish translation:
http://www.simplemachines.org/community/index.php?topic=27611.msg214630#msg214630

by me :p

darksteel-
Title: Re: Ultimate Shoutbox
Post by: Blede on February 16, 2005, 04:56:09 AM
does the shoutbox only run in YaBB SE Theme?

i have SMF Default Theme. want to have shoutbox in my forum but dont want to change the style :)
Title: Re: Ultimate Shoutbox
Post by: Jerry on February 16, 2005, 05:02:00 AM
The ultimate shoutbox will work on any SMF theme... You must add it to the theme manually, please read this thread for examples and how to do it.
Title: Re: Ultimate Shoutbox
Post by: mexie on February 18, 2005, 12:50:41 PM
Quote from: Blede on February 16, 2005, 04:56:09 AM
does the shoutbox only run in YaBB SE Theme?

i have SMF Default Theme. want to have shoutbox in my forum but dont want to change the style :)

Hi blede - to save wading through all this thread (which I find a bit confusing to newbies)  you could try the  solution I found which I posted on the previous page (page 17). After installing the mod just insert this code into your theme's index.template.php - works fine for me  ;)

mexie

Title: Re: Ultimate Shoutbox
Post by: Zachary Hinchliffe on February 23, 2005, 09:54:57 PM
I used the "Shoutbox on left" method explained in page 6 (i think) but all I get is a blank space, with a "View All" link at the bottom. What's going on?

EDIT: It appears that only admins can shout. Which makes me unable to shout, because I have a seperate "Owner" usergroup in my forum. Please help me. What is going on?
Title: Re: Ultimate Shoutbox
Post by: Jerry on February 23, 2005, 11:05:11 PM
you must set permissions, Admin - Edit Permissions -> (usergroup) -> Shout
Title: Re: Ultimate Shoutbox
Post by: Sys_ZERO on February 27, 2005, 01:49:55 AM
After 49minz of trying to edit the index.template.php file and failed  :'( How the hell do I do it? there are no intructions ?

Thank You
Title: Re: Ultimate Shoutbox
Post by: Jerry on February 28, 2005, 01:57:42 AM
there is an example for the default theme on page eight of this post, and there are many replies here that also tell you how you must add the shoutbox.
Title: Re: Ultimate Shoutbox
Post by: Anguz on February 28, 2005, 02:06:12 AM
Grudge, maybe you should pick the FAQs for this mod and add them to the mod description. :P
Title: Re: Ultimate Shoutbox
Post by: SeaOfSin on March 01, 2005, 02:57:17 AM
Did anyone ever figure out how to "View All" on a new page?

EDIT: OK I figured out how to do that...  :)

Also if anyone can also tell me how to put the User info on a new page too, it would be greatly appreciated.

EDIT: Sorted that out as well!! :)


Thanks


Sea Of Sin
Title: Re: Ultimate Shoutbox
Post by: mexie on March 01, 2005, 11:05:49 AM
Any chance of an 'idiot's guide to editing  font size/color  (and maybe the background color) of the shouts please ?
I've had various attempts but dont know enough about css, php etc: to know where to look

thanks
mexie
Title: Re: Ultimate Shoutbox
Post by: mank on March 04, 2005, 08:31:11 AM
is there a way i can make the shoutbox auto-refresh or add a refresh button, this would be a great help rather than refreshing the whole page manually

cheers all
Title: Re: Ultimate Shoutbox
Post by: lmowp on March 04, 2005, 10:19:04 AM
First of all thanks for the great mod :)

What is the best way to integrate the shoutbox to a popup window? Theoretically this is no problem, but I want just the shoutbox in the new window without calling the index.template. Before I start reading all the code I thought I'd ask here ;) Maybe someone can help me or has done something similar.

Thanks in advance :)
Title: Re: Ultimate Shoutbox
Post by: SeaOfSin on March 04, 2005, 01:15:52 PM
Quote from: lmowp on March 04, 2005, 10:19:04 AM
First of all thanks for the great mod :)

What is the best way to integrate the shoutbox to a popup window? Theoretically this is no problem, but I want just the shoutbox in the new window without calling the index.template. Before I start reading all the code I thought I'd ask here ;) Maybe someone can help me or has done something similar.

Thanks in advance :)

I have worked on that and the best way is to use the ssi function of the shoutbox.  I just need it in button form on the forum. that is the problem I am having.

Here is what I did

in the main page of the website I have


<script language="javascript">
function pop_window(ShoutBox) {
//remove a attribute if you don't want it to show up
  var popit = window.open(ShoutBox,'console','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=220,height=445');
}
</script>
<a href="javascript:pop_window('http://www.YOUR WEBSITE HERE/shoutbox.php','ShoutBox')">Shoutbox</a>


and in the pop up window


<?php
require("/home/USERNAME/public_html/forum/SSI.php"); ?>

<html>

<head>
<meta HTTP-EQUIV="Refresh"
CONTENT="30; URL=http://www.YOUR WEBSITE HERE/shoutbox.php","Shoutbox">
<body>
<?php ssi_shout(); ?>
</body>
</html>



If someone knows how to convert that into a button please do, as my knowledge of Php and programming in general is rather bad.

Thanks

Sea Of Sin
Title: Re: Ultimate Shoutbox
Post by: lmowp on March 04, 2005, 04:09:19 PM
Sea of Sin, thanks a lot :)  The SSI function, should have thought about that...


To make your link a button use this:

<input type="button" onClick="javascript:pop_window('http://www.YOUR WEBSITE HERE/shoutbox.php','ShoutBox')" name="shoutbox_button" value="Shoutbox">

You can also assign a css class with the button (class="<insert class name>") and change the look of it.
Title: Re: Ultimate Shoutbox
Post by: SeaOfSin on March 04, 2005, 09:40:56 PM
OK thanks

And how can I put that onto the forum as a button as well. with the other buttons on the index page?
Title: Re: Ultimate Shoutbox
Post by: beetleman on March 09, 2005, 12:27:00 AM
First of all, this is a great script.  Looks great after I formated it like the News, User Info, or Key Stats boxes.
I put mine in the collapsable Header in the default template.

I need some help with further formating.



Thanks for any help. 8)
beetleman
Title: Re: Ultimate Shoutbox (making it XHTML 1.0 compliant)
Post by: russ on March 13, 2005, 10:26:33 AM
IVe been working on making my forum and pages XHTML compliant and have so far got all errors sorted out apart from the marquee commands involved in the shout box.

Line 259, column 22: there is no attribute "direction"

<marquee direction="up" width="150"


QuoteYou have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.



and further errors include:

Line 259, column 33: there is no attribute "width"
<marquee direction="up" width="150"

Line 260, column 10: there is no attribute "height"
height="200" scrollamount="1"

Line 260, column 29: there is no attribute "scrollamount"
height="200" scrollamount="1"

Line 261, column 15: there is no attribute "scrolldelay"
scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()">

Line 261, column 32: there is no attribute "onmouseover"
scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()">

Line 261, column 57: there is no attribute "onmouseout"
scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()">

Line 261, column 71: element "marquee" undefined
...seover="this.stop()" onmouseout="this.start()">


It recommends using CSS but so far I havent found anything online which will help me.

The line in question would be (in file shout.template.php):

// Scrolling?
if ($modSettings['enablescrollshout'] == 1)
echo '
<marquee direction="', $modSettings['shoutscrolldir'], '" width="', $modSettings['shoutscrollwidth'], '"
height="', $modSettings['shoutscrollheight'], '" scrollamount="', $modSettings['shoutscrollspeed'], '"
scrolldelay="', $modSettings['shoutscrolldelay'], '" onmouseover="this.stop()" onmouseout="this.start()">';


Anyone have any ideas how to make this compliant to:      XHTML 1.0 Transitional ?

Thanks a lot :) :)
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on March 13, 2005, 06:23:34 PM
Well, marquee isn't valid xhtml... period.

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: zach21uk on March 14, 2005, 02:05:22 PM
Hi There,

Just installed the shoutbox the other day, i have almost got it how i want it but theres something i cant quite figure out.

I currently have the shoout box near the top of the forums, and am trying to get a box around it or something as it looks a bit out of place atm, but each time i try to add a box or a cell around the shoutbox, i get parse errors.

obviously i am doing something rong, and to be honest this isnt really my area of expertise, so if someone could help it would be appreciated.

http://gqfleet.net/smfforums - - there are the forums

                // Show the menu here, according to the menu sub template.
echo '<table cellpadding="0" cellspacing="0" border="0" style="text-align: left; margin-left: 20px; background-image: url(' . $settings['images_url'] . '/pod/pod-midbar.gif);" ><tr>';
echo '<td><img src="' . $settings['images_url'] . '/pod/pod-leftbar.gif" alt="gfx" style="margin: 0px 0;" border="0" /></td>';
echo '<td><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'], '" style="margin: 0px 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank-upshrink.gif" alt="" style="margin: 0px 0;" /></td>';
                template_menu();
echo '</td></tr></table>';
smfshout();
        // The main content should go here.  A table is used because IE 6 just can't handle a div.
        echo '
        <table style="margin-top: 4px;" width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';
         echo '<td align="left" id="bodyarea" style="padding-left: 15px; padding-right: 15px; padding-top: 0px; padding-bottom: 10px;">';
}


thats basically where i have the shoutbox inserted in the coding, tho i have been considering moving it to underneath the news box.....

if someone could tell me how to add a box or cell etc around the shoutbox it would be much appreciated.

i did read through several pags of this thread before i posted this, but no-one seems to have asked this question.

hope to hear from someone soon,
kind regards
zach21uk
Title: Re: Ultimate Shoutbox
Post by: Col on March 14, 2005, 06:11:14 PM
OK,

I don't consider myself stupid, but this is getting the better of me. I get variouis errors no matter what I try. I'd like this to appear on every page, and am trying to add it to the default template. - The 'index.template.php' file.

<table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table>


Anyway, I've tried the suggested code, and it breaks the template. I've tried adding 'echo' and 'echo '', but that doesn't work. HTML I understand, but this templateing is completely new to me. What do I need to add precisely to make this work?

I also tried this:
// Shout Box Start
        echo '
<tr>
<td class="catbg" colspan="2">"Shout Outs"</td>
        </tr><tr>
<td class="windowbg2" align="left" colspan="2"><span class="smalltext">', smfshout(), '</span></td>
        </tr>';


That would actually display the shoutbox, but when I try to shout, it asks for me to fill in all fields, but I only have the shout field displayed!

Anyone?


Also, is there a tutorial anywhere to help with modifying the template?


Thanks.
Title: Re: Ultimate Shoutbox
Post by: edchapman on March 14, 2005, 10:34:59 PM
Would someone please help me with adding a table to my site?
I installed the Ultimate Shoutbox Mod and I want it to show up on the right side of the Genreal category like I've seen on other sites. I'm guessing I need to add a table of some kind with the shoutbox code in it.
I'm not sure what to add or where to add it.

This is our site...
http://www.youth.kumcministries.com/newforum/index.php
Title: Re: Ultimate Shoutbox
Post by: Jerry on March 15, 2005, 12:08:48 AM
On page eight of this thread there is a post on how to add it to the left, not the same as the right... but if you know html you should know how to move it around :)
Title: Re: Ultimate Shoutbox
Post by: edchapman on March 15, 2005, 12:19:45 AM
Cool.. I'll look at that! Thanks!
Title: Re: Ultimate Shoutbox
Post by: edchapman on March 15, 2005, 12:37:47 AM
Quote from: Jerry on March 15, 2005, 12:08:48 AM
On page eight of this thread there is a post on how to add it to the left, not the same as the right... but if you know html you should know how to move it around :)
That did not work for me.. I got an error.

btw.. I'm using the defult theme.
Title: Re: Ultimate Shoutbox
Post by: chitownjts on March 15, 2005, 06:32:04 PM
Need a little help.

In firefox everything looks fine and dandy.

In IE, when an administrator is logged in, you see a red  X to the left of the normal delete "x"

any thoughts?
Title: Re: Ultimate Shoutbox
Post by: russ on March 16, 2005, 03:01:22 PM
Quote from: [Unknown] on March 13, 2005, 06:23:34 PM
Well, marquee isn't valid xhtml... period.

-[Unknown]

ah so theres no way ot make it scroll and make it xhtml compliant?

its ok without it scrolling and its xhtml atm :)
Title: Re: Ultimate Shoutbox
Post by: zach21uk on March 17, 2005, 06:52:08 AM
Quote from: zach21uk on March 14, 2005, 02:05:22 PM
Hi There,

Just installed the shoutbox the other day, i have almost got it how i want it but theres something i cant quite figure out.

I currently have the shoout box near the top of the forums, and am trying to get a box around it or something as it looks a bit out of place atm, but each time i try to add a box or a cell around the shoutbox, i get parse errors.

obviously i am doing something rong, and to be honest this isnt really my area of expertise, so if someone could help it would be appreciated.

http://gqfleet.net/smfforums - - there are the forums

                // Show the menu here, according to the menu sub template.
echo '<table cellpadding="0" cellspacing="0" border="0" style="text-align: left; margin-left: 20px; background-image: url(' . $settings['images_url'] . '/pod/pod-midbar.gif);" ><tr>';
echo '<td><img src="' . $settings['images_url'] . '/pod/pod-leftbar.gif" alt="gfx" style="margin: 0px 0;" border="0" /></td>';
echo '<td><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'], '" style="margin: 0px 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank-upshrink.gif" alt="" style="margin: 0px 0;" /></td>';
                template_menu();
echo '</td></tr></table>';
smfshout();
        // The main content should go here.  A table is used because IE 6 just can't handle a div.
        echo '
        <table style="margin-top: 4px;" width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';
         echo '<td align="left" id="bodyarea" style="padding-left: 15px; padding-right: 15px; padding-top: 0px; padding-bottom: 10px;">';
}


thats basically where i have the shoutbox inserted in the coding, tho i have been considering moving it to underneath the news box.....

if someone could tell me how to add a box or cell etc around the shoutbox it would be much appreciated.

i did read through several pags of this thread before i posted this, but no-one seems to have asked this question.

hope to hear from someone soon,
kind regards
zach21uk

bump
Title: Re: Ultimate Shoutbox
Post by: Col on March 18, 2005, 08:22:04 PM
Hi,

Can someone please explain why I get this when I try shouting?

QuoteWhoops, looks like you forgot to fill in one of the Shoutbox fields. Please try again.

Thanks.
Title: Re: Ultimate Shoutbox
Post by: Col on March 19, 2005, 09:39:22 AM
Quote from: Col on March 18, 2005, 08:22:04 PM
Hi,

Can someone please explain why I get this when I try shouting?

QuoteWhoops, looks like you forgot to fill in one of the Shoutbox fields. Please try again.

Thanks.

I've sorted this out. For some reason this only happens when I'm logged in with primary account. Such a silly thing wasted a lot of time for me! :(

Might be an idea to mention this with the first post.
Title: Re: Ultimate Shoutbox
Post by: Col on March 19, 2005, 01:19:22 PM
Is there any way to have 'View All' as an input button. I'd like to move next to the Shout button, but you can't use URLs for an input button. What's the easiest solution, anyone?
Title: Re: Ultimate Shoutbox
Post by: Col on March 22, 2005, 10:44:35 AM
Hi,

How do I go about calling the shouts separately from the the inputs underneath?

I'm trying to place the shoutbox in the header, but want just the shouts showing when the header is collapsed.

Anyone?

Thanks.
Title: Re: Ultimate Shoutbox
Post by: Col on March 23, 2005, 08:33:23 AM
Anyone,

How do I go about calling shouts and inputs separately?

Thanks.
Title: Install directions for the Shout Box, not finished?
Post by: tophe on March 24, 2005, 10:00:56 AM
Since I can't install any mods through the packet manager (SAFE MODE), I had to do it manually.
Good explanation in the .mod file until I came to step 5

QuoteInstructions:
1. Upload shoutdb.php into your board directory and run it (be sure to delete it afterwards).
2. Install from this mod file manually or using boardmod
3. Upload shout.php into your sources dir.
4. Upload deleteshout.gif to your $themedir/images directory
5. Anywhere in your template call the function smfshout() to show the shoutbox
6. Go into the Feature Settings page and choose the appropriate settings
7. Type in a message and click Shout!

What does step 5 mean?
How do I do it?
And what do I do with the file shout.template.php and shoutPdb.php, that was in the archive?
There is no information on those.

Where is the Features Settings window?

All the other steps is done, but I can't get any further.. Help please...
Title: Re: Ultimate Shoutbox
Post by: tophe on March 24, 2005, 11:20:05 AM
sigh...

I'm using the default theme..
No matter what I use.. None of the code snippets work.
I get parse error, and when I don't get that error the box will not show.
Title: Re: Ultimate Shoutbox
Post by: Col on March 24, 2005, 04:18:03 PM
To be frank, although this forum software looks great, and I'm sure it's far more powerful than any of the others, it suffers from very poor documentation. This software has to appeal to those with little software knowledge, but willing to give it a go with proper instructions, as well as coders.

What you need, I think, is to place the following in your template. I make no gaurentee, as it's only what I've picked up from scratching around.

You'll have to decide where to place this in your template, depending where you want the shoutbox to appear.

<table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table>


Now that didn't work for me, until I found I needed an echo statement too, so it should be be like this, I think:


echo '
<table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table>'


That seems to work for me on my test board, but it could well be technically wrong. Maybe I'm being a bit hard on this place, but it does seem a bit chiquey for what should be a popularist activity.

Most forums are run by non-coders, and lack of instructions drives us crazy! :(
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on March 24, 2005, 05:48:31 PM
The mod is lacking documentation, not the forum software (while it needs more documentation, it's not as lacking as you make it sound.)  I don't see any Microsoft guides for "how to install Adobe Photoshop".

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: Col on March 24, 2005, 06:12:49 PM
My criticism is meant constructively.

Why would Microsoft supply a guide for installing Photoshop? - Or is that your point? If so, I don't get it?

It seems that all the mods I've looked at so far are lacking documentation of any meaningful kind. Often essential information is missing for the newbie. It often seems that mods are written for other modders; that's how it appears to the outsider.

Although I can see this is far more powerful than YaBB, it is also far more complicated. It's a very steep learning curve, and some basic guide of how the software works and is structured would help a lot. I've looked at some of the guides, and they don't really give a feel for the SMF.

Don't get me wrong, I'm sticking with it, as it promises too much to walk away from it.
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on March 24, 2005, 10:45:37 PM
Quote from: Col on March 24, 2005, 06:12:49 PM
Why would Microsoft supply a guide for installing Photoshop? - Or is that your point? If so, I don't get it?

That is exactly my point.  Microsoft = Simple Machines, Photoshop = the shoutbox.  As much as it's used with Windows, it isn't part of Windows nor is it distributed by Microsoft.  It is third party, in that sense.

While the package manager could use some more documentation, I personally feel many mods could use more documentation specific to them.  Just by looking at some of these mods, I have no idea how they work.  I've had to go into the code... and I shouldn't have to.  I agree with you there.

Anything not specific to any particular mod, yes, should be better documented.  And there are problems there, yes.... but the ones you're talking about are SPECIFIC to a THIRD PARTY product.  You're asking us to write documentation for Photoshop.

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: Col on March 24, 2005, 11:02:20 PM
Unknown, I think we are speaking at cross purposes a little. I'm not saying thay SMF is responsible for the documentation for the mods, although it would, of course, be in your interests to enocurage greater effort from the mod writers with documentation for their mods.

I have already noted that there is documentaion for the unmodded forum, but I think we are both agreed it needs to be improved upon. I also accept that it's a big job, almost as big as the job of creating the software itself by the looks of things. :)

I might even offer my services of writing some docs; that's when I understand things myself though! ;D I imagine SMF2 will be out by then!
Title: Re: Ultimate Shoutbox
Post by: Amacythe on March 24, 2005, 11:02:55 PM
Documentation... I'm working on it... I'm trying...
/me sighs :P
Title: Re: Ultimate Shoutbox
Post by: Col on March 24, 2005, 11:04:25 PM
Aye, I'm not knocking anyone, honest. It's just meant as input and comment.
Title: Re: Ultimate Shoutbox
Post by: Col on March 25, 2005, 05:37:40 PM
Quote from: Col on March 22, 2005, 10:44:35 AM
Hi,

How do I go about calling the shouts separately from the the inputs underneath?

I'm trying to place the shoutbox in the header, but want just the shouts showing when the header is collapsed.

Anyone?

Thanks.

Hi, can anyone help with this?

I've decided to just go with the shoutbox at the side of the forum for now, but I still need to call the shouts separately.

What I'd like to do is place the actual shouts in an iframe, and have that auto refresh. What would be really cool is if I can have this auto refresh at the end/beginning of each scroll cycle. If I use a timed refresh, it will keep interupting scrolls in progress.

When I've had a shoutbox in the past, it got used heavily within my forum, so a refresh like this would be very useful. I think it's a feature that might well appeal to many!

Thanks.
Title: Re: Ultimate Shoutbox
Post by: Griffen on March 25, 2005, 06:13:51 PM
Hey...

www.knifey.branzone.com/forums/index.php

I installed the mod but cant find out where the shoutbox is...

The option is in the features and options, i just cant find the box itself.

Help would be appreciated.
Title: Re: Ultimate Shoutbox
Post by: Col on March 25, 2005, 08:36:20 PM
Look at my reply a few posts before: reply 288. I cannot promise it's technically correct, but it works for me.
Title: Re: Ultimate Shoutbox
Post by: edchapman on March 25, 2005, 10:06:31 PM
Quote from: Jerry on March 15, 2005, 12:08:48 AM
On page eight of this thread there is a post on how to add it to the left, not the same as the right... but if you know html you should know how to move it around :)
I did that just as it says... It's  not working. Anyone know what I can do to get the shout box to show up in a table just to the right or left of the forum?
I do not know how to add the table or where to add it.
Title: Re: Ultimate Shoutbox
Post by: Griffen on March 25, 2005, 10:23:19 PM
Ok, Im still not getting this..

I add:

echo '
<table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table>'


^^ That to where??

EDIT:

Ok, so i add it to the index.template.php in the themes folder (the default theme..which is Helios for my forum).

Now when i tried to add it somewhere i got the error:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/HeliosRed/index.template.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.

I'm so lost here.  Which part of the index.template.php should i add the code to?

Another Edit:

http://www.knifey.branzone.com/Griffen/Help.txt

Someone want to tell me where I would add in the code?  That txt document is my index.template.php if you didnt guess.
Title: Re: Ultimate Shoutbox
Post by: gtaheavenmembers on March 26, 2005, 05:18:46 AM
im having the same problem. i just dont know where in the index.template.php file to add the shoutbox code to
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 09:25:51 AM
Hi,

This is what I did. It works, but it may be technically wrong. I had to use html sinse that's what I understand.

I use the default template, and changed this:

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

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

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


To this, to place the shoutbox to the right:

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

   echo '</td>
         <td height="21" valign="top" bgcolor="#D4D4D4"></td></tr>
         <tr>
          <td valign="top" bgcolor="#D4D4D4" width="100">
           <table bgcolor="#828181" cellpadding="1" cellspacing="0">
            <tr>
             <td>
              <table width="100%" cellpadding="3" cellspacing="0">
               <tr><td bgcolor="#6B8EAE"><font color="#FFFFFF">Shoutbox</font></td>
               </tr>
               <tr><td valign="top" bgcolor="#F0F0F0">', smfshout(), '</td>
              </table>
             </td>
            </tr>
           </table>
          </td>
   </tr></table>';

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


And, change this:

   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}


To this:

   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;" rowspan="2">';
}



The only slight thing is the height of the shoutbox moves up and down a little depending on what part of the forum you are on. I think that it is something else causing that to happen.

If you want the shoutbox to the left, change this:

   // The main content should go here.  A table is used because IE 6 just can't handle a div.
   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}

function template_main_below()
{


To this:

   // The main content should go here.  A table is used because IE 6 just can't handle a div.
   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td valign="top" bgcolor="#D4D4D4" width="140" align="right">
      <table>
      <tr><td height="10"><td></tr>
      <tr>
      <td valign="top" bgcolor="#F0F0F0" cellpadding="0">', smfshout(), '</td>
      </tr>
      </table>
      </td>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}

function template_main_below()
{


They look slightly different as I decided to go with the right side option. You should be able to move the code around to change the appearence of one for the other.

I hope that helps, and if someone else would like to post the SMF way of doing these, I'd appreaciate that too!
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 09:31:32 AM
Quote from: gtaheavenmembers on March 26, 2005, 05:18:46 AM
im having the same problem. i just dont know where in the index.template.php file to add the shoutbox code to

Just to say, you have to place the shoutbox code in the template yourself. There is no shoutbox code to alter until you place it there! I hope my post above helps.
Title: Re: Ultimate Shoutbox
Post by: Grudge on March 26, 2005, 09:54:03 AM
Hi there,

Sorry about not replying for the last 3+ pages, I've been extremely caught up in other things, and haven't had time to look at my mods. If you bump any replies from the past that still need answering I'll try to address them. Col, as far as I can see your HTML is OK. The reason it is probably moving is because of the valigns. I *think* that valign has to be put into a <tr> and not a <td>, but I may be wrong. For the shoutbox being to the right, I would change this line in template_above:

<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';


To be this:

<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr valign="top">
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';


From your HTML you seem to have the shoutbox nested in quite a few tables, but I assume this is because of the look you are going for more than anything?

I will admidt that documentation for the shoutbox is pretty thin, but for the most part there is no need for any coding knowledge, it's just a case of putting the function call in your template (And this is explained with the installation instructions I believe). It *does* require HTML knowledge though - because I obviously can't say where this call should be put. Some people want a shoutbox to the left, others the right, some above, some in info centre etc - everyone has a different preference. There are some good examples in this topic of placing it - but I guess this is now 20+ pages long - isn't easy for people to browse through :)

Cheers,
Grudge
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 10:25:14 AM
Hiya Grudge,

I'll look at my code and check it's OK.

I know that a lot mods here require more work than say with YaBB, which is what I'm used to. The templating system is far more powerful than I'm used to, and more complicated too. I understand though, from reading some posts here, that attempts will be made to make modifying the template more simple in the future, especially for modders and their mods. - I hope this does happen with the next siginificant version, 1.1 perhaps.

Quote from: Grudge on March 26, 2005, 09:54:03 AM
From your HTML you seem to have the shoutbox nested in quite a few tables, but I assume this is because of the look you are going for more than anything?

Necassary to get the grey border and a 'Shoutbox' title bar to match the forum.

Grudge, any help with porting the shouts so that can be auto refreshed, as per my earlier post, would be appreciated.

Thanks.
Title: Re: Ultimate Shoutbox
Post by: gtaheavenmembers on March 26, 2005, 10:44:13 AM
for the shoutbox to the right, it puts mine on the bottom.

also, is there a way of getting it in the top section, next to the new and key stats?
Title: Re: Ultimate Shoutbox
Post by: Grudge on March 26, 2005, 10:53:35 AM
Col,

What do you mean by auto-refresh? I looked at your earlier posts and couldn't quite put my finger on what you mean. IF you mean you want the shoutbox to refresh, say, every 5 seconds the only way I can see that working is by putting some kind of meta-refresh on the page- but that in itself would make the whole page reload every 5 seconds (Bad for replying to posts etc). What you *could* do is put the shoutbox in a iframe. This iframe has another page as the source which contains just a call to SSI.php, a call to ssi_shout(), and has a meta refresh every 5-10 seconds. This would mean just the shoutbox window would reload every 5 seconds. An alternative is to do some very clever stuff with javascript - but that's beyond my ability :D

gtaheavenmember, I think you want to remove this line from Cols code:

<td height="21" valign="top" bgcolor="#D4D4D4"></td></tr>
         <tr>

As that would be the cause of the issue I suspect
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 10:56:02 AM
Dunno what to say to that. Are you using the Default template? It may not work with other templates.

As for placing it in the header, that is somethign I'd like to do too. Still waiting for some replies to this thread myself.

It you are using the default template, it is what I use, and it does work.

Also, I've checked my code, and the 'valign' should go where I placed it.
Title: Re: Ultimate Shoutbox
Post by: gtaheavenmembers on March 26, 2005, 10:58:47 AM
wow grudge, thnx!
it works perfectly now!
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 11:02:32 AM
Quote from: Grudge on March 26, 2005, 10:53:35 AM
Col,

What do you mean by auto-refresh? I looked at your earlier posts and couldn't quite put my finger on what you mean. IF you mean you want the shoutbox to refresh, say, every 5 seconds the only way I can see that working is by putting some kind of meta-refresh on the page- but that in itself would make the whole page reload every 5 seconds (Bad for replying to posts etc). What you *could* do is put the shoutbox in a iframe. This iframe has another page as the source which contains just a call to SSI.php, a call to ssi_shout(), and has a meta refresh every 5-10 seconds. This would mean just the shoutbox window would reload every 5 seconds. An alternative is to do some very clever stuff with javascript - but that's beyond my ability :D

Yes, an iframe was my first thought, but after I decided that would be a bad idea as it would keep interupting the scolling shouts, and it would be better to refresh at the beginning or end of each scroll. Would the displayed shout still need to go in an iframe if this were possible?

Quotegtaheavenmember, I think you want to remove this line from Cols code:

<td height="21" valign="top" bgcolor="#D4D4D4"></td></tr>
         <tr>

As that would be the cause of the issue I suspect

That is placed there act as a spacer. Without it the shoutbox goes to the very top, butting up against the header.
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 11:08:35 AM
Quote from: gtaheavenmembers on March 26, 2005, 10:44:13 AM
for the shoutbox to the right, it puts mine on the bottom.

also, is there a way of getting it in the top section, next to the new and key stats?

Sorry, yes I forgot one other small edit. What I said is correct, but you need change this too:

   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}


To this:

   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;" rowspan="2">';
}


This used with earlier code will place a small gap above the shoutbox so that it fits in better with the forum.

Edit: I've now added this to my earlier post.
Title: Re: Ultimate Shoutbox
Post by: Grudge on March 26, 2005, 12:25:39 PM
I'm still a little confused why you need the shouts to refresh? The only reason I could see would be if someone was on the same page for a long period of time - but the shoutbox was never intended as a "chat box"- the only case when I think this would be likely?

The problem with interrupting the scrolling is there would be no way I know of to interrupt the scrolling when it's reached the end of the scroll - so as you say the refresh may come mid scroll. The only really clean way to do this would be through javascript - but it would be a load of work to code. It would basically involve getting the shoutbox to auto refresh the content every few seconds by making http requests to the script - very effective but tricky. I'd love to have a go at writing it myself but fear time is something of a scarce resource for me at the moment.
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 12:31:15 PM
With reference to my posts #301 and #310, I've altered the code to make the shout box render reliably at the same relative height no matter which forum page you are on.

If removed the rowspan attribute, but introduced another nested table level. - However, it does seem to work better.

Change this:

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

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

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



To this:

  <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
     <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}

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

  echo '</td>
        <td bgcolor="#D4D4D4" valign="top" width="100">
        <table valign="top" cellpadding="0" cellspacing="0" align="right">
         <tr valign="top"><td height="29"></td></tr>
        <tr>
         <td valign="top" bgcolor="#D4D4D4" width="100">
          <table bgcolor="#828181" cellpadding="1" cellspacing="0">
           <tr>
            <td>
             <table width="100%" cellpadding="3" cellspacing="0">
              <tr><td bgcolor="#6B8EAE"><font color="#FFFFFF">Shoutbox</font></td>
              </tr>
              <tr><td valign="top" bgcolor="#F0F0F0">', smfshout(), '</td>
             </table>
            </td>
           </tr>
          </table>
         </td>
        </tr>
        </table>
        </td>
  </tr></table>';

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



There may be the odd redundant tag attribute, but it should work fine. This will place the Shoutbox to the right. It should be easy enough to change it to the left. Post #301 should help if you need to place it to the left.
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 12:37:36 PM
Quote from: Grudge on March 26, 2005, 12:25:39 PM
I'm still a little confused why you need the shouts to refresh? The only reason I could see would be if someone was on the same page for a long period of time - but the shoutbox was never intended as a "chat box"- the only case when I think this would be likely?

The problem with interrupting the scrolling is there would be no way I know of to interrupt the scrolling when it's reached the end of the scroll - so as you say the refresh may come mid scroll. The only really clean way to do this would be through javascript - but it would be a load of work to code. It would basically involve getting the shoutbox to auto refresh the content every few seconds by making http requests to the script - very effective but tricky. I'd love to have a go at writing it myself but fear time is something of a scarce resource for me at the moment.

As you said, more of a 'chatbox', and that's how my old one was used largely. I run a medical support forum, and it is useful to be able have this function, especially for newbies. I had to give up my old YaBB shoutbox as I had server load problems with my YaBB forum, so stripped everything out I could.

One thing I will do is place the shoutbox in an iframe, as it makes no sense for the whole page to be refreshed when you make a shout.

As an alternative, how about adding a refresh button to the shoutbox? That would be acceptable with the shoutbox in an iframe.

If you ever could sort it so that shouts are refreshed at the end of each cycle, that would be really great.
Title: Re: Ultimate Shoutbox
Post by: edchapman on March 26, 2005, 02:28:14 PM
Quote from: Col on March 26, 2005, 09:25:51 AM
Hi,

This is what I did. It works, but it may be technically wrong. I had to use html sinse that's what I understand.

I use the default template, and changed this:

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

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

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


To this, to place the shoutbox to the right:

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

   echo '</td>
         <td height="21" valign="top" bgcolor="#D4D4D4"></td></tr>
         <tr>
          <td valign="top" bgcolor="#D4D4D4" width="100">
           <table bgcolor="#828181" cellpadding="1" cellspacing="0">
            <tr>
             <td>
              <table width="100%" cellpadding="3" cellspacing="0">
               <tr><td bgcolor="#6B8EAE"><font color="#FFFFFF">Shoutbox</font></td>
               </tr>
               <tr><td valign="top" bgcolor="#F0F0F0">', smfshout(), '</td>
              </table>
             </td>
            </tr>
           </table>
          </td>
   </tr></table>';

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


And, change this:

   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}


To this:

   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;" rowspan="2">';
}



The only slight thing is the height of the shoutbox moves up and down a little depending on what part of the forum you are on. I think that it is something else causing that to happen.

If you want the shoutbox to the left, change this:

   // The main content should go here.  A table is used because IE 6 just can't handle a div.
   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}

function template_main_below()
{


To this:

   // The main content should go here.  A table is used because IE 6 just can't handle a div.
   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td valign="top" bgcolor="#D4D4D4" width="140" align="right">
      <table>
      <tr><td height="10"><td></tr>
      <tr>
      <td valign="top" bgcolor="#F0F0F0" cellpadding="0">', smfshout(), '</td>
      </tr>
      </table>
      </td>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}

function template_main_below()
{


They look slightly different as I decided to go with the right side option. You should be able to move the code around to change the appearence of one for the other.

I hope that helps, and if someone else would like to post the SMF way of doing these, I'd appreaciate that too!
I did this and i still get the ole error.
I think I may have to give up on this option.
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 04:39:27 PM
You make the first two changes if you want the shoutbox on the right (but my later way of doing it in reply #312 is better); or you make the last change if you want the shoutbox on the left.
Title: Re: Ultimate Shoutbox
Post by: Griffen on March 26, 2005, 06:37:16 PM
Quote from: Griffen on March 25, 2005, 10:23:19 PM
Ok, Im still not getting this..

I add:

echo '
<table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table>'


^^ That to where??

EDIT:

Ok, so i add it to the index.template.php in the themes folder (the default theme..which is Helios for my forum).

Now when i tried to add it somewhere i got the error:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/HeliosRed/index.template.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.

I'm so lost here.  Which part of the index.template.php should i add the code to?

Another Edit:

http://www.knifey.branzone.com/Griffen/Help.txt

Someone want to tell me where I would add in the code?  That txt document is my index.template.php if you didnt guess.
ok..

So i read the posts on the last 2 pages.  I sorta get it now... but like Grudge said, it takes HTML knowledge.  I have none what so ever...

Would someone mind telling me exactly where to put the code to it shows up on the bottom under the..

(http://knifey.branzone.com/forums/Themes/HeliosRed/images/new_some.gif) New Posts      (http://knifey.branzone.com/forums/Themes/HeliosRed/images/new_none.gif) No New Posts

But above the info center?

The code for my index.template.php is in that .txt link.

Thanks.
Title: Re: Ultimate Shoutbox
Post by: Col on March 26, 2005, 07:00:11 PM
You'll have to be a bit more specific; I'm not sure that those ikons appear in the place on my forum.
Title: Re: Ultimate Shoutbox
Post by: Griffen on March 26, 2005, 09:46:59 PM
http://knifey.branzone.com/forums/index.php

I think you have to register a name to see them, but they are right at the bottom (under the last board).  I would take a screen capture but my MSpaint is being stupid right now...
Title: Re: Ultimate Shoutbox
Post by: edchapman on March 26, 2005, 10:51:07 PM
Quote from: Col on March 26, 2005, 04:39:27 PM
You make the first two changes if you want the shoutbox on the right (but my later way of doing it in reply #312 is better); or you make the last change if you want the shoutbox on the left.

When I do that I still get this error

"Template Parse Error!
There was a problem loading the /Themes/default/index.template.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."
Title: Re: Ultimate Shoutbox
Post by: Grudge on March 27, 2005, 05:53:07 AM
Griffen,

This is VERY basic, you may need to tweak it to make it look good, but basically, in BoardIndex.php, find:


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


And before it add:

echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr class="titlebg">
<td align="center">Shoutbox</td>
</tr><tr class="windowbg">
<td align="center">', smfshout(), '</td>
</tr>
</table></div>';


Col,

A refresh option may not be a bad idea. I'm now toying with the idea of a more advanced auto refresh option, but I'll have to see if I can find the time!
Title: Re: Ultimate Shoutbox
Post by: edchapman on March 27, 2005, 11:20:11 AM
Quote from: Grudge on March 27, 2005, 05:53:07 AM
Griffen,

This is VERY basic, you may need to tweak it to make it look good, but basically, in BoardIndex.php, find:


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


And before it add:

echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr class="titlebg">
<td align="center">Shoutbox</td>
</tr><tr class="windowbg">
<td align="center">', smfshout(), '</td>
</tr>
</table></div>';


I think You mean the BoardIndex.template.php
Title: Re: Ultimate Shoutbox
Post by: Griffen on March 27, 2005, 11:28:48 AM
Quote from: Grudge on March 27, 2005, 05:53:07 AM
Griffen,

This is VERY basic, you may need to tweak it to make it look good, but basically, in BoardIndex.php, find:


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


And before it add:

echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr class="titlebg">
<td align="center">Shoutbox</td>
</tr><tr class="windowbg">
<td align="center">', smfshout(), '</td>
</tr>
</table></div>';


Col,

A refresh option may not be a bad idea. I'm now toying with the idea of a more advanced auto refresh option, but I'll have to see if I can find the time!
Thanks  :-[
Title: Re: Ultimate Shoutbox
Post by: Col on March 27, 2005, 11:58:28 AM
Quote from: edchapman on March 27, 2005, 11:20:11 AMI think You mean the BoardIndex.template.php

Yes, I'm sure he does.

What template do you use?
Title: Re: Ultimate Shoutbox
Post by: Col on March 27, 2005, 12:02:12 PM
Griffin,

I have looked at the templating system, but it is largely beyong my abilities for the moment. I was going to to place the shout box to the right in the info center, and use the rowspan attribute, but I only really understand html, and it looks to be more complicated to do this in these template. I'm sure it's possible, it's just I haven't the time to work it out right now.

I hope someone else will read this, and do this for you. For someone else, I'm sure this would be pretty straight forward.
Title: Re: Ultimate Shoutbox
Post by: edchapman on March 27, 2005, 03:14:30 PM
Quote from: Col on March 27, 2005, 11:58:28 AM
Quote from: edchapman on March 27, 2005, 11:20:11 AMI think You mean the BoardIndex.template.php

Yes, I'm sure he does.

What template do you use?

I just installed it into that one... It works fine in Safari but not IE or fire fox. It shows that there is a message but you don't see the message in IE. In fire fox you see the messages...without scroll... but can't shout.
This is the site that I have it on--->http://www.youth.kumcministries.com/newforum/index.php
Title: Re: Ultimate Shoutbox
Post by: edchapman on March 27, 2005, 03:47:59 PM
Note.. I don't really know what I'm doing either... Just at the mercy of the good people here.

This is the code I haveecho '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
     
       </tr><tr class="windowbg"><div class="tborder"><table border="1" width="100%" cellspacing="1" cellpadding="4">
     <tr class="titlebg">
               <td align="center"><script type="text/javascript"><!--
google_ad_client = "pub-2450911192681153";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
               <td align="center">', smfshout(), '</td>
     </tr>
</table></div>';

// Here's where the "Info Center" starts...
echo '
<br />

I added a google ad too as you can see.... I'm sure i did not do it right but it is the way I want it in Safari.
Can someone help me with getting it to work right in other browsers please?
Title: Re: Ultimate Shoutbox
Post by: Col on March 27, 2005, 05:18:52 PM
I see the messages fine in IE6. It doesn't scroll for me either in firefox. The only other thing I can suggest is you try this instead.

<td align="center">'. smfshout(). '</td>

I understand that in some instances you need to replace the commas with full stops. I have no idea why, or if it will work for you. - Worth a try though.

P.S. I notice that you are missing your closing </td> tag with google ads. Maybe it's because of that?
Title: Re: Ultimate Shoutbox
Post by: Grudge on March 28, 2005, 05:27:48 AM
Col,

I've been hard at work the last couple of days to try add some automatic reloading to the shoutbox - and wondered if you'd fancy giving it a try? You'd have to uninstall the old version, and install the version attached (Upload it to your packages folder). Note that the auto refresh is browser dependant - and uses some of the technology used in SMF 1.1 (You can see the effect here when you preview a post).

Basically, what it does is "secretly" queries the server every 5 seconds after the page has loaded to see if there has been any more shouts. If there have it simply adds them to the list. It doesn't do any page refreshes or anything - it's simply using javascript to do it all in the background.

Note that it won't work on every browser under the sun I doubt - it would need to be fairly new - it certainly works on IE and Firefox, and if it doesn't work it just won't refresh - simple. Please note that this contains a little code form 1.1 in the form of a javascript file, so hence it is under the same license as SMF.

Let me know how you get on if you decide to try it. If it works I may even make it so it can add a shout without a page refresh - neglecting the need for an iframe completely.
Title: Re: Ultimate Shoutbox
Post by: Col on March 28, 2005, 11:02:04 AM
This sounds like a great solution. I'll probably try it on a separate test board as I'm in the middle of testing out the converted files on my proper test board, and am hoping to transfer properly sometime in the hext 24-48 hours. I'll deffinately look at this a bit later though, as I'd like to include it with the new forum. My members will be very pleased to see the return of a shoutbox, and this extra functionality is great bonus.

Thanks.
Title: Re: Ultimate Shoutbox
Post by: loudog on March 28, 2005, 07:17:59 PM
sounds like a great idea Grudge. I dont have a test board set up, or I'd help you out.
Title: Re: Ultimate Shoutbox
Post by: Col on March 28, 2005, 08:54:41 PM
Hi,

Just installed it, and it appeared to install with no errors, but when I refreshed the screen I got this:

Fatal error: Cannot redeclare smfshout() (previously declared in /home/######/public_html/smf5test/Sources/Subs.php:1822) in /home/######/public_html/smf5test/Sources/Subs.php on line 1829

I'll have another go tomorrow.
Title: Re: Ultimate Shoutbox
Post by: Grudge on March 29, 2005, 04:38:21 AM
Sounds like the previous version wasn't uninstalled first?
Title: Re: Ultimate Shoutbox
Post by: Col on March 29, 2005, 09:42:43 AM
Hi,

I can't be bothered to repair that board, but I just looked via ftp and your shoutbox appears to be the only package downloaded. I also downloaded the installed list, and it is as follows:

Ultimate Shoutbox|^|shout1.tar.gz|^|grudge:ultimate_shout|^|1.3

I'm new to this, so don't know what that means. I'll install a new board and try this again.
Title: Re: Ultimate Shoutbox
Post by: Grudge on March 29, 2005, 10:01:03 AM
It's just that error almost certainly means it's been installed twice somehow. I didn't really change the mod file other than to add an option for guests not to have to enter their email address.
Title: Re: Ultimate Shoutbox
Post by: Col on March 29, 2005, 10:08:50 AM
What does the installed list suggest about that? Is that just one install of the shoutbox or not?

Anyway, I've installed this another test board, and it seems fine. I have to still test it properly though, and have to wait for my fellow admin to test it with me.

Having it refresh without an iframe would be a great feature too if you can do it. I'll let you know how I get on with it asap.
Title: Re: Ultimate Shoutbox
Post by: Col on March 29, 2005, 10:50:32 AM
Hiya Grudge,

Initial tests prove to be positive. I can detect no problems with it. My fellow admin forgot, made a shout, and lost a post, so I think a shoutbox only refresh would help a lot. I'll place the Shoutbox in an iframe till you can sort that out.

This tweak is a great improvement!

Thanks.
Title: Re: Ultimate Shoutbox
Post by: Grudge on March 29, 2005, 12:34:27 PM
Glad to hear it seems to work. I'll try take a look at getting posting to work this way over the next few days. FYI a package is only shown as installed once, even if you install it 10 times, I'm afraid.
Title: Re: Ultimate Shoutbox
Post by: Col on March 29, 2005, 04:25:33 PM
Hey Grudge,

How about the ability to remove the 'view all' option from members? I suppose I could do that by hand, or at least remove the link, but to turn off access would be better. It's just I have had some problems in the past, and the ability to turn off access to old shouts might be useful, rather just having delete them straight way if there is a problem.

What do you think?
Title: Re: Ultimate Shoutbox
Post by: Col on March 31, 2005, 08:06:45 PM
Grudge,

Thought I'd let you know in case you've not had any feed-back from Mac users, it apparently works as you intended for them too. ;)
Title: Re: Ultimate Shoutbox
Post by: Grudge on April 01, 2005, 11:59:18 AM
Thanks, only problem now is finding the time to add the other bits!
Title: Re: Ultimate Shoutbox
Post by: mrdonut on April 10, 2005, 08:09:43 PM
i can not veiw the shoutbox
likeit does not show up
how would i fix this
Title: Re: Ultimate Shoutbox
Post by: Col on April 10, 2005, 09:56:58 PM
If you are using the default template, and want the shoutbox on the right, you could try using what I posted in reply #312 (that's better than my suggestion in reply #301 for the right). If you would like the shoutbox on the left, you could try my suggestion in reply #301. If you go through the thread you will find other suggestions too.
Title: Re: Ultimate Shoutbox
Post by: mager on April 11, 2005, 10:24:03 PM
I downloaded this, and nothing showed up, i went to the settings and everything seemed right but it ddint appear on the forum.
Title: Re: Ultimate Shoutbox
Post by: Grudge on April 12, 2005, 09:09:38 AM
Did you read the instructions, or even any of the replies here? You need to add a line to your template to actually *show* it - if you can see the settings then it's installed fine. Just read the instructions and/or the posts Col referred to above.
Title: Re: Ultimate Shoutbox
Post by: mager on April 12, 2005, 03:18:53 PM
yea i did, i replaced what was supposed to be replaced and my forum turned into a tiny forum, not sure how to explain it, everything was pushed to the side.
Title: Re: Ultimate Shoutbox
Post by: Grudge on April 13, 2005, 06:25:22 AM
Well - it all depends on where you want it. By the sound of it the change moved the shoutbox to the left or the right, squashing the forum slightly. Where do you want it to appear? The best way to add it is firstly to add the HTML around where you want it to appear (i.e get the containing div in place, so it looks nice), and then call the function to fill it.

I know it sounds like a mammoth task but if you check through this topic there are examples of how to add the shoutbox to the top and bottom of the page as well as to the side. Also, if you want to check it is installed and working OK you can go to the URL of your site, as below:
www.yoursite.com/smf/ssi_examples.php

Title: Re: Ultimate Shoutbox
Post by: asdfasdfasdfasdf on April 15, 2005, 12:38:54 PM
Hi guys!
I've got a "little" problem with my shoutbox. When i try to put it into my forum it shows me this error instead of the shoutbox:
(http://onimra.cybton.com/stuff/problem.PNG)
I haven't seen an similar problem so far, i hope somebody can help me!
greetz oNiMrA
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on April 15, 2005, 03:28:17 PM
Who is your host?  I could write a custom realpath, so it really makes no sense to disable it.

Why don't you contact them, and ask them why they have disabled it?

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: asdfasdfasdfasdf on April 15, 2005, 03:56:32 PM
my host is http://www.cybton.com
i don't have a clue what a realpath is (newbie, sorry),
But when i've understood you right i can't do anything against it, apart from asking my host

EDIT:
ok, i've found out that the realpath function has been disabled for security reasons by my host, and they are not going to activate it, is there any solution how i can use the shoutbox without this function?
Title: Re: Ultimate Shoutbox
Post by: TedNigma on April 16, 2005, 08:17:51 PM
Probably old news.  However this mod works flawless in 1.1..
Title: Re: Ultimate Shoutbox
Post by: doomtomb on April 19, 2005, 04:19:09 PM
doesnt work for me. I got smf 1.03
Title: Re: Ultimate Shoutbox
Post by: Jerry on April 20, 2005, 12:27:51 AM
how is it not working, can you tell us your problem? Have you edited the template?
Title: Re: Ultimate Shoutbox
Post by: ay_danscisi on April 20, 2005, 10:12:52 AM
please help  :)

Fatal error: Cannot redeclare smfshout() (previously declared in /home/sitename/public_html/Sources/Subs.php:1824) in /home/sitename/public_html/Sources/Subs.php on line 1831
Title: Re: Ultimate Shoutbox
Post by: IamV on April 21, 2005, 05:19:25 PM
I have the shoutbox installed and working fine.  I am curious though if there is a way to have it display as it's own link.  So I could embed it in an iframe on a different portion of my site?
Title: Re: Ultimate Shoutbox
Post by: nameless on April 22, 2005, 03:12:09 AM
Grudge thank you for implementing this mod into SMF. This is by far the best shoutbox that has been made. Quick question. Is there a way I can implement this on a different page besides my forum? I want to add this shoutbox to my wordpress which is the root. TIA. :)
Title: Re: Ultimate Shoutbox
Post by: Grudge on April 22, 2005, 11:22:21 AM
OK,

ay_danscisi, you have somehow installed the mod twice (Even though it will only be listed once), try uninstalling it once - that may fix it!

The other two questions have the same answer - use SSI. If you go to:
www.yoursite.com/smf/ssi_examples.php

You'll actually see instructions on how to use SSI, and an example of how to see the shoutbox using it (The example page actually will show your shoutbox). So to add the shoutbox to any other site page just use the ssi include.

IamV, you want to do exactly this. Create a blank PHP page like:

<?php
require_once('smf/SSI.php');
ssi_shout();
?>



And set the source of the IFRAME to be this PHP page, easy as that :)
Title: Re: Ultimate Shoutbox
Post by: nameless on April 22, 2005, 11:51:07 AM
Hey Grudge I'm having a problem installing this mod. After I proceed I get this error

QuoteIncorrect table definition; There can only be one auto column and it must be defined as a key
File: /home/sfboarders/public_html/nameless/board/Packages/temp/shoutPdb.php
Line: 65

This board use to be an Enigma portal/YaBBSE that use to have the original shout mod by Haase if that will help any. TIA. :)

Edit: I found this (http://www.simplemachines.org/community/index.php?topic=8417.msg114073#msg114073) and followed it and dropped my table and made a new one and I still get the same error.
Title: Re: Ultimate Shoutbox
Post by: Grudge on April 22, 2005, 04:29:51 PM
Does that error actually halt installation or not? Can you run this in phpMyAdmin, and tell me the results?


SHOW CREATE TABLE smf_shoutbox


Where smf_ is your database prefix.
Title: Re: Ultimate Shoutbox
Post by: nameless on April 22, 2005, 04:57:37 PM
Quote from: Grudge on April 22, 2005, 04:29:51 PM
Does that error actually halt installation or not? Can you run this in phpMyAdmin, and tell me the results?


SHOW CREATE TABLE smf_shoutbox


Where smf_ is your database prefix.

Grudge, I can't proceed after I get this error. This is the message I get. My db prefix is "yabbse_"

Quoteyabbse_shoutbox CREATE TABLE `yabbse_shoutbox` (
`ID_SHOUT` int(...
Title: Re: Ultimate Shoutbox
Post by: Grudge on April 22, 2005, 05:17:36 PM
There must be more than just that - there should be about 8-10 liesn returned - that's just the first 100 characters...
Title: Re: Ultimate Shoutbox
Post by: nameless on April 22, 2005, 05:58:28 PM
I entered your information in that text box

this is what I have:

(http://www.sfboarders.com/userimages/shoutsql1.JPG)

(http://www.sfboarders.com/userimages/shoutsql2.JPG)
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on April 22, 2005, 06:08:15 PM
I believe Grudge wants you to click the <- T -> button.

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: nameless on April 22, 2005, 06:18:11 PM
Quote from: [Unknown] on April 22, 2005, 06:08:15 PM
I believe Grudge wants you to click the <- T -> button.

-[Unknown]

You have to be kidding me that's a button? Here's the info you requested:

QuoteCREATE TABLE `yabbse_shoutbox` (
`ID_SHOUT` int(11) NOT NULL auto_increment,
`ID_MEMBER` tinytext NOT NULL,
`displayname` text,
`message` longtext NOT NULL,
`email` tinytext,
`time` text NOT NULL,
PRIMARY KEY  (`ID_SHOUT`)
) TYPE=MyISAM
Title: Re: Ultimate Shoutbox
Post by: Grudge on April 22, 2005, 07:14:50 PM
Well - there is nothing wrong with that table!! There's no way that install should fail now, basically, the script does this:

$request = db_query("
SHOW COLUMNS
FROM {$db_prefix}shoutbox
LIKE 'id'", __FILE__, __LINE__);
$need_upgrade = mysql_num_rows($request) > 0;


Which means "If the shoutbox table has a column called id, it needs to be upgraded".

As the table you have no longer has a column called id, then $need_upgrade will be 0, and line 66 will no longer be executed! Can you try the install again? I assume you definetly have changed the right shoutbox table - stupid question I know but personally I have so many databases sometimes I edit the wrong thing. Is it *still* the same error message? If so I guess I'll write you a custom package with a different install version in! Won't get time to do that till tomorrow though!
Title: Re: Ultimate Shoutbox
Post by: nameless on April 22, 2005, 07:40:12 PM
Grudge, it's the correct table. I triple checked it. I have a lot of db's on this server and another SMF/MKPortal site with a different db prefix though. Thanks for helping me out. :)
Title: Re: Ultimate Shoutbox
Post by: IamV on April 22, 2005, 08:17:51 PM
Quote from: Grudge on April 22, 2005, 11:22:21 AM

IamV, you want to do exactly this. Create a blank PHP page like:

<?php
require_once('smf/SSI.php');
ssi_shout();
?>



And set the source of the IFRAME to be this PHP page, easy as that :)

I did what you said & the iframe just loads as the full index page where the shout is located.
Title: Re: Ultimate Shoutbox
Post by: nameless on April 23, 2005, 01:39:10 AM
Just testing on my test server and I was able to get it to work but its a clean install of SMF while live server is the upgrade.

On the test server I was able to get the following code to work

<? include("http://domain.com/board/SSI.php?ssi_function=shout"); ?>

The only thing is that the "View All" and "Shout" button don't appear.

However, I got the IFRAME to show the buttons but the only drawback about the IFRAME well for one it's an IFRAME  :D and when you click on the "View All" button it shows the whole page in that small little IFRAME. Is there a way around that? Possibly making the link come up in another browser?

TIA. :)
Title: Re: Ultimate Shoutbox
Post by: biocipher on April 23, 2005, 08:27:39 AM
i've just tried to install this MOD via the admin panel and i have changed the settings in the right places but for some reason i can't get it to display on the index..any ideas?
Title: Re: Ultimate Shoutbox
Post by: nameless on April 23, 2005, 12:18:50 PM
Quote from: biocipher on April 23, 2005, 08:27:39 AM
i've just tried to install this MOD via the admin panel and i have changed the settings in the right places but for some reason i can't get it to display on the index..any ideas?

biocipher there's some info in the xml file

QuoteExample:
               If you want to add the shoutbox to the LEFT of your web page, you could make the following change in index.template.php.
               Find:
               
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';


               and replace with:
               
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr valign="top">
<td width="120">', smfshout(), '</td>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';

               This is just a basic example, but should be enough to get you started.
Title: Re: Ultimate Shoutbox
Post by: Grudge on April 26, 2005, 06:04:25 AM
nameless, I'm afraid I don't know enough about IFRAME's to say how you do that. I have made a start into having the next version of the shoutbox use javascript to auto refresh. The only problem with it is that it's a little intensive on the server. I guess at the very least I could make it so it used javascript to submit posts so the page doesn't refresh - that would remove the IFRAME requirement. Unfortunately the problem right now is that of time...
Title: Re: Ultimate Shoutbox
Post by: robone on April 26, 2005, 09:02:44 AM
I used the script that Col proposed on the 26 March @ 12h31 and its working great. Quite like it on the rights side.

Check it out www.imagin.za.net

Had a few border colour problems. Still need to get the spacing right on the sides, but its now working on 3 of my themes, Default, Classic and Oxygen.

Thanks
Title: Re: Ultimate Shoutbox
Post by: Col on April 26, 2005, 11:01:46 AM
Quote from: Grudge on April 26, 2005, 06:04:25 AM
nameless, I'm afraid I don't know enough about IFRAME's to say how you do that. I have made a start into having the next version of the shoutbox use javascript to auto refresh. The only problem with it is that it's a little intensive on the server. I guess at the very least I could make it so it used javascript to submit posts so the page doesn't refresh - that would remove the IFRAME requirement. Unfortunately the problem right now is that of time...

I've had some problems, and have still not quite made the switch over SMF. I'm glad that you mentioned load, as this too concerned me. With your refresh version, it did occur to me that everyone online to the forum having the shoutbox making queries as to new shouts every 5 seconds as potentially problematical. As I indicated before, cannot this just be done at the end of the cycle, or just before the end. Alternatively, changing the query to every 30 seconds would help a lot, but is not as elegant as once every cycle.
Title: Re: Ultimate Shoutbox
Post by: Col on April 26, 2005, 11:03:13 AM
Quote from: robone on April 26, 2005, 09:02:44 AM
I used the script that Col proposed on the 26 March @ 12h31 and its working great. Quite like it on the rights side.

Check it out www.imagin.za.net

Had a few border colour problems. Still need to get the spacing right on the sides, but its now working on 3 of my themes, Default, Classic and Oxygen.

Thanks

Let me know if I can help tweak it for you.
Title: Re: Ultimate Shoutbox
Post by: nameless on April 26, 2005, 11:24:23 AM
Quote from: Grudge on April 26, 2005, 06:04:25 AM
nameless, I'm afraid I don't know enough about IFRAME's to say how you do that. I have made a start into having the next version of the shoutbox use javascript to auto refresh. The only problem with it is that it's a little intensive on the server. I guess at the very least I could make it so it used javascript to submit posts so the page doesn't refresh - that would remove the IFRAME requirement. Unfortunately the problem right now is that of time...

Grudge, it's all good. I figured that it was a permissions problems.
Title: Re: Ultimate Shoutbox
Post by: robone on April 26, 2005, 11:30:26 AM
Hey Col.....its fine for now. Am having fun anyway. Thanks
Title: Re: Ultimate Shoutbox
Post by: Jerry on April 26, 2005, 06:42:00 PM
Hey Grudge for 1.1:
Install / Uninstall
Quote1.    Execute Modification    index.php    Test successful
2.    Execute Modification    ./Sources/Subs.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    SSI.php    Test successful
6.    Execute Modification    ssi_examples.php    Test failed
7.    Execute Modification    ssi_examples.shtml    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
ssi_examples.php never gets done.
Title: Re: Ultimate Shoutbox
Post by: sirknight on April 27, 2005, 01:03:47 AM
The instruction for installation is not good..Im stuck in number 2,4-6..Help please...
This thread is so long, i could not follow.
Title: Re: Ultimate Shoutbox
Post by: stargazer_1017 on April 27, 2005, 05:01:50 AM
I tried using the shoutbox on my "Starry Night" theme, and for some reason I couldn't see the button. Is there a way I can modify the size of the button and even the input text area?

-Shayna
Title: Re: Ultimate Shoutbox
Post by: Col on April 27, 2005, 07:59:39 AM
There is a no shoutbox button, but you have to include the code somewhere in you template for the shoutbox to appear.

I posted a couple of ways of doing this on about page 21. There have been a number of others posted too.
Title: Re: Ultimate Shoutbox
Post by: stargazer_1017 on April 28, 2005, 03:21:47 AM
Thanks, Col! I got it working :) You're awesome!

-Shayna
Title: Re: Ultimate Shoutbox
Post by: SaikoJosh on April 28, 2005, 03:38:21 PM
I'm using SMf 1.03 and I can't see the shoutbox on my forum. Is there an option somewhere that I need to turn on or something?
Title: Re: Ultimate Shoutbox
Post by: SaikoJosh on April 28, 2005, 03:39:14 PM
Sorry I just looked through this topic and I found out why. :-[
Title: Re: Ultimate Shoutbox
Post by: IamV on May 01, 2005, 05:46:17 PM
Quote from: IamV on April 22, 2005, 08:17:51 PM
Quote from: Grudge on April 22, 2005, 11:22:21 AM

IamV, you want to do exactly this. Create a blank PHP page like:

<?php
require_once('smf/SSI.php');
ssi_shout();
?>



I am still having this problem.

And set the source of the IFRAME to be this PHP page, easy as that :)

I did what you said & the iframe just loads as the full index page where the shout is located.
Title: Re: Ultimate Shoutbox
Post by: nameless on May 02, 2005, 07:45:43 PM
Grudge is there a way to make the username bold when using SSI.php?

It's hard to tell where the post begins cause all the text looks the same. TIA :)
Title: Re: Ultimate Shoutbox
Post by: stargazer_1017 on May 06, 2005, 04:41:30 AM
Just discovered something--I noticed that when I played with settings of the Shoutbox on IE, I got it to where I wanted, but I tried it on FireFox, and the shoutbox just ends up on the otherside of the screen. Is there a code I can use to fix that?

-Shayna
Title: Re: Ultimate Shoutbox
Post by: Col on May 06, 2005, 10:46:57 AM
It just sounds like you've slipped up with your html somewhere.
Title: Re: Ultimate Shoutbox
Post by: mrselnombre on May 09, 2005, 02:45:54 PM
Quote from: LiL_J on November 30, 2004, 11:01:16 PM
Hello.  i tried editing the shout.template.php script to make the shout show in 2 columns.  i want on the left the marquee window and on da right the fields to post.  this is the code i have but wen i upload it it says parse error.  can any one help me fix this?

<?php

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

echo '
<table border="0" cellspacing="0" cellpadding="4" align="center" width="100%">
<tr>
<td class="catbg" align="center">'
$txt['shoutbox_1'], '</td>
</tr><tr>
<td class="titlebg" align="left">'
$context['page_index'], '</td>
</tr><tr>
<td class="windowbg">'
;
foreach ($context['arc_shouts'] as $shout)
{
if ($context['canDelete'])
echo '
<a href="'
$scripturl'?action=delete_shout;id='$shout['id'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
if (empty($shout['email']))
echo '
<span class="smtxt">'
$shout['time'], '</span> - <a href="'$scripturl'?action=profile;u='$shout['memberID'], '">'$shout['displayname'], '</a> -' $shout['message'] . $modSettings['shoutsep'];
// Guest?
else
echo '
<span class="smtxt">'
$shout['time'], '</span> - <a href="mailto:'$shout['email'], '">'$shout['displayname'], '</a> -' $shout['message'] . $modSettings['shoutsep'];
}
echo '
<center>'
;

if ($modSettings['enablearchiveshout'] == && $context['canPost'])
template_shout_form();

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

// Pull the delete options for the administrator
if ($context['canDelete'])
echo '
<table border="0" cellspacing="1" cellpadding="4" align="center" width="100%">
<tr>
<td class="catbg" align="center" colspan="2">'
$txt['shoutbox_42'], '
</td>
</tr>
<tr>
<td class="windowbg2" valign="top" width="50%">
<form action="'
$scripturl'?action=delete_shout_age" method="post">'$txt['shoutbox_2'], '
<input type="text" name="age" id="age" value="25" size="4" /> '
$txt['shoutbox_3'], '
</td>
<td class="windowbg2" valign="top">
<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />
</form><br />
</td>
</tr><tr>
<td class="windowbg2" valign="top" width="50%">
<form action="'
$scripturl'?action=delete_all_shouts" method="post">'$txt['shoutbox_4'], ' '$modSettings['shoutlimit'], '
</td>
<td class="windowbg2" valign="top">
<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />
</form>
</td>
</tr>
</table>'
;
}

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

echo '
<center>'
;
// Scrolling?
if ($modSettings['enablescrollshout'] == 1)
echo '
<marquee direction="'
$modSettings['shoutscrolldir'], '" width="'$modSettings['shoutscrollwidth'], '" 
height="'
$modSettings['shoutscrollheight'], '" scrollamount="'$modSettings['shoutscrollspeed'], '" 
scrolldelay="'
$modSettings['shoutscrolldelay'], '" onmouseover="this.stop()" onmouseout="this.start()">';

// Loop through the shouts!
foreach ($context['shouts'] as $shout)
{
// If it's an admin - they get the delete button...
if ($context['canDelete'])
echo '
<a href="'
$scripturl'?action=delete_shout;id='$shout['id'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
<span class="smtxt">'
$shout['time'], '</span> <a href="', ($shout['email'] == '' $scripturl '?action=profile;u=' $shout['memberID'] : 'mailto:' $shout['email']), '">'$shout['displayname'], '</a> -'$shout['message'] . $modSettings['shoutsep'];

}

// End the marquee?
if ($modSettings['enablescrollshout'] == 1)
echo '
</marquee>'
;</td>
            <
td>
echo '
<center>
<p><a href="'
$scripturl'?action=shout_archive">'$txt['shoutbox_43'], '</a></p>
</p>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>'
;
}

function 
template_shout_form()
{
global $context$settings$options$txt$user_info$scripturl$modSettings$ID_MEMBER;

echo '
<center>
<form action="'
$scripturl'?action=shout" method="post">
<input type="hidden" value="'
$context['qstr'], '" name="qstr" />
<input type="hidden" value="" name="email" />'
;

if ($user_info['is_guest'])
echo '
<input type="hidden" value="0" name="memberID" />
<input type="text" value="'
$txt['shoutbox_6'], '" name="displayname" maxlength="100" onfocus="this.value=\'\'" /><br />
<input type="text" value="'
$txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" /><br />';
else
echo '
<input type="hidden" value="'
$user_info['name'], '" name="displayname" />
<input type="hidden" value="'
$ID_MEMBER'" name="memberID" />';

echo '
<input type="text" value="'
$txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="this.value=\'\'" /><br />
<input type="submit" name="submit" value="'
$txt['shoutbox_9'], '" />
</form>
</center></td>
          </tr>
        </table>'
;

}
?>



i'd like this too.
Title: Re: Ultimate Shoutbox
Post by: Grudge on May 10, 2005, 09:24:28 AM
I'm sorry but you've got the code quite wrong, both the PHP and HTML is up the spout. In the template_shout_box() function you'll probably want to put:

echo '<div><div style="float: left;">';

at the top, put:
echo '</div></div>';
at the very bottom.

And in that function, after this line:

if ($modSettings['enablescrollshout'] == 1)
echo '
</marquee>';


Put something like:

echo '</div><div style="float: right;">';


I'm no expert at HTML, but that should give you the starting point...
Title: Re: Ultimate Shoutbox
Post by: mrselnombre on May 10, 2005, 09:52:46 AM
just modified the shoutbox template page using your suggestions and it is almost perfect.

Just need to pull the shout button over with it  and it will be fine.
Title: Really bad problem with this Mod
Post by: Nitro on May 17, 2005, 05:46:41 PM
i installed this one and i get this error:

Fatal error: Cannot redeclare smfshout() (previously declared in /homepages/20/d107436098/htdocs/bb/Sources/Subs.php:2082) in /homepages/20/d107436098/htdocs/bb/Sources/Subs.php on line 2089


now i cannot even see any topic, how do i delete this mod or fix this problem?

thank you.
Title: Re: Ultimate Shoutbox
Post by: Nitro on May 17, 2005, 06:01:35 PM
so if i upload upgrade smf package this means ALL my mods will be gone? OH NO!  :( you are talkikng about the smf upgrade, right?
Title: Re: Ultimate Shoutbox---GOOD NEWS!
Post by: Nitro on May 17, 2005, 06:21:36 PM
i thought about what you said, and it might not work for someone else, but since i could not cope the idea of upgrading the whole thing, i thought about this must have another solution! the problem was i installed this mod and unistalled it, THEN installed back again and it gave the error on the subs.php so, the solution i thought about was this:
download the updgrade version for smf
and i only uploaded the subs.php and guess what happened...
IT WORKED!!!! it was able to keep ALL my mods, game arcade, etc, etc!
it is all there, so i went to the package manager and unistalled this mode.
everything works now, MAN! i got worried for a moment!

thank you. too bad it didn't work in my forum, i'd love to have this cool MOD. i have seen it working and i like that!

-richard

Quote from: Owdy on May 17, 2005, 05:48:53 PM
You have installed it twice. Upload whole upgrade package to your forums and you should be fine.

edit: and of course, there should be uninstaller in package manager. That wont help if you have installed many times.
Title: Re: Ultimate Shoutbox
Post by: Jerry on May 17, 2005, 08:16:29 PM
Quote from: Owdy on May 17, 2005, 05:48:53 PM
You have installed it twice. Upload whole upgrade package to your forums and you should be fine.

edit: and of course, there should be uninstaller in package manager. That wont help if you have installed many times.
This does not mean they have installed it twice all the time, with the shoutbox for some reason the package manager modified Subs.php twice a few times on my forums .  All you need to do is open up /Sources/Subs.php and search for
function smfshout()
{
global $sourcedir;

include_once("$sourcedir/shout.php");
shout_display();
shout_form();
}

and there will be 2, and delete 1 of them -.-
Title: Re: Ultimate Shoutbox
Post by: Nitro on May 17, 2005, 08:27:16 PM
i tried that one first, and but still was giving me another error about parse or something. so i delete it the subs.php and upload an new one and it worked somehow. i wonder what is this subs.php for?
thank you
Title: Re: Ultimate Shoutbox
Post by: the mighty gc on May 18, 2005, 08:17:08 AM
gosh i have tried everything in this forum to try and get shoutbox running, its installed in teh forum, but i just cant seem to add the right code.  there didnt appear to be any install instructions either.

could someone please tell me in idiot terms what i should be typing to get it running.

i have the shoutbox.php in the default folder and in the thems folder i want to use, that didnt seem to help either.

thanks
Title: Re: Ultimate Shoutbox
Post by: nameless on May 18, 2005, 04:52:20 PM
Quote from: the mighty gc on May 18, 2005, 08:17:08 AM
gosh i have tried everything in this forum to try and get shoutbox running, its installed in teh forum, but i just cant seem to add the right code.  there didnt appear to be any install instructions either.

could someone please tell me in idiot terms what i should be typing to get it running.

i have the shoutbox.php in the default folder and in the thems folder i want to use, that didnt seem to help either.

thanks

Did you follow the directions here (http://www.simplemachines.org/community/index.php?topic=8415.msg252505#msg252505)?
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on May 19, 2005, 03:07:46 AM
i want to have  [message] view all and shout button in one line...............so please tell me how to do this.i placed it where i want now problem is to make all those " [message] view all and shout button" is one line not like this
                view all
                message
                 shout
              in singe line........
Title: Re: Ultimate Shoutbox
Post by: stargazer_1017 on May 20, 2005, 10:39:39 PM
Is there a way to possibly make a log of who posted the most in the shoutbox and so forth?

-Shayna
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on May 21, 2005, 09:23:47 PM
Quote from: hassan on May 19, 2005, 03:07:46 AM
i want to have  [message] view all and shout button in one line...............so please tell me how to do this.i placed it where i want now problem is to make all those " [message] view all and shout button" is one line not like this
                view all
                message
                 shout
              in singe line........

AnyOne Please...................
Title: need help hurry!
Post by: eddie43302 on May 22, 2005, 07:02:02 PM
i just applied this mod in my forum and now i cant access my forum at all not even the admin section to use my backup here is the error i get when i try to go to my forum


Fatal error: Cannot redeclare smfshout() (previously declared in /home/content/e/d/d/eddie43302/html/smf/Sources/Subs.php:1831) in /home/content/e/d/d/eddie43302/html/smf/Sources/Subs.php on line 1838
Title: Re: Ultimate Shoutbox
Post by: the mighty gc on May 24, 2005, 11:53:43 PM
Quote from: nameless on May 18, 2005, 04:52:20 PM
Quote from: the mighty gc on May 18, 2005, 08:17:08 AM
gosh i have tried everything in this forum to try and get shoutbox running, its installed in teh forum, but i just cant seem to add the right code.  there didnt appear to be any install instructions either.

could someone please tell me in idiot terms what i should be typing to get it running.

i have the shoutbox.php in the default folder and in the thems folder i want to use, that didnt seem to help either.

thanks

Did you follow the directions here (http://www.simplemachines.org/community/index.php?topic=8415.msg252505#msg252505)?

yeah i did that, i get this error

QuoteTemplate Parse Error!
There was a problem loading the /Themes/helios_multi/index.template.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.

followed by this error

QuoteParse error: parse error, unexpected '<' in /home/.jassid/freeport/freeport3volution.com/forums/Themes/helios_multi/index.template.php on line 415

Shoutbox shows up in my admin options etc....it just wont display on my forum when i add the function smfshout () command
Title: Re: Ultimate Shoutbox
Post by: ShadowStriker on May 25, 2005, 08:02:18 PM
would someone be kind to tell me how the ultimate shoutbox shows up? i search for one and landed in page 14... this guys say READ!!! but now there's 27 pages and i've seen many codes im so confused...
Title: Re: Ultimate Shoutbox
Post by: robone on May 25, 2005, 08:23:20 PM
Quote from: robone on April 26, 2005, 09:02:44 AM
I used the script that Col proposed on the 26 March @ 12h31 and its working great. Quite like it on the rights side.

Check it out www.imagin.za.net

Had a few border colour problems. Still need to get the spacing right on the sides, but its now working on 3 of my themes, Default, Classic and Oxygen.

Thanks

This is what I posted before. Use the col's script
Title: Re: Ultimate Shoutbox
Post by: ShadowStriker on May 25, 2005, 08:31:47 PM
"the col's scrpt"? whats that mean?
Title: Re: Ultimate Shoutbox
Post by: Jerry on May 25, 2005, 08:46:21 PM
I also posted one way to make it show up on page 9 or 8 ;)
Title: Re: Ultimate Shoutbox
Post by: ShadowStriker on May 25, 2005, 08:49:50 PM
k thanks  :)
Title: Re: Ultimate Shoutbox
Post by: Bitwiz44 on May 26, 2005, 12:44:55 PM
Quote from: hassan on May 19, 2005, 03:07:46 AM
i want to have  [message] view all and shout button in one line...............so please tell me how to do this.i placed it where i want now problem is to make all those " [message] view all and shout button" is one line not like this
                view all
                message
                 shout
              in singe line........

To Grudge, or anyone else..... Please read.

I would also like to know how to do this. My order would be 'View" then the [message] and lastly the submit button.  Can the message box be expanded horizontally?

Thanks in advance for any advice!
Title: Re: Ultimate Shoutbox
Post by: robone on May 26, 2005, 07:09:38 PM
shadowstriker, col is a member who posts here and he wrote a script that you paste into some place...can't remember where...but it is described in his post of the 26th March and it works.

Go to my forum at www.imagin.za.net and have a look.

Title: Re: Ultimate Shoutbox
Post by: Col on May 26, 2005, 08:43:00 PM
I saw Bitwiz44's post, and I think he has it installed OK, and my take was that he wants to display the options/fields in a single line:

view all | message | shout

I did look at the code, but it looked like a lot of fiddling, and I'm still new to CSS. I still find the SMF code quite confusing, but I'm sure there are others around here that could do this in two ticks?
Title: Re: Ultimate Shoutbox
Post by: Bitwiz44 on May 27, 2005, 02:17:10 AM
Yes, The shout works nicely.

I just want to inline the stuff.
Title: Re: Ultimate Shoutbox
Post by: loudog on May 28, 2005, 01:44:29 AM
Just to verify I've done this right. I installed the mod, which installs on the smf default theme. However my forum theme is not SMF default. I used this code at the top of the theme index.template I wanted shoutbox in.
<?php require("blah/blah/SSI.php"); ?>

Then to call the shoutbox where I wanted in that theme, I used this inside of a table

', smfshout(), '


It works fine, but I want to be sure I'm setting this up right to avoid future problems. Also, to use this on any other themes,  I follow the same steps correct?

Thanks Grudge...
Title: Re: Ultimate Shoutbox
Post by: Jerry on May 28, 2005, 01:50:51 AM
you do not need to require the SSI file within your forum template, just add the smfshout() function.
Title: Re: Ultimate Shoutbox
Post by: lakerol on May 28, 2005, 02:34:16 AM
Is there anyway possible way to align the generated text from the shoutbox to align to the left instead of all in the center?
Title: Re: Ultimate Shoutbox
Post by: Jerry on May 28, 2005, 03:07:21 AM
find in the shout.template.php
   //--></script>';

   echo '
      <center>';
   // Scrolling?

replace the <center> with <left>

find:
   echo '
         <p><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a></p>
      </center>';

replace with:
   echo '</left><center>
         <p><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a></p>
      </center>';


should do the trick....
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on May 28, 2005, 03:12:59 AM
anyone plz ............no one replied me  >:( >:( >:( >:( >:(

Quotei want to have  [message] view all and shout button in one line...............so please tell me how to do this.i placed it where i want now problem is to make all those " [message] view all and shout button" is one line not like this
                view all
                message
                 shout
              in singe line........
Title: Re: Ultimate Shoutbox -long post.
Post by: Bitwiz44 on May 28, 2005, 02:08:51 PM
Quote from: hassan on May 28, 2005, 03:12:59 AM
anyone plz ............no one replied me  >:( >:( >:( >:( >:(

i want to have  [message] view all and shout button in one line...............so please tell me how to do this.i placed it where i want now problem is to make all those " [message] view all and shout button" is one line not like this
                view all
                message
                 shout
              in singe line........


I got it, But I would NEVER have worked this out without Grudge's help.  (Thanks Grudge!)

echo '
<input type="hidden" value="', $user_info['name'], '" name="displayname" />
<input type="hidden" value="', $ID_MEMBER, '" name="memberID" />';

//make the stuff inline
echo '
<left>
<p><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a>


<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="120" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" />
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
</form>
</center>';

}

?>

starting at the //make the stuff inline:
Ok, its not pretty, but its VERY close to what I needed and works. I just need somehow to put a few spaces between each item.

[view all]  [message]  [shout] in one line is what I wanted. I made the shout under the stats on the main below. I also needed the message entry box wider, to see easier what is 'About" to be entered in the box.
Grudge's advice:


all the HTML for the shoutbox is in the file called shout.template.php, it can be found in your Themes/default directory.

The form bits (Where people type there message) is in the function called "template_shout_form", to make the message box longer change the bit that says:

name="message" size="16"

To have a size that you want it to have (for example 25)

To make it inline I *think* you want to remove the <br> that is on the end of that same line.


The below part didn't work for me.


to get the "View all" on the same line as the box is something I'd find a little tricky cause I don't know much about CSS, but I think you'd change this:

<form action="', $scripturl, '?action=shout" method="post">

to something like:

<form action="', $scripturl, '?action=shout" method="post" style="display: inline;">



From the actual  code that works for me, I found the line grudge is describing, and move it to the same area as the other code. after much playing, finally I removed the </p> and the echo.  8)

If anyone has a better way, Im all ears.
Title: Re: Ultimate Shoutbox
Post by: loudog on May 28, 2005, 02:35:28 PM
Quote from: Jerry on May 28, 2005, 01:50:51 AM
you do not need to require the SSI file within your forum template, just add the smfshout() function.

I thought if you didn't use the shoutbox on your default template, that you had to use SSI to call it. If you are using default then no. Is this incorrect? I have about 10 different themes for various topics on my site. The shout box is being used for my open general topic, which is not the default SMF template.
Title: Re: Ultimate Shoutbox
Post by: loudog on May 28, 2005, 02:57:34 PM
edited
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on May 28, 2005, 09:33:02 PM
Thanks Alot "Bitwiz44".I got it now.Thanks alot........it works
Title: Re: Ultimate Shoutbox
Post by: Bitwiz44 on May 28, 2005, 11:29:19 PM
Quote from: hassan on May 28, 2005, 09:33:02 PM
Thanks Alot "Bitwiz44".I got it now.Thanks alot........it works

Thank Grudge, I would never have gotten it without him.  8)
Title: Re: Ultimate Shoutbox
Post by: MasterRye on May 29, 2005, 08:47:45 PM
Sorry this thread is so big I cannot find my answer, I use version 1.0.3 and I cant see the ultimate shout box after installing, plus how do I get it to work with the Helios Theme?
Title: Re: Ultimate Shoutbox
Post by: loudog on May 30, 2005, 12:36:33 AM
Put this code some place in your index.template, of the template you wnat it to show up in. I put mine right after the powered/valid logo echo' and added my own HTML around it, I suggest maybe a table with a border or something.
', smfshout(), '
Title: Re: Ultimate Shoutbox
Post by: Grudge on May 31, 2005, 06:54:27 AM
Hi all,

Sorry it's taken me so long to reply, although I did reply to the few emails I received!

I've updated the description of the mod (Mod site and first post in this topic), with some helpful (I hope) tidbits on displaying the shoutbox, editing the template and using SSI - so in the future people won't be as confused!
Title: Re: Ultimate Shoutbox
Post by: MasterRye on May 31, 2005, 12:56:47 PM
Thank you my shout box is up and wrking and that edit made more sense to me. Now I just need to tackle the games arcade and music uploads, listening, and lyrics.
Title: Re: Ultimate Shoutbox
Post by: Xarcell on June 02, 2005, 11:25:52 PM
I think the shoutbox is pretty sweet. I have a problem though, in my shoutbox it shows the (no-image) X icon. Is my avatar supposed to be showing up there? because it won't.

Is there anyway to turn it off? I don't want any images showing up in the shouts besides the smilies.

Thanx,

-Xarcell
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on June 02, 2005, 11:43:09 PM
there is delete icon in shout box folder named as deleteshout.gif  you have to upload it manually to your theme images's folder where you are using shoutbox.then you will see delete icon instead of X .hope you got it.
Title: Re: Ultimate Shoutbox
Post by: stargazer_1017 on June 03, 2005, 04:34:11 AM
If this was already posted earlier, I apologize, but I didn't find it. Is there anyway I can post the top shouts? I mean, list how many shouts a forum member has made, starting from the top shouter?

-Shayna
Title: Re: Ultimate Shoutbox
Post by: LostProphecy on June 03, 2005, 06:43:59 AM
does anyone know if this works on SMF 1.1 Beta 2??
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 03, 2005, 10:07:56 AM
What does it say when you try to install it on Beta 2 - does it say any step failed? I'm willing to update it if necessary for Beta 2, but I expect it will work anyway.


stargazer_1017,

There's no built in way to do this, you'd have to mod it in yourself. If you were having it display per page load it would be a real drag on your forum speed - but I guess you could modify the stats page to do it - I don't have time to add it myself though.
Title: Re: Ultimate Shoutbox
Post by: stargazer_1017 on June 04, 2005, 11:38:19 PM
Oh no, that's okay then :) I was just wondering. I think I just wanted it to show in the "archive" page. I'm not so good at the programming stuff, so I'll leave it as is. It's still wonderful the way it is :D

-Shayna
Title: Re: Ultimate Shoutbox
Post by: DuckFat on June 08, 2005, 08:12:02 AM
My Shoutbox is getting crushed by hundreds of online gambling ads per day.  I need to find a way to ban the people doing it.  I've used IP banning in SMF but I don't think it's working with the shoutbox or the spammers are getting around it somehow.

Does IP banning work with the shoutbox?

If not, can we please have a patch to allow IP banning and also automatic deletion of any message with certain words?  I'd like to ban the words poker, blackjack, gambling, etc.  I don't want to ban those words for the entire forum, just the shoutbox.  Can anyone help?  If I can't get a quick solution I'll have to remove the shoutbox altogether and that would make me sad.  :(
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 08, 2005, 08:56:09 AM
DuckFat, have you enabled guests to shout? Why don't you make your shoutbox members only so banned members won't be able to use it?
Title: Re: Ultimate Shoutbox
Post by: DuckFat on June 08, 2005, 10:38:23 AM
I see no option to do that in the "Edit Features and Options" section.  How do I do that?

That would only be a temporary fix.  I think an essential element of the shoutbox is allowing quick anonymous posts.
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 08, 2005, 04:16:42 PM
It's under "Manage Permissions".

It should respect bans though even if the user is a guest, as SMF won't allow them to get as far as the shoutbox if they're banned. If worst comes to worst I can probably post you the code to force it to disallow certain words if you want.
Title: Re: Ultimate Shoutbox (my module for using it in Mambo)
Post by: rjoe_brandon on June 08, 2005, 05:19:15 PM
Hi all -

Like many I was having troubles getting the formatting to play nice with my forum page.  Since I am using Mambot CMS I threw together a Mambo CMS module to display the shoutbox anywhere a module can be displayed in Mambo (which is nearly everywhere  :)

You can download it here.

http://shovelbums.org/content/view/120/481/

Title: Re: Ultimate Shoutbox
Post by: Grudge on June 08, 2005, 05:37:58 PM
Thanks rjoe_brandon, I'm sure people will appreciate it :)
Title: Re: Ultimate Shoutbox
Post by: cferd on June 08, 2005, 05:42:49 PM
Hey, thank you. So far so good. It's working perfectly. Will post any problems, if any arise.


Edit: Ok, one problem did arise. The module cannot be selected to show in the wrapped forum page.
Title: Re: Ultimate Shoutbox
Post by: LostProphecy on June 09, 2005, 01:21:55 AM
Quote from: Grudge on June 03, 2005, 10:07:56 AM
What does it say when you try to install it on Beta 2 - does it say any step failed? I'm willing to update it if necessary for Beta 2, but I expect it will work anyway.


i'm getting this grudge

Type Action Description
1. Extract File ./Sources/shout.php 
2. Extract File ./Themes/default/shout.template.php 
3. Extract File ./Themes/default/images/deleteshout.gif 
4. Execute Code shoutPdb.php 
5. Execute Modification index.php Test successful
6. Execute Modification ./Sources/Subs.php Test successful
7. Execute Modification ./Sources/ModSettings.php Test successful
8. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
9. Execute Modification SSI.php Test successful
10. Execute Modification ssi_examples.php Test failed
11. Execute Modification ssi_examples.shtml Test successful
12. Execute Modification ./Sources/ManagePermissions.php Test successful
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 09, 2005, 08:24:38 AM
I'd just install it anyway - it just won't leave you with a SSI example - not a big deal.
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on June 09, 2005, 10:58:51 PM
can i lauch shoutbox in new window.?
                need help..
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 10, 2005, 06:13:56 AM
Yes, you want to use SSI to create an empty page with just a shoutbox in it. I've commented on this before, but best check out ssi_examples.php. If you made a page like:

<?php

require_once('SSI.php');
ssi_shout();

?>



Then have a link to that page that would just display the shoutbox - to give you a start at least
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on June 10, 2005, 11:38:42 PM
Quote from: Grudge on June 10, 2005, 06:13:56 AM
Yes, you want to use SSI to create an empty page with just a shoutbox in it. I've commented on this before, but best check out ssi_examples.php. If you made a page like:

<?php

require_once('SSI.php');
ssi_shout();

?>



Then have a link to that page that would just display the shoutbox - to give you a start at least

                   Thanks  for your reply i got it and it works..
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on June 11, 2005, 04:22:30 AM
one more question can we increase scrolling speed?
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 11, 2005, 04:43:18 AM
hassan,

The scroll speed can be adjusted from the shoutbox options that are placed on the "Feature Settings and Options" page.
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on June 11, 2005, 05:22:51 AM
Grudge         Thanks for your reply.actually i set it at fastest but problem is that members are using madly :D  in few minutes it reaches to pages  so it take time to see latest reply better to have more speed...i want to modify fastest to super fast ;)  hope to see your reply soon
                            bye take care
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 11, 2005, 06:01:52 AM
You do realise that it requires a page refresh to get the latest posts? If you just sit there with the page open you'll only get posts up to the time you loaded the page. If you want the page to "auto refresh" you could put in some javascript to auto refresh the page every 10 seconds - but it would be annoying for people writing a shout in that time.

If you look back about 10 pages I posted an update to the shoutbox which will dynamically update as new shouts are made - maybe worth checking that out? Bear in mind that's relatively untested - and it WILL increase your server load :)
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on June 11, 2005, 06:07:35 AM
well i got i just want to increase scrolling speed i edit littel .mod file
                     
Before
'5' => &$txt['shoutbox_35'],

After
'9' => &$txt['shoutbox_35'],


      well this works on local server i didn't upload it to my web server i just check it and it works just increase speed.its quite simple though.just want to confirm is it ok or not?
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 11, 2005, 08:52:22 AM
That would probably do something, yes.
Title: Re: Ultimate Shoutbox
Post by: mager on June 11, 2005, 12:44:52 PM
Does this work for SMF 1.0.4?
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 11, 2005, 02:56:46 PM
Should do.
Title: Re: Ultimate Shoutbox
Post by: !Hachi! on June 11, 2005, 11:18:09 PM
Grudge Thanks again
    yes it works perfectly
Title: Re: Ultimate Shoutbox
Post by: StormLrd on June 13, 2005, 11:25:49 PM
I've really enjoyed the shoutbox on my forum what i'd like to know is there away i can insert it into the coppermine gallery ive bridged to my forum, I think it would be really cool to be able to shout at either location using the same shoutbox

What would you need to address this possible integration into the already bridged db.

Also for some reason ie, and aol the shoutbox comes out great but firefox it doesnt table out right.

Thanks in advance for your input
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 14, 2005, 07:18:56 AM
stormLyd - you can use SSI to include it ANYWHERE on your website. Simply search for SSI here. I've mentioned a lot in this topic to check out ssi_examples.php which is in your forums directory - that shows how to use the shoutbox in SSI mode.
Title: Guest posting
Post by: mjg on June 18, 2005, 12:21:22 AM
I feel silly asking this, but where do I set permissions to enable posting by guests?

There's nothing for this under Shoutbox in the "Features and Options" admin area. I'm using the shoutbox with Simple Portal.
Title: Re: Ultimate Shoutbox
Post by: SMAguy on June 18, 2005, 12:46:10 AM
OK, this is your basic shoutbox, that's nice, now, will somebody please tell me what a "shoutbox" is? 
Google wouldn't.
I guess what I'm wondering specifically is whether it would be a redundant mod since I already have the chat mod installed.  Sounds like it might be a similar thing (for forum users that is--I know that chat is something completely different under the hood).

Can somebody please enlighten me?

Thank you.
Title: Re: Ultimate Shoutbox
Post by: stargazer_1017 on June 18, 2005, 04:17:52 AM
I guess if you don't use the chat mod, like me, then you would use the shoutbox. I don't know if I can explain it correctly. . .but it's mostly just to give a shoutout to other members without entering a chat room or posting it in a post on the forum. It also keeps the messages viewable for everyone to see. I don't think the chat mod does that.

Mine is up and running at my forum (http://wits.crystalline-stars.net/forum).

-Shayna
Title: Re: Ultimate Shoutbox
Post by: webfly on June 20, 2005, 01:25:04 PM
Well i got it up and running on cerberus theme, SMF 1.0.4 that just gives cell spacing, and so far works perfectly.  Awesome job on it.  btw, i installed it from package manager, then edited index.template.php file
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 20, 2005, 01:37:09 PM
Quote from: mjg on June 18, 2005, 12:21:22 AM
I feel silly asking this, but where do I set permissions to enable posting by guests?

There's nothing for this under Shoutbox in the "Features and Options" admin area. I'm using the shoutbox with Simple Portal.

It's a permission - look in the membergroup permissions area.

Glad you got it working webfly :)
Title: Re: Ultimate Shoutbox
Post by: webfly on June 20, 2005, 01:45:13 PM
awesome job, sorry for the double post, the only thing i may have to fix is the way when you are viewing picture posts it messes tables up (such as you have to scroll the avatar in the post, and the picture in the post). I allow really large picture sizes (large hosting space that i get basically free, why waste it :P). but i don't think  i will go and screw and awesome mod or theme at this moment in time yet.
Title: Re: Ultimate Shoutbox
Post by: jerm on June 20, 2005, 06:30:04 PM
k , i like this.. good job on making it
and sorry if this has already been asked, but going through 31 pages of posts to see if this has already been asked would take ages :|
in IE it only loads the small box that you set it to.. but in firefox it loads everything.. so your page basicly becomes very large for the spilt second it takes to load the page, then the "shoutbox" becomes the size that you set it to.. is this something that can't be fixed?
do you understand what im asking?

-edit-
cause of that, the page doesn't open smoothly in firefox as it does in IE
-end edit-
Title: Re: Ultimate Shoutbox
Post by: Grudge on June 21, 2005, 09:12:03 AM
electrohome88,

I'm guessing this is due to not having some size constraint on the bounding box? I'm not sure what HTML you are surrounding the shoutbox call with - but maybe you could try forcing the enclosing td/div to a certain width? The other option is to play with shout.template.php but I think surrounding it would be easier?

PS - I'm on holiday in a few hours so don't expect any more replies from me for a while :P
Title: Re: Ultimate Shoutbox
Post by: StormLrd on June 23, 2005, 09:16:59 AM
Quote from: Grudge on June 14, 2005, 07:18:56 AM
stormLyd - you can use SSI to include it ANYWHERE on your website. Simply search for SSI here. I've mentioned a lot in this topic to check out ssi_examples.php which is in your forums directory - that shows how to use the shoutbox in SSI mode.

the require installed and when i try to use the "ssi_shout();" i get

Fatal error: Call to undefined function: allowedto() in /home/stormlrd/public_html/rhcforum/Sources/shout.php on line 31

trying some of the others gets the following:

for : "ssi_logOnline();"

Fatal error: Call to undefined function: writelog() in /home/stormlrd/public_html/rhcforum/SSI.php on line 624

for : "ssi_recentPosts();"

Template error
Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in :


This is the themes.php on my cpg and the vars in question are commented out
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.2                                            //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002-2004 Gregory DEMAR                                     //
// http://www.chezgreg.net/coppermine/                                       //
// ------------------------------------------------------------------------- //
// Updated by the Coppermine Dev Team                                        //
// (http://coppermine.sf.net/team/)                                          //
// see /docs/credits.html for details                                        //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify      //
// it under the terms of the GNU General Public License as published by      //
// the Free Software Foundation; either version 2 of the License, or         //
// (at your option) any later version.                                       //
// ------------------------------------------------------------------------- //
// CVS version: $Id: theme.php,v 1.8 2004/07/24 15:04:20 gaugau Exp $
// ------------------------------------------------------------------------- //
require("/home/stormlrd/public_html/rhcforum/SSI.php");
define('THEME_HAS_RATING_GRAPHICS'1);
//$online = ssi_logOnline();
//$recent1 = ssi_recentPosts();
//$shout = ssi_shout(); 
// HTML template for main menu
$template_main_menu1 = <<<EOT
                                                |
<!-- BEGIN my_gallery -->
                                                <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> |
<!-- END my_gallery -->

---------.......--------

$template_main_menu2 = <<<EOT

<table width="90%"  border="2" align="center">
  <tr>
    
     this is where i was putting the call to the vars in their own columns.
  </tr>
</table>




                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                        <td class="top_menu_left_bttn">

.....



Any suggestions?
Title: Re: Ultimate Shoutbox
Post by: Yngwiedis on June 23, 2005, 06:21:16 PM
Can someone please tell me how i can use the module for Mambo made by rjoe_brandon ?
Every time i click on the shout button it redirect me to the forum boardindex page and nothing is posted in the shoutbox.
Also i cant open the link on rjoe_brandon's post. I download the module from mamboforge.net.
Thank you in advance for any help
Title: when intalling ultimate shoutbox
Post by: PiRoX on June 24, 2005, 08:29:04 PM
I am getting this error when installing ultimate shoutbox  >:( >:(

2: copy(/home/haris/public_html/forums/Themes/default/languages/Modifications.english.php~): failed to open stream: Permission denied
File: /home/haris/public_html/forums/Sources/Subs-Package.php
Line: 1307
Title: Re: when intalling ultimate shoutbox
Post by: [Unknown] on June 25, 2005, 01:21:16 AM
Please make Themes/default/languages writable.  How do I use chmod? (http://www.simplemachines.org/community/index.php?topic=23690.0)

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: dtm.exe on June 25, 2005, 01:57:17 AM
Quote from: PiRoX on June 24, 2005, 08:29:04 PM
I am getting this error when installing ultimate shoutbox  >:( >:(

2: copy(/home/haris/public_html/forums/Themes/default/languages/Modifications.english.php~): failed to open stream: Permission denied
File: /home/haris/public_html/forums/Sources/Subs-Package.php
Line: 1307

Quote from: [Unknown] on June 25, 2005, 01:21:16 AM
Please make Themes/default/languages writable.  How do I use chmod? (http://www.simplemachines.org/community/index.php?topic=23690.0)

-[Unknown]

Posts merged with the appropriate topic.

-Dan The Man
Title: Re: Ultimate Shoutbox
Post by: Yngwiedis on June 25, 2005, 04:05:06 AM
Any help for my previous post in page 31 in this topic ?
Title: Re: Ultimate Shoutbox
Post by: Yngwiedis on June 25, 2005, 07:37:50 AM
I have also another problem.

I create a blank php page with this code :

<?php require("/home/hellasd/public_html/yngwiedis/forum/SSI.php"); ?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php ssi_shout(); ?>
</body>
</html>


I upload that page to my site's root.
I go to that page and i post some test shouts.
OK with that. Then i click on the X to delete a shout and is redirecting me to my forum boardindex.
I try several times but every time its the same.
I upload the page to my forum's root too.
Same problem...
I dont know if this helping with my other problem too but i think is good to post it.
Title: Re: Ultimate Shoutbox
Post by: jerm on June 26, 2005, 12:41:57 AM
when someone is banned from the boards, but only banned for posting, the person can still post in the shoutbox, think thats fixable?
Title: Re: Ultimate Shoutbox
Post by: Evolution-8 on June 26, 2005, 04:34:06 PM
Hey, how can I change the shout box's scroll?  I don't want it to move on its own and I want it to use scroll bars instead.  I have been working on it but I am not the best when it comes to PHP.
Title: Re: Ultimate Shoutbox
Post by: jerm on June 28, 2005, 08:51:06 PM
flood control would also be a nice addition
Title: Re: Ultimate Shoutbox
Post by: Sheepy on July 01, 2005, 08:45:32 AM
Quote from: Evolution-8 on June 26, 2005, 04:34:06 PM
Hey, how can I change the shout box's scroll?  I don't want it to move on its own and I want it to use scroll bars instead.  I have been working on it but I am not the best when it comes to PHP.
If you know HTML & CSS, you can use a div with overflow: scroll instead of marquee.  You can easily change it from shout.template.php
Title: Re: Ultimate Shoutbox
Post by: Sheepy on July 01, 2005, 08:49:20 AM
I was looking for ways to reduce number of queries in my forum (like disabling avatar download count...).  I managed to eliminate the need for a temporary table when you show the shoutbox in ascending order.  It's a use of MySQL's UNION ordering feature:

Just replace
"SELECT * FROM {$db_prefix}tempsb ORDER BY ID_SHOUT ASC"

with
"(SELECT * FROM {$db_prefix}shoutbox
ORDER BY ID_SHOUT DESC LIMIT ".$modSettings['shoutlimit']. ")
UNION
(SELECT * FROM {$db_prefix}shoutbox LIMIT 0)
ORDER BY ID_SHOUT ASC"

And remove the temporary table above & below, and that's two less queries and one less table.

Enjoy.  ;) Too bad it can't help me since I'm using decending order.  :-\

P.S. I haven't tested, but I believe this should be a bit faster since there are less overhead - most complications are handled internally by MySQL, with less interprocess communication, php function calls and status check.
Title: Re: Ultimate Shoutbox
Post by: MichiganMinis on July 01, 2005, 04:19:53 PM
Any updates for 1.1beta 3?
Title: Re: Ultimate Shoutbox
Post by: Grudge on July 01, 2005, 04:23:02 PM
Quote from: MichiganMinis on July 01, 2005, 04:19:53 PM
Any updates for 1.1beta 3?

Works
Title: Re: Ultimate Shoutbox
Post by: Grudge on July 01, 2005, 04:53:57 PM
Actually, I lied. It appears the update didn't work with 1.1 Beta 3 - it does now :)

Also, I've updated this to 1.3.1 which includes the following improvements:
Title: Re: Ultimate Shoutbox
Post by: Itch™ on July 01, 2005, 05:09:06 PM
Quote from: Grudge on July 01, 2005, 04:53:57 PM
Actually, I lied. It appears the update didn't work with 1.1 Beta 3 - it does now :)

Also, I've updated this to 1.3.1 which includes the following improvements:

  • Option to not require email addresses of guests
  • Option to enable autorefreshing of the shoutbox through xml (Will increase server load)
  • A few speed improvements (As Sheepy posted), although 1.3 already had them - from page 22(ish) :)

And it also works with Nesiastyles' Simpleportal running on 1.1 Beta 3!

YM
Title: Re: Ultimate Shoutbox
Post by: MichiganMinis on July 01, 2005, 05:10:28 PM
Thanks I think I was the 2nd download for the new version.
Title: Re: Ultimate Shoutbox
Post by: Itch™ on July 01, 2005, 05:52:37 PM
I was the first! :)

YM
Title: Re: Ultimate Shoutbox
Post by: Yngwiedis on July 02, 2005, 06:52:06 AM
Can someone give a small help to my problem ?
Title: Re: Ultimate Shoutbox
Post by: Grudge on July 02, 2005, 07:36:06 AM
Quote from: Yngwiedis on July 02, 2005, 06:52:06 AM
Can someone give a small help to my problem ?

I'm afraid the shoutbox currently can only redirect to the forum homepage after a delete. Guess this is a bug but it will take me a while to find a way to get around it.
Title: 'View all' oddness
Post by: mixel on July 03, 2005, 01:25:20 AM
Sorry if this has been covered here before..

I've installed the shoutbox with no problems, it seems great.. I've had a weird issue with it's formatting though.

When I enable guest posts i get: "Email", "Name" and "Shout"  boxes plus a "view all" link.. that's good.. but I don't want unregged shout posting enabled..

When I disable guest posts I can only see the "view all link" which links to a page where people can post, but.. That seems wrong? Just the tag entry field would be nice. :) I've looked in ssi_examples.php and it does the same in there..  Is something  wrong with my copy, or have i done something wrong?

thanks in advance. :)
Title: Re: Ultimate Shoutbox
Post by: Elijah Bliss on July 03, 2005, 01:39:13 AM
Quote from: mixel on July 03, 2005, 01:25:20 AM
Sorry if this has been covered here before..

I've installed the shoutbox with no problems, it seems great.. I've had a weird issue with it's formatting though.

When I enable guest posts i get: "Email", "Name" and "Shout"  boxes plus a "view all" link.. that's good.. but I don't want unregged shout posting enabled..

When I disable guest posts I can only see the "view all link" which links to a page where people can post, but.. That seems wrong? Just the tag entry field would be nice. :) I've looked in ssi_examples.php and it does the same in there..  Is something  wrong with my copy, or have i done something wrong?

thanks in advance. :)

I have the exact same problem, for whatever reason the "shout_form()" function is not returning, I got around this by putting the form in the "shout_display()" function.
Title: Re: Ultimate Shoutbox
Post by: Yngwiedis on July 03, 2005, 08:15:44 AM
Quote from: Grudge on July 02, 2005, 07:36:06 AM
Quote from: Yngwiedis on July 02, 2005, 06:52:06 AM
Can someone give a small help to my problem ?

I'm afraid the shoutbox currently can only redirect to the forum homepage after a delete. Guess this is a bug but it will take me a while to find a way to get around it.
OK. Thank you very much for your answer Grudge ;)
Title: Re: Ultimate Shoutbox
Post by: Grudge on July 03, 2005, 08:23:37 AM
mixel/Elijah Bliss,

Can you explain a little more what is wrong with guest posting? I tried it and it seems fine to me? Exactly what settings (Both settings and permissions) are you using and what is wrong?
Title: Re: Ultimate Shoutbox
Post by: jerm on July 03, 2005, 01:11:39 PM
Quote from: electrohome88 on June 26, 2005, 12:41:57 AM
when someone is banned from the boards, but only banned for posting, the person can still post in the shoutbox, think thats fixable?
can this be looked into please.. i haven't heard a response from it.. and its very annoying when someone is banned from posting, but is still able to post in the shoutbox..
thanks
Title: Re: Ultimate Shoutbox
Post by: Grudge on July 03, 2005, 01:44:09 PM
Quote from: electrohome88 on July 03, 2005, 01:11:39 PM
Quote from: electrohome88 on June 26, 2005, 12:41:57 AM
when someone is banned from the boards, but only banned for posting, the person can still post in the shoutbox, think thats fixable?
can this be looked into please.. i haven't heard a response from it.. and its very annoying when someone is banned from posting, but is still able to post in the shoutbox..
thanks
Please try uploading the attached file to your Sources directory.
Title: Re: Ultimate Shoutbox
Post by: jerm on July 03, 2005, 02:29:01 PM
thanks.. sorry if i sounded harsh.. it was just getting annoying that they were banned from posting... then would go on and on in the shoutbox about why they shoudln't have been banned.
also, there were errors in the code:
line 35
$context['canPost'] = !isset($_SESSION['ban']['cannot_post'] && allowedTo('make_shout');
should be
$context['canPost'] = !isset($_SESSION['ban']['cannot_post']) && allowedTo('make_shout');

same goes for line 123

just incase others want to use this file as well
Title: Re: Ultimate Shoutbox
Post by: Elijah Bliss on July 03, 2005, 02:39:11 PM
Quote from: Grudge on July 03, 2005, 08:23:37 AM
mixel/Elijah Bliss,

Can you explain a little more what is wrong with guest posting? I tried it and it seems fine to me? Exactly what settings (Both settings and permissions) are you using and what is wrong?

I have it set to members only response. The form disappears when integrated in to mkportal and mambo, it doesn't even show for the admin. The only way I can get the form to show is by either iframing the shout function or moving the form to the shout_display() function.
Title: Re: Ultimate Shoutbox
Post by: mixel on July 03, 2005, 05:47:34 PM
The same here.. Doesn't matter which settings i use, it just seems to be the unregistered guest access that messes it up.

This is probably unnecessary, but it illustrates what I/we mean;
(http://mixelmagic.com/crap/shoutbox.gif)

Hope that helps clarify a bit anyway. Not sure if this is significant, but i'm still running 1.0.5.

Ed: It definitely seems to have been significant, as I updated to the latest beta, and now it seems to work fine..! :)
Title: Re: Ultimate Shoutbox
Post by: buttermonster on July 05, 2005, 11:33:28 AM
Can anyone share if there's a way to collapse the shoutbox or only show it on the index (home) page only?
Title: Re: Ultimate Shoutbox
Post by: Elijah Bliss on July 05, 2005, 11:57:14 AM
Sorry about that, I was running an older version of the shoutbox, 1.31 works fine in 1.1.
Title: Re: Ultimate Shoutbox
Post by: Elijah Bliss on July 05, 2005, 12:23:32 PM
Quote from: buttermonster on July 05, 2005, 11:33:28 AM
Can anyone share if there's a way to collapse the shoutbox or only show it on the index (home) page only?


<?php

include(path/to/your/SSI.php);

ssi_shout();

?>

Title: Re: Ultimate Shoutbox
Post by: buttermonster on July 05, 2005, 01:25:48 PM
Quote from: Elijah Bliss on July 05, 2005, 12:23:32 PM
Quote from: buttermonster on July 05, 2005, 11:33:28 AM
Can anyone share if there's a way to collapse the shoutbox or only show it on the index (home) page only?


<?php

include(path/to/your/SSI.php);

ssi_shout();

?>



I've got that, but the box still shows .. is that used w/a link to collapse it like the categories or should that only make it appear on the home page?
Title: Re: Ultimate Shoutbox
Post by: Elijah Bliss on July 05, 2005, 01:32:21 PM
Quote from: buttermonster on July 05, 2005, 01:25:48 PM
Quote from: Elijah Bliss on July 05, 2005, 12:23:32 PM
Quote from: buttermonster on July 05, 2005, 11:33:28 AM
Can anyone share if there's a way to collapse the shoutbox or only show it on the index (home) page only?


<?php

include(path/to/your/SSI.php);

ssi_shout();

?>



I've got that, but the box still shows .. is that used w/a link to collapse it like the categories or should that only make it appear on the home page?

I see what you mean. Go to "Your desired Theme/index.template.php"

find:

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

echo '
</form>

</td>


add after


<td>', ssi_shout(), '</td>


now this will look ugly, you 'll have to style it to your liking, but it places the shoutbox in the collapsable area.
Title: Re: Ultimate Shoutbox
Post by: buttermonster on July 05, 2005, 03:31:14 PM
Thanks that'll do it.
Title: Re: Ultimate Shoutbox
Post by: jerm on July 06, 2005, 02:50:10 AM
on delete a shout, it should return back to the shoutbox.. instead it returns to the forum index
Title: Re: Ultimate Shoutbox
Post by: sits on July 06, 2005, 01:31:57 PM
What does this mean? - what'd I do wrong?  :-\

Help please?
sits

Fatal error: Call to undefined function: smfshout() in /home/virtual/sitexxx/fst/var/www/html/forum/Sources/Load.php(1040) : eval()'d code on line 76

Title: Re: Ultimate Shoutbox
Post by: buttermonster on July 06, 2005, 02:21:41 PM
Quote from: sits on July 06, 2005, 01:31:57 PM
What does this mean? - what'd I do wrong?  :-\

Help please?
sits

Fatal error: Call to undefined function: smfshout() in /home/virtual/sitexxx/fst/var/www/html/forum/Sources/Load.php(1040) : eval()'d code on line 76



You left out the include line to the file that holds the function.
Title: Re: Ultimate Shoutbox
Post by: sits on July 06, 2005, 03:45:37 PM
QuoteYou left out the include line to the file that holds the function.

include which line? I'm a newbier, so could you explain a bit more specific?
Title: Re: Ultimate Shoutbox
Post by: JustJa on July 06, 2005, 06:52:04 PM
I have a BIG problem now.
I installed the mod. My Smf version is 1.0.5
After I gave permission to everybody to post on the Shout box I got upset thinking they did not want to do that.
But when I looked att the error logs I saw that many had tryed, but actualy only the administrators could do it.
I decided to uninstall the mod and try again, but then i got this error message

Fatal error: Call to undefined function: smfshout() in ...\Sources\Load.php(1042) : eval()'d code on line 286
and I can´t see anything under my login bar!

What should I do?

Please somebody! Help :-[
Title: Re: Ultimate Shoutbox
Post by: JustJa on July 07, 2005, 07:19:36 AM
Nevermind, I´ve got some help and fixed it.
First I tryed to copy all he update files to the server except for upgrade.php.
It didn´t work ::)
Then I copied the upgrade package and uploaded the files...
It worked!
The buddy mod is working fine also. I did not miss it.. I just have to press install and it was fine! :P
I just don´t understand why did it happen... I can still see the shoutbox package there but there is not an uninstall option, just delete. And I am not going to use delete again! I swear! ;D
Has anyone any good hint about it?
Title: Re: Ultimate Shoutbox
Post by: Charge on July 09, 2005, 12:53:06 AM
hi, may i know how to put the shoutbox ?? i install it already.. but nothing shows ?
Title: Re: Ultimate Shoutbox
Post by: jerm on July 09, 2005, 02:39:00 AM
Quote from: Charge on July 09, 2005, 12:53:06 AM
hi, may i know how to put the shoutbox ?? i install it already.. but nothing shows ?

well, heres what i did
i added this line to index.template.php
            <a href="', $scripturl, '?action=shout_archive">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shout.gif" alt=" shout " style="margin: 2px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];
i put that code where you find "// Show the menu up top.  Something like [home] [help] [profile] [logout]..." so basicly theres an extra button up that that links to the shout box
and to make the shout image (the button they use like home) i did some photoshoping of the images already up there, took the S from the search button, h from the same button, then 'out' from the logout button.

but if you dont like that, then just add
if (function_exists('smfshout'))
  smfshout();

somewhere on your site.. just make sure it works well within the php :)
Title: Re: Ultimate Shoutbox
Post by: Charge on July 09, 2005, 09:07:12 AM
hmm, i dun really get it...
Title: Re: Ultimate Shoutbox
Post by: jerm on July 10, 2005, 02:11:08 AM
www.e-grounds.com

you'll notice the shout button , and ya, i guess thats it
Title: Re: Ultimate Shoutbox
Post by: Charge on July 10, 2005, 03:25:25 AM
hmm, icic but i wanted to put my shoutbox below those Home, Search, Help links ? can i do that ?
Title: Re: Ultimate Shoutbox
Post by: stargazer_1017 on July 10, 2005, 06:25:54 AM
Help! I think I accidentally installed the shoutbox twice, and when I tried to delete it, this message showed up:


Fatal error: Call to undefined function: smfshout() in /home2/crystall/public_html/wits/forum/Sources/Load.php(1046) : eval()'d code on line 320

Is there any way I can fix my forum? I'm afraid to close my browser because I don't even see the logout buttons :(

-Shayna
Title: Re: Ultimate Shoutbox
Post by: Kagemaru on July 10, 2005, 01:49:33 PM
I can't install it :'(

I get

6.  Execute Modification  index.php  Test failed

I'm running 1.1.3PB and the only installed mods are the Mambo bridge/some avatars/integrated chat mod.

Can I change the stuff in index.php manually?
Title: Re: Ultimate Shoutbox
Post by: stargazer_1017 on July 10, 2005, 06:16:31 PM
Quote from: Kagemaru on July 10, 2005, 01:49:33 PM
I can't install it :'(

I get

6.  Execute Modification  index.php  Test failed

I'm running 1.1.3PB and the only installed mods are the Mambo bridge/some avatars/integrated chat mod.

Can I change the stuff in index.php manually?

I found the same problem in 1.0.3 as well :( Is there something wrong with the uninstalled option? There's always a fatal error.

-Shayna
Title: Re: Ultimate Shoutbox
Post by: [Unknown] on July 10, 2005, 06:42:45 PM
Quote from: stargazer_1017 on July 10, 2005, 06:25:54 AM
Fatal error: Call to undefined function: smfshout() in /home2/crystall/public_html/wits/forum/Sources/Load.php(1046) : eval()'d code on line 320

Is there any way I can fix my forum? I'm afraid to close my browser because I don't even see the logout buttons :(

-Shayna

Sounds like it's not installed properly now.  I would upload all clean files again and then reinstall it.

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: stuk on July 16, 2005, 05:50:27 PM
the sql needs to be 1.0.5 for it will work and i cant install it in the package manager!
Title: Re: Ultimate Shoutbox
Post by: weekend camper on July 16, 2005, 07:11:54 PM
I looked back about 7 pages but didn't see this one:

package installs fine on 1.1beta3public (no red error messages at least!)

and the shout box appears as normal on my page.  I go to shout (as admin and regular user) and the shout doesn't appear.  Nor does the database increase (ie, the shout is hitting the db).  Clean install of the shoutbox, even deleted the 1.2.x db table.

hints?

Title: Re: Ultimate Shoutbox
Post by: Grudge on July 17, 2005, 03:37:50 PM
weekend camper,

that's very odd... can you view the source of your page and look at what URL the shout form is submitting to - it should be ?action=shout

What happens if you shout from the archive?
Title: Re: Ultimate Shoutbox
Post by: weekend camper on July 17, 2005, 03:55:11 PM
ah, its doing the right actions shout and shout_archive but it is remaining on the "pure" /index.php page -- meaning I can't see the archives page.  Missing files or improper pacmanager? 

Super strange.  Will dig around the code/uploaded files later on.  Using Bloc's Helios 1.1multi and shoutbox(); as the calling line.  And like I said, a super fresh install (yesterday) of the Shoutbox.

I'll do a manual install in a few days and see if that helps fix the actions.


WC

Title: Re: Ultimate Shoutbox
Post by: Gambi on July 18, 2005, 08:26:46 PM
I've been trying to alter the template to have the message box on the top instead of at the bottom, yet I can't seem to figure it out. Could somebody please help me out?

Greatly appriciated,
Broomie
Title: Re: Ultimate Shoutbox
Post by: m7cky on July 20, 2005, 05:52:46 AM
Thought I'd point this out as i've been banging my head against the desk for 4 hours before figuring it out. I don't know if this applies to other mods, but I couldn't get past the stage where it asks me for FTP detail, just kept refreshing page when pressing proceed.   >:( My board is intergrated  in mambo, so i just accessed the forum via www.mysite.com/mambo/smf (hence not going through mambo) and it worked fine   :D
Title: Re: Ultimate Shoutbox
Post by: DVD on July 21, 2005, 10:32:15 PM
Hi.
I had installed a skin, named Cerberus, and i want to put the shout, bettwen the user info, and the adveanced search, but i dont know were to put the code to shout appear. Can anyone tell me were i have to put the code to the shout appear?
Title: Re: Ultimate Shoutbox
Post by: Grudge on July 22, 2005, 08:26:22 AM
DVD,

I don't know that theme - but if you edit index.template.php in that themes directory - and follow my post on page one - you should be able to work out where to put it by trial and error. Hopefully the theme is commented well enough to find roughly the right place.
Title: Re: Ultimate Shoutbox
Post by: VanGogh on July 23, 2005, 10:21:20 AM
Quote from: weekend camper on July 17, 2005, 03:55:11 PM
ah, its doing the right actions shout and shout_archive but it is remaining on the "pure" /index.php page -- meaning I can't see the archives page.  Missing files or improper pacmanager? 

Super strange.  Will dig around the code/uploaded files later on.  Using Bloc's Helios 1.1multi and shoutbox(); as the calling line.  And like I said, a super fresh install (yesterday) of the Shoutbox.

I'm having the same problem under the same circumstances.  The only difference is that I'm using Bloc's Themis 1.1 . Has anyone solved this?
Title: Re: Ultimate Shoutbox
Post by: IamV on July 23, 2005, 05:53:01 PM
I'm sorry if this has been asked, I did several searchs & didn't find it in the 35 pages of this thread...

How would I add either the smiley previewer to the shoutbox, or preferably a link for the smiley pop up? 
Title: Re: Ultimate Shoutbox
Post by: weekend camper on July 25, 2005, 04:44:37 PM
As a follow up to my problems, Grudge actually narrowed it down to a messed up index.php install.

Do a manual install on the index.php and you may be OK!


:)


PS Thanks Grudge!

Title: Re: Ultimate Shoutbox
Post by: VanGogh on July 26, 2005, 09:53:54 AM
Right...  manual install...   :-\

Can anyone give me an idea of how I do that, or at least point me in the right direction of where I could find more information on it? (I've become sadly addicted to the package manager... lost all my l33t 'by-hand' skills apparently.  :P )

Thanks!

Title: Re: Ultimate Shoutbox
Post by: weekend camper on July 26, 2005, 01:24:02 PM
yeah, its not the easiest thing to find:

short answer:  looky in the .xml file that comes with (any?) mod.  What the pac man does automagically, is spelled out there.  In this case, look for Index.php and match your Index.php code to the mod's changes. hint:  find and replace works wonders.

longer answer:  dig through the package SDK http://www.simplemachines.org/community/index.php?topic=20319.0 (http://www.simplemachines.org/community/index.php?topic=20319.0) and find the
Quote\package-sdk_0-5\modifications\readme file
That explains how to make a mod, so you may be able to piece together how to manually do what the pac man does for you.

Title: Re: Ultimate Shoutbox
Post by: sabastina on July 27, 2005, 09:58:42 AM
To do the manual install, you need to downloaded and unzipped the package.
Then look inside for a file with a mod in it (not sure how to refer to it properly) this file will give you the instructions for installing the mod manually.  If the package you want to install doesn't have a mod file, you'll need to open the xml file (I use notepad to do it) and find the instructions in there.

hope this helps some.

Sabastina
Title: Re: Ultimate Shoutbox
Post by: IamV on July 27, 2005, 06:24:38 PM
I found a great set of instructions for manually installing mods:
http://www.simplemachines.org/community/index.php?topic=34526.0
Title: Re: Ultimate Shoutbox
Post by: VanGogh on July 27, 2005, 07:22:59 PM
Got It!

Thanks to one and all for the help!  ;)
Title: Re: Ultimate Shoutbox
Post by: IamV on July 28, 2005, 04:28:55 PM
Quote from: IamV on July 23, 2005, 05:53:01 PM
I'm sorry if this has been asked, I did several searchs & didn't find it in the 35 pages of this thread...

How would I add either the smiley previewer to the shoutbox, or preferably a link for the smiley pop up? 

Does anyone have an idea?
Title: Re: Ultimate Shoutbox
Post by: weekend camper on July 29, 2005, 03:18:44 PM
Quote from: IamV on July 28, 2005, 04:28:55 PM
Quote from: IamV on July 23, 2005, 05:53:01 PM
I'm sorry if this has been asked, I did several searchs & didn't find it in the 35 pages of this thread...

How would I add either the smiley previewer to the shoutbox, or preferably a link for the smiley pop up? 

Does anyone have an idea?

Look around (my version is line 900ish of 1.0.5) of Post.template.php.  That should get you started.

Title: Re: Ultimate Shoutbox
Post by: 061 on July 29, 2005, 11:16:56 PM
i was trying to edit the shout.template.php...
what i cant really understand is how "template_shout_form()" gets loaded into "template_shout_box()"

the archive template is okey since it loads  shout form template clearly by adding template_shout_form() into it...

how come i will change order of form and box in the template_shout_box()
i want to do this


<table cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="100%">shout form</td>
  </tr>
  <tr>
    <td width="100%">shout box</td>
  </tr>
</table>

Title: Re: Ultimate Shoutbox
Post by: IamV on July 30, 2005, 02:41:40 AM
I found the smiley code near where you said it is for you.  But just can't find the right spot to add it for it to show up in the shout box.

Either it doesn't show up at all - or I get massive errors
Title: Re: Ultimate Shoutbox
Post by: 061 on August 02, 2005, 09:34:55 AM
Quote from: 061 on July 29, 2005, 11:16:56 PM
i was trying to edit the shout.template.php...
what i cant really understand is how "template_shout_form()" gets loaded into "template_shout_box()"

the archive template is okey since it loads  shout form template clearly by adding template_shout_form() into it...

how come i will change order of form and box in the template_shout_box()
i want to do this


<table cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="100%">shout form</td>
  </tr>
  <tr>
    <td width="100%">shout box</td>
  </tr>
</table>



so  ???
Title: Re: Ultimate Shoutbox
Post by: hel8itch on August 02, 2005, 08:11:37 PM
can someone please tell me where i should put the code for the shoutbox to show up at the bottom of the forum?in the info centre?
Title: Re: Ultimate Shoutbox
Post by: hel8itch on August 02, 2005, 09:07:22 PM
ok forget that i managed to get it at bottom..but not sure if i like it lol.
how do you make it so its in a neat box?
at the moment its the width of the forum and looks mega ugly
Title: Re: Ultimate Shoutbox
Post by: Col on August 03, 2005, 06:50:30 PM
Hiya grudge,

With one thing and another, I am only now getting around to installing my forum proper. I asked a long time ago if it was possible for the script enquiry to check for new shouts to just the once, at the end of each cycle, so cutting server load. I don't think I saw a reply. Might this be possible somehow?

Thanks.
Title: Re: Ultimate Shoutbox
Post by: Grudge on August 03, 2005, 07:07:21 PM
hel8itch,

You need to put some html arround the call to the function. For example, if you surround the box with a div with a set width (<div width="50%">) then it will fill that width.

Col,

Sorry, that request must have got lost! Currently it checks for a shout every 5 seconds. I'm afraid I'm on holiday from Friday so ain't going to get to this before then. I don't think that would be too bad on the load (The new version of the shoutbox was lighter than the old one anyway), and you could change the reload time in shout.template.php (look for setTimeout) to something like every 20 seconds. Ideally for the xml reload I would have it pointing to a "lighter" script which only loaded the bare minimum from the database (settings) - but it would make it slightly more complicated to handle the can_delete permission. This is probably something I should look at I know - it's just time isn't on my side. With your "once every cycle" thing - if you just mean it should only refresh once, you could change the setTimeout function to 10000 (10 seconds) and remove the call in the function called "function doAutoReload()" - that would mean it would refresh once at 10 seconds but never again.
Title: Re: Ultimate Shoutbox
Post by: Col on August 03, 2005, 07:20:44 PM
Hi Grudge,

Yeah, I meant once every time it comes around, ideally just before the last x number of shouts begin a new cycle.

I guess I'll turn the checking function off, to get a base line, and then turn it on on see if there are any server strains. I guess there won't be though, as my forum ain't that popular! :D

Thanks, and enjoy your holiday.
Title: Re: Ultimate Shoutbox
Post by: Col on August 04, 2005, 08:06:10 PM
I can't remember this being mentioned before, but why does the shoutbox jump at the end of the cycle in FF and NS. There is no gap like there is with IE and Opera. I have the shouts scrolling up, but when the cycle begins its repeat, instead of starting at the bottom of the box and scrolling up, they start at the top, and immediately scroll off the top. This is why there is an apparent jump. It's pretty ugly. :(
Title: Re: Ultimate Shoutbox
Post by: mennou on August 04, 2005, 08:48:37 PM
when i try to buy  i got this  error  how can i  fix it?
Table 'mixspot_smf3.smf_shop_inventory' doesn't exist
File: /usr/home/mixspot/public_html/forum2/Sources/shop/Shop.php
Line: 208
Title: Re: Ultimate Shoutbox
Post by: perplexed on August 05, 2005, 04:12:05 PM
Quote from: elliel on July 28, 2005, 06:25:41 AM
I have this installed to display down the right hand side of the screen and its length is set at 600px but I dont like the empty space beneath it - I also dont want it to run any longer.  It is possible to adjust this somehow to put something else underneath it in the space, like maybe another mod or the bookmark thread box or something?



So anyway... does anyone know what I mean and how to fix it? 
Title: Re: Ultimate Shoutbox
Post by: Col on August 05, 2005, 06:44:19 PM
I can only see the login page, and I am not joining up. If you don't want it, just remove the code from the template. I'm guessing that I don't fully understand you. :(
Title: Re: Ultimate Shoutbox
Post by: perplexed on August 05, 2005, 07:46:18 PM
sorry I closed the open membership since I posted this first message, I don't want you to join up to see the problem, sorry if you got that impression.

you can vary the length and the width of the width of the shoutbox in the admin section BUT the main page of the board has quite a lot of categories which makes the length quite long.  The shoutbox runs down the right hand side of the screen from the 'key stats' box to the end of the page, even though within that section the actual shoutbox and text is a lot shorter, but still that whole section is used by that mod and so you end up with a big blank space underneath the shout box text.  The only thing that makes a difference is to make the shoutbox really really long so that it fills the whole space but then that still seems like a waste of space to me.  Since the shoutbox/shouts are only about 700px long then I would like to put something else in the space below it which is just black space.

I'm not sure if that made it clearer or not :)

Title: Re: Ultimate Shoutbox
Post by: Col on August 06, 2005, 08:30:30 PM
Hi Elliel,

I don't think this is a shoutbox problem really. You are just looking for ideas of what to place under it. You could move the newsbox there I suppose, but then you'll be left with space in the header section.

It obvious you've gone to some trouble with your template, but there are some obvious problems. The width of your forum is considerably wider than 1024px wide, so unless you have a wide screen monitor, you have to scroll across.

What you could do, I suppose, is make two fixed width forum templates, one for 1024px width monitors, and one for 800px monitors. You'd actually have all the main parts of the forum within the 800 or 1024px, and you'd have to scroll across to view the shoutbox. Just a thought. - It would keep your forum large (according to members particular monitors and resolutions), and would be putting the shoutbox in some extra side space.

I'd still have a default template that was dynamic, that included the shoutbox, and then they could choose one of the fixed width templates from their profile options in they so desired.
Title: Re: Ultimate Shoutbox
Post by: Col on August 06, 2005, 08:41:17 PM
Grudge,

Sorry, another bug. At least you should be refreshed from your hols! :D

When I try using the xml refresh, it screws up the width of the shoutbox in FF. - It ends up a lot skinnier than it should.

Also, when the shoutbox is loading on the forum page in FF and NS, it first displays all the shouts to be displayed in one long column, way beyond the set length, but when finished loading, and the shoutbox has returned to it's correct length, there is space left under the footer because of the page stretching on short pages. I'm not sure how much of this is a shoutbox problem, but does it need to do this? - Can it be resolved?

Thanks.
Title: Re: Ultimate Shoutbox
Post by: perplexed on August 08, 2005, 06:10:59 AM
Quote from: Col on August 06, 2005, 08:30:30 PM
Hi Elliel,

I don't think this is a shoutbox problem really. You are just looking for ideas of what to place under it. You could move the newsbox there I suppose, but then you'll be left with space in the header section.

It obvious you've gone to some trouble with your template, but there are some obvious problems. The width of your forum is considerably wider than 1024px wide, so unless you have a wide screen monitor, you have to scroll across.

What you could do, I suppose, is make two fixed width forum templates, one for 1024px width monitors, and one for 800px monitors. You'd actually have all the main parts of the forum within the 800 or 1024px, and you'd have to scroll across to view the shoutbox. Just a thought. - It would keep your forum large (according to members particular monitors and resolutions), and would be putting the shoutbox in some extra side space.

I'd still have a default template that was dynamic, that included the shoutbox, and then they could choose one of the fixed width templates from their profile options in they so desired.


Hi

I didnt do anything to the width of the forum, it just came that way, so I don't understand why you say it's too wide :(  I use a laptop and I don't have the scrolling problem, it seems to fit my screen ?

*confused*

But yeah about the space under the shout box, that is exactly the problem, there's a bit empty space underneath but I don't know how to move anything there :)
Title: Re: Ultimate Shoutbox
Post by: noppid on August 13, 2005, 02:04:15 AM
Is it me, or do the instructions for this leave ALOT to be desired?

It's just not making sense. :/


EDIT:
OK, maybe I'm slow, I got it. Much more to learn.

Thanks for the code, great feature.
Title: Re: Ultimate Shoutbox
Post by: katharsis on August 15, 2005, 10:42:53 AM
This is a great mod.  It really makes a site look alive.  The ShoutBox has become very popular at the forum (http://feathermoon.net/log/) at Feathermoon.Net (http://feathermoon.net/).

Yesterday, I did something wrong when upgrading ShoutBox (to get the auto refresh feature) and the module got installed twice making the forum inaccessible with the popular error
Fatal error: Cannot redeclare smfshout() (previously declared in /home...

Panic ensued.  I am no web developer.  I calmed myself down and began reading every post in this thread.  I tried uploading a fresh copy of Subs.php as described here (http://www.simplemachines.org/community/index.php?topic=8415.msg266333#msg266333) and that worked well enough to get me back into Package Manager where I uninstalled Shoutbox again. 

Now everything works fine again.  But in the "Features and Options" section I have two instances for Shoutbox, one of which is for the old version.  I could ignore it since everything is working fine but I would like to make it go away.  Is there anyway I can do this manually without uninstalling the entire mod?
Title: Re: Ultimate Shoutbox
Post by: Ride on August 15, 2005, 10:22:12 PM
Quote from: Elijah Bliss on July 03, 2005, 02:39:11 PM
Quote from: Grudge on July 03, 2005, 08:23:37 AM
mixel/Elijah Bliss,

Can you explain a little more what is wrong with guest posting? I tried it and it seems fine to me? Exactly what settings (Both settings and permissions) are you using and what is wrong?

I have it set to members only response. The form disappears when integrated in to mkportal and mambo, it doesn't even show for the admin. The only way I can get the form to show is by either iframing the shout function or moving the form to the shout_display() function.

This is my same exact problem.
Title: Re: Ultimate Shoutbox
Post by: Kero_1116 on August 16, 2005, 07:12:23 PM
anyone know where to edit the shoutbox in smfshout(); and edit the width of the Message Box
Title: Re: Ultimate Shoutbox
Post by: Jay T on August 18, 2005, 03:42:48 PM
Everything seems to be installed correctly but cannot see the shouts.

BTW, I am using 1.1
Title: Re: Ultimate Shoutbox
Post by: Col on August 18, 2005, 05:58:19 PM
Quote from: Kero_1116 on August 16, 2005, 07:12:23 PM
anyone know where to edit the shoutbox in smfshout(); and edit the width of the Message Box

This is in admin; it's a setting for the shoutbox.
Title: Re: Ultimate Shoutbox
Post by: IamV on August 19, 2005, 06:40:03 PM
Quote from: weekend camper on July 29, 2005, 03:18:44 PM
Quote from: IamV on July 28, 2005, 04:28:55 PM
Quote from: IamV on July 23, 2005, 05:53:01 PM
I'm sorry if this has been asked, I did several searchs & didn't find it in the 35 pages of this thread...

How would I add either the smiley previewer to the shoutbox, or preferably a link for the smiley pop up? 

Does anyone have an idea?

Look around (my version is line 900ish of 1.0.5) of Post.template.php.  That should get you started.

I still have not been able to successfully do this, does anyone else have any ideas, tips or suggestions?
Title: Re: Ultimate Shoutbox
Post by: Anihc on August 20, 2005, 09:04:36 PM
I have changed the way the "View All" link functions and now it goes to the full screen like it should instead of the small frame (my website uses frames as disussed many pages back. I was also able to change the delete buton the same way (which takes you to the forum index and not the shout page?)

1. How do I get the delete button to take you to the shout page instead or better yet NOT change the page?

2. How do I get the member link to go full screen instead of inside the page. It does do to the member profile but it does so inside the frame. I changed all the href command inside the shout template to top but it seems the member profile link s hard coded differently. It seems to use a default code from somewhere else to link if I am making any sense of it.

I can live with number one not going to the shout age but number two just makes my page look goofy when that small frame it is inside of is changed to the forum index, you can't read any of it at all so it ust looks terrible.

Anihc
Title: Re: Ultimate Shoutbox
Post by: tL0z on August 25, 2005, 12:13:42 PM
Hello,

I have the forum in portuguese and I'm trying to install the shoutbox. However, when I upload it says that the file is currupt?

How can I solve this?

Thanks
Title: Re: Ultimate Shoutbox
Post by: Mobilemick on August 29, 2005, 05:02:32 PM
Ok have nearly  installed Shoutbox with the package manager in DirectAdmin,  But get this

Quote
1.     Extract File     ./Sources/shout.php     
2.    Extract File    ./Themes/default/shout.template.php    
3.    Extract File    ./Themes/default/script_shout.js    
4.    Extract File    ./Themes/default/images/deleteshout.gif    
5.    Execute Code    shoutPdb.php    
6.    Execute Modification    index.php    Success
7.     Execute Modification     ./Sources/Subs.php     Success
8.    Execute Modification    ./Sources/ModSettings.php Success

Now what do i do,   lol

Thank you
Mick
Title: Re: Ultimate Shoutbox
Post by: Col on August 29, 2005, 08:11:27 PM
Quote from: Mobilemick on August 29, 2005, 05:02:32 PM
Now what do i do,   lol

Thank you
Mick


Read Grudges opening post to this thread. I posted this some time ago, it may help you also: http://www.simplemachines.org/community/index.php?topic=8415.300 , reply 312.

Title: Re: Ultimate Shoutbox
Post by: Mobilemick on September 03, 2005, 02:52:33 PM
Thx m8,  i now done that :)

but now a new error. 
QuoteFatal error: Call to undefined function: smfshout() in /home/mick/domains/mobilemick.com/public_html/smf2/Sources/Load.php(1040) : eval()'d code on line 183

Have just  read all the posts  :'(  but only saw it mentioned twice  :)

Also lost me " Who`s online box at bottom of screen)

Mick
Title: Re: Ultimate Shoutbox
Post by: Mobilemick on September 04, 2005, 08:59:42 AM
??  Ok did a fresh install of SMF  and now shoutbox is working,  but i need to import my members and topics, 

any ideas

thanks
Mick
Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 05, 2005, 06:37:16 PM
try this Mick.

http://www.simplemachines.org/community/index.php?topic=46834.0


(and this question is better/faster asked in a different board, as most wouldn't look here for it).

Title: Re: Ultimate Shoutbox
Post by: Col on September 06, 2005, 06:22:58 AM
Hi Grudge,

I think you may have missed my bug reports (you were on holiday). Replies 540, and 546.
Title: Re: Ultimate Shoutbox
Post by: tL0z on September 07, 2005, 11:18:43 AM
Quote from: tL0z on August 25, 2005, 12:13:42 PM
Hello,

I have the forum in portuguese and I'm trying to install the shoutbox. However, when I upload it says that the file is currupt?

How can I solve this?

Thanks

help!
Title: Re: Ultimate Shoutbox
Post by: tL0z on September 09, 2005, 12:57:36 PM
Quote from: tL0z on September 07, 2005, 11:18:43 AM
Quote from: tL0z on August 25, 2005, 12:13:42 PM
Hello,

I have the forum in portuguese and I'm trying to install the shoutbox. However, when I upload it says that the file is currupt?

How can I solve this?

Thanks

help!

Help me please!
Title: Re: Ultimate Shoutbox
Post by: Ride on September 09, 2005, 05:50:46 PM
I'm having trouble with shoutbox and SEF url's on.  Is there an issue with shoutbox and search engine friendly url's being on?  I did a search and did find anything to my surprise.  The shoutbox comes up fine but after a shout it isn't redirected properly.  Check it out http://www.ridesocal.com/forum/index.php   If you are a thread like http://www.ridesocal.com/forum/index.php/topic,510.0.html  it will return you to http://www.ridesocal.com/topic,510.0.html?  which of course brings up good old mr. 404


EDIT:  My guess is it has something to do with this in shout.php...

$context['qstr'] = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];

if (strcmp( substr($_SERVER['PHP_SELF'], -7), "SSI.php") == 0)
$context['qstr'] = "http://" . $_SERVER['HTTP_HOST'];
Title: Re: Ultimate Shoutbox
Post by: Klozi on September 09, 2005, 07:54:03 PM
I try to use the Ultimate Shoutbox with SMF 1.1 Beta 3 Public and the Windows XP theme. There aren't any errors in the display but if I try to shout a message he refresh the page and it happened nothing!

What make I wrong?
Title: Re: Ultimate Shoutbox
Post by: tL0z on September 11, 2005, 12:23:41 PM
Hello,

I have the forum in portuguese and I'm trying to install the shoutbox. However, when I upload it says that the file is currupt or not valid

How can I solve this?

Thanks
Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 11, 2005, 12:26:08 PM
what happens when you install anyway? 

(making sure you have a back up of course... just in case).

Title: Re: Ultimate Shoutbox
Post by: tL0z on September 11, 2005, 12:42:43 PM
Hum, weird. I tryed to download it from the SMF server and it worked! :)

Can you help me installing it now? http://www.nintendogeeks.globalfree.net/forum/index.php

I want to put it above the buttons (home etc) inside that "square".

Thanks for the help :)
Title: Re: Ultimate Shoutbox
Post by: tL0z on September 12, 2005, 11:27:01 AM
help
Title: Re: Ultimate Shoutbox
Post by: tL0z on September 13, 2005, 05:04:10 AM
I've already installed the shoutbox, how can I put it inside the square under the user info?

http://www.nintendogeeks.globalfree.net/forum/index.php

My theme is Apollo.

HELP!
Title: Re: Ultimate Shoutbox
Post by: clemenzo on September 14, 2005, 10:33:29 AM
Hi,

How can I change the date format to "d M y h:i:s a" for dates other than Today?

e.g 15 Sep 05 08:00:00 am instead of September 15, 2005 08:00:00 am

Thank you!
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 14, 2005, 12:28:29 PM
Question on Shoutbox:

how to change the font of the text when you post the message and how to move the shout button to the left of where you type message?

Alos when i click on shout to post the message , the whole page refreshed, is that how its supposed to work? or hsould just the shoutbox itself refresh?

thank you for the help
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 14, 2005, 11:34:04 PM
Anyone?
Title: login problem with shoutbox xml
Post by: ANARCH¥ on September 16, 2005, 01:26:22 PM
hey all, a little problem, rach time i try to log on my board i recieve the xml of shoutbox in answer, i have the go back and reactualize for see the board....
Quote<?xml version="1.0" encoding="ISO-8859-1" ?>
- <smf>
  <shout id="696" can_delete="1" time="<b>Today</b> at 10:30:23 AM" member_email="" member_id="3957" member_name="D.e.v" message="&nbsp;im gonna rip his 1o.o.o.1 and make it 10.0.0.1

i found the bug problem:
Enable javascript XML refreshing of the shoutbox. (This will increase server load)
i unchecked and now all good for the login

ah, and in admin panel i have 2 shoutbox section .... thx for your help
Title: Re: Ultimate Shoutbox
Post by: tL0z on September 16, 2005, 02:35:21 PM
Quote from: tL0z on September 13, 2005, 05:04:10 AM
I've already installed the shoutbox, how can I put it inside the square under the user info?

http://www.nintendogeeks.globalfree.net/forum/index.php

My theme is Apollo.

HELP!

HELP!
Title: Re: Ultimate Shoutbox
Post by: perplexed on September 16, 2005, 04:58:55 PM
Quote from: elliel on August 08, 2005, 06:10:59 AM
Quote from: Col on August 06, 2005, 08:30:30 PM
Hi Elliel,

I don't think this is a shoutbox problem really. You are just looking for ideas of what to place under it. You could move the newsbox there I suppose, but then you'll be left with space in the header section.

It obvious you've gone to some trouble with your template, but there are some obvious problems. The width of your forum is considerably wider than 1024px wide, so unless you have a wide screen monitor, you have to scroll across.

What you could do, I suppose, is make two fixed width forum templates, one for 1024px width monitors, and one for 800px monitors. You'd actually have all the main parts of the forum within the 800 or 1024px, and you'd have to scroll across to view the shoutbox. Just a thought. - It would keep your forum large (according to members particular monitors and resolutions), and would be putting the shoutbox in some extra side space.

I'd still have a default template that was dynamic, that included the shoutbox, and then they could choose one of the fixed width templates from their profile options in they so desired.


Hi

I didnt do anything to the width of the forum, it just came that way, so I don't understand why you say it's too wide :(  I use a laptop and I don't have the scrolling problem, it seems to fit my screen ?

*confused*

But yeah about the space under the shout box, that is exactly the problem, there's a bit empty space underneath but I don't know how to move anything there :)


Hi I still have the problem of having an empty space under the shoutbox to fill, but I have now been asked about something else.

The shoutbox is available to all members but the Moderators have asked if it were possible to have their own Mod only shoutbox, so we could make each other aware of stuff etc without having to PM.   I'm guessing that you can't install two shoutboxes on the forum... but on my main website I have a little free shoutbox installed which is about 100 x 300 pixels.  Is there some way I can add that to the forum under the smf 'official shoutbox' ?  Then the regular members could use the non-smf shoutbox and I could restrict the smf shoutbox to the mods and admin team?

Is that possible and if so, can anyone tell me how to insert it?  I guess it means changing the display template but I would need instructions :)

thanks in advance
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 17, 2005, 12:18:06 AM
Well no one answered either of my 2 question above on this page, so  let me try a 3rd questions.

Where can i change the font size of the shot message being posted? currently wiht at 500x100 box only 4 messages can be in there at a time, but the font is kind of big, if i can lower the font im sure i can get more shout messages withing that box. Someone or anyone can you please help? thank you kindly
Title: Re: Ultimate Shoutbox
Post by: Rat454 on September 17, 2005, 05:40:31 AM
Hi Guys

I think the problem i have isnt a major one, but i cant for the life of me work out what to do. I have smf 1.1 beta 3p version, and i just installed the Ultimate Shoutbox. The shoutbox works fine, i it is positioned correctly, and operates well. However in my admin section it doesnt appear in my feature and option settings, so i cant make and adjustments to it. Does anyone know why it doesnt apear?

Thank you
Title: Re: Ultimate Shoutbox
Post by: perplexed on September 17, 2005, 07:51:07 AM
Quote from: coldthunder on September 17, 2005, 12:18:06 AM
Well no one answered either of my 2 question above on this page, so  let me try a 3rd questions.

Where can i change the font size of the shot message being posted? currently wiht at 500x100 box only 4 messages can be in there at a time, but the font is kind of big, if i can lower the font im sure i can get more shout messages withing that box. Someone or anyone can you please help? thank you kindly

in admin, features, you can change the size of the box and the number of shouts to be displayed.  my shoutbox runs down the right hand side of the page and you can see them all fine without altering the font size, but if you want to change the font size it would probably be in the shoutbox template???
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 17, 2005, 11:46:51 PM
i looked in the shoutbox template and its not anywhere in there only thing you can change in size in there is the message box tiself, id like to change the font as its kind big, thanks for any help anyone can give
Title: Re: Ultimate Shoutbox
Post by: Snickers on September 18, 2005, 05:55:16 AM
(http://img208.imageshack.us/img208/583/error4lc.th.png) (http://img208.imageshack.us/my.php?image=error4lc.png)

Why does it appear blank, and why does nothing happend if I type in and press enter??

I have the classic template and I have version 1.1 beta 3.
Title: Re: Ultimate Shoutbox
Post by: clemenzo on September 19, 2005, 01:07:37 AM
Quote from: clemenzo on September 14, 2005, 10:33:29 AM
Hi,

How can I change the date format to "d M y h:i:s a" for dates other than Today?

e.g 15 Sep 05 08:00:00 am instead of September 15, 2005 08:00:00 am

Thank you!

Can anyone help with this? Thank you!
Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 19, 2005, 04:19:13 PM
Quote from: Snickers on September 18, 2005, 05:55:16 AM
(http://img208.imageshack.us/img208/583/error4lc.th.png) (http://img208.imageshack.us/my.php?image=error4lc.png)

Why does it appear blank, and why does nothing happend if I type in and press enter??

I have the classic template and I have version 1.1 beta 3.



check my reply #523 in this thread.

Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 19, 2005, 10:42:46 PM
Quote from: clemenzo on September 14, 2005, 10:33:29 AM
Hi,

How can I change the date format to "d M y h:i:s a" for dates other than Today?

e.g 15 Sep 05 08:00:00 am instead of September 15, 2005 08:00:00 am

Thank you!

What I would do is make a new function timeformat (found in /Sources/Subs.php) and mess with the formating there. Look around line 750ish.

Then go to the shoutbox file shout.php and find/replace the timeformat calls to match whatever new function name I made in step #1.  Should be in function Shout_Archive() and function shout_display().

YMMV   :)
Title: Re: Ultimate Shoutbox
Post by: dairy_man on September 20, 2005, 04:16:14 AM
how do I change the username text to bold and italic?
Title: Re: Ultimate Shoutbox
Post by: clemenzo on September 20, 2005, 10:46:02 PM
Quote from: weekend camper on September 19, 2005, 10:42:46 PM
Quote from: clemenzo on September 14, 2005, 10:33:29 AM
Hi,

How can I change the date format to "d M y h:i:s a" for dates other than Today?

e.g 15 Sep 05 08:00:00 am instead of September 15, 2005 08:00:00 am

Thank you!

What I would do is make a new function timeformat (found in /Sources/Subs.php) and mess with the formating there. Look around line 750ish.

Then go to the shoutbox file shout.php and find/replace the timeformat calls to match whatever new function name I made in step #1.  Should be in function Shout_Archive() and function shout_display().

YMMV   :)

Thank you! I have also managed to get the format I like by specifying it as a forum default in the administration. I prefer not to tweak too much and having to redo whenever there is a new release of the ultimate shoutbox.

Thank you again!
Title: Re: Ultimate Shoutbox
Post by: clemenzo on September 20, 2005, 10:48:05 PM
Quote from: dairy_man on September 20, 2005, 04:16:14 AM
how do I change the username text to bold and italic?

Add html tags to the template_shout_form() function in shout.template.php which can be found in the default theme folder.
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 20, 2005, 11:28:51 PM
Just installed shout1.3 on smf 1.1 beta3 and it does not work for me, worked in 1.5 but not this new version, the shoutbox appears but even when u type a message it never posts in inthe shout box, scrollling doesnt work either even thought it set in settings. Anyone get it to work in 1.1 beta 3?
Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 21, 2005, 12:22:10 AM
Quote from: coldthunder on September 20, 2005, 11:28:51 PM
Just installed shout1.3 on smf 1.1 beta3 and it does not work for me, worked in 1.5 but not this new version, the shoutbox appears but even when u type a message it never posts in inthe shout box, scrollling doesnt work either even thought it set in settings. Anyone get it to work in 1.1 beta 3?

ummmm, look back one page on this thread?   ;)

Title: Re: Ultimate Shoutbox
Post by: dairy_man on September 21, 2005, 04:36:02 AM
hi.. if I will install this on a theme, for example theme oxygen, what will I do to have the shoutbox appear?

note: I have installed and have it runned on the the default theme but when I installed the theme oxygen, the shoutbox disappears..
Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 21, 2005, 01:00:03 PM
Quote from: dairy_man on September 21, 2005, 04:36:02 AM
hi.. if I will install this on a theme, for example theme oxygen, what will I do to have the shoutbox appear?

note: I have installed and have it runned on the the default theme but when I installed the theme oxygen, the shoutbox disappears..

read the very first post of this thread.  Grudge tells all!! 

Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 21, 2005, 01:00:58 PM
Post to confirm that Shoutbox 1.3 works just fine with 1.1RC1

Title: Re: Ultimate Shoutbox
Post by: tL0z on September 21, 2005, 01:02:12 PM
PLEASE HELP ME! THIS IS A SUPPORT FORUM OR NOT?

I've already installed the shoutbox, how can I put it inside the square under the user info?

http://www.nintendogeeks.globalfree.net/forum/index.php

My theme is Apollo.

HELP!
Title: Re: Ultimate Shoutbox
Post by: ChaosEnergy on September 21, 2005, 01:15:46 PM
I can add

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

somewhere in index.template

but after this, my complete layout is much biger...i get huge letter son complete page
having a blue box in default top area, like the newsbox would be fine
Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 21, 2005, 01:25:25 PM
Quote from: tL0z on September 21, 2005, 01:02:12 PM
PLEASE HELP ME! THIS IS A SUPPORT FORUM OR NOT?

I've already installed the shoutbox, how can I put it inside the square under the user info?

http://www.nintendogeeks.globalfree.net/forum/index.php

My theme is Apollo.

HELP!


Shouting  :'( at people offering free support on their spare time?   :-\

Reread the first post here, locate your special square by doing some educated guessing and putting gibberish "ASDFSD" (or something) in places that look like the code for the square in Apollo's index.template.php file.  You might have to dig through several files though, as I'm not familar with Apollo's layout.





Title: Re: Ultimate Shoutbox
Post by: [Unknown] on September 21, 2005, 02:57:58 PM
Remember that this is a third-party mod, and it is not supported by Simple Machines.  If you are not comfortable with using third-party software, reading instructions carefully, or getting a likely slower response than otherwise, I would have to suggest against using third-party mods.

Otherwise, you just need to latch onto your patience.  It is, after all, a virtue.

-[Unknown]
Title: Re: Ultimate Shoutbox
Post by: tL0z on September 21, 2005, 03:04:40 PM
Ok but I already made something like 10 POSTS asking for help!

Thanks for the answer but I can't find the square  :(
Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 21, 2005, 04:36:08 PM
Quote from: tL0z on September 21, 2005, 03:04:40 PM
Ok but I already made something like 10 POSTS asking for help!

Thanks for the answer but I can't find the square  :(

np, but you would likely get more help with that specific question (where's the square?) in the Apollo theme thread. 
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 21, 2005, 04:38:16 PM
im not a coder but i think this will work for you tl0z, it did for me

Go to what ever theme directory and edit the file called index.template.php, inside of that php file go all teh way to the bottom until you see 


}
?>


before the }

enter the following


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



so once you are done it should like this at the end of that index.template.php file


if (function_exists('smfshout'))
  smfshout();
}
?>


that will do what you are asking
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 21, 2005, 04:39:32 PM
Now i need some help, trying to install shoubox on 1.1 beta3 and getting the follwonig error. anyone know what it means"

Fatal error: packageinstall(): Failed opening required '/home/thundazo/public_html/hosting/tfs/smf11/Packages/temp/./shoutPdb.php' (include_path='.:/usr/local/lib/php') in /home/thundazo/public_html/hosting/tfs/smf11/Sources/Packages.php on line 499

thanks
Title: Re: Ultimate Shoutbox
Post by: dairy_man on September 21, 2005, 07:56:40 PM
Quote from: dairy_man on September 21, 2005, 07:13:26 PM
Quote from: weekend camper on September 21, 2005, 01:00:03 PM
Quote from: dairy_man on September 21, 2005, 04:36:02 AM
hi.. if I will install this on a theme, for example theme oxygen, what will I do to have the shoutbox appear?

note: I have installed and have it runned on the the default theme but when I installed the theme oxygen, the shoutbox disappears..

read the very first post of this thread.  Grudge tells all!! 


it does work on default or YABB theme but when I installed the theme Oxygen, the shoutbox appears at the top of the forum, i want it to be placed at the left corner... need help please

Title: Re: Ultimate Shoutbox
Post by: tL0z on September 22, 2005, 02:33:29 PM
I found the problem :(

http://images5.theimagehosting.com/smf.JPG

No support for portuguese language. Can you please make a Portuguese version? In the admin panel the options for the shoutbox also don't appear. But in English yes.
Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 22, 2005, 09:06:08 PM
Quote from: dairy_man on September 21, 2005, 07:56:40 PM
Quote from: dairy_man on September 21, 2005, 07:13:26 PM
Quote from: weekend camper on September 21, 2005, 01:00:03 PM
Quote from: dairy_man on September 21, 2005, 04:36:02 AM
hi.. if I will install this on a theme, for example theme oxygen, what will I do to have the shoutbox appear?

note: I have installed and have it runned on the the default theme but when I installed the theme oxygen, the shoutbox disappears..

read the very first post of this thread.  Grudge tells all!! 


it does work on default or YABB theme but when I installed the theme Oxygen, the shoutbox appears at the top of the forum, i want it to be placed at the left corner... need help please



OK, now that you have the default skins working, its best if you ask this question over at the Oxygen thread http://www.simplemachines.org/community/index.php?topic=31438.0 (http://www.simplemachines.org/community/index.php?topic=31438.0), as they can help more with that specific question (how do I put it in the left corner?)
Title: Re: Ultimate Shoutbox
Post by: weekend camper on September 22, 2005, 09:09:09 PM
Quote from: tL0z on September 22, 2005, 02:33:29 PM
I found the problem :(

http://images5.theimagehosting.com/smf.JPG

No support for portuguese language. Can you please make a Portuguese version? In the admin panel the options for the shoutbox also don't appear. But in English yes.

Grudge is no longer with the SMF team per the first post in this thread http://www.simplemachines.org/community/index.php?topic=50176.0 ...

Not sure who is going to "take over" his mods....
Title: Re: Ultimate Shoutbox
Post by: clemenzo on September 23, 2005, 02:44:24 AM
Any issue encountered with smf 1.1 RC1 and ultimate shoutbox?

I am hesitating to upgrade..
Title: Re: Ultimate Shoutbox
Post by: tL0z on September 23, 2005, 07:24:34 AM
Quote from: weekend camper on September 22, 2005, 09:09:09 PM
Quote from: tL0z on September 22, 2005, 02:33:29 PM
I found the problem :(

http://images5.theimagehosting.com/smf.JPG

No support for portuguese language. Can you please make a Portuguese version? In the admin panel the options for the shoutbox also don't appear. But in English yes.

Grudge is no longer with the SMF team per the first post in this thread http://www.simplemachines.org/community/index.php?topic=50176.0 ...

Not sure who is going to "take over" his mods....


oh...  :'(
Title: Re: Ultimate Shoutbox
Post by: Escobar on September 23, 2005, 07:33:41 AM
Hello, I am a novice user with minimum resources at my site.

Here is a tip for people who want the functionality, but don't want the thing cluttering their site.

I didn't like the way this mod scrolled automatically.
It would be better if people could scroll themselves.

I also realized that the load time increased when I installed this.
Not much, but again, I'm really ******y about these things.

This is what I did.
I used the Redirection Mod. I called the forum "Shoutbox"
And I set the redirection address to the ShoutBox Archive.
So there's a page dedicated to shouting, instead of the shoutbox annoying everybody at the site.


This might help people who don't want the shoutbox slowing down the main pages. But still want the functionality.  :)

P.S. Can someone recommend a chat mod?
I'd like a chat where it's a part of my site. I don't have to subsribe elsewhere.
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 23, 2005, 01:29:47 PM
escobart can you please provide the steps you did for the below

This is what I did.
I used the Redirection Mod. I called the forum "Shoutbox"
And I set the redirection address to the ShoutBox Archive.
So there's a page dedicated to shouting, instead of the shoutbox annoying everybody at the site.


thank you
Title: Re: Ultimate Shoutbox
Post by: Escobar on September 23, 2005, 02:38:41 PM
QuoteThis might help people who don't want the shoutbox slowing down the main pages. But still want the functionality.

1) Install the Ultimate ShoutBox

2) Install the Redirection Mod

***If you need help installing the mods, reply.***

4) Create a forum. Call it "ShoutBox".
(Admin>"Manage Boards">New Forum)

5) Now go to this, newly created, forums modification page. (Admin>"Manage Boards">"ShoutBox">"Modify")

6) There'll be the new option: "URL to redirect user to"
(This was created by the Redirection Mod)

7) In that field, paste the link to the shoutbox arhive: http://yoursite.com/index.php?action=shout_archive

8) Done  :D . Now when anyone clicks on that forum, it will take them to a single shoutbox page. (Instead of having it on every page of the site).

(http://img396.imageshack.us/img396/2187/untitled25in.th.jpg) (http://img396.imageshack.us/my.php?image=untitled25in.jpg)
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 23, 2005, 06:51:47 PM
thank you, do you have shoutbox working with 1.1? i can get it to load in that and can only get the shoutbox working with 1.5. If you got it working with 1.1 please let me know how you did it. I havent seen the redirection mod but will look for it. It be interesting if you could get that shoutbox page(forum) to open in a new window almost like a chat room :-)
Title: Re: Ultimate Shoutbox
Post by: Mysticalhead on September 23, 2005, 11:29:50 PM
This is the greatest thing that's happened to my site since Simplemachines itself.
(or maybe the Cerberus theme or maybe the Enhanced Quick Reply. Ha! this rules.)
Thanks!

Title: Re: Ultimate Shoutbox
Post by: tL0z on September 24, 2005, 05:43:05 AM
Can anyone make a portuguese version please? :(
Title: Re: Ultimate Shoutbox
Post by: clemenzo on September 25, 2005, 03:58:17 AM
Quote from: coldthunder on September 23, 2005, 06:51:47 PM
thank you, do you have shoutbox working with 1.1? i can get it to load in that and can only get the shoutbox working with 1.5. If you got it working with 1.1 please let me know how you did it. I havent seen the redirection mod but will look for it. It be interesting if you could get that shoutbox page(forum) to open in a new window almost like a chat room :-)

I think is 1.0.5. The version number is at the bottom, see http://astralqueen.hostdestroyer.com/index.php?theme=2

I have also tried install this mod with SMF 1.1RC1 but I found the shout.template.php file always empty. Do you also have the same problem?

Title: Re: Ultimate Shoutbox
Post by: Escobar on September 25, 2005, 04:20:16 AM
QuoteI think is 1.0.5. The version number is at the bottom, see http://astralqueen.hostdestroyer.com/index.php?theme=2

Quotethank you, do you have shoutbox working with 1.1? i can get it to load in that and can only get the shoutbox working with 1.5. If you got it working with 1.1 please let me know how you did it. I havent seen the redirection mod but will look for it. It be interesting if you could get that shoutbox page(forum) to open in a new window almost like a chat room :-)

Yes, I only run 1.05

So I don't know what you would do in SMF 1.1

However, maybe you can make the changes manually?

I have no idea what the differences are between 1.1 and 1.05...
But maybe if you manually perform the modifications, it'll work.

This article explains how you can do this:
http://www.simplemachines.org/community/index.php?topic=34526.0
Title: Re: Ultimate Shoutbox
Post by: frost on September 25, 2005, 10:49:25 AM
sorry, i can't find the solution i need ;)

here how it's lay out on the site:

www.semenka.com/start2.php?seme=main

here's how i'd like it to look:

http://www.semenka.com/forum/index.php?action=shout_archive


here's what i added to start2.php:

<?php 
if (function_exists('smfshout'))
  
smfshout(); ?>



i'm really kinda lost...
Title: Re: Ultimate Shoutbox
Post by: Escobar on September 25, 2005, 11:52:57 AM
Sorry, but are you asking a general question about the mod....
Or are you asking about the tutorial I made a page back?
Title: Re: Ultimate Shoutbox
Post by: coldthunder on September 25, 2005, 03:58:56 PM
Quote from: clemenzo on September 25, 2005, 03:58:17 AM
Quote from: coldthunder on September 23, 2005, 06:51:47 PM
thank you, do you have shoutbox working with 1.1? i can get it to load in that and can only get the shoutbox working with 1.5. If you got it working with 1.1 please let me know how you did it. I havent seen the redirection mod but will look for it. It be interesting if you could get that shoutbox page(forum) to open in a new window almost like a chat room :-)

I think is 1.0.5. The version number is at the bottom, see http://astralqueen.hostdestroyer.com/index.php?theme=2

I have also tried install this mod with SMF 1.1RC1 but I found the shout.template.php file always empty. Do you also have the same problem?



NO i finally go tit to work in 1.1 but the scroll on it is terrible, it jerks and moves and stops and moves again, something in the templates i suspect, until they finally update the templates we are at the mercy of waiting
Title: Re: Ultimate Shoutbox
Post by: frost on September 25, 2005, 04:16:44 PM
Quote from: Escobar on September 25, 2005, 11:52:57 AM
Sorry, but are you asking a general question about the mod....
Or are you asking about the tutorial I made a page back?

I'm asking a template question, just click the links and you will see.
Title: Re: Ultimate Shoutbox
Post by: bcw757 on September 28, 2005, 12:11:16 PM
Problem with install on 1.0.5

When I click Proceed to install the package, I get an error:

An Error Has Occurred!
2: fopen(/home2/expo3/public_html/bb/Packages/installed.list): failed to open stream: Permission denied
File: /home2/expo3/public_html/bb/Sources/Subs-Package.php
Line: 1476 


Then after I go back to my forum, I get this error:

Fatal error: Cannot redeclare smfshout() (previously declared in /home2/expo3/public_html/bb/Sources/Subs.php:1827) in /home2/expo3/public_html/bb/Sources/Subs.php on line 1834

I go back in and restore the old Subs.php and everything goes back to normal..  What's wrong?  I'm not that great with coding and whatnot.   I did have the shoutbox installed on my old yabb forum, but the smf, I'm having problems with.  Any help?
Title: Re: Ultimate Shoutbox
Post by: edi67 on September 28, 2005, 01:04:52 PM
i reinsalled ultimate shoutbox in SMF 1.1 RC1 but calling the soutbox

Adding this:

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


i have this error:

Fatal error: Call to undefined function: shout_display() in /home/forumzonenetru/www/Sources/Subs.php on line 3233

Line 3233 in Subs.php:

function smfshout()
{
   global $sourcedir;

Line 3232         include_once("$sourcedir/shout.php");
Line 3233         shout_display();
Line 3234         shout_form();


Title: Re: Ultimate Shoutbox
Post by: weekend camper on October 11, 2005, 06:17:22 PM
Quote from: edi67 on September 28, 2005, 01:04:52 PM
i reinsalled ultimate shoutbox in SMF 1.1 RC1 but calling the soutbox

Adding this:

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


i have this error:

Fatal error: Call to undefined function: shout_display() in /home/forumzonenetru/www/Sources/Subs.php on line 3233

Line 3233 in Subs.php:

function smfshout()
{
   global $sourcedir;

Line 3232         include_once("$sourcedir/shout.php");
Line 3233         shout_display();
Line 3234         shout_form();




I would manually reinstall the mod ... specifically the sources/shout.php file first, as the script can't find that. 

If that doesn't help, then reupload the backup SMF files you have that the pac man adjusted for the shoutbox and make sure that it works from "clean".  Then either do another pac man install (guessing it won't work) or do a manual install.
Title: Re: Ultimate Shoutbox
Post by: EvilElvis138 on October 11, 2005, 07:56:24 PM
Very nice mod. Took me awhile to get it to work with my theme, but it's perfect now. I did notice a security flaw though. It displays on the login page as well. If you have secured forums, you might not want that. Here's how I fixed it


if ($context['user']['is_logged'])
{
          ', smfshout(), '
}


My PHP is limited to editting existing code, and I had a bunch of table info in there too that I removed, so I'm not 100% sure the syntax is correct, but you get the idea.

Title: Re: Ultimate Shoutbox
Post by: Catbyte on October 13, 2005, 05:25:17 PM
I have the shoutbox installed but it appears on the forum login page which means guests and anybody can see it.  The members dont want that as it is a private board.  How can I stop it being displayed on this page and only have it appear after you have logged in to the forum?

thanks for your help

Title: Re: Ultimate Shoutbox
Post by: Catbyte on October 15, 2005, 01:55:54 PM
Quote from: Catbyte on October 13, 2005, 05:25:17 PM
I have the shoutbox installed but it appears on the forum login page which means guests and anybody can see it.  The members dont want that as it is a private board.  How can I stop it being displayed on this page and only have it appear after you have logged in to the forum?

thanks for your help



any ideas, I really dont want this to show on the login page?  :(
Title: Re: Ultimate Shoutbox
Post by: EvilElvis138 on October 15, 2005, 08:59:36 PM
I just told how to do just that, in the post directly before your first one :)
Title: Re: Ultimate Shoutbox
Post by: Catbyte on October 16, 2005, 07:34:07 AM
I'm sorry, I didnt see that when I posted, some glitch

What template are you putting that code into and where?  (I'm a novice) 

Thanks  :D
Title: Re: Ultimate Shoutbox
Post by: EvilElvis138 on October 16, 2005, 10:29:04 AM
You put it in index.template.php, the one for your theme. I'm using the Helios theme, and I wanted mine to display in a new frame, between the stats and the menu. So I editted /Themes/Helios/index.template.php, found the empty space between the 2, and added this:

// Shoutbox

if ($context['user']['is_logged'])
{
          echo '<div style="padding-left: 0px; align: left;">'.$topbox.'<div style="padding: 6px; text-align: left;"><table width="99%" cellpadding="0" cellspacing="0" border="0"><tr><td width="15%" bordercolor="black">Shoutbox <BR><font size="1">Newest posts at top</font></td><td width="79%" class="smalltext" bordercolor="gray" align="left" style="font-family: verdana, arial, sans-serif;">', smfshout(), '
          </td><td width="5%"> </td></tr></table>'.$botbox.'</div>';
}
else
{
          echo '<div style="padding-left: 0px; align: left;">'.$topbox.'<div style="padding: 6px; text-align: left;"><table width="99%" cellpadding="0" cellspacing="0" border="0"><tr><td width="15%" bordercolor="black">Shoutbox <BR><font size="1">Newest posts at top</font></td><td width="79%" class="smalltext" bordercolor="gray" align="left" style="font-family: verdana, arial, sans-serif;">
          </td><td width="5%"> </td></tr></table>'.$botbox.'</div>';

}


But that's adding the frames I wanted, so my 1st example is simpler to follow.

Where you put the code in your file would depend on where you want the shoutbox to display on your site.
Title: Re: Ultimate Shoutbox
Post by: ArkServer on October 24, 2005, 07:54:45 PM
Although installed without any errors i get this " Unable to load the 'main' template." when i try to use the shoutbox.

http://arkserver.servehttp.com
login: test // test
Title: Re: Ultimate Shoutbox
Post by: Foreverpurple on November 04, 2005, 01:05:23 AM
I'm not able to download...the transfer fails.

Which one do I need for SMF 1.0.5??
Title: Re: Ultimate Shoutbox
Post by: Mike_PL on November 06, 2005, 08:39:53 AM
I can't download this mod... :(
Title: Re: Ultimate Shoutbox
Post by: ToyDozer on November 07, 2005, 01:10:51 AM
Can anyone help me out getting the shouts to align left rather then center? I think it would clean things up on my layout a bit. Make it visually easier to scroll down the list of whos posting...

Find it here running on 1.0.5 running helios_multi theme..
http://www.wheelingadventures.com (http://www.wheelingadventures.com)
(http://www.wheelingadventures.com/Board/Images/Shouter.jpg)

Thanks in advance
Jon
Title: Re: Ultimate Shoutbox
Post by: Jerry on November 07, 2005, 01:35:36 AM
Quote from: ToyDozer on November 07, 2005, 01:10:51 AM
Can anyone help me out getting the shouts to align left rather then center? I think it would clean things up on my layout a bit. Make it visually easier to scroll down the list of whos posting...

Find it here running on 1.0.5 running helios_multi theme..
http://www.wheelingadventures.com (http://www.wheelingadventures.com)

Thanks in advance
Jon
edit shout.template.php
find:
echo '
<center>';

change <center> to <left>.
find:
</form>
</center>';

change </center> to </left>
Quote from: Foreverpurple on November 04, 2005, 01:05:23 AM
I'm not able to download...the transfer fails.

Which one do I need for SMF 1.0.5??
Quote from: Mike_PL on November 06, 2005, 08:39:53 AM
I can't download this mod... :(
did you guys try to download version1.31 from this page?
http://mods.simplemachines.org/index.php?mod=22
or package manager?
Quote from: ArkServer on October 24, 2005, 07:54:45 PM
Although installed without any errors i get this " Unable to load the 'main' template." when i try to use the shoutbox.

http://arkserver.servehttp.com
login: test // test
are you still having this problem? what code are you trying to add to your template?
Title: Re: Ultimate Shoutbox
Post by: ArkServer on November 07, 2005, 06:05:10 PM
http://arkserver.servehttp.com/forum/index.php?action=shout
i didnt add the code b/c its no use adding something that doesnt work.
But i really would this this mod to work on my forums :P
Title: Re: Ultimate Shoutbox
Post by: Jerry on November 07, 2005, 06:37:31 PM
Quote from: ArkServer on November 07, 2005, 06:05:10 PM
http://arkserver.servehttp.com/forum/index.php?action=shout
i didnt add the code b/c its no use adding something that doesnt work.
But i really would this this mod to work on my forums :P
does shout.template.php exist in /themes/default/ ?
Title: Re: Ultimate Shoutbox
Post by: FBI on November 08, 2005, 03:39:36 AM
I am currently use Ultimate ShoutBox in my forum (http://forumbebas.com).
I want to make/install 2 different shoutbox here.
Which files or template should be change or add? and the php code itself?
I know its difficult, but i try to understand :)

Thanks in advance.
Title: Re: Ultimate Shoutbox
Post by: ArkServer on November 08, 2005, 06:36:30 AM
Quote from: Jerry on November 07, 2005, 06:37:31 PM
Quote from: ArkServer on November 07, 2005, 06:05:10 PM
http://arkserver.servehttp.com/forum/index.php?action=shout
i didnt add the code b/c its no use adding something that doesnt work.
But i really would this this mod to work on my forums :P
does shout.template.php exist in /themes/default/ ?

yup

//edit
I fixed it, i replaced the file that was 0kb lol

anyay, no text is showing up and i already added the text to modification.php in the language files

(http://arkserver.servehttp.com/shout_error.jpg)
Title: Re: Ultimate Shoutbox
Post by: pastortravis on November 08, 2005, 03:50:33 PM
Hi,

I spent the last 2 hours going over this Thread trying to find an answer, but either there was nothing posted or I missed it...


I have been attempting to add this shout to the main page of my website...  www.2911youth.com.

I have tried many things, but nothing seems to work... the closest thing I got was a little box on the main page stating "HACKING ATTEMPT..."

Anyway,  could somone send me a SIMPLE walk thru on how to add this to my home page?  I just beginning to learn PHP SSI and the such, so a lot of techical stuff wont help me much.  A clean copy/paste code would be nice!

Thanks!
Title: Re: Ultimate Shoutbox
Post by: Jerry on November 08, 2005, 08:06:45 PM
Quote from: ArkServer on November 08, 2005, 06:36:30 AM
yup

//edit
I fixed it, i replaced the file that was 0kb lol

anyay, no text is showing up and i already added the text to modification.php in the language files

(http://arkserver.servehttp.com/shout_error.jpg)
You added the text to /themes/default/languages/Modifications.english.php ? Do you use any other languages on your boards?
Quote from: pastortravis on November 08, 2005, 03:50:33 PM
Hi,

I spent the last 2 hours going over this Thread trying to find an answer, but either there was nothing posted or I missed it...


I have been attempting to add this shout to the main page of my website...  www.2911youth.com.

I have tried many things, but nothing seems to work... the closest thing I got was a little box on the main page stating "HACKING ATTEMPT..."

Anyway,  could somone send me a SIMPLE walk thru on how to add this to my home page?  I just beginning to learn PHP SSI and the such, so a lot of techical stuff wont help me much.  A clean copy/paste code would be nice!

Thanks!
try looking at your board's http://yoururl//ssi_examples.php there should be an example at the bottom that tells you how to add the shoutbox to your home page. The page file must have the extension '.php'.
Title: Re: Ultimate Shoutbox
Post by: Foreverpurple on November 08, 2005, 09:12:09 PM
I was finally able to get a good download of this.

Can't quite get it to display the way I want but I'm working on it.  It seems to stutter and skip in Firefox also.
Title: Re: Ultimate Shoutbox
Post by: ToyDozer on November 08, 2005, 09:55:27 PM
Quote from: Jerry on November 07, 2005, 01:35:36 AM
Quote from: ToyDozer on November 07, 2005, 01:10:51 AM
Can anyone help me out getting the shouts to align left rather then center? I think it would clean things up on my layout a bit. Make it visually easier to scroll down the list of whos posting...

Find it here running on 1.0.5 running helios_multi theme..
http://www.wheelingadventures.com (http://www.wheelingadventures.com)

Thanks in advance
Jon
edit shout.template.php
find:
echo '
<center>';

change <center> to <left>.
find:
</form>
</center>';

change </center> to </left>

Well I got the left alignment thing taken care of though the suggested method didn't work but it did get me in the right area. Now I would like to be able to re-orient the "View All" "Input box" and the "Shout" button into a table 3 columns wide to make it a little shorter overall. Any help with that?

(http://www.wheelingadventures.com/Board/Images/Shouter2.jpg)
Title: Re: Ultimate Shoutbox
Post by: pastortravis on November 09, 2005, 10:24:00 AM
I have been trying to addthe Shoutbox to my main page, but I either get nothing or a Hacking Attempt notice.

Is there a way or a code need to make this happen?

My site, www.2911youth.com, is a basic HTML formated site...  I have been reading the SSI information that was with ShoutBox, but it stops short of telling you what to do.

Thanks for any help!
Title: Re: Ultimate Shoutbox
Post by: r0khan on November 09, 2005, 01:01:59 PM
hey im trying to make it smaller since its so big, is there a way to resize it? not width wise, but hight wise?
Title: Re: Ultimate Shoutbox
Post by: weekend camper on November 09, 2005, 02:18:35 PM
Quote from: pastortravis on November 09, 2005, 10:24:00 AM
I have been trying to addthe Shoutbox to my main page, but I either get nothing or a Hacking Attempt notice.

Is there a way or a code need to make this happen?

My site, www.2911youth.com, is a basic HTML formated site...  I have been reading the SSI information that was with ShoutBox, but it stops short of telling you what to do.

Thanks for any help!

My best advice is to get some other SSI function working on your main page first ... maybe the welcome or the top posters bit.  My best guess is that 1)your host has some apache/php setting "wrong" or 2) you're almost, but not quite getting the script right -- meaning its likely not the shoutbox SSI that is the stumbling block here.

Did you read the main SSI examples? in the root SMF directory?   Did you read the excellent SSI FAQs (http://www.simplemachines.org/community/index.php?topic=14906.0) written by Tomer?

I see that you have the SMF shoutbox working on your forums, so we can discount that as a problem area.
Title: Re: Ultimate Shoutbox
Post by: Col on November 10, 2005, 10:25:47 AM
Quote from: Foreverpurple on November 08, 2005, 09:12:09 PM
I was finally able to get a good download of this.

Can't quite get it to display the way I want but I'm working on it.  It seems to stutter and skip in Firefox also.

Yep, skipping happens in NS too. It appears like this because the gap that should appear at the end of the scroll is missing. I posted about this more than three months ago, but it seems that Grudge is busy with other things, and can no longer support this mod. Shame, I like it a lot, as there are few things that need to be looked at.
Title: Re: Ultimate Shoutbox
Post by: Foreverpurple on November 10, 2005, 05:20:17 PM
Same here as do my members.  Turning off the scrolling is a temporary fix at least.
Title: Re: Ultimate Shoutbox
Post by: Col on November 10, 2005, 06:15:04 PM
Quote from: Foreverpurple on November 10, 2005, 05:20:17 PM
Same here as do my members.  Turning off the scrolling is a temporary fix at least.

I've just done that. I had inteneded to before, but just forgot about it (I usually use IE to browse). The problem is that it makes the box very long, so I've reduced the number of shouts displayed to six. Not ideal, and is still a bit too long.

Has Grudge said anything about others being free to work on his mod? It would be nice to get this bug ironed out.
Title: Re: Ultimate Shoutbox
Post by: weekend camper on November 10, 2005, 06:45:22 PM
Quote from: Col on November 10, 2005, 06:15:04 PM

Has Grudge said anything about others being free to work on his mod? It would be nice to get this bug ironed out.

I've asked (almost) the same Q on the Charter Members section, but no response yet.

Title: Re: Ultimate Shoutbox
Post by: ToyDozer on November 11, 2005, 03:00:53 AM
Quote from: ToyDozer on November 08, 2005, 09:55:27 PM
Quote from: Jerry on November 07, 2005, 01:35:36 AM
Quote from: ToyDozer on November 07, 2005, 01:10:51 AM
Can anyone help me out getting the shouts to align left rather then center? I think it would clean things up on my layout a bit. Make it visually easier to scroll down the list of whos posting...

Find it here running on 1.0.5 running helios_multi theme..
http://www.wheelingadventures.com (http://www.wheelingadventures.com)

Thanks in advance
Jon
edit shout.template.php
find:
echo '
<center>';

change <center> to <left>.
find:
</form>
</center>';

change </center> to </left>

Well I got the left alignment thing taken care of though the suggested method didn't work but it did get me in the right area. Now I would like to be able to re-orient the "View All" "Input box" and the "Shout" button into a table 3 columns wide to make it a little shorter overall. Any help with that?

(http://www.wheelingadventures.com/Board/Images/Shouter2.jpg)

Well I finally got it! Though I do have to re-figure out the layout on the archive view all page cause it kind of got fouled up in the fixing of the main shoutbox to make it more vertically compact. Figuring it out as I go...  Keeping my fingers crossed and my files backed up!!!

(http://www.wheelingadventures.com/Board/Images/Shouter3.jpg)
Title: Re: Ultimate Shoutbox
Post by: ToyDozer on November 11, 2005, 10:44:57 PM
Ok now i've really done it and i'm hoping someone can help me out here..

With the changes that I did to get the "View all" "Message" and "Shout" fields to display in a table 3 wide somehow it seems that now when I type in my shout and hit the "Shout" button I get forwarded to the Shout Archive page, when on the shout archive page if I type in a message there and hit the shout button it posts my message just fine but only if I use the message window which is on the archive page and not the one in the shout box itself.. Make sense? Anybody have any ideas??

Heres the link to my page http://www.wheelingadventures.com (http://www.wheelingadventures.com)

As always thanks in advance!!
Title: Re: Ultimate Shoutbox
Post by: .Chief on November 13, 2005, 03:26:41 PM
I am trying to get the code in my index.template.php and I have no idea where to put that code. I would love to have it at the top below header. Here is my board (http://www.socom3.org/pk)....and I would love to have it in the area were I talk about what server we are on ect. I am using the helios_multi board as my theme. Any would be great!

Title: Re: Ultimate Shoutbox
Post by: RoarinRow on November 15, 2005, 06:40:24 PM
Quote from: .Chief on November 13, 2005, 03:26:41 PM
I am trying to get the code in my index.template.php and I have no idea where to put that code. I would love to have it at the top below header. Here is my board (http://www.socom3.org/pk)....and I would love to have it in the area were I talk about what server we are on ect. I am using the helios_multi board as my theme. Any would be great!



I'm using Helios too.  I like exactly where you put yours.  Would you please please tell me what you did to get it there.

Thanks!
Title: Re: Ultimate Shoutbox
Post by: Pratt on November 15, 2005, 08:06:19 PM
Hi! I have a question.. is there a way to restrict the time between the shouts?

I mean, i have had a lot of "shout-spammers" lately and i would like to give an amount of time between each shout... In other words, if someone posts a shout, is there a way to make him wait about 5 minutes untill he can shout agian?

Thanks
Title: Re: Ultimate Shoutbox
Post by: Col on November 16, 2005, 10:27:44 AM
Quote from: Pratt on November 15, 2005, 08:06:19 PM
Hi! I have a question.. is there a way to restrict the time between the shouts?

I mean, i have had a lot of "shout-spammers" lately and i would like to give an amount of time between each shout... In other words, if someone posts a shout, is there a way to make him wait about 5 minutes untill he can shout agian?

Thanks

If you don't allow guests to shout, then create a basic members group, and check 'deny' to shouts, and add problem members to this as 'no primary membergroup'. I don't think that is what you are really looking for, but hope it will be help.
Title: Re: Ultimate Shoutbox
Post by: RoarinRow on November 16, 2005, 03:33:13 PM
When I delete an entry in the shout box I get thrown back to the index page.  What do I need to do to stay on the same page/theme that the shout box is in?

Thanks.
Title: Re: Ultimate Shoutbox
Post by: Col on November 17, 2005, 08:13:40 PM
It could do with a series of check boxes, and check all, that's for sure.

Does anyone know if Grudge is developing this at all now, or if he's allowing others to develope this?
Title: Re: Ultimate Shoutbox
Post by: tX on November 17, 2005, 08:31:18 PM
Dose this work with RC1?
Title: Re: Ultimate Shoutbox
Post by: weekend camper on November 18, 2005, 05:55:22 PM
Quote from: XTECHFORUM.COM on November 17, 2005, 08:31:18 PM
Dose this work with RC1?

fer shizzle. 

Esp. the 1.31 version.

Title: Re: Ultimate Shoutbox
Post by: Jako on November 24, 2005, 03:35:43 PM
'Ello all,

Just a question from a n00b and a completely PHP-illiterate moron. I'm using Helios, and I was wondering if it's possible to have the Shoutbox appear inbetween the Info Center and that credits bar [the one where it describes how fast the page loaded and how it's created by Bloc) and have it scroll horizontally. If so, could someone be so kind as to detail the PHP I would need to alter and edit?

~Jako
Title: Re: Ultimate Shoutbox
Post by: RoarinRow on November 24, 2005, 04:50:22 PM
Quote from: Jako on November 24, 2005, 03:35:43 PM
'Ello all,

Just a question from a n00b and a completely PHP-illiterate moron. I'm using Helios, and I was wondering if it's possible to have the Shoutbox appear inbetween the Info Center and that credits bar [the one where it describes how fast the page loaded and how it's created by Bloc) and have it scroll horizontally. If so, could someone be so kind as to detail the PHP I would need to alter and edit?

~Jako

In one section of my forum I use Helios Multi.  I put my shoutbox where you describe.

Open up index.template.php

After this section:

// Show the menu here, according to the menu sub template.

And before this section:

// The main content should go here.  A table is used because IE 6 just can't handle a div.


Add this:

// Shoutbox

if ($context['user']['is_logged'])
{
          echo '<div style="padding-left: 0px; align: left;">'.$topbox.'<div style="padding: 6px; text-align: left;"><table width="99%" cellpadding="0" cellspacing="0" border="0"><tr><td width="15%" bordercolor="black">Shoutbox <BR><font size="1">Newest posts at top</font></td><td width="79%" class="smalltext" bordercolor="gray" align="left" style="font-family: verdana, arial, sans-serif;">', smfshout(), '
          </td><td width="5%"> </td></tr></table>'.$botbox.'</div>';
}
else
{
          echo '<div style="padding-left: 0px; align: left;">'.$topbox.'<div style="padding: 6px; text-align: left;"><table width="99%" cellpadding="0" cellspacing="0" border="0"><tr><td width="15%" bordercolor="black">Shoutbox <BR><font size="1">Newest posts at top</font></td><td width="79%" class="smalltext" bordercolor="gray" align="left" style="font-family: verdana, arial, sans-serif;">
          </td><td width="5%"> </td></tr></table>'.$botbox.'</div>';

}


All this assuming you installed the Shoutbox mod and enabled it in the 'Edit Features and Options' section.
Title: Re: Ultimate Shoutbox
Post by: Jako on November 24, 2005, 05:41:32 PM
Thanks for all your help man, but it definitely did not do what you said it would. o_o Haha.

It went inbetween the Stats bar and the news fader box, completely covering up the panel with "Home, Search, Admin, etc." and the messages didn't even go horizontally, they showed up vertically.

Thanks for you help, though. :) Anyone got any ideas?
Title: Re: Ultimate Shoutbox
Post by: fcnet on November 25, 2005, 04:36:35 PM
Can someone explain it from the beginning please.There are 45 pages and everything is complicated:(

1.Is it compatible with 1.1 RC1?
2.After installation where should we put the codes in index.template.php,please give an example for the beginners.There are 500 lines in this php file,where should we put that ******?
3.Does it work with Turkish language?

I have many questions in my mind,please someone help?
Title: Re: Ultimate Shoutbox
Post by: weekend camper on November 26, 2005, 04:36:41 AM
Quote from: fcnet on November 25, 2005, 04:36:35 PM
Can someone explain it from the beginning please.There are 45 pages and everything is complicated:(

1.Is it compatible with 1.1 RC1?
2.After installation where should we put the codes in index.template.php,please give an example for the beginners.There are 500 lines in this php file,where should we put that ******?
3.Does it work with Turkish language?

I have many questions in my mind,please someone help?

1. look at reply #658 in this thread
2. it really depends on where you want it placed... either be specific about where you want it, or just place the code in 'somewhere' and see where it works ... and swearing isn't really appropriate on these boards (little kids and all that).
3. no idea but probably.

45 pages is a lot yes, but i strongly urge you to read most of it anyways ... almost any Q you would have is likely already answered ... and the forum search feature is working great again with the new server here.
Title: Re: Ultimate Shoutbox
Post by: greyknight17 on November 29, 2005, 10:00:31 PM
I need urgent help on this one.  I installed the ShoutBox manually on one of my themes.  Everything worked fine yesterday, but it totally bombed out on the server (probably for most of the day and night).  It's been verified by my webhost that the forum was opening a lot of connections to MySQL and not closing it.  Is this because I enabled the live update for the shouts in ShoutBox or something I did wrong on my end?

If I wanted to uninstall this mod, how can I change/remove those database changes?  I know how to edit the PHP files, but don't know about the SQL part.

Earlier I got a SMF database error...saying it might be my server.  Now I get this error only:

Can't open file: 'yabbse_sessions.MYI'. (errno: 145)

EDIT: For some reason, I have a whole bunch of backup_yabbse_.... tables listed in phpMyAdmin also.  Can I use the backup copy of yabbse_sessions for this?  Not sure about the .MYI part.  Not very savvy in database...

Forum is down  :'(

Thanks.
Title: Re: Ultimate Shoutbox
Post by: greyknight17 on November 30, 2005, 12:44:08 AM
Got it up and running again...I don't know why this worked, but it did.  What I did was I made a backup of my current database.  Then I just re-uploaded it to my webhost and that seems to have fixed the problem.  Any explanation on this?

Does anyone know what caused this problem in the first place?  Web host said it was opening a lot of connections to MySQL but not closing it.

Do I need to worry about it again?  Correction to my post above.  What I meant to say was that I checked that box in the ShoutBox settings (it says that it may cause the server to overload or something to that extent).  Did that cause the problem?  I unchecked it hoping that fixes everything...hopefully it won't go crashing tomorrow...again.

One last question.  Can someone mention where each file in this mod package goes?  I know where most of them go since the .mod file (and even the .xml file) mentioned them.  But I remember seeing like one or two more where I didn't know where to put exactly.  Did a search here and saw a path mentioned and just moved one of those files I found to that directory instead (forgot name of file now).
Title: Re: Ultimate Shoutbox
Post by: Col on November 30, 2005, 04:59:58 AM
You mean the 'Refresh' function. In an earlier version, Grudge made it query the database every 0.5 seconds, if I remember correctly, and would refresh if there were fresh shouts,but he changed it to evert 5 seconds because of load issues. Did you download this recently, or some months ago? - If some months ago, it would be worth you checking that you have the last version.

I too have the query option unchecked. The shoutbox refreshes with each page reload. It's not  ideal either if members start using it as some kind of chat (it can eat bandwidth like that, and cause extra load too). This probably isn't a problem in reality; it's just the way an old shoutbox I had with a YaBB forum ended up being used, but that functioned in a way that made it more 'chat friendly'.
Title: Re: Ultimate Shoutbox
Post by: greyknight17 on November 30, 2005, 05:49:55 PM
Sorry about that...yeah the Refresh option  :D

I unchecked it once I got my forum back up and running again.  It should be the most recent version.  I got it through package manager just the other day.

Yeah, I was actually thinking of the ShoutBox as more of a chat room.  Still wondering if I should get back the chatroom.  I never used it much and from time to time had problems with the Java loading.
Title: Re: Ultimate Shoutbox
Post by: Col on November 30, 2005, 06:40:18 PM
Grudges shutbox will not work well as pseudo-chat, as you need the refreshes. Also, you need to increase the length of messages allowed, but I'm sure that is easy enough. Members will have to refresh the whole page, which can't be good in you have 10 doing it the same time, and it's will definitely eat bandwidth. - I'm sure you could put it in an iframe, and just refresh that though.

However, these would be far better:

Integrated Chat Mod. (http://www.simplemachines.org/community/index.php?topic=45237.0)

Also, there are instructions somewhere for integrating FlashChat into your SMF forum. I think it costs just £5, or $5 for FlashChat, so is well worth considering too. - Can't find it at the moment, search is down again. - I thought that was fixed! ::)

Edit: Here it is! (http://www.simplemachines.org/community/index.php?topic=27137.0)
Title: Re: Ultimate Shoutbox
Post by: Madley on December 01, 2005, 08:51:14 AM
I ask you a little help.
I installed shoutbox correctly and It works. Now I've seen that in Internet Explorer there are some empty lines before the first one....but in firefox no... Is possible to modify the shout in this way eve for firefox...   ???

Thanks..
Title: Re: Ultimate Shoutbox
Post by: Col on December 01, 2005, 10:12:36 AM
Hi Madley,

It's a bug. It's been mentioned before by myself, and others. It also occurs in Netscape. The solution is turn off scrolling in the Shoutbox options. Yes, it would be nice if someone could sort this out. Grudge seems to stopped giving support for this and most of his mods as he is too busy with other SMF developments. I'm sure that it will get sorted out eventually.
Title: Re: Ultimate Shoutbox
Post by: Madley on December 01, 2005, 01:09:53 PM
Quote from: Col on December 01, 2005, 10:12:36 AM
Hi Madley,

It's a bug. It's been mentioned before by myself, and others. It also occurs in Netscape. The solution is turn off scrolling in the Shoutbox options. Yes, it would be nice if someone could sort this out. Grudge seems to stopped giving support for this and most of his mods as he is too busy with other SMF developments. I'm sure that it will get sorted out eventually.

Thaks for your answer Col.
I think the solution is quite simple but i don't know php otherwise i'll do it myself....  ::)
Title: Re: Ultimate Shoutbox
Post by: Col on December 01, 2005, 03:19:48 PM
I think it's a Java Script problem, but ain't sure about that. No, it's nothing I can fix either. Turning off scrolling is the best option for now.
Title: Re: Ultimate Shoutbox
Post by: alianos on December 04, 2005, 07:33:38 AM
5.     Execute Code     shoutPdb.php     
6.    Execute Modification    index.php    Failure
7.    Execute Modification    ./Sources/Subs.php    Success


when installing.

any ideas? forum just has Joomla bridge and PHP 4 compatibility upgrade!
Title: Re: Ultimate Shoutbox
Post by: Sven0 on December 04, 2005, 08:24:32 AM
Quote from: ToyDozer on November 11, 2005, 03:00:53 AM
Quote from: ToyDozer on November 08, 2005, 09:55:27 PM
Quote from: Jerry on November 07, 2005, 01:35:36 AM
Quote from: ToyDozer on November 07, 2005, 01:10:51 AM
Can anyone help me out getting the shouts to align left rather then center? I think it would clean things up on my layout a bit. Make it visually easier to scroll down the list of whos posting...

Find it here running on 1.0.5 running helios_multi theme..
http://www.wheelingadventures.com (http://www.wheelingadventures.com)

Thanks in advance
Jon
edit shout.template.php
find:
echo '
<center>';

change <center> to <left>.
find:
</form>
</center>';

change </center> to </left>

Well I got the left alignment thing taken care of though the suggested method didn't work but it did get me in the right area. Now I would like to be able to re-orient the "View All" "Input box" and the "Shout" button into a table 3 columns wide to make it a little shorter overall. Any help with that?

(http://www.wheelingadventures.com/Board/Images/Shouter2.jpg)

Well I finally got it! Though I do have to re-figure out the layout on the archive view all page cause it kind of got fouled up in the fixing of the main shoutbox to make it more vertically compact. Figuring it out as I go...  Keeping my fingers crossed and my files backed up!!!

(http://www.wheelingadventures.com/Board/Images/Shouter3.jpg)

looks great!

Can you show me the file that you edited that the View All and message box appears in the same line?
Thanx!
Title: Re: Ultimate Shoutbox
Post by: Sven0 on December 08, 2005, 05:53:25 AM
The problem with the Ultimate Shoutbox is that after each "Shout" Button click the page reload at the top and not where the Shoutbox is... which code is to change to solve that?
Title: Re: Ultimate Shoutbox
Post by: Col on December 08, 2005, 01:27:05 PM
Hi,

If you mean, just refresh the shoutbox, and not the whole page, you should be able to achieve this using an iframe. I might do it that way myself soon, as I've set up a test page porting out onto my HTML pages. I found though, when my forum went belly-up, yesterday, it also killed my test page. If I put the shoutbox in an iframe, only the iframe should be affected, and perhaps I can elbow a refresh button in there somehow. :-\

If someone here can tell me how to include a page refresh button into a page, that would be appreciated.
Title: Re: Ultimate Shoutbox
Post by: FBI on December 12, 2005, 01:46:19 AM
Sorry I am late to follow discussion here :) and already 46 pages..

Its possible to add code "anti spam" or "waiting next post for each user"?
Thank You.
Title: Re: Ultimate Shoutbox
Post by: Col on December 12, 2005, 10:41:19 AM
That would be nice, but pie in the sky I fear. The best thing to do is not allow guests to post, but if you are still having problems, only allow trusted groups to post. I also have 'shoutban' group for anyone that is otherwise a good member. ;)
Title: Re: Ultimate Shoutbox
Post by: ToyDozer on December 12, 2005, 11:48:50 PM
First off let me say this... I can be simple and I've learned to accept it so I hope you can too. Maybe even find it in your heart to try and help me out a bit...

I want to be able to type longer sentences in my shoutbox, longer then will fit on one line. Much like the "Character number to split long words at" which will split one lone word into two lines if it exceeds whatever number you define. I can fit roughly 100 characters of message text depending on the username and date info but how can I change the maximum input to something like 200 characters??

Thanks in advance...

Heres a link just incase you think it important.... (http://www.wheelingadventures.com/Board/index.php)
Title: Re: Ultimate Shoutbox
Post by: Col on December 13, 2005, 09:35:05 AM
Hiya ToyDozer,

Open up shout.template.php, and search for:

echo '
<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
</form>
</center>';


Change the value in 'maxlength="100"' to whatever value you'd like.
Title: Re: Ultimate Shoutbox
Post by: ToyDozer on December 13, 2005, 11:29:27 PM
Thank you.. That was painfully obvious now that its been pointed out to me  ;D
Title: Re: Ultimate Shoutbox
Post by: Col on December 14, 2005, 01:18:58 PM
Quote from: ToyDozer on December 13, 2005, 11:29:27 PM
Thank you.. That was painfully obvious now that its been pointed out to me  ;D

Obvious when you know where to look! - I just happened to be looking at the same sction of code a few days ago for another reason. ;D
Title: Re: Ultimate Shoutbox
Post by: FBI on December 14, 2005, 08:54:00 PM
Thank You Col for the tips..
Shoutban right?
Title: Re: Ultimate Shoutbox
Post by: Col on December 14, 2005, 09:18:00 PM
Quote from: FBI on December 14, 2005, 08:54:00 PM
Thank You Col for the tips..
Shoutban right?

Yeah, I created a Member Group called "Shout Ban", and apply it as a hidden group. I also created one for baning PMs, one to restrict editing, and yet another that restricts a member to just reading, as this stops them from doing anything disruptive. I've hardly used these functions, but it comes in handy to have them set up in advance. If you you have a totally restricted the account like this, and you wish to keep some form of communication open, you can create an alternative ban (and membergroup), where they have no access to the usual boards, but have access to a board that only that group can see. There you can discuss their behaviour, and get them to promise to behave themselves, or whatever. All depends upon the nature of your forum. The permissions of SMF are its strongest feature, I feel.
Title: Re: Ultimate Shoutbox
Post by: frheimen on December 30, 2005, 05:33:32 AM
Hi.
Can somebody rewrite the templatecode for the shoutbox? As it do not validate at www.w3.org?

I have found a scroll-dhtml script that validates:
http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm

:)

Frode
Title: Re: Ultimate Shoutbox
Post by: Col on December 30, 2005, 08:49:00 AM
Hi frheimen,

I can't code, but I'm sure it ain't that simple. It would be nice to make it standards complient though. I'm guessing that it is "marquee" that is responsible for the shoutbox scrolling falling over in Netscape and Firefox too.

I would like to see the Shoutbox bugs fixed.
Title: Re: Ultimate Shoutbox
Post by: Grudge on December 31, 2005, 01:28:55 PM
Col,

I'm sorry, I've been so busy recently to check this topic. Can you let me know which bugs exist in the shoutbox?

Grudge
Title: Re: Ultimate Shoutbox
Post by: Col on December 31, 2005, 02:27:33 PM
Oh, great Grudge,

I know you've been busy, so this is really appreciated.

When scrolling is enabled, there is no space at the end of the shouts in Netscape and Firefox. This doesn't sound like much, but it has the effect of the shouts appearing to jump, and worse, the lastest shout has only just made it into view, when the marquee starts over again. You should try it, it's pretty ugly.

I think there is something else, but I can't think what it is for the moment.
Title: Re: Ultimate Shoutbox
Post by: RoarinRow on December 31, 2005, 04:47:22 PM
Quote from: Grudge on December 31, 2005, 01:28:55 PM
Col,

I'm sorry, I've been so busy recently to check this topic. Can you let me know which bugs exist in the shoutbox?

Grudge

Would you know why when you delete a shout, that you get kicked back to the index page instead of the page that the shout box is at?  The shout box is in one thread where only a certain group members are allowed and the index page is in another theme where general users are.
Title: Re: Ultimate Shoutbox
Post by: Col on January 01, 2006, 05:07:06 AM
Yes, getting kicked back to the index page when you delete a shout is a right royal pain in the butt. Also, the addition of checkboxes for multi-deletion would help a lot. - I guess that is more of an enhancement, but I think it's needed.

You'll wish you never asked, Grudge! ;D
Title: Re: Ultimate Shoutbox
Post by: tL0z on January 01, 2006, 07:29:01 AM
Hello,

I tried to install the shoutbox some time ago but I coudn't use it because my forum is in Portuguese. Can you please make a Portuguese version for the shoutbox? I really would like to have a shoutbox on my fórum :(

Thanks
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 01, 2006, 09:06:35 AM
tLoz,

All you need to do is after install open Modifications.english.php, copy and paste the contents of that file, and paste them into Motidications.portuguese.php

Others,

I will update the shoutbox today...
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 01, 2006, 09:52:02 AM
! Added checkboxes to archive page
! Cleaned up archive page
! Deleting shouts now redirects back to previous page.
! Fixed settings for RC2

File updated on the mod site, new version 1.32. Note if using shoutbox with SSI, the redirect stuff won't work unless using RC2.

Please report bugs :P
Title: Re: Ultimate Shoutbox
Post by: Col on January 01, 2006, 10:09:04 AM
Great, will do.

Also, what about refreshing the shoutbox (not the whole page)?
Title: Re: Ultimate Shoutbox
Post by: tL0z on January 01, 2006, 10:13:34 AM
Quote from: Grudge on January 01, 2006, 09:06:35 AM
tLoz,

All you need to do is after install open Modifications.english.php, copy and paste the contents of that file, and paste them into Motidications.portuguese.php

Others,

I will update the shoutbox today...

Where are those files?
I have SMF 1.05 can I install the new version of the shoutbox?
Can you please help me puting the shoutbox? I would like to put it above the Home, Ajuda etc menu. www.nintendogeeks.globalfree.net/forum/

Thanks
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 01, 2006, 10:25:18 AM
Col, think that may be a bit too much for me right now, my todo list can't take any more ;D

tL0z, you can install the new version of the shoutbox, yes. When installed use your ftp client to go to your Themes/default/languages directory and download modifications.english.php and modifications.portuguese.php, copy the lines to do with the shoutbox from the english one to the portuguese then reupload.

As for positioning, please look through this topic - there are lots of pointers on that.
Title: Re: Ultimate Shoutbox
Post by: Col on January 01, 2006, 10:37:46 AM
Erm, forgive my ignorance, but do I uninstall the previous version, or will this go over the top of 1.3.1?

Also, I have tried uninstall, and I get the following errors:

3. Execute Modification ./Sources/ModSettings.php Failure
4. Execute Modification ./Themes/default/languages/Modifications.english.php Failure

I guess I will have to go through these by hand, but do I just uninstall anyway, and then go to the files, and use the original mod file to check what I need to remove/change?

I have done this stuff before with YaBB, but I've become accustomed, and spoilt, with the package manager. ::) :D
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 01, 2006, 10:58:54 AM
You do need to uninstall yes.

Ah, you need to uninstall with the old version, then upload the new version.
Title: Re: Ultimate Shoutbox
Post by: tL0z on January 01, 2006, 11:00:53 AM
I'm trying to install but it seems to be an error here:

8.     Executar Modificação     ./Sources/ModSettings.php     Falha
Title: Re: Ultimate Shoutbox
Post by: Col on January 01, 2006, 01:15:43 PM
Quote from: Grudge on January 01, 2006, 10:58:54 AM
You do need to uninstall yes.

Ah, you need to uninstall with the old version, then upload the new version.

But can I uninstall, with errors, and change the two remaining files by hand? I've not tried uninstalling with errors before, so I am unsure of the consequences.
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 01, 2006, 03:07:59 PM
You can uninstall with errors, but then manually fix the ones which had the errors in.
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 01, 2006, 03:10:45 PM
Note for 1.0.5 users, the package was broken, I've uploaded a fixed version to the site now.
Title: Re: Ultimate Shoutbox
Post by: Col on January 01, 2006, 03:36:27 PM
Hiya Grudge,

Was that addion of the old Mod file? It wouldn't install, and I assum,ed that was the problem, but I cannot, for the life of me, work out how to create to tar.gz file. I can extract fine, but I've been pulling my hair out.

Anyway, back to the Shoutbox, are you planning to fix the marquee problem with Firefox and Netscape?

The shoutbox seems to have installed fine, (correction, view all produces the following error)

2: call_user_func(Shout_Archive): First argument is expected to be a valid callback
File: /home/xxxxxx/public_html/community/index.php
Line: 119
Title: Re: Ultimate Shoutbox
Post by: RoarinRow on January 01, 2006, 04:40:32 PM
Quote from: Col on January 01, 2006, 03:36:27 PM
Hiya Grudge,

Was that addion of the old Mod file? It wouldn't install, and I assum,ed that was the problem, but I cannot, for the life of me, work out how to create to tar.gz file. I can extract fine, but I've been pulling my hair out.

Anyway, back to the Shoutbox, are you planning to fix the marquee problem with Firefox and Netscape?

The shoutbox seems to have installed fine, (correction, view all produces the following error)

2: call_user_func(Shout_Archive): First argument is expected to be a valid callback
File: /home/xxxxxx/public_html/community/index.php
Line: 119

I get the same message when trying to 'View All' shouts, plus I'm still brought the the index page after deleting a shout.

I reverted back to v. 1.3.1  When I sent to Package Manager I also noticed that the [uninstall] link for my Integrated Chat Mod was missing.  I got it back after I uninstalled v 1.3.2 of Shout.
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 01, 2006, 04:54:54 PM
I swear I'm cracking up today.

I've uploaded it again, that error should go.

I don't think it's possible to have MArquee work on firefox?

Deleting on shouts should redirect properly now?
Title: Re: Ultimate Shoutbox
Post by: Col on January 01, 2006, 05:17:16 PM
Yeah, I know, should have done it on a test forum, bu your latest version has jsu broken my forum! ::) :-[ :D

Fatal error: Cannot redeclare smfshout() (previously declared in /home/xxxxxx/public_html/community/Sources/Subs.php:1837) in /home/xxxxxx/public_html/community/Sources/Subs.php on line 1844

Do you have a simple solution, or do I have to go to backup?
Title: Re: Ultimate Shoutbox
Post by: Col on January 01, 2006, 05:27:26 PM
Well, I fixed that easily enough, just removed the seconf entry of the following:

function smfshout()
{
global $sourcedir;

include_once("$sourcedir/shout.php");
shout_display();
shout_form();
}


I know that's obviuos to you, Grudge, but just in case anyone else, who like me, is pretty useless at this stuff. :D
Title: Re: Ultimate Shoutbox
Post by: Col on January 01, 2006, 05:34:02 PM
Well, it all seems fine and dandy as far as multi-deletes go.

As RoarinRow says, you are brought back to the index page after deleting, but at least now we can delete multiple posts.

Is there any chance that you can replace marquee with JS to handle the scrolling? After all, with the Shoutbox in it's present form, with marquee, the SMF forum will not validate. No pressure though! ::) :D
Title: Re: Ultimate Shoutbox
Post by: RoarinRow on January 01, 2006, 05:46:56 PM
Quote from: Col on January 01, 2006, 05:34:02 PM
Well, it all seems fine and dandy as far as multi-deletes go.

As RoarinRow says, you are brought back to the index page after deleting, but at least now we can delete multiple posts.

Is there any chance that you can replace marquee with JS to handle the scrolling? After all, with the Shoutbox in it's present form, with marquee, the SMF forum will not validate. No pressure though! ::) :D

I'm glad you found a work-around/fix for the error.  Stuff like that makes my stomach turn.   ;)
Title: Re: Ultimate Shoutbox
Post by: antichrist on January 02, 2006, 07:43:41 AM
I have found this problem too while installing 1.31 and 1.32

6.     Executar Modificación     shoutbox_v1.32.mod     Error al parsear la modificación

[6. Executing Modification     shoutbox_v1.32.mod     Error parsing modification]

Thanks for your time
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 02, 2006, 01:28:06 PM
antichrist, what version are you on?

As for redirection not working, I can't figure out why, it works fine for me. For a test can you try deleting from the "Profile" screen as that always works for me. Also, verify that your shout.php file (Sources directory) makes some kind of reference to $_SESSION['old_url'].

It sounds like I may have to bite the bullet it do an uglier fix.
Title: Re: Ultimate Shoutbox
Post by: Col on January 02, 2006, 01:39:14 PM
Quote from: Grudge on January 02, 2006, 01:28:06 PM
As for redirection not working, I can't figure out why, it works fine for me. For a test can you try deleting from the "Profile" screen as that always works for me.

I'm not sure that I follow. If you mean my own profile page, then no, it still brings me back to the index page if I delete a shout.

QuoteAlso, verify that your shout.php file (Sources directory) makes some kind of reference to $_SESSION['old_url'].

It sounds like I may have to bite the bullet it do an uglier fix.

Just checked, and I have the following:

if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=delete') === false)
redirectexit($_SESSION['old_url']);
else
redirectexit();
}
Title: Re: Ultimate Shoutbox
Post by: antichrist on January 02, 2006, 03:21:41 PM
Quote from: Grudge on January 02, 2006, 01:28:06 PM
antichrist, what version are you on?

1.1 RC2, just upgraded (from 1.0.5)
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 02, 2006, 06:50:21 PM
Is that because you don't have a Modifications.english.php?
Title: Re: Ultimate Shoutbox
Post by: antichrist on January 03, 2006, 09:19:36 AM
i have:

smf/Themes/default/languages/Modifications.english.php
smf/Themes/default/languages/Modifications.spanish.php

both writable and empty

(it's a spanish site, i need the second file if language default is spanish no?)
Title: Re: Ultimate Shoutbox
Post by: moutsounis on January 04, 2006, 06:28:14 AM
Hello everyone.

I have a 1.0.5 smf forum in Greek Language and i was hoping to add the shoutbox. I'm not that familiar at the moment with forums/.php etc so i can't seem to understand things that most of you take for granted.

I was wondering whether someone could guide me through the process of installing the shoutbox on my 1.0.5 Greek language forum (upload, install, how to put it on the bottom of every page after all tables and generally all the actions that need to be done).

Sorry for the disturbance.

Thank you in advance
Title: Re: Ultimate Shoutbox
Post by: iran-host on January 05, 2006, 12:08:09 PM
hello .

i want install this mod in index.template file forum smf myself website .

what code this mod that i put in the index.template file ?

thank .
Title: Re: Ultimate Shoutbox
Post by: jerm on January 05, 2006, 06:46:48 PM
just re-installed this (i had a previous version till i upgraded to RC2) so my settings stayed in tack
i can't seem to post shouts, but i can delete them
i used a test account(thats not admin), and it gave me this error

QuoteApply Filter: Only show the error messages of this URL  http://www.e-grounds.com/forums/index.php?action=delete_shout
Apply Filter: Only show the errors with the same message
8: Undefined index: cannot_delete_shout
File: /home/egrounds/public_html/forums/Sources/Errors.php
Line: 336


also, this seems to only happen on the shout_archive page
Title: Re: Ultimate Shoutbox
Post by: McNeo2 on January 07, 2006, 02:06:27 PM
Quote from: iran-host on January 05, 2006, 12:08:09 PMi want install this mod in index.template file forum smf myself website .

what code this mod that i put in the index.template file ?

same question here. installing this module, it says:
If you want to add the shoutbox to the LEFT of your web page, you could make the following change in index.template.php
Find:

<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';


but I don't find it.
from babylon theme I find it:

   // The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';


but from new theme I find something else:

   // The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
Title: Re: Ultimate Shoutbox
Post by: iran-host on January 08, 2006, 06:25:50 AM
hello dear McNeo2 .

i no understand your Intent .

if may a exampel for the this mod input here .

thank you .

---------------   can you speak persian ?  --------------
Title: Re: Ultimate Shoutbox
Post by: McNeo2 on January 08, 2006, 08:08:26 AM
Quote from: iran-host on January 08, 2006, 06:25:50 AMi no understand your Intent .

It was not question or answer to you. It was question to Grudge, or to whoever who understands better new theme.

And I cannot speak persian. I'm estonian.
Title: Re: Ultimate Shoutbox
Post by: iran-host on January 08, 2006, 09:37:55 AM
thank you dear McNeo2 .

i am Adinfinitum your Friend .
Title: Re: Ultimate Shoutbox
Post by: Grudge on January 08, 2006, 01:57:47 PM
Updated to Version 1.33. I hope this resolves the redirection issues and the language strings.
Title: Re: Ultimate Shoutbox
Post by: jerm on January 08, 2006, 04:29:01 PM
i still get this error when trying to shout from the shout_arcvhive page

Quote
An Error Has Occurred!
You do not have permission to delete shouts. 
Title: Re: Ultimate Shoutbox
Post by: Darshil on January 08, 2006, 06:52:20 PM
All of them are in .tar.gz format...Do you guys have it available in .rar format?!!!!

Title: Re: Ultimate Shoutbox
Post by: Grudge on January 08, 2006, 07:02:00 PM
Darshill, in tar.gz you upload it right to your Packages directory and SMF can install it - rar is useless for that

electrohome - are you *sure* you have set the permissions right?
Title: Re: Ultimate Shoutbox
Post by: jerm on January 08, 2006, 09:25:20 PM
Quote from: Grudge on January 08, 2006, 07:02:00 PM
electrohome - are you *sure* you have set the permissions right?
im pretty sure. as admin i can't shout from the shout_archive page either. it doesn't give me an error message, it just refreshes the page. i have it enabled to be able to shout from that page as well.
i can however shout using the shout function. for example i can shout through the ssi_examples.php page
i also installed this on my test fourm that has no other mods installed on it and still get this same error.
Title: Re: Ultimate Shoutbox
Post by: iran-host on January 09, 2006, 03:47:43 AM
please input learn install this mode .

persian language no understand .

thank .

Title: Re: Ultimate Shoutbox
Post by: BeeF93 on January 09, 2006, 11:37:03 PM
Ok..bit baffled here. I have installed the Shoutbox mod, I just cant seem to put it where I would like it on my page.

I would like to put it at the top of the forum next to the logo in the white space there.

Forum is at: www.top100fitnesssites.com/Forum/index.php

Any ideas guys would be much abliged!
Title: Re: Ultimate Shoutbox
Post by: Col on January 10, 2006, 10:31:07 AM
Bee,

If you want to see what I have done, I have this in any template, and place my shoutbox to the main body of the forum:

Quote// The main content should go here.  A table is used because IE 6 just can't handle a div.
   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}

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

   echo '</td>
   <td valign="top" width="135">
      <div id="shouthead">Shoutbox</div>
      <div id="shoutbox"> ', smfshout(), '
      </div>
   </td><td width="18">&nbsp;</td>
   </tr></table>';

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

You'll need to adjust it place it in your header.

Also, from my CSS file:

Quote#shouthead {
   margin: 29px 0px 0px 0px;
   padding: 3px;
   background: #6b8eae;
   border: solid #828181;
   border-width: 1px 1px 0px 1px;
   color: #ffffff;
}

#shoutbox {
   padding: 0px 2px 2px 2px;
   border: solid #828181;
   border-width: 1px;
}

This gives the shoutbox a default theme look. I hope it helps.
Title: Re: Ultimate Shoutbox
Post by: MrHeartbreaker on January 11, 2006, 05:34:41 AM
I love this mod but I'm never seccessful on installing it.
my board is 1.1 rc2
I try to apply the mode but it has an error notification that

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

This is the 1st mod I downloaded....
And when I tried to apply it, it said

QuoteFatal error: PackageInstall() [function.require]: Failed opening required '/forums/Packages/temp/./shoutPdb.php' (include_path='.:/usr/share/php5:/usr/share/php') in /forums/Sources/Packages.php on line 534

anybody helps me to find out? Thanks
Title: Re: Ultimate Shoutbox
Post by: Col on January 11, 2006, 08:37:19 AM
Quote from: Grudge on January 08, 2006, 07:02:00 PMelectrohome - are you *sure* you have set the permissions right?

Grudge, wouldn't the delete option be hidden if they did not have permission to delete?
Title: Re: Ultimate Shoutbox
Post by: SekondeR on January 11, 2006, 05:39:13 PM
hi i wanna add shoutbox over the all forum topics ( over the link tree  - under the search)
and not centered. left sided messages..
i am using 7dana theme.. 

could anyone help me ?
Title: Re: Ultimate Shoutbox
Post by: SleePy on January 11, 2006, 10:44:22 PM
is it possible to allow people that i give permissions to on groups to delete posts but also bann from the shoutbox ???
Title: Re: Ultimate Shoutbox
Post by: Col on January 12, 2006, 08:06:39 AM
Sleepy,

Create a new group, "shoutban", or whatever, and set the shoutbox post option to deny. It is generally safe to set the other pemissions in this group to the same as your newbie group, but look at any deny permissions you might have in there.

Any members that you wish to ban, go their profile...................and I've just realised that I'm answering a different question the one you've asked! :)

I think the only way to achieve that is to allow that post-edit group permissin to modify profiles. They will need to be able to add the member to the Shoutban group in the member's profile.
Title: Re: Ultimate Shoutbox
Post by: KleeOtr on January 12, 2006, 01:07:31 PM
Hi i have a problem, i have smf 1.1 rc2, and some user doesn't see the shoubox but i don't understand why?!
Title: Re: Ultimate Shoutbox
Post by: Jay T on January 12, 2006, 06:54:47 PM
Quote from: MrHeartbreaker on January 11, 2006, 05:34:41 AM
I love this mod but I'm never seccessful on installing it.
my board is 1.1 rc2
I try to apply the mode but it has an error notification that

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

This is the 1st mod I downloaded....
And when I tried to apply it, it said

QuoteFatal error: PackageInstall() [function.require]: Failed opening required '/forums/Packages/temp/./shoutPdb.php' (include_path='.:/usr/share/php5:/usr/share/php') in /forums/Sources/Packages.php on line 534

anybody helps me to find out? Thanks


I am getting the same error message
Title: Re: Ultimate Shoutbox
Post by: Col on January 12, 2006, 08:20:02 PM
Quote from: KleeOtr on January 12, 2006, 01:07:31 PM
Hi i have a problem, i have smf 1.1 rc2, and some user doesn't see the shoubox but i don't understand why?!

Have you remembered to add the Shoutbox call to all your templates?
Title: Re: Ultimate Shoutbox
Post by: Jay T on January 12, 2006, 08:38:39 PM
Can someone code this to show up on the left side of the main page under the news fader?
Title: Re: Ultimate Shoutbox
Post by: KleeOtr on January 13, 2006, 06:31:21 AM
Quote from: Col on January 12, 2006, 08:20:02 PM
Quote from: KleeOtr on January 12, 2006, 01:07:31 PM
Hi i have a problem, i have smf 1.1 rc2, and some user doesn't see the shoubox but i don't understand why?!

Have you remembered to add the Shoutbox call to all your templates?

lol i have forgot to give the permissions :p however now i have a question:

how i can show the shoutbox ONLY to few group of members?
Title: Re: Ultimate Shoutbox
Post by: Col on January 13, 2006, 09:20:50 AM
Quote from: KleeOtr on January 13, 2006, 06:31:21 AMlol i have forgot to give the permissions :p however now i have a question:

how i can show the shoutbox ONLY to few group of members?

There is a mod that allows you to hide template options in member profiles. I think you can decide what they can, or cannot see. Maybe it could be addapted to do this by membergroup? Having said that, the URL to the template with the shoutbox could still be distributed without your consent. That's the only way that springs to mind. Someone else will probably have a better idea than me! :D
Title: Re: Ultimate Shoutbox
Post by: Col on January 13, 2006, 09:47:28 AM
Quote from: Jay T on January 12, 2006, 08:38:39 PM
Can someone code this to show up on the left side of the main page under the news fader?

I posted how I did it (http://www.simplemachines.org/community/index.php?topic=8415.msg450060#msg450060) for the right side, just recently. I have zero php knowledge, so cannot be completely sure. However, if you look at the call for the "template_main_below", you will see that I've added my shoutbox after that, within it's own td tags. You will need to move this to before the template call, for it to appear on the left. The shoutbox will then appear on all your forum pages. I'm not sure that is what you want, but I am uncertain of how to make it appear on the index page only.
Title: Re: Ultimate Shoutbox
Post by: KleeOtr on January 13, 2006, 10:17:34 AM
Quote from: Col on January 13, 2006, 09:20:50 AM
Quote from: KleeOtr on January 13, 2006, 06:31:21 AMlol i have forgot to give the permissions :p however now i have a question:

how i can show the shoutbox ONLY to few group of members?

There is a mod that allows you to hide template options in member profiles. I think you can decide what they can, or cannot see. Maybe it could be addapted to do this by membergroup? Having said that, the URL to the template with the shoutbox could still be distributed without your consent. That's the only way that springs to mind. Someone else will probably have a better idea than me! :D

which mode?

i have try to edit the index.template.php, and use this code


if ($context['user']['is_logged'])
        {
echo ' <table align="center" border="2px" width="100%" cellspacing="1" cellpadding="4"><tr class="titlebg"><td align="left">Shoutbox</td></tr><tr class="windowbg"><td align="center">', smfshout(), '</td></tr></table>';
}


and i have found in shout.template.php this:


if ($modSettings['shoutdir'] != 0)


i think that here check the permissions to shout, then if i write this line correcly and before the piece of code that i have write before the shoutbox doesn't appear to the members that can not shout..
but i don't know how to write correcly :(
Title: Re: Ultimate Shoutbox
Post by: Col on January 13, 2006, 11:06:43 AM
KleeOtr,

This (http://www.simplemachines.org/community/index.php?topic=44299.msg319072;topicseen#msg319072) is the thread you want. However, I think it will be a poor solution, as it stands. If you cam get someone to modify it, that would be different.
Title: Re: Ultimate Shoutbox
Post by: Jay T on January 13, 2006, 05:21:04 PM
Getting loads of this error in the log.

8: Undefined index: url_direct
File: /home/legends/public_html/Themes/default/shout.template.php (eval?)
Line: 8


Edit:
I have it set to show 10 shouts at a time. How come sometimes, all 10 won't fit in the box and it uses a scrollbar? Anyway to prevent this?
Title: Re: Ultimate Shoutbox
Post by: JesterDesigns on January 15, 2006, 09:29:20 AM
Quote
Well I finally got it! Though I do have to re-figure out the layout on the archive view all page cause it kind of got fouled up in the fixing of the main shoutbox to make it more vertically compact. Figuring it out as I go...  Keeping my fingers crossed and my files backed up!!!

(http://www.wheelingadventures.com/Board/Images/Shouter3.jpg)

Can you tell me how to view them on the same line, I've got my shoutbox to look like the default theme at the moment but it'll look much better if the shoutform items were on the same line.

You can see mine here: http://www.jester-designs.co.uk/forum (http://www.jester-designs.co.uk/forum)
Title: Re: Ultimate Shoutbox
Post by: duock on January 15, 2006, 10:05:45 AM
Quote from: bhudzmu on January 15, 2006, 09:29:20 AM
Quote
Well I finally got it! Though I do have to re-figure out the layout on the archive view all page cause it kind of got fouled up in the fixing of the main shoutbox to make it more vertically compact. Figuring it out as I go...  Keeping my fingers crossed and my files backed up!!!

(http://www.wheelingadventures.com/Board/Images/Shouter3.jpg)

Can you tell me how to view them on the same line, I've got my shoutbox to look like the default theme at the moment but it'll look much better if the shoutform items were on the same line.

You can see mine here: http://www.jester-designs.co.uk/forum (http://www.jester-designs.co.uk/forum)


how to do like this, no mind to tell me?
Title: Re: Ultimate Shoutbox
Post by: JesterDesigns on January 15, 2006, 01:36:00 PM
Quote from: duock on January 15, 2006, 10:05:45 AM
how to do like this, no mind to tell me?

I just created a table in the BoardIndex.template.php file using the code:
// Show ShoutBox In A Table
if (function_exists('smfshout'))
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">ShoutBox</td>
</tr>
<tr>
<td align="left">', smfshout(), '</td>
</tr>
</table>';


Most of that is just from the News fade code, i inserted that code above the "// Show some statistics next to the link tree if SP1 info is off." line to get it where it is.

I still need someone to tell me how to make the shoutform display on only one line, can anyone help?

Andy
Title: Re: Ultimate Shoutbox
Post by: andyhornby on January 15, 2006, 01:54:52 PM
Guys I am having real trouble. I have been through all of the post here and still can't get it right.

I have added the code, as below, I just need someone to tell me where I'm going wrong:

Quote// --></script>
            <script language="JavaScript1.2" 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.) */
echo '<div><table border="0" width="100%" cellspacing="1" cellpadding="5">';
               echo '<tr><td width="180" valign="top">';
   // Shout Box is right here!
      echo '<div class="tborder"style="width: 180px;"><table border="0" width="180" cellspacing="1" cellpadding="5" style="table-layout: fixed;">
   <tr>
      <td class="catbg" width="100%">ShoutBox</td>
   </tr>
   <tr>
      <td class="windowbg2" width="100%" valign="middle" align="center" colspan="2"><div style="overflow: auto; width: 100%;">',smfshout(),'</div></td>
   </tr>
        </table></div><br />';
               echo '</td>
                    <td width="100%" valign="top">';
   foreach ($context['categories'] as $category)
   {
      echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="5">
   <tr>
   

I haven't worked much with PHP, so you'll have to forgive me if I've done something really obviusly wrong. Please just let me know, so I can stop pulling my hair out.

Andy
Title: Re: Ultimate Shoutbox
Post by: duock on January 15, 2006, 06:34:41 PM
thx JesterDesigns, i love u so much!!!
Title: Re: Ultimate Shoutbox
Post by: Suke on January 15, 2006, 09:49:15 PM
Hey i added the code and all but the shoutbox takes up half my screen how do i fix that??
It is Only on the Index page as well Here is the link so you know the size

http://www.masta-gamerz.com/forum/index.php?

Sorry but i need help ASAP!!
Title: Re: Ultimate Shoutbox
Post by: JesterDesigns on January 16, 2006, 02:11:19 PM
Quote from: duock on January 15, 2006, 06:34:41 PM
thx JesterDesigns, i love u so much!!!

No Problem!  ;)

Quote from: uchiha sasuke on January 15, 2006, 09:49:15 PM
Hey i added the code and all but the shoutbox takes up half my screen how do i fix that??
It is Only on the Index page as well Here is the link so you know the size

http://www.masta-gamerz.com/forum/index.php?

Sorry but i need help ASAP!!

I registered, probably too late and couldnt see the shoutbox, but i think i can imagine what it was like. I noticed you were using a different theme which may be the problem, this code that follows has only been tested on the default "Core" theme so may not work on other themes:

Well to add the shoutbox to every page you need to insert this code into the index.template.php file instead of the BoardIndex.template.php file. Put this code above the line "// The main content should go here."

// Show ShoutBox In A Table
if (function_exists('smfshout'))
echo '
<br>
<table border="0" width="96%" align="center" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg">ShoutBox</td>
</tr>
<tr>
<td align="left">', smfshout(), '</td>
</tr>
</table>';


As for the size you set that in the admin panel under the shoutbox settings.

Hope that helps!

Andy

Title: Re: Ultimate Shoutbox
Post by: cinestar on January 17, 2006, 05:59:44 PM
Your mod title is "Ultimate Shoutbox" yet your mod description reads "This is your basic shoutbox."... well which is it? Is it the ultimate shoutbox or is it a basic one. If this is a basic one can someone point me to where i can get a better one? LOL
Title: Re: Ultimate Shoutbox
Post by: Suke on January 18, 2006, 09:46:20 PM
Sorry bout that Jester but How do i make it so you have the option to scroll though??
As in scroll up and down for say the last 10 posts ike you do with a normal page??
Title: Re: Ultimate Shoutbox
Post by: Fiery on January 19, 2006, 10:18:37 PM
Maybe Im just stupid or something, but what is the point of this mod... I must not be getting it???

Can anyone tell me something they would use it for, because I am lost. ???

Thanks
Title: Re: Ultimate Shoutbox
Post by: McNeo2 on January 20, 2006, 05:38:07 AM
Quote from: pmp6nl on January 19, 2006, 10:18:37 PMMaybe Im just stupid or something, but what is the point of this mod

This is like mini chat.. meaningless, as all fun stuff are.
Title: Re: Ultimate Shoutbox
Post by: Col on January 20, 2006, 12:20:43 PM
Quote from: uchiha sasuke on January 18, 2006, 09:46:20 PM
Sorry bout that Jester but How do i make it so you have the option to scroll though??
As in scroll up and down for say the last 10 posts ike you do with a normal page??

Go to admin; options & settings; select Shoutbox; check the scroll box; save.
Title: Re: Ultimate Shoutbox
Post by: Col on January 20, 2006, 12:25:44 PM
Quote from: pmp6nl on January 19, 2006, 10:18:37 PM
Maybe Im just stupid or something, but what is the point of this mod... I must not be getting it???

Can anyone tell me something they would use it for, because I am lost. ???

Thanks

As McNeo said, just nonsense stuff. "Hellos"; "goodbyes"; smilies; PM me; I sent you a PM; Chat room; Messenger; "Admin, get your finger out you ass"; whatever. You might be surprised how nice and useful a feature this can be some kinds of forums.
Title: Re: Ultimate Shoutbox
Post by: Fiery on January 20, 2006, 01:31:51 PM
Ah, I see.

Thanks
Title: Re: Ultimate Shoutbox
Post by: KleeOtr on January 20, 2006, 03:47:28 PM
Another question  :D

Is possible to have a link near 'Shoutbox Archive'  to the smiles list? like the one present when u start a new post, and have some smile in the popup, i hope u have understand what i have say  ;)
Title: Re: Ultimate Shoutbox
Post by: tL0z on January 21, 2006, 08:42:19 AM
Hello,

I'm trying to unistall the shoutbox to upgrade my forum version but it says:

Quote2: fopen(/home/nintendo/public_html/forum/Packages/installed.list): failed to open stream: Permission denied
File: /home/nintendo/public_html/forum/Sources/Subs-Package.php
Line: 1476
Title: Re: Ultimate Shoutbox
Post by: IamV on January 21, 2006, 07:42:21 PM
How can I set my shoutbox so that guests can't view it.  I would like it visible on all pages for members only.  I also don't want guests viewing the shout archive.
Title: Re: Ultimate Shoutbox
Post by: McNeo2 on January 22, 2006, 01:59:06 PM
Quote from: IamV on January 21, 2006, 07:42:21 PMHow can I set my shoutbox so that guests can't view it.

if ($context['user']['is_logged'])
if (function_exists('smfshout'))
smfshout();



inside in another echo I don't know how to put it
Title: Re: Ultimate Shoutbox
Post by: Col on January 22, 2006, 02:13:37 PM
Quote from: IamV on January 21, 2006, 07:42:21 PM
How can I set my shoutbox so that guests can't view it.  I would like it visible on all pages for members only.  I also don't want guests viewing the shout archive.

I'm assuming that guests have no access to your forum, so why not put the call to the shoutbox in BoardIndex.Template.php file instead of the Index.php file? The shoutbox will only displayed on the index page, but I don't think it will show on your login page.

I'm sure that there will be another way to do this exactly as you'd wish, but if you don't get the answer you need, maybe what I've suggested Will work for you.
Title: Re: Ultimate Shoutbox
Post by: IamV on January 23, 2006, 07:11:33 PM
Actually guests do have access to a portion of my forum.  Some boards are guest view.  I would like it to only show up when a member is logged in.

I know it can be done as I've seen it on other SMF sites.

This looks like it would work, but where would I put it?

Quote from: McNeo2 on January 22, 2006, 01:59:06 PM

if ($context['user']['is_logged'])
if (function_exists('smfshout'))
smfshout();



inside in another echo I don't know how to put it
Title: Re: Ultimate Shoutbox
Post by: raiwatson on January 23, 2006, 07:25:17 PM
Quote from: Col on January 10, 2006, 10:31:07 AMIf you want to see what I have done, I have this in any template, and place my shoutbox to the main body of the forum:

Quote   // The main content should go here.  A table is used because IE 6 just can't handle a div.
   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}

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

   echo '</td>
   <td valign="top" width="135">
      <div id="shouthead">Shoutbox</div>
      <div id="shoutbox"> ', smfshout(), '
      </div>
   </td><td width="18">&nbsp;</td>
   </tr></table>';

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

You'll need to adjust it place it in your header.

Also, from my CSS file:

Quote#shouthead {
   margin: 29px 0px 0px 0px;
   padding: 3px;
   background: #6b8eae;
   border: solid #828181;
   border-width: 1px 1px 0px 1px;
   color: #ffffff;
}

#shoutbox {
   padding: 0px 2px 2px 2px;
   border: solid #828181;
   border-width: 1px;
}


After MUCH reading, this worked great for me!  Except that the Shoutbox is wider than the body of the rest of the forum.  I tried changing the <td valign="top" width="135"> to a smaller number but it didn't make any difference.  (I have no idea, really, what these numbers mean; I'm just making wild guesses!)  Any suggestions?

This is a great mod - my members love it - and I've found a lot of info reading through this thread.  Thanks for any help you can give.
Title: Re: Ultimate Shoutbox
Post by: Col on January 23, 2006, 09:01:22 PM
Raiwatson,

Have you checked the width with the shoutbox in Admin-->Edit Features and Options. There you will find: "Scroll box width (pixels)". That number, 135, is pixels. You can also set the height. I forget how these sizes interact with the HTML I posted. And if recall, it interacts differently when you have scrolling enabled, to disabled. - Can't remember, exactly.
Title: Re: Ultimate Shoutbox
Post by: vodkarev on January 24, 2006, 08:44:54 AM
I'm trying to install this on 1.1 RC2

I try it through the packages menu but whenever I click "apply mod" I get "You cannot download or install new packages because the Packages directory or one of the files in it are not writable!" I've tried changing all the Permissions, I've even used the FTP option in the acutal SMF forum to set them even with them all set to 777 it still comes up with this error.

I've tried manually uploading the file and setting it's permissions but it still comes up with this error.
Title: Re: Ultimate Shoutbox
Post by: IamV on January 26, 2006, 04:49:00 AM
I got it.  I added:
if ($context['user']['is_logged'])

before the echo containing the shout code & now it's only visible to members after they've logged in.  :)
Title: Re: Ultimate Shoutbox
Post by: pipo_il_primero on January 26, 2006, 04:08:16 PM
hey great mod!

I am using the SSI function and have put the shoutbox in an INFRAME so that it can refresh every 15 seconds without refreshing the main webpage.

The only problem I have is that when it refreshes the text that you have been typing disspears as well, so you have to start all over again...

How can I solve this? I am very new to SSI and PHP coding, so some help is welcome...

PiP
Title: Re: Ultimate Shoutbox
Post by: Col on January 26, 2006, 06:54:32 PM
Quote from: IamV on January 26, 2006, 04:49:00 AM
I got it.  I added:
if ($context['user']['is_logged'])

before the echo containing the shout code & now it's only visible to members after they've logged in.  :)

8)
Title: Re: Ultimate Shoutbox
Post by: Col on January 26, 2006, 06:57:48 PM
Quote from: pipo_il_primero on January 26, 2006, 04:08:16 PM
hey great mod!

I am using the SSI function and have put the shoutbox in an INFRAME so that it can refresh every 15 seconds without refreshing the main webpage.

The only problem I have is that when it refreshes the text that you have been typing disspears as well, so you have to start all over again...

How can I solve this? I am very new to SSI and PHP coding, so some help is welcome...

PiP

I think you will have to have the refresh as a button with the iframe, rather that it auto-refreshing. I tried doing this a while ago, but there were some problems. I can't remember what though. It was probably me, and not the idea that was faulty! :D
Title: Re: Ultimate Shoutbox
Post by: locatorr on January 27, 2006, 10:29:18 AM
Great Mod.
But is there a code available for popup smileys in the shoutbox and use them by click on it
Title: Re: Ultimate Shoutbox
Post by: OpTiCz on January 29, 2006, 01:08:58 AM
I too would like to know how to get the Message Box and Shout button on the same line.
Also, did someone here post how to get it to match the theme?
Title: Re: Ultimate Shoutbox
Post by: L0relei on January 29, 2006, 09:15:21 AM
Quote from: OpTiCz on January 29, 2006, 01:08:58 AM
I too would like to know how to get the Message Box and Shout button on the same line.
Remove <br /> at the end of this line in shout.template.php (~ line 204) :
<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />

Quote from: OpTiCz on January 29, 2006, 01:08:58 AM
Also, did someone here post how to get it to match the theme?
I modified the file shout.template.php this way :
<?php



function template_shout_archive()

{

global $context$settings$options$txt$user_info$scripturl$modSettings;



echo '

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

<tr>

<td class="catbg" align="center">'
$txt['shoutbox_1'], '</td>

</tr><tr>

<td class="titlebg" align="left">'
$context['page_index'], '</td>

</tr><tr>

<td class="windowbg">'
;

foreach ($context['arc_shouts'] as $shout)

{

if (!empty($context['canDelete']))

echo '

<a href="'
$scripturl'?action=delete_shout;id='$shout['id'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';

echo '

<span class="smalltext">' 
$shout['time'] . ' - ' $shout['link'], '</a> -' $shout['message'], "</span>" $modSettings['shoutsep'];

}



if ($modSettings['enablearchiveshout'] == && $context['canPost'])

template_shout_form();



echo '

</td>

</tr>

</table>'
;



// Pull the delete options for the administrator

if (!empty($context['canDelete']))

echo '

<p><table border="0" cellspacing="1" cellpadding="4" align="center" width="100%">

<tr>

<td class="catbg" align="center" colspan="2">'
$txt['shoutbox_42'], '

</td>

</tr>

<tr>

<td class="windowbg2" valign="top" width="50%">

<form action="'
$scripturl'?action=delete_shout_age" method="post">'$txt['shoutbox_2'], '

<input type="text" name="age" id="age" value="25" size="4" /> '
$txt['shoutbox_3'], '

</td>

<td class="windowbg2" valign="top">

<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />

</form><br />

</td>

</tr><tr>

<td class="windowbg2" valign="top" width="50%">

<form action="'
$scripturl'?action=delete_all_shouts" method="post">'$txt['shoutbox_4'], ' '$modSettings['shoutlimit'], '

</td>

<td class="windowbg2" valign="top">

<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />

</form>

</td>

</tr>

</table></p>'
;

}



function 
template_shout_box()

{

global $context$settings$options$txt$user_info$scripturl$modSettings$forum_version;



// Only do auto refresh if we have it enabled!

if (!empty($modSettings['shout_enableXML']))

{

// The code for handling auto refresh

if ($forum_version 'SMF 1.1')

echo '

<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script_shout.js?1.03"></script>';



echo '

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

setTimeout("doAutoReload();", 5000);



function doAutoReload()

{

if (window.XMLHttpRequest)

{

getXMLDocument("'
$scripturl'?action=shout_xml;xml", onDocReceived);

setTimeout("doAutoReload();", 5000);

}

}

function onDocReceived(XMLDoc)

{

// Where we create our new shouts.

var insertData = \'\';

// Number of shouts.

var numShouts = XMLDoc.getElementsByTagName("shout").length;

// Useful vars.

var shoutID, shoutMemberName, shoutMemberID, shoutMemberEmail, shoutCanDelete, shoutTime, shoutLink, shoutMessage;



// Do each shout in turn.

for (i = 0; i < numShouts; i++)

{

shoutID = XMLDoc.getElementsByTagName("shout")[i].getAttribute("id");



// If this shout exists... continue.

if (document.getElementById("shout_" + shoutID))

continue;



shoutMemberName = XMLDoc.getElementsByTagName("shout")[i].getAttribute("member_name");

shoutMemberID = XMLDoc.getElementsByTagName("shout")[i].getAttribute("member_id");

shoutMemberEmail = XMLDoc.getElementsByTagName("shout")[i].getAttribute("member_email");

shoutCanDelete = XMLDoc.getElementsByTagName("shout")[i].getAttribute("can_delete");

shoutTime = XMLDoc.getElementsByTagName("shout")[i].getAttribute("time");

shoutMessage = XMLDoc.getElementsByTagName("shout")[i].getAttribute("message");

shoutLink = XMLDoc.getElementsByTagName("shout")[i].getAttribute("link");



insertData = 

\'<div id="shout_\' + shoutID + \'">\';

if (shoutCanDelete)

insertData += \'<a href="'
$scripturl'?action=delete_shout;id=\' + shoutID + \'"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a> \';



insertData += shoutTime + \' \' + shoutLink + \' -\' + shoutMessage + \''
$modSettings['shoutsep'], '</div>\';';



// Do the actual insert.

if ($modSettings['shoutdir'] == 0)

echo '

setOuterHTML(document.getElementById("new_shout"), \'<span id="new_shout"></span>\' + insertData);'
;

else

echo '

setOuterHTML(document.getElementById("new_shout"), insertData + \'<span id="new_shout"></span>\');'
;

echo '

}

}

//--></script>'
;

}



echo '

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

<tr class="windowbg2">

<td class="smalltext>'
;



// Scrolling?

if ($modSettings['enablescrollshout'] == 1)

echo '

<marquee direction="'
$modSettings['shoutscrolldir'], '" width="'$modSettings['shoutscrollwidth'], '" 

height="'
$modSettings['shoutscrollheight'], '" scrollamount="'$modSettings['shoutscrollspeed'], '" 

scrolldelay="'
$modSettings['shoutscrolldelay'], '" onmouseover="this.stop()" onmouseout="this.start()">';



// Insert the shouts, top or bottom depending on direction.

if ($modSettings['shoutdir'] == 0)

echo '

<span id="new_shout"></span>'
;



// Loop through the shouts!

foreach ($context['shouts'] as $shout)

{

echo '

<div id="shout_'
$shout['id'], '">';

// If it's an admin - they get the delete button...

if (!empty($context['canDelete']))

echo '

<a href="'
$scripturl'?action=delete_shout;id='$shout['id'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';

echo '

<span class="smalltext">' 
$shout['time'] . ' - ' $shout['link'], '</a> -' $shout['message'], "</span>" $modSettings['shoutsep'];

echo '

</div>'
;



}

// For inserting new shouts...

if ($modSettings['shoutdir'] != 0)

echo '

<span id="new_shout"></span>'
;



// End the marquee?

if ($modSettings['enablescrollshout'] == 1)

echo '

</marquee>'
;



echo '

<p><span class="smalltext"><a href="'
$scripturl'?action=shout_archive">'$txt['shoutbox_43'], '</a></span></p>';

echo '

</td>

</tr>'
;

}



function 
template_shout_form()

{

global $context$settings$options$txt$user_info$scripturl$modSettings$ID_MEMBER;



echo '

<tr class="windowbg2">

<td class="smalltext" align ="center">

<form action="'
$scripturl'?action=shout" method="post">

<input type="hidden" value="'
$context['qstr'], '" name="qstr" />

<input type="hidden" value="" name="email" />'
;



if ($user_info['is_guest'])

{

echo '

<input type="hidden" value="0" name="memberID" />

<input type="text" value="'
$txt['shoutbox_6'], '" name="displayname" maxlength="100" onfocus="this.value=\'\'" /><br />';



if (empty($modSettings['shout_noGuestEmail']))

echo '

<input type="text" value="'
$txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" /><br />';

}

else

echo '

<input type="hidden" value="'
$user_info['name'], '" name="displayname" />

<input type="hidden" value="'
$ID_MEMBER'" name="memberID" />';



echo '

<input type="text" value="'
$txt['shoutbox_8'], '" name="message" size="100" maxlength="100" onfocus="if (this.value == \''$txt['shoutbox_8'], '\')this.value=\'\'" />

<input type="submit" name="submit" value="'
$txt['shoutbox_9'], '" />

</form>

</td>

</tr>

</table>'
;



}



// This template handles the xml refresh things...

function template_xml_shout()

{

global $context$settings$options$txt$modSettings;



echo '<''?xml version="1.0" encoding="'$context['character_set'], '"?''>

<smf>'
;

foreach ($context['shouts'] as $shout)

{

echo '

<shout id="'
$shout['id'], '" can_delete="'$context['canDelete'], '" time="'$shout['time'], '" member_email="'$shout['email'], '" member_id="'$shout['memberID'], '" member_name="'$shout['displayname'], '" message="'$shout['message'], '" link="'$shout['link'], '" />';

}

echo '

</smf>'
;

}



?>
Title: Re: Ultimate Shoutbox
Post by: Kattt on January 30, 2006, 06:41:16 PM
Firstly, thanks Grudge for an awesome mod :) Been setting it up to work in Joomla and was looking great. Secondly apologies if I should be posting in a new topic. I have been setting up a site and figured I should upgrade to 1.1RC2 before I fully intergrate smf into joomla. So I did this but forgot to uninstall the mods SMF bridge and shoutbox first. Then I started getting issues applying mods, so tried a full fresh install of 1.1RC2 instead of an upgrade. I am still getting the same problem. When I try to apply the mod, it will fail on two tests.

5. Execute Modification ./index.php Test failed
10. Execute Modification ./ssi_examples.php Test failed


As I am a total nub I have no idea how to fix this :( Any help would be appreciated!

Edit: I have CHMOD the two files with no luck.
Title: Re: Ultimate Shoutbox
Post by: CrayZ on January 31, 2006, 07:50:31 AM
Hello and good luck with this mode.

The instalation of the mode was succesful but i don't know where to put this code  ???

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


I want this mode to aper below the forum logo or on somwhere there above  :)

Is any one that can tell me on what line (place) of index.template.php I should do this modification.

Thanks again...
Title: Re: Ultimate Shoutbox
Post by: L0relei on January 31, 2006, 09:08:03 AM
If you put it in index.template.php the shoutbox will appear on every page of the forum. To show it below the menu, put it after :
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';


If you put it in Boardindex.template.php it will appear only in the index. Put the code after :
function template_main()

{

global $context, $settings, $options, $txt, $scripturl, $modSettings;
Title: Re: Ultimate Shoutbox
Post by: CrayZ on January 31, 2006, 12:12:30 PM
Thanks a lot L0relei u helped a lot but i think i might need some more help to get this thing done.

So I did what u told me and went to the place I wanted to but it created a big space as u can see.

(http://www.takime.net/mkportal/modules/gallery/album/a_181.jpg)

I make the message to move from left to right but is not moving from across the page.

What i want to do is to create just one string so the Shout ca be display on this place and the Shout to move from left to right. So I want to reduce this space as Mach as possible because I want only one Shout on the string moving from the left page of my forum to the end right.

The theme is adjusted @ 95% of them page so is not a fixed size. The size is always 95% of the screen.

I hope someone help me because I think I like this Shoutbox.

Goodbye.
Title: Re: Ultimate Shoutbox
Post by: L0relei on January 31, 2006, 12:40:55 PM
It seems that you didn't setup the shoutbox in the admin panel, there are options to do what you want.
Title: Re: Ultimate Shoutbox
Post by: CrayZ on February 01, 2006, 04:34:40 AM
Thanks a lot L0relei

You were a great help and I realy apriciate it. In any case so I can finalize my new ShoutBox i just need to more thingks to know:

The first one is where is the file that I can do the translation, and the second if possible where is the place so i can change the backround colour. If posible plese let me know.

Thanks again.

Take care my friend  ;)
Title: Re: Ultimate Shoutbox
Post by: L0relei on February 01, 2006, 04:57:06 AM
Quote from: CrayZ on February 01, 2006, 04:34:40 AM
The first one is where is the file that I can do the translation
Modifications.<your language>.php
Open the file .mod in the package with a text editor and search for :
<edit file>
$languagedir/Modifications.english.php
</edit file>

<search for>
?>
</search for>

<add before>
After these lines is the text to translate.
Quote from: CrayZ on February 01, 2006, 04:34:40 AM
and the second if possible where is the place so i can change the backround colour.
shout.template.php
Title: Re: Ultimate Shoutbox
Post by: Menni on February 01, 2006, 12:25:20 PM
Can someone tell me what should I modify to make shoutbox look like my chatboard? Meaning colors. Now it is way too dark.
(http://img394.imageshack.us/img394/1360/shout0bd.th.jpg) (http://img394.imageshack.us/my.php?image=shout0bd.jpg)
Title: Re: Ultimate Shoutbox
Post by: CrayZ on February 01, 2006, 12:28:49 PM
I found the file and I did the translation so I went to uplad it one the server and I saw that the file is like this: shout_v111.33.tar.gz

WinRar can extract files from the tar.gz but can't put them back again  :-\

I tryed to find if i had a Modification folder or something on my server but Im sure that the shout_v111.33.tar.gz that this is the source of them mode or not  :(

I don't know  :'(
Title: Re: Ultimate Shoutbox
Post by: vodkarev on February 01, 2006, 12:31:33 PM
you can create a zip file with winrar... or do what I did... do a manual install
Title: Re: Ultimate Shoutbox
Post by: L0relei on February 01, 2006, 01:40:45 PM
CrayZ, it seems that you didn't understand what I was trying to explain. The file .mod tells you the text to translate, you just have to copy the translation in the file Modsettings.<your language>.php
Title: Re: Ultimate Shoutbox
Post by: Menni on February 01, 2006, 01:43:02 PM
echo '
<p><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a></p>
</center>';

Where should I put this to make it on same line with shout! and messagewindow?
Title: Re: Ultimate Shoutbox
Post by: Prasad007 on February 01, 2006, 01:48:51 PM
I really prefer chat over a shoutbox. Thanks tho. Nice mod! :)
Title: Re: Ultimate Shoutbox
Post by: ToyDozer on February 01, 2006, 04:20:51 PM
Who can help me or atleast explain to me why I have so much blank space below my "view all" "message" and "shout" fields.

If in my shout.template.php file I remove </form> from the tables conclusion it gets rid of most of the wasted space though in doing that it ofcourse fouls all sorts of things up. Heres how it looks and heres the code block from my shout.template file...
(http://www.wheelingadventures.com/Board/Images/Shouter3.jpg)
function template_shout_form()
{
global $context, $settings, $options, $txt, $user_info, $scripturl, $modSettings, $ID_MEMBER;

echo '
<center>
<form action="', $scripturl, '?action=shout" method="post">
<input type="hidden" value="', $context['qstr'], '" name="qstr" />
<input type="hidden" value="" name="email" />';

if ($user_info['is_guest'])
{
echo '
<input type="hidden" value="0" name="memberID" />
<input type="text" value="', $txt['shoutbox_6'], '" name="displayname" maxlength="100" onfocus="this.value=\'\'" /><br />';

if (empty($modSettings['shout_noGuestEmail']))
echo '
<input type="text" value="', $txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" /><br />';
}
else
echo '
<input type="hidden" value="', $user_info['name'], '" name="displayname" />
<input type="hidden" value="', $ID_MEMBER, '" name="memberID" />';

echo '
<td>
<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="60" maxlength="300" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />
</td><td>
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
</td></tr></table></form>
</center>';

Thanks in advance for any assistance...
Jon S.
Title: Re: Ultimate Shoutbox
Post by: CrayZ on February 02, 2006, 07:06:33 AM
This mode just look grate thanks  ;D

Thank you L0relei for the big help.

Now next question  :D

Is any way so we can insrert a link for the smileys  ??? ::)

I think this will be great because for a fourm that has lots of smileys is hard to remember a code for all of them.

Any one any idea  ???

Thanks  :)
Title: Re: Ultimate Shoutbox
Post by: Menni on February 02, 2006, 07:21:18 AM
Can somebody help?
What should I modify to align shotbox text to left side of the box?
Now text is in the middle?
Title: Re: Ultimate Shoutbox
Post by: CrayZ on February 02, 2006, 07:27:28 AM
Go tou your Admin Pannel and then go to Features and Options and then go to Shouts and there is a place Scrolling direction probably has to be left  :-\

I used this one http://www.simplemachines.org/community/index.php?topic=8415.765 the code from L0relei and now look grate.

I think you have to create a new shout.template.php with his code and disable scrilling from dhe admin menu. It will be greate i think.

Title: Re: Ultimate Shoutbox
Post by: Menni on February 02, 2006, 07:42:55 AM
Quote from: CrayZ on February 02, 2006, 07:27:28 AM
Go tou your Admin Pannel and then go to Features and Options and then go to Shouts and there is a place Scrolling direction probably has to be left  :-\
No, that is the scrolling direction. I mean text align in the shotbox.
Title: Re: Ultimate Shoutbox
Post by: CrayZ on February 02, 2006, 07:49:38 AM
That's whay I told you to crate a new shout.template.php tha one that L0relei posted and the text will go to the left.
Title: Re: Ultimate Shoutbox
Post by: sobers_2002 on February 02, 2006, 07:58:50 AM
hi all

i just installed the shoutbox and there seems to some strange thing. The board is 1.0.6 and i don't see any menu in admincp for shoutbox!!! kindly guide me about this.

thanks
Saurabh
Title: Re: Ultimate Shoutbox
Post by: Menni on February 02, 2006, 09:07:29 AM
Quote from: ToyDozer on February 01, 2006, 04:20:51 PM
Who can help me or atleast explain to me why I have so much blank space below my "view all" "message" and "shout" fields.

If in my shout.template.php file I remove </form> from the tables conclusion it gets rid of most of the wasted space though in doing that it ofcourse fouls all sorts of things up. Heres how it looks and heres the code block from my shout.template file...
(http://www.wheelingadventures.com/Board/Images/Shouter3.jpg)
function template_shout_form()
{
global $context, $settings, $options, $txt, $user_info, $scripturl, $modSettings, $ID_MEMBER;

echo '
<center>
<form action="', $scripturl, '?action=shout" method="post">
<input type="hidden" value="', $context['qstr'], '" name="qstr" />
<input type="hidden" value="" name="email" />';

if ($user_info['is_guest'])
{
echo '
<input type="hidden" value="0" name="memberID" />
<input type="text" value="', $txt['shoutbox_6'], '" name="displayname" maxlength="100" onfocus="this.value=\'\'" /><br />';

if (empty($modSettings['shout_noGuestEmail']))
echo '
<input type="text" value="', $txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" /><br />';
}
else
echo '
<input type="hidden" value="', $user_info['name'], '" name="displayname" />
<input type="hidden" value="', $ID_MEMBER, '" name="memberID" />';

echo '
<td>
<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="60" maxlength="300" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />
</td><td>
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
</td></tr></table></form>
</center>';

Thanks in advance for any assistance...
Jon S.



I did that. Can some one tell me what am I doing wrong?
http://www.hiekkalaatikko.net/testifoorumi/index.php
Title: Re: Ultimate Shoutbox
Post by: Menni on February 02, 2006, 01:36:38 PM
So, this is what I want: (http://img405.imageshack.us/img405/2073/127ok.th.jpg) (http://img405.imageshack.us/my.php?image=127ok.jpg)

And this is what I get:(http://img405.imageshack.us/img405/2001/1235qy.th.jpg) (http://img405.imageshack.us/my.php?image=1235qy.jpg)

How and what should I modify to get text aligned right? ::)
Also want message, shout and wiew all to same line, so not so much space is needed.

Somebody? Help :-[
And this is my shout.template:

<?php

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

echo '
<form action="'
$scripturl'?action=delete_shout'$context['url_direct'], '" method="post">
<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%" class="borderclass">
<tr>
<td class="catbg" colspan="'
, !empty($context['canDelete']) ? 1'" align="center">'$txt['shoutbox_1'], '</td>
</tr><tr>
<td class="titlebg" colspan="'
, !empty($context['canDelete']) ? 1'" align="left">'$context['page_index'], '</td>
</tr>'
;

$alternate false;
foreach ($context['arc_shouts'] as $shout)
{
echo '
<tr class="'
$alternate 'windowbg' 'windowbg2''">
<td>'
;

if (!empty($context['canDelete']))
echo '
<a href="'
$scripturl'?action=delete_shout;id='$shout['id'], $context['url_direct'], '"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
<span>'
$shout['time'], '</span> - '$shout['link'], ' -' $shout['message'];
echo '
</td>'
;

if (!empty($context['canDelete']))
echo '
<td width="4%" align="center">
<input type="checkbox" name="ind_delete[]" value="'
$shout['id'], '" class="check" />
</td>'
;
echo '
</tr>'
;

$alternate = !$alternate;
}
echo '
<tr>
<td class="windowbg" colspan="'
, !empty($context['canDelete']) ? 1'" align="left" width="100%">
<div style="float: left">'
$context['page_index'], '</div>
<div style="float: right">
'
$context['canDelete'] ? '<input type="submit" value="' $txt['shout_delete_selected'] . '" name="delete_sel" />' '''
</div>
</td>
</tr>
<tr class="windowbg">
<td colspan="2">
<center>'
;

if ($modSettings['enablearchiveshout'] == && $context['canPost'])
template_shout_form();

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

// Pull the delete options for the administrator
if (!empty($context['canDelete']))
echo '
<p><table border="0" cellspacing="1" cellpadding="4" align="center" width="100%">
<tr>
<td class="catbg" align="center" colspan="2">'
$txt['shoutbox_42'], '
</td>
</tr>
<tr>
<td class="windowbg2" valign="top" width="50%">
<form action="'
$scripturl'?action=delete_shout_age" method="post">'$txt['shoutbox_2'], '
<input type="text" name="age" id="age" value="25" size="4" /> '
$txt['shoutbox_3'], '
</td>
<td class="windowbg2" valign="top">
<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />
</form><br />
</td>
</tr><tr>
<td class="windowbg2" valign="top" width="50%">
<form action="'
$scripturl'?action=delete_all_shouts" method="post">'$txt['shoutbox_4'], ' '$modSettings['shoutlimit'], '
</td>
<td class="windowbg2" valign="top">
<input type="submit" name="submit" value="'
$txt['shoutbox_5'], '" />
</form>
</td>
</tr>
</table></p>'
;
}

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

// Only do auto refresh if we have it enabled!
if (!empty($modSettings['shout_enableXML']))
{
// The code for handling auto refresh
if ($forum_version 'SMF 1.1')
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script_shout.js?1.03"></script>';

echo '
<script language="JavaScript1.2" type="text/javascript"><!--
setTimeout("doAutoReload();", 5000);

function doAutoReload()
{
if (window.XMLHttpRequest)
{
getXMLDocument("'
$scripturl'?action=shout_xml;xml", onDocReceived);
setTimeout("doAutoReload();", 5000);
}
}
function onDocReceived(XMLDoc)
{
// Where we create our new shouts.
var insertData = \'\';
// Number of shouts.
var numShouts = XMLDoc.getElementsByTagName("shout").length;
// Useful vars.
var shoutID, shoutMemberName, shoutMemberID, shoutMemberEmail, shoutCanDelete, shoutTime, shoutLink, shoutMessage;

// Do each shout in turn.
for (i = 0; i < numShouts; i++)
{
shoutID = XMLDoc.getElementsByTagName("shout")[i].getAttribute("id");

// If this shout exists... continue.
if (document.getElementById("shout_" + shoutID))
continue;

shoutMemberName = XMLDoc.getElementsByTagName("shout")[i].getAttribute("member_name");
shoutMemberID = XMLDoc.getElementsByTagName("shout")[i].getAttribute("member_id");
shoutMemberEmail = XMLDoc.getElementsByTagName("shout")[i].getAttribute("member_email");
shoutCanDelete = XMLDoc.getElementsByTagName("shout")[i].getAttribute("can_delete");
shoutTime = XMLDoc.getElementsByTagName("shout")[i].getAttribute("time");
shoutMessage = XMLDoc.getElementsByTagName("shout")[i].getAttribute("message");
shoutLink = XMLDoc.getElementsByTagName("shout")[i].getAttribute("link");

insertData = 
\'<div id="shout_\' + shoutID + \'">\';
if (shoutCanDelete)
insertData += \'<a href="'
$scripturl'?action=delete_shout;id=\' + shoutID + \'"><img src="'$settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a> \';

insertData += shoutTime + \' \' + shoutLink + \' -\' + shoutMessage + \''
$modSettings['shoutsep'], '</div>\';';

// Do the actual insert.
if ($modSettings['shoutdir'] == 0)
echo '
setOuterHTML(document.getElementById("new_shout"), \'<span id="new_shout"></span>\' + insertData);'
;
else
echo '
setOuterHTML(document.getElementB