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!
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).
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.
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?)
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.
Thanks...
dont work on rc2 :/
hes upgradeing it.....he go most of it upgtraded but the ssi part(most important to me)
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).
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).
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]
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
Anybody ??? ::)
Try to download that : http://www.mymods.co.uk/Packages/shout.tar.gz
and apply the appropriate .mod ;)
FaSan
Witch one is te appropriate one ??? ;)
Read the .xml file 8)
he is giving errors :'( he is not showing the text in modsettings :'( if i collaps the features
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!!
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
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.
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
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).
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
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.
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.
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.
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.
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
It works perfectly now.
Would it be possible to have also the smileys ? Even within a popup ?
:)
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
make shure the shout.template.php is in your themes/default :)
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
the shoutbox eat a lot of bandwith ?
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
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...
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
Yes thats what i was getting lol!
Updated. Should hopefully work with RC2 and preview now. Also made shouting and deleting a permission ;)
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!
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?
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
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
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
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
Great work on this mod, its used almost more than posting on my forums :P
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]
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 !!!
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);
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
ANd is this one compatible with Rc2 and where says how to activate /install it?
Yes it is, it gives you install instructions when you load it into the package server.
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. ;)
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 ?
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 ;)
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);
}
:)
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
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 !
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);
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]
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
Nope, it doesn't work............
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
you need to add '.smfshout().' to your BoardIndex.template.php file ;)
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
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 ?
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
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!
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 ;) ?
@ 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
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
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'] == 1 && $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>';
}
?>
Wow, that works perfectly ! Great, and thanx for you quick reply ;)
Is there a way to make the shout autorefresh every how many seconds?
you would have to make your whole page refresh, just add a meta refresh to your index.template.php with the meta tags. . .
iight thanks
what I'm doing wrong ???, I have installed mod and now when I put ', smfshout(), ' in index.templates.php that template stops working
You only use :
smfshout()
I guess ? Without a comma and such ?
so if I want to put shoutbox right side of my board, what I must put to index.template.php besides smfshout()?
You will have to work with tables ......
I had tried ',smfshout(),' but in the end I had to use '.smfshout().'
@perti, you will have to edit the boardindex.template.php
', 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.
so where I must put it in BoardIndex.tempöate.php
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).
very nice mod.
@ 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
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.
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...
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
Oh no. I not want this. Ex.: i click the "shout" button, but page didn't refesh. can this?
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?
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
I think Midgard means that they want to be able to make a shout without it refreshing the whole page.. .
shoutbox dont work with mine. my version is rc2
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.
nothing says it just there no effect after i upload the shoutbox mod nothing happen i dont see any shoubox in my forum
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.)
oh i didnt do that lol i dont know it should put that code. by the way where do i put that?
I recommend BoardIndex.template.php, I would check the rest of this post for more specific info ;)
ok thanks dude.
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.
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.
Does anyone have a 'demo' of this on their forums I can take a look at?
Thanks :)
http://www.raclan.org/forums . . . . I have the mod running on my forums ;)
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
nvm problem fixed :)
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.phpFind: /* 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"
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
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 :)
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
check Admin -> Edit Permissons -> (usergoup) -> search for shout
one little question grudge i upgraded to your 1.21 shoutbox version and before i saw this little pic (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forumzoneru.25.com1.ru%2FThemes%2Fdefault%2Fimages%2Fdeleteshout.gif&hash=3df820b955cea263b54865aec82f16c0d7a330cd) 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 ?
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):
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.lyzrd.com%2Fmodthingy.gif&hash=a82a7c65eb94902fbafab4a1c052d8ea76996c13)
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]
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. ..
It will do that if you don't have <tr>s around it properly.
-[Unknown]
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 ..
Oh. You also want to use commas instead of dots (so it's output at the right time.)
-[Unknown]
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
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
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
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]
wonderful work unknown your suggestions helped me too there:
http://www.simplemachines.org/community/index.php?topic=8415.msg180706#msg180706
grazie super ;D
Me too, that did the fix wonderfully. Thank you so much Unknown, you are the best :D
Dennis
Guys I still need help can you guys whip up me my code for me or what to add for this heading?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.ehdeals.com%2Funtitled.JPG&hash=ec45e068e225ce1d1af776229f8cc8fef18f31e1)
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 ?
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.
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');
strange i had the same errors and making unknown suggestions i resolved.
It looks like it's because I use the "old" index.template.php ?!
It shows me this :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.salesplaza.nl%2Fimages%2Fellende.jpg&hash=66b578c4d9e3287df49dc4732395a623c73add29)
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
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......
actually I think its a database error visit EhDeals
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 ?
can someone tell me the code so I can make it an inline frame instead
I'm getting an internal server error when I try to set the shoutbox to ascending order. Any ideas?
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
CDan someone tel me what the url would be or the code to put it in an inline frame
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?
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 :)
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.
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 :)
Where can I increase the char limit? Currently it seems to be 57.
Thanks.
<?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'], ' • ', $txt[95], ': ', $modSettings['totalMessages'], ': • ', $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']) == 1 ? $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" /> <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], ' "', $context['latest_post']['link'], '" ', $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> ', $txt[94], ' ', $txt[95], ': <b>', $modSettings['totalMessages'], '</b><br />
', !empty($context['latest_post']) ? $txt[659] . ':
"' . $context['latest_post']['link'] . '" (' . $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'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], $context['num_users_hidden'] > 0 ? ' (' . $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'] == 1 ? $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
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
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
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
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..
<table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table>
is this the code i have to enter? n if so where?
is sum1 cud jus show me a working example it would be great :)
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
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
The ssi_function should be shout, not shoutbox I believe - see here:
http://www.p0stwh0res.com/smf/SSI.php?ssi_function=shout
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.
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 :)
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 ??? ???
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?
',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 :)
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.
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?
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.
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.
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()
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?
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)
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.
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 ?
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
I have done that, but after I get something about the subs file and the forum dosent work anymore...
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 :(
how much sql space any server bandwidth does this use per shout?
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.
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.
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. :)
what template file do i put the
smfshout()
function?
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
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 ?
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??
<div align="left">Shout</div>
<span style="float: left">Shout</span>
e.g.
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.
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.
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?
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.
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
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...... :'( :'(
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.
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?
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... ???
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>';
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
you need to add it to your theme manually. with ',smfshout(),' you can check this post for some examples... :)
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..
"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 ???
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! :)
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
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.
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
// 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.
"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..
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: <?php ssi_recentEvents(); ?></h3>
<?php ssi_recentEvents(); ?>
<hr />
</search for>
<add after>
<h3>Shoutbox: <?php ssi_shout(); ?></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! :)
you are right... i will give it a good try now... that package manager is confusing..... better do everything manual... ;)
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?
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...
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
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
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 ??
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 ?
???
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']
);
}
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
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.......
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']
);
}
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
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!
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 :)
// 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.
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. :)
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.
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
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
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(), '';
?>
how much shoutbox slow down forum ? how many question to mysql ?
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 :(
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.
Nope!
This is taken from the .mod file itself..
<edit file>
ssi_examples.php
</edit file>
<search for>
<h3>Recent Calendar Events Function: <?php ssi_recentEvents(); ?></h3>
<?php ssi_recentEvents(); ?>
<hr />
</search for>
<add after>
<h3>Shoutbox: <?php ssi_shout(); ?></h3>
<?php ssi_shout(); ?>
<hr />
</add after>
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
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: <?php ssi_recentEvents(); ?></h3>
<?php ssi_recentEvents(); ?>
<hr />
</search for>
<add after>
<h3>Shoutbox: <?php ssi_shout(); ?></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.
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
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 :)
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...
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??
RedAlert2 please read my post, it is right above RyanB's post.
Grudge, guess I wasn't the only one with this problem :-X
k, thnx, fixed it, but there isn't a shoutbox......... is there a way to make it show up?
again, read back further in this post.. it will tell you how to add the shoutbox to your forums :)
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()">';
mod work pefect you can see at forum.ocm.pl
thx :)
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.
Is there a way to refresh the shoutbox without clickin refresh all the time? like when u go into a different section
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..
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
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.
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
find
function smfshout()
{
global $sourcedir;
include_once("$sourcedir/shout.php");
shout_display();
shout_form();
}
there are two of them, remove one.
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
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...
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
:(
doesn't look like you installed the shoutbox mod all the way.
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.
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
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 :)
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
:)
Now for some help about the colors please :)
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
Moved my question to the Charter area.
Cool, I actually figured it out!!! 8)
Spanish translation:
http://www.simplemachines.org/community/index.php?topic=27611.msg214630#msg214630
by me :p
darksteel-
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 :)
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.
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
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?
you must set permissions, Admin - Edit Permissions -> (usergroup) -> Shout
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
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.
Grudge, maybe you should pick the FAQs for this mod and add them to the mod description. :P
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
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
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
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 :)
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
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.
OK thanks
And how can I put that onto the forum as a button as well. with the other buttons on the index page?
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.
- How can I force Ultimate Shoutbox to use the member color? That way the Admin and Mods usernames would be different colors than the regular members.
ie. Admins : Red, Mods : Blue.
- How could I add a limited bb code helper to the Ultimate Shoutbox? Just Font Color, Bold, Italics, Underline, URL, Smilies.
Thanks for any help. 8)
beetleman
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 :) :)
Well, marquee isn't valid xhtml... period.
-[Unknown]
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
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.
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
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 :)
Cool.. I'll look at that! Thanks!
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.
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?
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 :)
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
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.
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.
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?
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.
Anyone,
How do I go about calling shouts and inputs separately?
Thanks.
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...
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.
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! :(
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]
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.
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]
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!
Documentation... I'm working on it... I'm trying...
/me sighs :P
Aye, I'm not knocking anyone, honest. It's just meant as input and comment.
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.
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.
Look at my reply a few posts before: reply 288. I cannot promise it's technically correct, but it works for me.
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.
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.
im having the same problem. i just dont know where in the index.template.php file to add the shoutbox code to
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!
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.
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
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.
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?
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
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.
wow grudge, thnx!
it works perfectly now!
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.
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.
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.
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.
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.
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.
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.
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..
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fknifey.branzone.com%2Fforums%2FThemes%2FHeliosRed%2Fimages%2Fnew_some.gif&hash=c3219126db2f9b33a837ef83ff8ae3a3bf4f2a35) New Posts (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fknifey.branzone.com%2Fforums%2FThemes%2FHeliosRed%2Fimages%2Fnew_none.gif&hash=761d2af7c59f01022628ff9e4bdcfaa41fded439) No New Posts
But above the info center?
The code for my index.template.php is in that .txt link.
Thanks.
You'll have to be a bit more specific; I'm not sure that those ikons appear in the place on my forum.
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...
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."
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!
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
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 :-[
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?
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.
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
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?
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?
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.
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.
sounds like a great idea Grudge. I dont have a test board set up, or I'd help you out.
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.
Sounds like the previous version wasn't uninstalled first?
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.
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.
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.
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.
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.
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?
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. ;)
Thanks, only problem now is finding the time to add the other bits!
i can not veiw the shoutbox
likeit does not show up
how would i fix this
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.
I downloaded this, and nothing showed up, i went to the settings and everything seemed right but it ddint appear on the forum.
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.
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.
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
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fonimra.cybton.com%2Fstuff%2Fproblem.PNG&hash=0e916554603a580edce32982b858eacc82acdb23)
I haven't seen an similar problem so far, i hope somebody can help me!
greetz oNiMrA
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]
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?
Probably old news. However this mod works flawless in 1.1..
doesnt work for me. I got smf 1.03
how is it not working, can you tell us your problem? Have you edited the template?
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
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?
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. :)
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 :)
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.
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.
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(...
There must be more than just that - there should be about 8-10 liesn returned - that's just the first 100 characters...
I entered your information in that text box
this is what I have:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sfboarders.com%2Fuserimages%2Fshoutsql1.JPG&hash=9a4ff686d6007b1053559388b69bac0ad176c1cf)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sfboarders.com%2Fuserimages%2Fshoutsql2.JPG&hash=279b8b934e31ebe7896d5cc979eda6ba7b115595)
I believe Grudge wants you to click the <- T -> button.
-[Unknown]
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
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!
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. :)
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.
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. :)
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?
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.
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 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
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.
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.
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.
Hey Col.....its fine for now. Am having fun anyway. Thanks
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.
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.
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
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.
Thanks, Col! I got it working :) You're awesome!
-Shayna
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?
Sorry I just looked through this topic and I found out why. :-[
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.
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 :)
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
It just sounds like you've slipped up with your html somewhere.
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'] == 1 && $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.
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...
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.
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.
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?
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.
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 -.-
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
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
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)?
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........
Is there a way to possibly make a log of who posted the most in the shoutbox and so forth?
-Shayna
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...................
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
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
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...
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
"the col's scrpt"? whats that mean?
I also posted one way to make it show up on page 9 or 8 ;)
k thanks :)
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!
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.
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?
Yes, The shout works nicely.
I just want to inline the stuff.
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...
you do not need to require the SSI file within your forum template, just add the smfshout() function.
Is there anyway possible way to align the generated text from the shoutbox to align to the left instead of all in the center?
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....
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........
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.
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.
edited
Thanks Alot "Bitwiz44".I got it now.Thanks alot........it works
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)
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?
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(), '
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!
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.
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
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.
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
does anyone know if this works on SMF 1.1 Beta 2??
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.
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
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. :(
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?
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.
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.
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/
Thanks rjoe_brandon, I'm sure people will appreciate it :)
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.
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
I'd just install it anyway - it just won't leave you with a SSI example - not a big deal.
can i lauch shoutbox in new window.?
need help..
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
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..
one more question can we increase scrolling speed?
hassan,
The scroll speed can be adjusted from the shoutbox options that are placed on the "Feature Settings and Options" page.
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
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 :)
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?
That would probably do something, yes.
Does this work for SMF 1.0.4?
Should do.
Grudge Thanks again
yes it works perfectly
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
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.
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.
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.
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
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
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 :)
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.
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-
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
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?
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
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
Please make Themes/default/languages writable. How do I use chmod? (http://www.simplemachines.org/community/index.php?topic=23690.0)
-[Unknown]
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
Any help for my previous post in page 31 in this topic ?
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.
when someone is banned from the boards, but only banned for posting, the person can still post in the shoutbox, think thats fixable?
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.
flood control would also be a nice addition
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
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.
Any updates for 1.1beta 3?
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) :)
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
Thanks I think I was the 2nd download for the new version.
I was the first! :)
YM
Can someone give a small help to my problem ?
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.
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. :)
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.
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 ;)
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?
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
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.
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
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.
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;
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmixelmagic.com%2Fcrap%2Fshoutbox.gif&hash=040c2d4d8e244bbfecf06f32efefffe25c685fc1)
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..! :)
Can anyone share if there's a way to collapse the shoutbox or only show it on the index (home) page only?
Sorry about that, I was running an older version of the shoutbox, 1.31 works fine in 1.1.
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();
?>
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?
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.
Thanks that'll do it.
on delete a shout, it should return back to the shoutbox.. instead it returns to the forum index
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 |
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.
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?
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 :-[
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?
hi, may i know how to put the shoutbox ?? i install it already.. but nothing shows ?
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 :)
hmm, i dun really get it...
www.e-grounds.com
you'll notice the shout button , and ya, i guess thats it
hmm, icic but i wanted to put my shoutbox below those Home, Search, Help links ? can i do that ?
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
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?
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
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]
the sql needs to be 1.0.5 for it will work and i cant install it in the package manager!
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?
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?
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
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
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
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?
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.
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?
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?
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!
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!
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.
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
I found a great set of instructions for manually installing mods:
http://www.simplemachines.org/community/index.php?topic=34526.0
Got It!
Thanks to one and all for the help! ;)
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?
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 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>
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
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 ???
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?
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
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.
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.
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.
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. :(
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
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?
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. :(
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 :)
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.
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.
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 :)
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.
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?
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.
anyone know where to edit the shoutbox in smfshout(); and edit the width of the Message Box
Everything seems to be installed correctly but cannot see the shouts.
BTW, I am using 1.1
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.
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?
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
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
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
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.
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
?? 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
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).
Hi Grudge,
I think you may have missed my bug reports (you were on holiday). Replies 540, and 546.
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!
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!
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'];
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?
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
what happens when you install anyway?
(making sure you have a back up of course... just in case).
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 :)
help
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!
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!
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
Anyone?
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=" 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
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!
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
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
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
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???
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg208.imageshack.us%2Fimg208%2F583%2Ferror4lc.th.png&hash=0b05e0e111414a2b5cc6e59d6cbdc51b3a5f962f) (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.
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!
Quote from: Snickers on September 18, 2005, 05:55:16 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg208.imageshack.us%2Fimg208%2F583%2Ferror4lc.th.png&hash=0b05e0e111414a2b5cc6e59d6cbdc51b3a5f962f) (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.
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 :)
how do I change the username text to bold and italic?
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!
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.
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?
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? ;)
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..
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!!
Post to confirm that Shoutbox 1.3 works just fine with 1.1RC1
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!
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
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.
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]
Ok but I already made something like 10 POSTS asking for help!
Thanks for the answer but I can't find the square :(
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.
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
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
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
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.
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?)
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....
Any issue encountered with smf 1.1 RC1 and ultimate shoutbox?
I am hesitating to upgrade..
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... :'(
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.
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
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).
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg396.imageshack.us%2Fimg396%2F2187%2Funtitled25in.th.jpg&hash=6fdeb1d4bef17dbcd25970b72b6e319af374a155) (http://img396.imageshack.us/my.php?image=untitled25in.jpg)
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 :-)
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!
Can anyone make a portuguese version please? :(
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?
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
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...
Sorry, but are you asking a general question about the mod....
Or are you asking about the tutorial I made a page back?
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
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.
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?
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();
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.
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.
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
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? :(
I just told how to do just that, in the post directly before your first one :)
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
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.
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
I'm not able to download...the transfer fails.
Which one do I need for SMF 1.0.5??
I can't download this mod... :(
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)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter.jpg&hash=a021215ef2279458e1b26aae33a0749b5dd1ada8)
Thanks in advance
Jon
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?
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
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/ ?
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.
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Farkserver.servehttp.com%2Fshout_error.jpg&hash=6152fc31b50ac4099d37c0754e3c612f0ae9ec23)
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!
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Farkserver.servehttp.com%2Fshout_error.jpg&hash=6152fc31b50ac4099d37c0754e3c612f0ae9ec23)
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'.
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.
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?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter2.jpg&hash=a6575d762daee9c5c5009eb5157c8d55f80ef36c)
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!
hey im trying to make it smaller since its so big, is there a way to resize it? not width wise, but hight wise?
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.
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.
Same here as do my members. Turning off the scrolling is a temporary fix at least.
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.
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.
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?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter2.jpg&hash=a6575d762daee9c5c5009eb5157c8d55f80ef36c)
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!!!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter3.jpg&hash=7bc9873fd74fd8c2838f163413c1c990e486f7f8)
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!!
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!
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!
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
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.
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.
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?
Dose this work with RC1?
'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
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.
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?
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?
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.
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.
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).
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'.
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.
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)
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..
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.
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.... ::)
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.
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!
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?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter2.jpg&hash=a6575d762daee9c5c5009eb5157c8d55f80ef36c)
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!!!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter3.jpg&hash=7bc9873fd74fd8c2838f163413c1c990e486f7f8)
looks great!
Can you show me the file that you edited that the View All and message box appears in the same line?
Thanx!
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?
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.
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.
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. ;)
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)
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.
Thank you.. That was painfully obvious now that its been pointed out to me ;D
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
Thank You Col for the tips..
Shoutban right?
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.
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
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.
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
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.
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.
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
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
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...
! 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
Great, will do.
Also, what about refreshing the shoutbox (not the whole page)?
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
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.
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
You do need to uninstall yes.
Ah, you need to uninstall with the old version, then upload the new version.
I'm trying to install but it seems to be an error here:
8. Executar Modificação ./Sources/ModSettings.php Falha
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.
You can uninstall with errors, but then manually fix the ones which had the errors in.
Note for 1.0.5 users, the package was broken, I've uploaded a fixed version to the site now.
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
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.
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?
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?
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
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
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. ;)
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
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.
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();
}
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)
Is that because you don't have a Modifications.english.php?
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?)
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
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 .
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
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;">';
hello dear McNeo2 .
i no understand your Intent .
if may a exampel for the this mod input here .
thank you .
--------------- can you speak persian ? --------------
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.
thank you dear McNeo2 .
i am Adinfinitum your Friend .
Updated to Version 1.33. I hope this resolves the redirection issues and the language strings.
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.
All of them are in .tar.gz format...Do you guys have it available in .rar format?!!!!
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?
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.
please input learn install this mode .
persian language no understand .
thank .
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!
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"> </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.
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
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?
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 ?
is it possible to allow people that i give permissions to on groups to delete posts but also bann from the shoutbox ???
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.
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?!
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
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?
Can someone code this to show up on the left side of the main page under the news fader?
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?
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
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.
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 :(
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.
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?
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!!!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter3.jpg&hash=7bc9873fd74fd8c2838f163413c1c990e486f7f8)
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)
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!!!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter3.jpg&hash=7bc9873fd74fd8c2838f163413c1c990e486f7f8)
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?
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
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
thx JesterDesigns, i love u so much!!!
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!!
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
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
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??
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
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.
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.
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.
Ah, I see.
Thanks
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 ;)
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
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.
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
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.
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
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"> </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.
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.
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.
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. :)
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
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)
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
Great Mod.
But is there a code available for popup smileys in the shoutbox and use them by click on it
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?
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'] == 1 && $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>';
}
?>
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.
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...
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;
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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.takime.net%2Fmkportal%2Fmodules%2Fgallery%2Falbum%2Fa_181.jpg&hash=cfdf20226d766cfdcd0f194e85139164cf5e975c)
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.
It seems that you didn't setup the shoutbox in the admin panel, there are options to do what you want.
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 ;)
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
Can someone tell me what should I modify to make shoutbox look like my chatboard? Meaning colors. Now it is way too dark.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg394.imageshack.us%2Fimg394%2F1360%2Fshout0bd.th.jpg&hash=df3a2615d9014fd2e72a4474e3e73778beab0bbd) (http://img394.imageshack.us/my.php?image=shout0bd.jpg)
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 :'(
you can create a zip file with winrar... or do what I did... do a manual install
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
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?
I really prefer chat over a shoutbox. Thanks tho. Nice mod! :)
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...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter3.jpg&hash=7bc9873fd74fd8c2838f163413c1c990e486f7f8)
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.
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 :)
Can somebody help?
What should I modify to align shotbox text to left side of the box?
Now text is in the middle?
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.
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.
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.
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
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...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.wheelingadventures.com%2FBoard%2FImages%2FShouter3.jpg&hash=7bc9873fd74fd8c2838f163413c1c990e486f7f8)
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
So, this is what I want: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg405.imageshack.us%2Fimg405%2F2073%2F127ok.th.jpg&hash=1fdf6070e42c247ccb3e14126680b3daeaef7b64) (http://img405.imageshack.us/my.php?image=127ok.jpg)
And this is what I get:(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg405.imageshack.us%2Fimg405%2F2001%2F1235qy.th.jpg&hash=724330f3472a611f7cebe8ba4a93c04774c518f6) (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']) ? 2 : 1, '" align="center">', $txt['shoutbox_1'], '</td>
</tr><tr>
<td class="titlebg" colspan="', !empty($context['canDelete']) ? 2 : 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']) ? 2 : 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'] == 1 && $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.getElementById("new_shout"), insertData + \'<span id="new_shout"></span>\');';
echo '
}
}
//--></script>';
}
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()">';
// 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'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
', $shout['time'], ' ', $shout['link'], ' -', $shout['message'] . $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><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a></p>
</center>';
}
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 '
<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" />
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
</form>
</center>';
}
// 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>';
}
?>
hi guys
i posted above, i think i found a little of the problem. I am using 1.0.6 board, and opening the mod edit files, leads to the fact that the editing format is probably according to the latest one and hence can't be done for the 1.0.6 board. So can som1 gimme a package file for 1.0.6??? or perhaps explain me how to edit the modsettings.php according to the latest package??
thanks
Saurabh
I don't suppose you could help me here?
I'm using 1.1 RC2. I've got a JavaScript thingy set up to open a new window with the shoutbox, and a link in the top navbar to direct to said JavaScript thingy. The thing is, what should I make it open in the JavaScript window?
Thanks any help. ^_^;
What happen?(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsmf.rcweb.net%2Findex.php%3Faction%3Ddlattach%3Btopic%3D17.0%3Battach%3D89%3Bimage&hash=265fdb2d14ed3fdf96a0577a5810fa301cce2566)
8: Undefined index: url_direct
file: /usr/local/psa/home/vhosts/korkwai.com/subdomains/board/httpdocs/Themes/default/shout.template.php (eval?)
line: 185
and
2: call_user_func(ShoutArchive): First argument is expected to be a valid callback
file: /usr/local/psa/home/vhosts/korkwai.com/subdomains/board/httpdocs/index.php
line: 127
Ahh, I just want to disable the auto-scrool and have a scrollbar on the side instead :(
Edit: I manage to set inot-scrolling, should have read the instruction carefully. But the height option doesnt work *_*
Edit again: must set the number of shouts return smaller
Okay I really don't understand one thing about this mod.
I don't have an entrance page, I just have the main forum page with categories and all that.
Could the shoutbox be put on top of the categories and would this really look good?
Well I managed to get the shoutbox into its own window, using SSI.
The problem is that it now doesn't refresh every 5 seconds, even though it's enabled in the Admin CP.
I looked at the source code and the refresh script had <!-- //--> around it. o.O I didn't touch the source code, I simply used SSL like the documentation said. Any help?
Quote from: Aitsukai on February 07, 2006, 01:27:02 AM
I looked at the source code and the refresh script had <!-- //--> around it. o.O I didn't touch the source code, I simply used SSL like the documentation said. Any help?
I don't know why it's not refreshing, but the ignore brackets are needed to hide the JS so that the browser does not try to render the code. The JS is still read.
Quote from: Aitsukai on February 07, 2006, 01:27:02 AM
Well I managed to get the shoutbox into its own window, using SSI.
The problem is that it now doesn't refresh every 5 seconds, even though it's enabled in the Admin CP.
I looked at the source code and the refresh script had <!-- //--> around it. o.O I didn't touch the source code, I simply used SSL like the documentation said. Any help?
could you share the modifications???
thanks
Hello guys, I think I found a bug.
I'm using SMF 1.1RC2 with default theme, with spanish language.
ShoutBox installed flawlessly BUT I can't access the options, the "shoutbox" tab just won't appear while I'm using the spanish language, I switched back to english and the tab suddenly appeared.
Is this the intended behavior? if not, help!
EDIT:
============================================================================
It seems like it really have problems, if I switch back to spanish, after setting the options in english and modifying the template to show the shoutbox, the button that reads "shout" will show no text.
Thanks in advance,
Adrián.
P.S. "Guests on your site (if you give them access to the block) will type in their name, email address and message before clicking shout." How can you deny access to the shoutbox to guests? just not clicking on "allow guests to type their emails" option?
I get a similar error as kikkok:
8: Undefined index: url_direct
File: /home/whit/public_html/smf/Themes/SfSorange/shout.template.php (eval?)
Line: 25
Anyone know what url_direct is, and why it's undefined? I know it has something to do with deleting a shout, but I really don't know much other than that.
Quote from: sobers_2002 on February 07, 2006, 01:19:20 PM
Quote from: Aitsukai on February 07, 2006, 01:27:02 AM
Well I managed to get the shoutbox into its own window, using SSI.
The problem is that it now doesn't refresh every 5 seconds, even though it's enabled in the Admin CP.
I looked at the source code and the refresh script had <!-- //--> around it. o.O I didn't touch the source code, I simply used SSL like the documentation said. Any help?
could you share the modifications???
thanks
Share what?
I rectified the problem, thanks anyway. ^_^;
I'm glad to hear you fixed your problem. I fixed mine too (sort of)
The errors (all 200 or so) happen when I go to "view all." No other time. What I did while waiting for a fix was locate the part of the code that linked to the view archives script and commented it out. Of course I can't view the shout page anymore, but at least the errors stopped. I'd still like to know what causes the Undefined Index: url_direct error so we can turn the page back on.
How can I disable HTML only in Shoutbox?
I have a major problem.. Each Time I type a shout the entire page reloads .... Any fixes? I tried using the XML option but same effect.
I think that's normal..
It is not iFrame, it is within the page, and don't think it uses ajax..
so it will reload the page? Or am I wrong..
so how about disabling HTML??
Were do I put the code to add the shoutbox right under the navigation? ( Forum | Help | Search | Prifle| My Messages | Calendar | Members | Logout )
Quote from: Stunt on February 16, 2006, 03:17:54 PM
Were do I put the code to add the shoutbox right under the navigation? ( Forum | Help | Search | Prifle| My Messages | Calendar | Members | Logout )
You can put it in index.template.php, at the end of the file, just before of
?>
In this way users should view shoutbox in every page....
Also, if you want they to see shoutbox only in homepage you can put it in boardindex.template.php. Put it after:
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
8)
I put it just above the "see posts since last visit" so if someone does not want to see shoutbox, they can just simply COLLAPSE it! :)
Quote from: Madley on February 16, 2006, 03:44:42 PM
Quote from: Stunt on February 16, 2006, 03:17:54 PM
Were do I put the code to add the shoutbox right under the navigation? ( Forum | Help | Search | Prifle| My Messages | Calendar | Members | Logout )
You can put it in index.template.php, at the end of the file, just before of
?>
In this way users should view shoutbox in every page....
Also, if you want they to see shoutbox only in homepage you can put it in boardindex.template.php. Put it after:
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
8)
That put it at the very top of the board :(
stunt, you have to just practice and keep trying until YOU find the best place to put it.,..
that's why it wasn't included in the mod..
good luck.
just keep putting the three lines of java recall code to different places, and keep a back up of your file ;)
Damn, I can't find it, everywhere I put it puts it at the bottom or the top! Also, is there a way to surround this with my:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmid-westlyricists.com%2Fforum%2FThemes%2FSMFGenerationRed%2Fimages%2Ftop_left.gif&hash=4ec2b72a648d1da8aaca937336ed29b396839540)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmid-westlyricists.com%2Fforum%2FThemes%2FSMFGenerationRed%2Fimages%2Ftop.gif&hash=f3cfb8197aed2d28a8f695b8a9a93abfbc941ec5)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmid-westlyricists.com%2Fforum%2FThemes%2FSMFGenerationRed%2Fimages%2Ftop_right.gif&hash=9625c44a8d57ad557274dda822992f3c7180e1d4)
It looks ugly as hell like it is now.
Quote from: Stunt on February 16, 2006, 06:14:08 PM
Quote from: Madley on February 16, 2006, 03:44:42 PM
Quote from: Stunt on February 16, 2006, 03:17:54 PM
Were do I put the code to add the shoutbox right under the navigation? ( Forum | Help | Search | Prifle| My Messages | Calendar | Members | Logout )
Also, if you want they to see shoutbox only in homepage you can put it in boardindex.template.php. Put it after:
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
8)
That put it at the very top of the board :(
Are you sure? If you put it in Boardindex.template.php after the call at main function, the shout appear just above the menu....
Quote from: ufuk.exe on February 16, 2006, 10:04:11 AM
I think that's normal..
It is not iFrame, it is within the page, and don't think it uses ajax..
so it will reload the page? Or am I wrong..
so how about disabling HTML??
I'm pretty sure it won't reload the entire page. Its like making a post and the page reloads fully and goes to the top of the page.... or am I confusing this with chat ??
Hi,
Yes, you are confusing this with Chat; this is not chat. It does reload the whole page, but you could place the shoutbox into an iframe. There was a post about this a few pages back. I too tried this some time ago, but I couldn't get it to work the I wanted it to. I can't remember what the problem was now, it was probably me trying to be too clever, and failing miserably.
An iframe should work. I hope that the shoutbox is adapted some day so that it it doesn't refresh the whole screen.
Edit: typos
iFrame, the contents of iframe should be according to 'HTML' option as written by the auther, pls remember that..
also iFrame layout will be messed up on different resolutoion users, and their window sizes..
because it won't resize posts/chatbox dynamically.
Is there a way to shorten the height of the shoutbox?
Yes, you will need to use vertical scrolling with the iframe option, otherwise you can expect the height of the shoutbox to vary with content. Although I have come across code that will supposedly dynamically vary the height of the iframe, I could not get any of them to work properly some 12 months ago when I needed it for something else.
Is there an example? I've tried plugging it in to an iFrame and I'm not sure how to place it in the iframe.
your iframe could be shoutbox_frame.php
and include ONLY the code
if (function_exists('smfshout'))
smfshout();
in it.
i don;t know if this would work or not.. getting the function...
So in this shoutbox the entire page will reload? How come shoutboxes of vBulletin finds a way to make ONLY the shoutbox part reload?
http://misticriver.net has a shoutbox that works without reloading the full page, only the shoutbox PORTION of it.
Is there anyway for this to be done with SMF shoutbox?? Will putting in an iFrame acheive this effect of ONLY loading the shoutbox?
Putting the shoutbox in an iframe should work. I think someone posted about this a few pages back.
Would Ultimate Shoutbox be use on 1.0.6?
Why dont you just put a scroll bar so that we can scroll down and see all the previous shouts? It's much better than auto-scroll using javascript.
I tried putting shoutbox in an iFrame but everytime a shout is submitted INSIDE The iFrame my full site reloads not just the shoutbox.
Can someone tell me a step by step example of what files to create and what to put in them to make my shoutbox be in an iFrame FOR THE SOLO PURPOSE of having to NOT reload the full page each time the shoutbox is reloaded. Something like AUTO-REFRESH JUST teh shoutbox portion but still be visible in BoardIndex.template.php ...
I tried searching a lot, past 1 hour actually and I still am not sure how to achieve this... I'm a bit poor at php/iframe thingy.
You will have SSI to display the shoutbox on a blank page. You will then need to call this page to appear within your iframe within your forum. (Maybe there is some other way, but that is what I did).
I had some problems, but I can't, for the life of me, remember what they were when I tried this. I did try adding a refresh button, so my problems may have been related to that.
I want to show the shouts as an rss-feed.
Is that possible?
Would Ultimate Shoutbox be use on 1.0.6?
I've just tried this out on a pristine 1.0.6 board I've just installed. There is a problem.
./Sources/ModSettings.php Failure
Grudge seems to be busy with other things at the moment. I will have a look at it over the next day or so, but I am not a coder. It might just be a typo. :-\
Edit: I've just realised that it is not listed to work with 1.0.6. Still, it is working on my 1.0.6 forum, so I guess you could install 1.0.5, add the shoutbox, and then upgrade to 1.0.6 (assuming there is no error with mod package). - I'll still try to look at it.
I have the answer, I just don't have the the solution!
You need to add "1.0.6" to line 9 in "package-info.xml". Unfortunately, I think the install must be run from "shout_v1.33.tar.gz", and I cannot create this type of zip file.
Because version 1.0.6 is not listed in package-info.xml, the wrong install file is run instead. This should be really east yo fix, but I cannot do it. There are two other ways of going about this.
Install the mod anyway, and manually edit "modsettings.php" afterwards, using the code from "shoutbox_v1.33o.mod", and not "shoutbox_v1.33.mod".
<edit file>
$sourcedir/ModSettings.php
</edit file>
<search for>
'karma' => 'ModifyKarmaSettings',
</search for>
<add after>
'shout' => 'ModifyShoutboxSettings',
</add after>
<search for>
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
</search for>
<add after>
'shout' => array(
'title' => $txt['shoutbox_0'],
'href' => $scripturl . '?action=featuresettings;sa=shout;sesc=' . $context['session_id'],
),
</add after>
The easier way, as I said before, is to install this to 1.0.5 (if you have upgraded to 1.0.6, uninstall the upgrade), install the shoutbox (this should install flawlessly), and then reapply the upgrade to 1.0.6.
I'm sending a PM to Grudge asking that he adds "1.0.6" to the list in package-info.xml.
If you do decide to do this yourself, be sure to make a backup first!
Edit: You can forget all that I wrote above, just uninstall (if you forced the install), delete the package, and download the new mod package Grudge has uploaded.
Col, done.
Quote from: Col on February 19, 2006, 10:48:54 AM
You will have SSI to display the shoutbox on a blank page. You will then need to call this page to appear within your iframe within your forum. (Maybe there is some other way, but that is what I did).
I had some problems, but I can't, for the life of me, remember what they were when I tried this. I did try adding a refresh button, so my problems may have been related to that.
OK I finally got this.
http://toonsandcomics.com
But the shoutbox is not using my THEME's style sheet.. I tried putting a "link ref" tag inside the shout.template.php and it did not work.
I have MOVED the shoutbox template from Default directory to my Theme's directory. The javascript file is still left in default directory because $[default_theme_url] is used in the template ...
{EDIT) OK I got the theme to work.
Now how do I make the shoutbox auto-refresh?
I get some errors with the 1.33 version :
https://sitessl/forum/index.php?action=shout_archive
8: Undefined index: url_direct
File: ... /Themes/default/shout.template.php (eval?)
Line: 25
or
Line: 8
Any idea of what is going wrong ?
ps; What's new in 1.34 ?
In "features", where I should get the SB settings, i get this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg395.imageshack.us%2Fimg395%2F1302%2Fscreen3dt.th.jpg&hash=b2cb2d920cbedaae3bce85065f7c1d04bd8c5352) (http://img395.imageshack.us/my.php?image=screen3dt.jpg)
Quote from: Joekill on February 21, 2006, 01:11:38 PM
In "features", where I should get the SB settings, i get this:
It's a language problem. Make sure your forum language is English, so you'll see the correct strings.. :)
Quote from: keltiek on February 20, 2006, 06:00:35 AM
I get some errors with the 1.33 version :
https://sitessl/forum/index.php?action=shout_archive
8: Undefined index: url_direct
File: ... /Themes/default/shout.template.php (eval?)
Line: 25
or
Line: 8
Any idea of what is going wrong ?
ps; What's new in 1.34 ?
Nothing new, as such. The wrong file was being executed (the one for SMF 1.1) if you were running SMF 1.0.6. Grudge just added 1.0.6 to the list of versions that should use the other file. If you are trying to add SB1.33 to a 1.0.6 forum, get SB1.34 instead.
Thanks for this mod! I'm using version 1.34 I was wondering if there were a way to lower the fontsize of the shouts in the shoutbox? I was looking through the shout.template.php and couldn't figure out how to do it.
Any help please :)
Sure there is flipkid,
Have look at an old post of mine: http://www.simplemachines.org/community/index.php?topic=8415.msg450060#msg450060
Using CSS is a much better way to go about things, if you are not doing so already. - I'm a recent convert! ;D
If I was doing this, I'd simply add . . .
font-size: 8pt;
. . . somewhere in the . . .
#shoutbox {
padding: 0px 2px 2px 2px;
border: solid #828181;
border-width: 1px;
}
. . . block. Obviously, you can make it any size you like, and use px, em, or whatever you like instead of "pt".
Is there anyway to make it automatically refresh other than using meta refresh?
Quote from: Madley on February 21, 2006, 02:24:25 PM
Quote from: Joekill on February 21, 2006, 01:11:38 PM
In "features", where I should get the SB settings, i get this:
It's a language problem. Make sure your forum language is English, so you'll see the correct strings.. :)
thx, I did it, but I'm getting this now:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg161.imageshack.us%2Fimg161%2F5582%2Fshout19sb.jpg&hash=32832f83258bf0fcc510b62d97f855536e2f23c4) (http://imageshack.us)
and when i post in it:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg161.imageshack.us%2Fimg161%2F1344%2Fshout23tr.jpg&hash=6f2c23c2b3020161d1dfc42b9b4c681abde13057) (http://imageshack.us)
Are you sure you select English language? The error message is not in english.... ???
You are still using dutch language, select english in your profile or edit the modifications.dutch.php and add the additions that where places in modifications.english.php
Hello,
How can I align the shoutbox to the left?
Take a look: http://www.nintendogeeks.globalfree.net/forum/
Thanks
Edit shout.template.php in your theme.
Find:
<div id="shout_', $shout['id'], '"><div class="smalltext">';
(around line 303)
Replace with:
<div id="shout_', $shout['id'], '" align="left"><div class="smalltext">';
That should do it
I dont have that file :o
Grudge do you intend to add AJAX support to this shoutbox because that would be just amazing?
Quote from: tL0z on February 26, 2006, 04:51:38 AM
I dont have that file :o
Yes you do. It was installed when you installed the shoutbox. ;)
Copy it from the default theme to your own theme
I've found it on the default theme folder :)
Do I need to copy it to my theme's folder?
I don't find that code line ::) I only have 301 lines..
Hi,
You shouldn't need to copy it, but it can't hurt. That way, if you mess it up, youi still have the original. Mind you, it would be easy to reinstall. Either way should work, because if the file is not in your theme, the forum will use the file from the default.
Could you post the file here?
I've sent you the code by pm ;)
I really need some help, I don't have time to learn the SMF template system but I've been fooling around and finally recalled enough common web sense to be able to put it under the forum, but I was wondering how I would put it as part of the info center thingy.
Here's my forum:http://avhsmath.us.to/index.php
Webrunner, its working perfectly. Thanks man ;)
I'm also installing the shoutbox in a forum using the template Aquamania Greenblue 02. Can I use the same code?
Yep
Awsome shoutbox, For my liking I left justified the the Shouts then put it in a table
//show the shout box
if (function_exists('smfshout'))
{
echo '<br />
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
', $txt['shoutbox_0'], '
</div>
<table border="4" width="100%" cellspacing="0" cellpadding="0" class="bordercolor">
<td class="windowbg2" width="80%">
<span class="middletext">
',smfshout(), '
</span>
</td>
</table>
</div>';
}
I nestled this little peice of code in the BoardIndex.template.php in the Default Theme right before the Info Center. It creates a nice title Bar and border for the shout box.
I don't have the original code but here is the section with all the changes in the shout.template.php lines 163 to 206
echo '
<left>';
// 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'], $context['url_direct'], '"><img src="', $settings['images_url'], '/buttons/delete.gif" border="0" alt="X" /></a>';
echo '
', $shout['time'], ' ', $shout['link'], ' -', $shout['message'] . $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>
</left>';
echo '
<center>
<p><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a></p>
</center>';
}
It works very well for my uses .Thanks For The Great Shoutbox.
i installed this but in feature settings all the tabs and stuff have no text so i have no clue what they are. Everything on my forum is in english and we use no other language.
blur,
Copy the strings (I think all those with txt[something]="abcd" from the ".xml" file) and paste it into Modifications.english.php on your Theme/language folder.
what xml file? i see no file like that in the zip (shout v. 1.34)
I am trying to create a button on my forum that when you click on the "shout" button, it will bring up it's own page (like the way calendar, profile, admin, etc... does). In the index.template.php file, I have the following code for the button....
Quote
// the [shout] button
echo ($current_action=='shout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='shout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=shout">' , 'Shout' , '</a>
</td>' , $current_action=='shout' ? '<td class="maintab_active_last"> </td>' : '';
When I click on it, it gives a
"Whoops, looks like you forgot to fill in one of the Shoutbox fields. Please try again." error.
What part of this code do I need to change to have the shout mod open in it's own window?
EDIT: BTW - I'm running SMF 1.1rc2
Quote from: blur on March 02, 2006, 04:08:57 PM
what xml file? i see no file like that in the zip (shout v. 1.34)
Try the ".mod" file then.
hello all.I m new and i have a forum http://grforums.com/sat/index.php
I try to have shoutbox .... install ultimate 1.34 but not apear.
I don't know codes and I FIGHT for days now.I m ungry
Can anyone who knows to make shoutbox apear to my forum to give him the admin codes and fix it?
congratulations for your job
Quote from: willy888 on March 03, 2006, 10:10:48 AM
hello all.I m new and i have a forum http://grforums.com/sat/index.php
I try to have shoutbox .... install ultimate 1.34 but not apear.
I don't know codes and I FIGHT for days now.I m ungry
Can anyone who knows to make shoutbox apear to my forum to give him the admin codes and fix it?
congratulations for your job
Have you modify the index.template.php file to make it appear? ???
Look here,
http://mods.simplemachines.org/index.php?mod=22
and read the text. You'll find the istructions to make shoutbox appear...
thats the broblem.
I dont know anything about that.I Ttry but 2 days know waste my time.
I try to paste it in my theme zip and reinstall it.....but where to paste at the end or start of index.template.php......nothing happend.
And once you have read Grudge's instructions, you will find examples through the thread. This is how I've done mine: http://www.simplemachines.org/community/index.php?topic=8415.msg450060#msg450060
ΥΕs where to place these codes????
in index.template.php in the zip file of my theme and then install my theme again???
the forum is given to me for free and Im admin.
only control admin have.
I cant find where is this Themes/default/index.template.php
the only index.template.php I have is in the zip file of my theme.
can I make shoutbox apear?
thanks
You've to look in you Theme directory... For example:
www.yourdomain.com/Themes/default/index.template.php
then open that file and place the shoutbox code where you want.
Yes I try this but I have blank page...nothing just white
the only index.template.php is in my theme zip which I have install (ilios)
Is there any other shoutbox for smf1.06 to simply install without change the codes???
I wonder too, why the installation dont put the shoutbox in a nice place in index of forum, from that point everyone knows what to do can change code to meet his needs. :-\
Quote from: willy888 on March 03, 2006, 05:40:31 PM
Is there any other shoutbox for smf1.06 to simply install without change the codes???
Quote from: mforum on March 04, 2006, 03:27:55 AM
I wonder too, why the installation dont put the shoutbox in a nice place in index of forum, from that point everyone knows what to do can change code to meet his needs. :-\
The reason the shoutbox cannot just simply install this is because unless we all use the default theme, and then that must unmodified, the shoutbox is unlikely to install correctly, causing an error, and breaking your forum, so this is not included with installer. - I know it's a steep learning curve, I had to go through it (I had no php knowledge, or any scripting knowledge before installing SMF, and still have no scripting knowledge), I had had to scrape around for instructions for things, but they do exist, at least for the shoutbox.
If you are not willing to even try, what's the point? - You will always need someone to do everything for you. I've been asked twice in the past two days if I will do this if given the admin password. "No", I won't. I am strictly amateur, and don't want to be responsibility of messing up someone's site. Also, if you are going to give your admin password to someone you don't know, at least make sure it's a SMF Team member, and not someone like me, an ordinary member, winging it; or worse, someone who would think it funny to mess up your site, perhaps adding innappropriate material.
Read Grudges first post, and experiment with a test theme. If you don't know how to generate new themes, there are instructions on this forum somewhere. It's really easy, you do it from your forum admin. If you know basic HTML, read Grudges instructions, and find how to generate a new theme by copying and existing theme (really easy), then there is no reason why you cannot do this.
I'm reading back through the above, and I fully expect that you will still not try. Post you forum template file here, and I will see if I can work out the code. Tell me where the shout box should appear, and I will have a look. I make no guarantees, and will not spend an age looking at it, as you don't seem willing to spend any time on it yourself.
is there a way to put the shoutbox elsewhere? THanks
Ok Col, i think you are a litle bit astringent with us the newbies.. :)
QuoteThe reason the shoutbox cannot just simply install this is because unless we all use the default theme, and then that must unmodified, the shoutbox is unlikely to install correctly, causing an error, and breaking your forum, so this is not included with installer.
All mods are made for default theme, am i wrong ?
QuoteIf you are not willing to even try, what's the point? - You will always need someone to do everything for you.
Personally i use the classic theme, it was there when i installed smf, unfortunately there is no support for it on modifications (include only default theme), thats why i had to modify myself several mods i use on my forum, same with lanquage i use exept english.For accomplishing that had to spent lots of hours searching this forum and asking for answers.
I agree with you, there is no way everything can be done by a click.
I tryed on my local test forum installing shoutbox but just couldnt do it :( everything was messing up...
I am just asking for a litle help here, what lines of code and where i must put them so it will fit on classic theme nicely under News (center of index)...
Thanks
Quote from: mforum on March 05, 2006, 05:24:15 AM
Ok Col, i think you are a litle bit astringent with us the newbies.. :)
Hi,
Yeah, maybe, but it doesn't help when you receive PMs, the contents of which, should go to the thread.
QuoteAll mods are made for default theme, am i wrong ?
You are neither wrong, nor right. The fact is, most modifications don't touch the template file. Since the index.template is the file that nearly everyone makes some adjustments to, you can pretty much expect errors with any mod that attempts to modify that file. Grudge sensibly decided to not try to modify that file, but instead gave the php call, and some instructions. This means that we can make fit out theme, and also place it where we like, size as we like, and style as we like. There is no way an installer could could handle this, not without designing a portal to to go with the mod, and a portal that would work with all themes. - You understand the problem!
I am just trying to point out, that the way to illicit help, is not to beg others to "just do it for me". My skill level is low, so I am not about to suggest that members should just read up, and sort it out themselves. They should, however, be willing to try, and when they fail, ask more questions. If things become hopeless, you can usually expect that someone will ask you to post your file, so that we can get to the bottom of it. I also wished to point out how foolhardy it is to offer you admin password about over the PM system.
I was blunt, yes, but I don't think I was wrong.
Basicaly i dont disagree with you :)
QuoteI also wished to point out how foolhardy it is to offer you admin password about over the PM system.
You ve got a strong point there.Welldone to point that out...
As far as it concers me never have send a pm for help to noone, for any mod, dont want people think we are argueing about that :)
Quote from: aku on March 04, 2006, 03:56:30 PM
is there a way to put the shoutbox elsewhere? THanks
Hi,
Yes, if you look at the very first post of this thread, Grudge attached some instructions of how to add the shoutbox to your template. With a bit of HTML knowledge, you should be able place the shoutbox wherever you wish. People have posted what they have done too throughout this thread. I posted a link a few posts ago to the post where I described how I did it.
Why doesnt SMF word censor work with Shoutbox? Do you have an hack do it so or an alternative?
Hello guys..
I am using the SMFone theme..
I wud like to install the shout box to this theme..
please tell me how to do so..
also guys ..being a newbie..i wud like to know how i'd be able to modify a theme online...
that is gain access to folders..etc and change images..etc
coz each time i make a change i am having to upload all the files of the theme again.
please be patient with me...
thanks..
I am in the middle of bridging smf with joomla 1.1 rc2 and 1.0.7
Today I found a module for the shoutbox - mod_smf_ShoutBox which I have set up instead of using it directly on the forum index.
In joomla I have it set to show on 'all pages' and for registered users.
But the weird thing is that it IS showing on all pages EXCEPT when you are in the forum. Then all it shows is title in the module and the rest of the column is blank. there are other modules that should show underneath but none of them are showing at all, when in the forum. Its like the shoutbox is stopping them or something.
When I had it installed in just the forum index, I had it running down the right hand side, and the code seemed to take up the whole column even though the shoutbox was defined in options as being 400px long.
Do you know how to fix this as I think maybe this is the same problem, maybe?
Its a pity as the module great but I really want users to see it when in the forum too
when i try to shout i get this
Fatal error: Cannot redeclare smfshout() (previously declared in /home/theghett/public_html/forums/Sources/Subs.php:1888) in /home/theghett/public_html/forums/Sources/Subs.php on line 1895
help
I'm getting hundreds of pages of Shoutbox errors in the Forum logs. They're all exactly the same:
http://www.scoundrelsforum.com/index.php
8: Undefined index:
File: /hsphere/local/home/whithayd/scoundrelsforum.com/Themes/default/shout.template.php (eval?)
Line: 325
I can't seem to find what's wrong. The shout template file doesn't go up that high, so it must be called from the index.php file. Line 325 says " return 'WrapAction';"
Any ideas?
I'm using SMF 1.1 RC2 and Ultimte Shoutbox 1.33
It's the best thing to happen to our forum, and we really don't want to have to go back.
Ok - so I broke the rules. If it works don't upgrade right? I missed that memo. So this is what happened... I upgraded to Ultimate Shoutbox 1.33 and now I can't post a shout or View All. :(
Here is what I am seeing...
Shout Error Message:
Whoops, looks like you forgot to fill in one of the Shoutbox fields. Please try again.
View All Error Message:
2: call_user_func(Shout_Archive): First argument is expected to be a valid callback
File: /home/XXXXXXX/public_html/forums/index.php
Line: 131
Error Log:
2: call_user_func(Shout_Archive): First argument is expected to be a valid callback
File: /home/XXXXXXX/public_html/forums/index.php
Line: 131
I am running - SMF 1.0.6 and Mambo 4.5.3 and Ultimate Shoutbox 1.33
HELP!!! All my users loved the Shoutbox. I need it running. Thanks in advance!!!
I know I have this installed correctly, but I have NO IDEA WHERE to put it on my page. I know where I WANT it, but it never shows up there. Here is my index.template.php file. I would like the shout box to appear after the search box. Sorry it's long! Any help would be greatly appreciated!
<?php
// Version: 1.0; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
}
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js"></script>
<script language="JavaScript" type="text/javascript"><!--
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
// --></script>
<title>', $context['page_title'], '</title>';
// This is here because Gecko browsers properly support white-space....
if ($context['browser']['is_gecko'])
echo '
<style type="text/css"><!--
.code
{
white-space: pre;
}
--></style>';
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="' . $scripturl . '?action=;topic=' . $context['current_topic'] . '.0;prev_next=prev" />
<link rel="next" href="' . $scripturl . '?action=;topic=' . $context['current_topic'] . '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?action=;board=' . $context['current_board'] . '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!--
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
document.getElementById("upshrinkTemp").src = "', $scripturl, '?action=jsoption;var=collapse_header;val=" + (mode ? 1 : 0) + ";sesc=', $context['session_id'], ';" + (new Date().getTime());';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
current_header = mode;
}
// --></script>
</head>
<body>';
// For some STRANGE reason, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
echo '
<div style="background-color: white; border-bottom: 1px solid gray; padding: 12px 30px 4px 30px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">';
// The logo and the three info boxes
echo '
<div class="tborder">
<table border="0" width="100%" cellspacing="1" cellpadding="4" bgcolor="#FFFFFF" id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<tr>
<td valign="top" bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="60" valign="top" align="right"><img src="', $settings['images_url'], '/' , $context['user']['language'] , '/userinfo.gif" alt="" /></td>
<td>
<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr><td class="chattopleft"><img src="', $settings['images_url'], '/layout/spacer.gif" alt="" width="32" height="9" /></td><td class="chattop" width="100%"><img src="', $settings['images_url'], '/layout/spacer.gif" alt="" height="9" /></td><td class="chattopright"><img src="', $settings['images_url'], '/layout/spacer.gif" alt="" width="32" height="9" /></td></tr><tr><td class="chatleft"><img src="', $settings['images_url'], '/layout/spacer.gif" alt="" width="32" height="1" /></td><td class="chatinside" width="100%">';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt[247], ' <b>', $context['user']['name'], '</b>';
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>', $txt[616], '</b>';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=regcenter">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'];
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
<br />', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'];
}
echo '<br />
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
', $context['current_time'];
}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
', $txt['welcome_guest'], '<br />
', $context['current_time'], '<br />
<form action="', $scripturl, '?action=login2" method="post" style="margin: 3px 1ex 1px 0; text-align:right;">
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="302400">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
', $txt['smf52'], '
</form>';
}
echo '
</td><td class="chatright"><img src="', $settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="1" /></td></tr><tr><td class="chatspeakleft"><img src="', $settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="23" /></td><td class="chatbottom" width="100%"><img src="', $settings['images_url'], '/layout/spacer.gif" alt="" height="23" /></td><td class="chatbottomright"><img src="', $settings['images_url'], '/layout/spacer.gif" alt="" width="27" height="23" /></td></tr></table>
</td>
</tr>
<tr>
';
if (!empty($context['user']['avatar']))
echo ' <td valign="top" align="right">', $context['user']['avatar']['image'], '</td>';
else
echo ' <td valign="top" align="right"><img src="', $settings['images_url'], '/noavatar.gif" alt="?" width="65" height="65" /></td>';
echo ' <td><img src="', $settings['images_url'], '/layout/spacer.gif" alt="" width="50" height="1" /></td>
</tr>
</table>
</td>
<td width="225" style="padding-left: 5px;" valign="top" bgcolor="#FFFFFF">';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<div class="headertitles" style="width: 220;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 220; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif); margin-bottom: 8px;">
<img src="', $settings['images_url'], '/' , $context['user']['language'] , '/newsbox.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 50px; overflow: auto; padding: 5px;" class="smalltext">', $context['random_news_line'], '</div>
</div>';
echo '
<div class="headertitles" style="width: 220;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 220; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/' , $context['user']['language'] , '/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 35px; padding: 5px;" class="smalltext">
<b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['memberCount'], '</b> ', $txt[19], '<br />
', $txt[656], ': <b> <a href="', $scripturl , '?action=profile;u=' , $modSettings['latestMember'] , '">' , $modSettings['latestRealName'] , '</a></b>
</div>
</div>
</td>
</tr>
<tr><td colspan="2" class="windowbg">
<table width="100%"><tr><td>
<form action="', $scripturl, '?action=search2" method="post" style="margin: 0; margin-top: 7px;">
<b>', $txt[182], ': </b><input type="text" name="search" value="" style="width: 190px;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />
<a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
<input type="hidden" name="advanced" value="0" />';
// 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></tr></table>
</td></tr>
</table></div>';
// Show the menu here, according to the menu sub template.
echo ' <br /><div class="tborder">
<table border="0" width="100%" cellspacing="1" cellpadding="4">
<tr>
<td align="center" class="catbg" width="100%">
<a href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 2ex;" />', template_menu() , '
</td>
</tr>
</table>
</div>';
echo '
</div>';
// 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 style="background-color: #FFFFFF; padding: 1ex 30px 2ex 30px;">';
}
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 style="background-color: white; border-top: 1px solid gray; 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 width="28%" valign="middle" align="right">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
<br />© 2005 Chat Bubble theme by <a href="mailto:[email protected]">spaceant</a>.
</td>
<td width="28%" valign="middle" align="left">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';
// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';
echo '
</div>';
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if ($context['browser']['is_ie'] && !$context['browser']['is_ie4'] || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!--';
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}';
else
{
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}
if (window_oldOnload)
window_oldOnload();
}';
}
echo '
// --></script>';
}
echo '
</body>
</html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;
// Folder style or inline? Inline has a smaller font.
echo '<span class="nav"', $settings['linktree_inline'] ? ' style="font-size: smaller;"' : '', '>';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show the | | |-[] Folders.
if (!$settings['linktree_inline'])
{
if ($link_num > 0)
echo str_repeat('<img src="' . $settings['images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '<img src="' . $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' . $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" /> ';
}
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo $settings['linktree_inline'] ? ' | ' : '<br />';
}
echo '</span>';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 2px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" />' : $txt[2]), '</a>', $context['menu_separator'];
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" />' : $txt[97]), '</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" />' : $txt[108]), '</a>';
}
?>
Quote from: amcleod on March 22, 2006, 12:30:58 AM
Ok - so I broke the rules. If it works don't upgrade right? I missed that memo. So this is what happened... I upgraded to Ultimate Shoutbox 1.33 and now I can't post a shout or View All. :(
Here is what I am seeing...
Shout Error Message:
Whoops, looks like you forgot to fill in one of the Shoutbox fields. Please try again.
View All Error Message:
2: call_user_func(Shout_Archive): First argument is expected to be a valid callback
File: /home/XXXXXXX/public_html/forums/index.php
Line: 131
Error Log:
2: call_user_func(Shout_Archive): First argument is expected to be a valid callback
File: /home/XXXXXXX/public_html/forums/index.php
Line: 131
I am running - SMF 1.0.6 and Mambo 4.5.3 and Ultimate Shoutbox 1.33
HELP!!! All my users loved the Shoutbox. I need it running. Thanks in advance!!!
Got it fixed. Uninstalled SMF and reinstalled it and re-added the shoutbox. Things work fine now.
is there any way to get the shoutbox with a scrollbar that contains all the shouts so i dont have to have the thing auto scroll and it doesnt make it taller for new shouts? like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fshow.imagehosting.us%2Fshow%2F1258141%2F0%2Fnouser_1258%2FT0_-1_1258141.jpg&hash=225ae34b5fa6958514a431507f92ceaf5343b7c5)
I've installed my SB (http://hikki-haven.ateliergal.lovely-designs.com/index.php), thanks to JesterDesigns' code :)
How do I modify my SB's colors etc? ???
Ok, I am running 1.0.6 of SMF. Also, I downloaded 1.34 and installed it since it's compatible.
When I go to install it, it shows up as 1.33 in the package Manager.
neways, when I try to post from the shout_archive it just redirects me to the forum index (without posting the message) and I get the following errors:
http://www.sscont.x10hosting.com/xfactor/index.php?action=shout_archive
Apply Filter: Only show the errors with the same message
8: Undefined index: url_direct
File: /home/stingah/public_html/xfactor/Themes/default/shout.template.php (eval?)
Line: 8
http://www.sscont.x10hosting.com/xfactor/index.php?action=shout_archive
Apply Filter: Only show the errors with the same message
8: Undefined index: url_direct
File: /home/stingah/public_html/xfactor/Themes/default/shout.template.php (eval?)
Line: 25
If I try to post via a php page using ssi, it posts fine with no errors whatsoever. Any ideas?
Sorry to be such a Noob on this but I want to put the shoutbox on my main webpage (not at the side of the the forum). The main page is written in HTML with 1 inline frames to link to the contents, forum board etc but I would like to create a seperate inline frame within the sidemenu area and display the shoutbox.
My knowledge of php is minimal, is it possible to do this easily I tried the bit of code you gave to put the shout box within the HTML but it didnt work, probably because the html doesnt recognise the php element of the code.
';
if (function_exists('smfshout'))
smfshout();
echo '
Any help on this would be very much appreciated.
I've managed to get the shoutbox on my main page displaying the messages from the forum.
To do this I used the following code
shoutout.php
<?php
require(dirname(__FILE__) . '/SSI.php');
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> << :: SMF SSI.php 1.0 :: >> </title>';
echo ' <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/style.css" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js"></script>';
if ($context['browser']['needs_size_fix'])
echo '
<style type="text/css">
<!--
@import(', $settings['default_theme_url'], '/fonts-compat.css);
-->
</style>';
echo '</head><body>';
ssi_shout();
echo '</body></html>';
?>
The code I entered into my main index.html page as follows
<td height="315">
<iframe
name="shoutbox"
SRC="http://www.mysite.co.uk/forum/shoutout.php"
WIDTH=150 HEIGHT=500
ALIGN=CENTRE
FRAMEBORDER=0
>
</iframe>
</td>
I now have two problems
- The links displayed within the shoutbox frame change the content of the shoutbox frame i would like to be able to redirect the links to change the contents of another frame called contents i.e. make the href target="contents"
I've managed to do this for the view all link by editing the shout_template.php, but I don't seem to be able to do it for the authors link within each shout message.
- Firefox 1.5.0.1 refuses to scroll the messages, the shoutbox works fine with explorer 6
Grudge: I have installed shoutbox in my site, and it works perfectly fine.
But, there are some users who can "mimic" or "clone" displaynames when they shout in the shoutbox.
When you click on the user, it displays an error in the view profile, since the account doesn't really exist.
Hope you can help me on this.
Thanks.
Well, i got bored, so I decided to add smilies to the shoutbox form, so you can click on the smilie image to add the code to the message, so far, it works, but im going to change it so that the smilies will open in a popup. If you want to check my progress go to - www.jester-designs.co.uk (http://www.jester-designs.co.uk)
Andy
Quote from: perplexed on March 14, 2006, 07:34:53 AM
I am in the middle of bridging smf with joomla 1.1 rc2 and 1.0.7
Today I found a module for the shoutbox - mod_smf_ShoutBox which I have set up instead of using it directly on the forum index.
In joomla I have it set to show on 'all pages' and for registered users.
But the weird thing is that it IS showing on all pages EXCEPT when you are in the forum. Then all it shows is title in the module and the rest of the column is blank. there are other modules that should show underneath but none of them are showing at all, when in the forum. Its like the shoutbox is stopping them or something.
When I had it installed in just the forum index, I had it running down the right hand side, and the code seemed to take up the whole column even though the shoutbox was defined in options as being 400px long.
Do you know how to fix this as I think maybe this is the same problem, maybe?
Its a pity as the module great but I really want users to see it when in the forum too
Is there someone who can help me with this?
OR
If I give up on trying to have it this way, how can I get the shoutbox back on the forum?
Everytime I try to add the code it ends up in the wrong place
Here is the code I have :
echo '</td>';
if (!$context['user']['is_guest']){
echo '
<td align="center" style="horizonal-align: top; border: 1px solid #ffdd88; padding: 2px;">';
if (function_exists('smfshout'))
smfshout();
echo '
</td>';}
echo '
</tr></table>';
this was the code I had on my old site and it displayed the shoutbox down the right side or along the bottom depending on where I put it.
However when I try it on my new site it still displays down the right side regardless of where I put the code.
If I delete <td align="center" style="horizonal-align: top; border: 1px solid #ffdd88; padding: 2px;">'; or otherwise change it then I just get parse errors
Where I would like the shoutbox to appear is just above the 'powered by smf' logo ie below the info centre. I have it in this position in my testforum and it works but it wont work in my normal forum ???
Can anyone assist me please?
many thanks
I'm no expert but I'd find the function template_main_below() in your index.template.php file and just paste the ',smfshout();,' function call into it, see the example below:-
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</td>
</tr>
</table>
<table align="center" width="100%">
<tr>
<td height="25" class="titlebg" align="center">
Shout Box
</td>
<tr>
<tr>
<td valign="top" bgcolor="#ffffff" width="150" class="tborder" style="border-width: 0 0 1px 0; font-size: smaller;">
', smfshout(), '
</td>
</tr>
</table>
</td>
</tr>
</table>
';
Hope that helps !
Quote from: 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
yay! thanks so much
I've been struggling with this
same error of sting
Quotehttp://www.sscont.x10hosting.com/xfactor/index.php?action=shout_archive
8: Undefined index: url_direct
File: /home/stingah/public_html/xfactor/Themes/default/shout.template.php (eval?)
Line: 8
http://www.sscont.x10hosting.com/xfactor/index.php?action=shout_archive
8: Undefined index: url_direct
File: /home/stingah/public_html/xfactor/Themes/default/shout.template.php (eval?)
Line: 25
i have smf 1.1 rc2
some solution for solve it?
Line 8:
<form action="', $scripturl, '?action=delete_shout', $context['url_direct'], '" method="post">Line 25:
<a href="', $scripturl, '?action=delete_shout;id=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
I just installed last night as per my post - two posts up - and the shoutbox works fine
However, if I go in to view all to delete messages I get 404 error messages
Any idea whats going on?
thanks
Bodycount,
If you are willing to use php instead of HTML file extensions, there is much easier way of doing this.
At the top of each HTML file, add the following:
<?php
require("/home/XXXXX/public_html/community/SSI.php");
?>
You obviously need to adjust the above to your server path.
Then, in your page, add this where you would like the shoutbox to appear:
<div id="shouthead">Shoutbox</div>
<div id="shoutbox" class="feed1"><?php ssi_shout(); ?></div>
Obviously, I added the shouthead ID to style the the shoutbox to match the forum's; and shoutbox ID is used mainly to control dimensions, padding etc. I found it useful to also add selectors for the font and line height.
You will then need to change the file extension to php. This will initially have an impact upon your page rankings, except maybe your home page, if you didn't include the "index.html" before, and just used YOURSITE.COM, as you should, anyway.
Obviously, if you are willing to change over to php file extentions, it's a far easier approach than using iframes, and all the potential problems they carry.
I have come across one problem though, and I'm unsure of the cause. I don't know if this is just a problem when going about it this way, or if it's a wider problem, but using the above results in the Shout button and input box not being displayed in anything but IE. I don't find this a problem as I have the shoutbox with the forum anyway. My intention with adding it to webpages is only to add some colour, and will probably remove the Shout button and input box from the SSI file anyway.
Hope this helps some of you.
I am getting the following errors in addition to my problem two posts up:
8: Undefined index: url_direct
File: /home/xxxx/public_html/forum/Themes/default/shout.template.php (shout_archive sub template - eval?)
Line: 25
8: Undefined index: url_direct
File: /home/xxxx/public_html/forum/Themes/default/shout.template.php (shout_archive sub template - eval?)
Line: 8
I am using joomla if that makes any difference
Thanks for that Col,
I've managed to work around the problem, I installed Tinyportal which now allows me to manage the menus, right & left columns & display frontpage articles from within the SMF rather than having to try and work SMF into my site.
This seems to be a much better solution at the moment than the one I was originally working on as it's much easier to update the information on the site.
Thanks again though for the advice.
Quote from: perplexed on April 09, 2006, 11:12:05 PM
Quote from: 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
yay! thanks so much
I've been struggling with this
No problem! ;)
Andy
Quote from: perplexed on April 16, 2006, 05:45:28 PM
I am getting the following errors in addition to my problem two posts up:
8: Undefined index: url_direct
File: /home/xxxx/public_html/forum/Themes/default/shout.template.php (shout_archive sub template - eval?)
Line: 25
8: Undefined index: url_direct
File: /home/xxxx/public_html/forum/Themes/default/shout.template.php (shout_archive sub template - eval?)
Line: 8
I am using joomla if that makes any difference
thanks for the help jesterdesigns but if you knew how to fix these recurring errors I'd really appreciate it?
fatal error in my smf board , i use the new version 7.1 and the link is www.lebwar.org/board , i cannot enter to the forum becouse i have a message like that
Fatal error: Cannot redeclare smfshout() (previously declared in /home/lebwar/public_html/board/Sources/Subs.php:2033) in /home/lebwar/public_html/board/Sources/Subs.php on line 2047
can anyone help me plz
did you get the error after adding the shoutbox code to your index.template.php? if so maybe you have to remove it again as you might have added it wrong?
Quote from: edi67 on April 10, 2006, 09:38:51 AM
same error of sting
Quotehttp://www.sscont.x10hosting.com/xfactor/index.php?action=shout_archive
8: Undefined index: url_direct
File: /home/stingah/public_html/xfactor/Themes/default/shout.template.php (eval?)
Line: 8
http://www.sscont.x10hosting.com/xfactor/index.php?action=shout_archive
8: Undefined index: url_direct
File: /home/stingah/public_html/xfactor/Themes/default/shout.template.php (eval?)
Line: 25
i have smf 1.1 rc2
some solution for solve it?
Line 8: <form action="', $scripturl, '?action=delete_shout', $context['url_direct'], '" method="post">
Line 25: <a href="', $scripturl, '?action=delete_shout;id=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
same error for me too :(
I have 1.0.7
Have made changes to mod so it installs to classic theme and to my forum lanquage, but i dont think has anything to do with the error...
i have put to shown on the BoardIndex.template.php of classic theme as the following
<?php
// Version: 1.0.1; BoardIndex
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
if (function_exists('smfshout')) smfshout();
forgot to mention that the error occurs when someone visits the shoutbox archive :(
Grudge seems to have died - can anyone else help sort out these errors we've all been having?
It would be such a shame to see this great mod go to waste...
I PM'd Grudge but it looks like he hasn't been about for ages...
Does anyone else have enough skillz to sort out this mess once and for all and make a new version for us all to use????
???
???
The fatal errors are caused by double declarations in modsettings.php and subs.php.
It should be obvious what to change if you follow what the errors say.
Someone should, however, make these changes to the next version, I'd have thought...
I'd do it myself if I had enough PHP knowledge - but I'm a true noob I'm afraid.
Another error I get now if I delete shouts:
An Error Has Occurred!
Your session timed out while posting. Please go back and try again.
Anyone know how to fix this one?
Cheers!!!
Quote from: Gearoi on April 20, 2006, 01:18:46 PM
The fatal errors are caused by double declarations in modsettings.php and subs.php.
It should be obvious what to change if you follow what the errors say.
Someone should, however, make these changes to the next version, I'd have thought...
I'd do it myself if I had enough PHP knowledge - but I'm a true noob I'm afraid.
Another error I get now if I delete shouts:
An Error Has Occurred!
Your session timed out while posting. Please go back and try again.
Anyone know how to fix this one?
Cheers!!!
the errors are not obvious to those who have no coding experience :)
I guess they are not. My point was not that it is obvious what the errors were, but rather that the error messages were useful, given, as you say, that someone has a bit of know-how about how to change PHP, which is a big given I suppose ;)
lol yeah but I for example, dont know what to change or what the error message actually means. Maybe one day, but not now, so I remain clueless what to do about it :)
But not alone since there are several people in this thread waiting for a solution to the same error messages *shrug*
*goes back to waiting*
Sorry perplexed I was referring to the problem raised by lebwar not your errors (which I don't understand either - sorry for not reading carefully before). For lebwar:
_________________________
Posted by: lebwar
Fatal error: Cannot redeclare smfshout() (previously declared in /home/lebwar/public_html/board/Sources/Subs.php:2033) in /home/lebwar/public_html/board/Sources/Subs.php on line 2047
If you have Dreamweaver to read the php code, that's a help as you can find the line numbers much easier. If not, you can use notepad/wordpad and do a find for the functions. The errors say that the procedure/function (whatever it is...) in defined twice (e.g. in line 2033 and line 2047) - so you will find the name of the procedure twice in the php document that is mentioned.
I'm assuming we can all use Smart FTP or something to get at the actual files, and that everyone knows you need to take them down, work on them then put them back on your server to get them to actually do anything... If not I'm not sure how you installed SMF in the first place... ;)
So you find the two instances of defining the function, and then you just delete one of them in the file, then save it and bung it back onto your server, over writing the original.
Grudge said to me this error might be caused by installing the mod twice.
Sorry Perplexed, I'm perplexed too ;)
lol hence the reason for my name
Installed the shoutbox on SMF 1.07 with no problems at all,
just took me some time to model it to my wishes :)
http://www.flyingpig.nl/forum/index.php
the only problem I had was that within 5 minutes of installing a spambot visited my site and my OINK box got spamed, Alright we are pigs but nevertheless... :P
So I i had to disable the guests shout which is a pity.
I just had installed the CAPTCHA (Code Verification) mod
http://www.simplemachines.org/community/index.php?topic=70807.0
so I thought I could make that work for the shoutbox guest posts as well.
I fiddled around a bit but all I could make happen was parse errors... :(
Does anyone ever tried to apply the CAPTCHA mod to the shoutbox?
or does anyone now how to?
I think with the rise of the spambots it would be a great feature on the shoutbox. :)
Hello,
Can anyone help me doing a button to hide and show the shoutbox?
Thanks
being a newby------
what is a shout box
I read that the installation instructions are allready been posted but ------
there are 63 pages of posts on this subject --------
where do I start-------
OK a survey please - who thinks that we should use use SMF 1.07 instead of SMF 1.1 RC2 to make the shoutbox work instead? ;)
Quote from: Garry on April 23, 2006, 06:15:50 PM
being a newby------
what is a shout box
I read that the installation instructions are allready been posted but ------
there are 63 pages of posts on this subject --------
where do I start-------
You havent seen a shoutbox? It is a box where you give shoutouts on your board, either members or guests, depending on how you set it up, can type in a 'shout' eg ' hey everyone, how are you?' and it is displayed in the shoutbox instantly. Shoutboxes can be configured to scroll or not scroll, change the # of shouts to display etc, and the box can be put in various places on your board. If you scroll through these pages you might see links to a few sites that have them. Then you can go look.
Well after many hours of playing with this i got it right in the end this is my code to show it at the right of the forum
index.tamplate.php
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '</td>
<td height="21" valign="top" bgcolor="black"></td></tr>
<tr>
<td valign="top" bgcolor="black" width="200">
<table bgcolor="#000000" cellpadding="1" cellspacing="0">
<tr>
<td>
<table width="100%" cellpadding="3" cellspacing="0">
<td class="catbg" align="center" colspan="2">"Shout Out Box"</td>
</tr>
<td class="windowbg" align="left" colspan="2"><span class="mediumtext">', smfshout(), '</span></td>
</table>
</td>
</tr>
</table>
</td>
</tr></table>';
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.maronge.com%2Fpic%2Fshout.jpg&hash=62414e60000efb33a5acce1b8b758dad2b51f5d7)
and it worked i did see though that the mod adds the same line of code in some files
so if This is not working for you you might have to open the mod it's self and go through all the files it modify's thats what i had to do.
P.S
Thank you for this we already have a shout out box on our site but it's the mkportal one and we use that as like a new's feed..lol so this hout out box comes in real handy and once you get your head round it all it's real easy to do what you what with it
If you want to see mine fully working go here
http://www.maronge.com/forum/index.php
you might need to signup but it's free and take less then a min
i dont know y i did this but it might come in handy one day..lol i added more for the admins to see so admins could post shout but make it look like some one else did it...hehehehe
so admin's see
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.maronge.com%2Fpic%2Fpic.jpg&hash=ba3bdf73d02a988e541701f2b2bde9bab1921202)
And normal members and mods see
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.maronge.com%2Fpic%2Fpic2.jpg&hash=df3f007abda7d170f08c05b9f948b49f1ab4aa9a)
were you see admin read this first!!
thats just a hyper link to a topic for admins
but im going to add javascript pop up for it ill have it done by tonight if you want the info and how i did this let me know.
Quote from: tL0z on April 23, 2006, 04:47:34 PM
Hello,
Can anyone help me doing a button to hide and show the shoutbox?
Thanks
help
Quote from: tL0z on April 24, 2006, 03:50:50 PM
Quote from: tL0z on April 23, 2006, 04:47:34 PM
Hello,
Can anyone help me doing a button to hide and show the shoutbox?
Thanks
help
I've just upgraded to 1.1. I had previously removed the upshrinker, but it is now there again. I am going to see if I can alter it to shrink the shoutbox instead. - No promises, but if I get it working, and I'll post the code here.
Where do you want the "hider" to work on your forum? I'm going to try and have it work at the right, under my header.
The forum is this one: http://www.nintendogeeks.net/forum/
Where do you think it's better? Top-left?
Unless I'm mistaken, there is no upshrinker, or hide button for the shoutbox on that forum.
Where you want the shoutbox is your choice. I think I might move mine to where the upshrinker is now. I find the upshrinker, as it stands, useless. I don't see the point of displaying your avatar there, and there is tittle other information. I've only just installed 1.1, so I have to check out the options, but maybe just slap the Shoutbox in the present upshrinker, remove the avatar, and place the other information in box beneath. I'll also remove "total logged in" function - another useless function. I'll post here when I've had a play about with it. I know the upshrinker takes into account if you are logged in or not, so I have to take that into account. Do you want guests to see the shoutbox?
Yes, they can see.
It isn't possible to make a button ou link to show and hide the shoutbox?
Quote from: tL0z on April 24, 2006, 04:52:35 PM
Yes, they can see.
It isn't possible to make a button ou link to show and hide the shoutbox?
??? Sorry, I don't understand. - You would like to hide the shoutbox with a button; is that correct?
Yes, or a text link
If you just want a link, then create a new option in the menu (perform a search, there's bound to be instructions somewhere), and refer to this recent post of mine: http://www.simplemachines.org/community/index.php?topic=8415.msg540441#msg540441
You can do this just for the one page for your Shoutbox, or incorporate the shoutbox into all your webpages.
does any one know how i could put this in a mkportal block??
EDITED:
no srap that what i real want is for a fix i have it on my site and it looks really nice infact it's perfect.
i have add some cool admin function and im adding more but it looks ok but say when i go into the admin section some times it ask's me to login and there is a small login box this is normal and happens all the time
before the login box was at the top now it's in the center and it's there same with the boards if i go in a section of the forum thats not bigger as in width it shows it in the center how can i fix this i know it is some thing to do with the shouy box but i have tryed lot's of thing's i just cant fixed this
other then that this is a great mod
Quote from: Gearoi on April 20, 2006, 01:18:46 PM
Another error I get now if I delete shouts:
An Error Has Occurred!
Your session timed out while posting. Please go back and try again.
Anyone know how to fix this one?
Cheers!!!
I also get this error but did not see the resolution, could anyone resolve this because I cannot use this feature unless I can delete offensive shouts and I really don't want to make my own. This is the only problem I've gotten so far any help would be appreciated (fresh instal of 1.0.7 and the Shoutbox)
I also just realized that Guests do not have the option to post in the shoutbox. Am I looking over the feature or does it not exist?
QuoteI also just realized that Guests do not have the option to post in the shoutbox. Am I looking over the feature or does it not exist?
its in the admin area - permissions at the top on the right. But beware Just minutes after I opened it for guest it got spammed by a bot, so it is sensitive for spamming
Well that fixed half of my problem thanks.
Quote from: hitsquaduk on April 24, 2006, 06:37:56 PM
does any one know how i could put this in a mkportal block??
EDITED:
no srap that what i real want is for a fix i have it on my site and it looks really nice infact it's perfect.
i have added some cool admin function and im adding more but it looks ok but say when i go into the admin section some times it ask's me to login and there is a small login box this is normal and happens all the time
before the login box was at the top now it's in the center and it's there same with the boards if i go in a section of the forum thats not bigger as in width it shows it in the center how can i fix this i know it is some thing to do with the shouy box but i have tryed lot's of thing's i just cant fixed this
other then that this is a great mod
Pleae can yo help me with this
how do you get the 'view all' and the message box and the shout button to line up all in one horizontal line instead of vertically on top of each other? I need to save some space
thanks to anyone who knows how to do this
Is there any way to have only logged in members view the shoutbox? I'm sure there's a code that I can put right before displaying the shoutbox (if is member, that sort of thing), but I'm a noob and I have no idea how to do it. Any help would be appreciated :)
-Shayna
Quote from: stargazer_1017 on April 26, 2006, 06:41:10 PM
Is there any way to have only logged in members view the shoutbox? I'm sure there's a code that I can put right before displaying the shoutbox (if is member, that sort of thing), but I'm a noob and I have no idea how to do it. Any help would be appreciated :)
-Shayna
you can change who sees the shoutbox in your admin> permissions>guests
there are some options there for the shoutbox which you can switch off
I checked it, but it only have options for guests to post in the shoutbox and delete shouts--there's nothing about them viewing the shoutbox. Thanks for the suggestion, perplexed :)
Any other suggestions would be appreciated as well :)
-Shayna
Use
if ($context['user']['is_guest'])
{
echo 'You cannot view the Shoutbox';
}
else
{
Show shoutbox code
}
ok I just upgraded my forum from 1.0.7 to RC2 today and the tiny Portal mod 86 as well I was running grudges original shoutbox 1.21 i believe and upgraded it all to the 1.35 version. All is working but the archieve/view all page
I get the error message:
An Error Has Occurred!
Unable to load the 'main' template.
any suggestions would be greatful ive used this mod for over a year now and my members are crying already lmao.
Quote from: stargazer_1017 on April 26, 2006, 06:41:10 PM
Is there any way to have only logged in members view the shoutbox? I'm sure there's a code that I can put right before displaying the shoutbox (if is member, that sort of thing), but I'm a noob and I have no idea how to do it. Any help would be appreciated :)
-Shayna
This is how i did it but you must have xml refreash turned off!! for it to work
find
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']) ? 2 : 1, '" align="center">', $txt['shoutbox_1'], '</td>
</tr><tr>
<td class="titlebg" colspan="', !empty($context['canDelete']) ? 2 : 1, '" align="left">', $context['page_index'], '</td>
</tr>';
$alternate = false;
add after
if ($user_info['is_guest'])
echo '
<tr class="', $alternate ? 'windowbg' : 'windowbg', '">
<td><b><center>Your text goes here for guests to see</center></B> </td>';
else
That bit is for the archive shot box
this bit is for the main shot bot on the main page.
find
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!
add after
if ($user_info["is_guest"])
echo '
<tr class="', $alternate ? 'windowbg' : 'windowbg', '">
<td><b><center>your text for guest to see goes here!</center></b> </td>';
else
were you see (your text goes here for guest to see) on mine i have
<td><b>Sorry only members can<br />view the shout box please <a href="', $scripturl, '?action=register"><br /><center>register!!</center></b> </td>';
im also adding more admin function so you can turn them on and off on the admin section.
there i have help you now can you help me with my problem please
How to collapse shoutbox like boards?
a few of my members seem to be allergic to shoutboxes and they are prone to migraines, it would be really good to add a collapse button to the shoutbox, does anyone know how to do this?
I am using jesterdesigns 'shoutbox in a table' so the shoutbox matches the theme, if that makes any difference
~thanks
Perplexed,
You fix this for me, and we will have the Shoutbox in the upshrinker. ;)
http://www.simplemachines.org/community/index.php?topic=84862.0
I've rearranged the elements, removing silly options, and most importantly, I intend to have the Shoutbox in the upshrinker! ;)
Quote from: Col on April 24, 2006, 05:28:45 PM
If you just want a link, then create a new option in the menu (perform a search, there's bound to be instructions somewhere), and refer to this recent post of mine: http://www.simplemachines.org/community/index.php?topic=8415.msg540441#msg540441
You can do this just for the one page for your Shoutbox, or incorporate the shoutbox into all your webpages.
But I dont want the link in the menu. Can I put a title above the shouts "Shoutbox" and a link? For example:
Quote
Shoutbox (show/hide)
nick2: Hello
nick1: Hey everybody!
tL0z,
When I get the answer to the JS error I'm making, I will have the Shoutbox in the Upshrinker. - Is that the kind of thing you want?
http://www.simplemachines.org/community/index.php?topic=84862.0
I would prefer to have like I said ::)
Is it possible? :D
tL0z,
You have to explain what it is, exactly, you are trying to do. I don't understand.
I like the shoutbox to appear like that:
-----------------------------------------------
Soutbox (show/hide)
User1: Hello
User2: Hey guys
-----------------------------------------------
When I click on "show/hide" the shouts would be hidden or shown. I would like to add that:
Soutbox (show/hide)
Well, if I sort out what's wrong with my code, I will try out the shoutbox in the forum unshrinker. You will then be able to toggle between showing it, and hiding it! ;)
Oh ok, :)
Please send me a pm when you can ;)
Grudge(or to anyone): I have installed shoutbox in my site, and it works perfectly fine.
But, there are some users who can "mimic" or "clone" displaynames when they shout in the shoutbox.
When you click on the user, it displays an error in the view profile, since the account doesn't really exist.
Hope you can help me on this.
Thanks.
Got no reply from my first post.
Hi Showstopper,
You need to disable guest posting to the shoutbox in permissions. I'm 99% sure this is not a bug, but rather a failing in the design. Guests must enter a name, but the shoutbox would need to check that name against the membership list to not allow it. - Obviously, the shoutbox does not do that.
so no way yet to collapse the shoutbox? half of my mems hate the shoutbox and half of them love it. can't please everyone huh? :D
Hiya Geezmo,
It's almost finished. I'm waiting on a reply from Grudge. I cannot work out what piece of code places the shoutbox form after the shouts. Once I know that, I can finish it.
I've rearranged the the whole header, but it is still using the default styling. I've removed the display of the avatar, and the "you've been logged in X-time", as they strike me as useless functions. The news will be permanently displayed, as I think it silly that people can miss important news simply because they have the upshrinker collapsed.
The whole header will be no bigger than it is now, and maybe a bit smaller. - You will still be able to control the height of the shoutbox though.
Give me a day or two (I have to wait for my reply from Grudge), unless you know code places the shoutbox form after the shout?
Cool Col! :D Thanks very much, I'm already looking forward to it...
How do I change the font size and font type of the text of the actual shouts? I found this post http://www.simplemachines.org/community/index.php?topic=8415.msg492456#msg492456 but it mentions a "Shoutbox" block in style.css but I can't find it in my style.css file
You probably have the shoutbox in a TD tag. Give the tag an ID, and create the new entry for that ID in the CSS file.
HTML
<td id="shoutstyle">
smfshout ();
echo '
</td>
CSS
#shoutstyle {
font-size: small;
font-family: verdana, sans-serif;
}
Something like that.
Quote
Version 1.36:
1. Call the shoutbox form from the shoutbox template.
2. Fixed session checks on delete.
3. Verify guest names aren't already in use.
http://stormlrdsreality.co.uk/rhcforum/index.php
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fstormlrdsreality.co.uk%2Frhcforum%2FImage7.gif&hash=c8f27b56f6cc07ebd97cd6a561bb0eaf7a18565e)
double input and not getting the archieve page, on 1.36 was also not getting archieve on 1.35
Ummm, are you sure you uninstalled 1.35 first? It looks like you have a mixed install as it has two input boxes.
Quote from: Grudge on May 06, 2006, 11:43:11 AM
Ummm, are you sure you uninstalled 1.35 first? It looks like you have a mixed install as it has two input boxes.
I only replaced the shout.php and the shout.template.php from the 1.36 pack
That won't do. You need to uninstall 1.35 and install 1.36.
kk the original is 1.21 lmao
That worked bro, took a bit to unistall it i had to do it manually as I had recently updated to RC2 and TP 8.6
Here's a working preview Live:
http://stormlrdsreality.co.uk/rhcforum/index.php
Ive added a copywrite to the bottom of this theme I will do others later you should do this Ive had alot of requests for which Shoutbox Im using and i was one of the originals of your shoutbox back at the first release over a year ago lol. Add one to your code for keeping up with version number and where you want it linked to this one i linked to this mod thread here.
Thanks for a clean setup.
Storm
Any help on how to collapse Shoutbox so that even after members log-off and log-back in it is remembered?
Quote from: Grudge on May 06, 2006, 05:04:37 AM
Quote
Version 1.36:
1. Call the shoutbox form from the shoutbox template.
2. Fixed session checks on delete.
3. Verify guest names aren't already in use.
All work perfectly Grudge only i have a lot of these errors as in previous versions
Quotehttp://www.forumzone.net.ru/index.php?action=shout_archive
8: Undefined index: url_direct
File: /home/forum@@@/www/Themes/default/shout.template.php
Linea: 25
shout.template.phpQuoteLine 23: if (!empty($context['canDelete']))
Line 24: echo '
Line 25: <a href="', $scripturl, '?action=delete_shout;sesc=', $context['session_id'], ';sid=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
Line 26: echo '
edi67 - fixed. Either redownload the package from here or otherwise just upload the attached file to your sources directory.
Quote from: Grudge on May 07, 2006, 05:07:53 AM
edi67 - fixed. Either redownload the package from here or otherwise just upload the attached file to your sources directory.
excellent Grudge seems to be fixed, great, correct the package for other users
Great work Grudge ;) thanx
I updated the package on the mod site already - just not going to bump the version number ;)
Hiya Grudge,
Thanks for the update, and bug fixes.
However, I've looked through the code, and can't see how I make separate calls for the shouts, and the form!
What am I missing?
Thanks.
Hi Grudge,
I worked it out. I pulled a late one, and have it up working.
Anyone who's interested: I will post here instructions for getting Grudge's Shoutbox in the upshrinker tomorrow.
For Shoutbox version 1.36 only
For those interested, here's Grudges shoutbox in the upshrinker, for SMF 1.1, only (but will work with earlier versions, with a small adjustment or two). It is based upon the default theme.
I've removed the call for member avatar display, as I'm sure members understand what their own avatar looks like! ::) Another silly function, "Total Time Logged in" has also been removed. I've removed the call for the forum name, as I have a banner. I've also removed the SMF logo. I've rearranged the rest in a way that I think makes more sense. News is no longer in the upshrinker part of the header, and is now always displayed, so that members who have the upshrinker collapsed, do not miss important announcements.
Go to admin, and create a new forum template, a copy of the SMF default template. Continue to use your usual template for yourself, until you are finished.
Go to the modify template page for your new shoutbox upshrinker template, and replace the third section with the following:
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2p"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
// ]]></script>
<title>', $context['page_title'], '</title>';
// The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc2" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?rc2" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>';
// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';
function shrinkHeaderIC(mode)
{';
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]></script>
</head>
<body>';
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="4" cellspacing="0" border="0">
<tr id="welcome">
<td class="catbg">';
// display user name
if($context['user']['is_logged'])
echo '
<span style="font-size: 150%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>';
// Otherwise they're a guest - send them a lovely greating...
else
echo $txt['welcome_guest'];
echo '
</td>
<td align="right" class="catbg">';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="302400">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
echo '
</td>
</tr>
</table>';
echo '
<table width="100%" class="titlebg2" cellpadding="4" cellspacing="0" border="0" style="padding: 0px 0px 0px 0px;">
<tr>';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td align="left" rowspan="2">
<span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
</td>';
echo '
<td align="right" nowrap="nowrap">
<form action="', $scripturl, '?action=search2" method="post" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
echo '
</form>
</td>
</tr>';
// display the time
echo '
<tr><td align="right" valign="bottom">
<span class="smalltext">' , $context['current_time'], '</span>';
// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top" colspan="2">
<div class="upshrinkbox">
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', 'width="100%" cellpadding="8" cellspacing="0" border="0";">';
if (function_exists('smfshout'))
smfshout();
echo '
</table>
</div>
</td>
</tr>
</table>
</div>';
// Show the menu here, according to the menu sub template.
template_menu();
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}
Go to the CSS page for the shoutbox upshrinker template, and add the following:
/* Additional Header Code */
.upshrinkbox {
background-color: #adadad;
padding: 1px;
}
#welcome a:link {
text-decoration: underline;}
#welcome a:visited {
text-decoration: underline;}
#welcome a:hover {
text-decoration: underline;}
You need to modify the shout.template.php file. Create a backup, and then replace it with following:
<?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']) ? 2 : 1, '" align="center">', $txt['shoutbox_1'], '</td>
</tr><tr>
<td class="titlebg" colspan="', !empty($context['canDelete']) ? 2 : 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;sesc=', $context['session_id'], ';sid=', $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="titlebg" colspan="', !empty($context['canDelete']) ? 2 : 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'] == 1 && $context['canPost'])
template_shout_form();
echo '
</center>
</td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</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'], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</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'], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</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;sesc=', $context['session_id'], ';sid=\' + 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 '
<tr class="titlebg">
<td valign="middle" style="padding: 5px 5px 5px 10px;">Shoutbox</td>';
// Are we showing the shout form?
if ($context['show_shout_form'] && function_exists('shout_form'))
shout_form();
echo '
<td valign="middle" nowrap="nowrap" align="right" style="padding: 5px 10px 5px 5px; white-space: nowrap;"><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a></td></tr>';
echo '
<tr>
<td class="windowbg" colspan="3">
<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()">';
// 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;sesc=', $context['session_id'], ';sid=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
', $shout['time'], ' ', $shout['link'], ' -', $shout['message'] . $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 '
</center>
</td>
</tr>';
}
function template_shout_form()
{
global $context, $settings, $options, $txt, $user_info, $scripturl, $modSettings, $ID_MEMBER;
echo '
<td valign="middle" style="padding: 0px 0px 0px 0px;"><center>
<form action="', $scripturl, '?action=shout" method="post" height="20" style="white-space: nowrap; padding: 0; border: 0; margin: 0;">
<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=\'\'" />';
if (empty($modSettings['shout_noGuestEmail']))
echo '
<input type="text" value="', $txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" />';
}
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" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" />
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>
</center>
</td>';
}
// 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>';
}
?>
Go to Features and Options. Click the shoutbox tab. Where it says "Scroll box width (pixels)", enter "100%". Yes that's right, percent; ignore the "pixels" instruction. Go to the next box "Scroll box height (pixels)", and enter a suitable value (I'm using "80" pixels). You will probably find that you will need to set the the scrolling speed to "slowest" because of the wide shoutbox display.
Now, go to your profile, and check the preview of the shoutbox upshrinker template. If it looks good, go with it, try it out, and then make the new template the forum default template, and apply it to all members.
Hi Grudge,
Great Mod, works great,
If you want to, I'd be more than happy to give you my settings for having the shoutbox work in french also, so you can include it in the next mod distro for french users.
I did it manually(modifying mod language file of my theme)
I just noticed the following tho..
When using Safari, when another user posts in the shoutbox, the special characters translation don't display correctly,
I mean, they show as á and  , until the page is refreshed completely, either by posting in the shoutbox, or accesing another section of the forum. Then it comes back to what it should be.
2nd thing, Safari doesn't seems to handle the max number of shout to display.I put the limit to 3 latest shouts, but shows all of them until you do a complete page refresh or post in the shoutbox from it.
linked to that, when an admin deletes a shout, from another browser, safari doesn't refresh the shoutbox removing the message, it stays there, still until you do a complete page refresh.
I know safari has some issues with some dynamic html contents on other aspects(rotative newsbar don't rotate under safari)
but do you think there is a quickfix?
I placed the Box in differents places on my forum and have the same results, for now i have it display in the user info section.
Tks,
Dom
Edit:Actually the box always keep adding messages and bypass the number of latest post to display in Firefox too, they add, but the old ones don't get removed until you post in the shout box...
Edit 2:It also seems that the XML refresh disturbs the current action reported in the who's online section, everytime it refreshes, it report an Unknown action.. Any ideas on this one too?
Ive noted a small bug in the archieve page, you cant shout from it, thanks in advance. Storm
hey i installed 1.36 on SMF 1.0.7 the mod works fine but i hav a qyestion.. <mebbe a bug>
the shout box automatically keeps scrolling <lik a vertical marquee> in Opera browser though it doesnt in mozilla <not tried IE>..
Quote from: StormLrd on May 09, 2006, 10:36:13 AM
Ive noted a small bug in the archieve page, you cant shout from it, thanks in advance. Storm
Storm,
Shouting from the archive page is an option. Admin >> Features & Options >> Shoutbox >> Allow people to shout from the archive page? ;)
Quote from: Col on May 09, 2006, 11:50:26 AM
Quote from: StormLrd on May 09, 2006, 10:36:13 AM
Ive noted a small bug in the archieve page, you cant shout from it, thanks in advance. Storm
Storm,
Shouting from the archive page is an option. Admin >> Features & Options >> Shoutbox >> Allow people to shout from the archive page? ;)
This has been and still is enabled for over a year bro but thanks. As i said shouting from archive is not working. Thanks in advance
Hey, this is a pretty good mod/package. I use it on 1.0.7. Also, I made it so that mine is in a new box on the top instead of in a blank white space.
If anyone wants me to help them get theirs like mine, just ask me. Also, it'll do some pretty serious edits to your Index Template, so make sure you know that by moving the two boxes for news/extra info to under the welcome box and adding the shoutbox box MAY and WILL make your board incompatible with some packages.
Quote from: StormLrd on May 09, 2006, 08:00:03 PM
This has been and still is enabled for over a year bro but thanks. As i said shouting from archive is not working. Thanks in advance
What version of the shoutbox are you running? What version of SMF? Perhaps you need to upgrade, as Grudge has fixed quite a lot bugs recently.
Quote from: Col on May 11, 2006, 07:56:14 AM
Quote from: StormLrd on May 09, 2006, 08:00:03 PM
This has been and still is enabled for over a year bro but thanks. As i said shouting from archive is not working. Thanks in advance
What version of the shoutbox are you running? What version of SMF? Perhaps you need to upgrade, as Grudge has fixed quite a lot bugs recently.
RC2 and v.136 on the shout everything is at the current point of progress including the tinyportal by bloc. I ran all updates and did all fixes last week from all previous versions.
Tried to install this but got this error:
Quote
512: parseBoardMod(): The filename 'index.php' is not a full path!
File: /home/mysite/public_html/smf/Sources/Subs-Package.php
Line: 1670
Line 1670 in the file is shown in red text below:
Quote// Make sure the file exists!
$working_file = parse_path($code_match[2]);
if ($working_file[0] != '/' && $working_file[1] != ':')
{
trigger_error('parseBoardMod(): The filename \'' . $working_file . '\' is not a full path!', E_USER_WARNING);
$working_file = $boarddir . '/' . $working_file;
}
Quote from: StormLrd on May 12, 2006, 03:16:59 PM
Quote from: Col on May 11, 2006, 07:56:14 AM
Quote from: StormLrd on May 09, 2006, 08:00:03 PM
This has been and still is enabled for over a year bro but thanks. As i said shouting from archive is not working. Thanks in advance
What version of the shoutbox are you running? What version of SMF? Perhaps you need to upgrade, as Grudge has fixed quite a lot bugs recently.
RC2 and v.136 on the shout everything is at the current point of progress including the tinyportal by bloc. I ran all updates and did all fixes last week from all previous versions.
I am having the same problem as Storm - on 3 different sites. I tried upgrading to the most recent shoutbox and there is still the problem with shouting from the archive page. Members get an error that says 'you do not have permission to delete shouts'. If admins try to shout from the archive page it appears like it's going through, but the message doesn't get added.
I am getting a 403 forbidden error whenever I try to delete a shout. I am using SMF 1.1RC2, and Ultimate Shoutbox 1.35. This is not a mod_security issue as mod_security is not enabled on my server. The weird part is that I used to be able to delete shouts but I never really needed to until the other day, and thats when I noticed the error. I have only made a few small changes to the index.template.php file in the past few months so I don't think its anything I've changed.
I have tried the following,
- 4 different versions of the Ultimate Shoutbox (1.32, 1.34, 1.35, 1.36), I also dropped the smf_shoutbox table for each of those installs.
- changed the permissions on Sources/shout.php to all different combinations
- for the hell of it to put a .htacess file in the SMF directory which did absolutely nothing
As far as I can tell this is the only place this is happening and I have found no similar problems from searching this forum.
Thanks in advance.
Grudge your shoutbox is running into the same issue bloc's did before his security update. Need you to get with him asap bro as I was hacked this morning through it. I knew what to look for so Ive already fixed it but there's no way to stop him from doing it again if he changes his IP and comes in again.
im not gonna post what he used here, i'll pm it too ya.
Hi,
I just install the latest version on my forum, but the message area doesn't appear! And when I try to shout from the archive, nothing happen! Any suggestions would be greatful... :(
http://www.potesnroll.com/index.php?action=forumindex (shoutbox on the top)
All,
I've updated the shoutbox to version 1.37.
This fixes a potential security issue with usernames, as well as shouting from the archieve page.
In addition, when calling the shoutbox using SSI you can pass it an optional parameter (Nomally true) as to whether to show the shoutform or not. To disable the form use:
ssi_shout(false);
Grudge
Thanks Grudge,
And the thanks for the disable form option, just the ticket! :)
Just one question, which files have changed?
Edit: No matter, I'll work it out.
I installed the shoutbox and it works great for me and a few of my members but,
For a lot of the members the box to enter the shouts does not appear. It doesnt appear in the archive area either.
I have all the options setup correctly as it does work for me and a couple members but, for the majority the box to enter text does not appear.
What could be the problem?
It also does not allow "guests" to shoutout......why could that be?
If it only affects some, could it be a caching problem? Ask them to not just use refresh, but try shift+refresh and ctrl+refresh. If it is a caching problem, I'm unsure of the full solution. It will sort itself out eventually though.
I'll try this latest upgrade (I've not the chance yet), to see how it affects me.
Quote from: zombiemanx on May 17, 2006, 03:54:30 PM
I am getting a 403 forbidden error whenever I try to delete a shout. I am using SMF 1.1RC2, and Ultimate Shoutbox 1.35. This is not a mod_security issue as mod_security is not enabled on my server. The weird part is that I used to be able to delete shouts but I never really needed to until the other day, and thats when I noticed the error. I have only made a few small changes to the index.template.php file in the past few months so I don't think its anything I've changed.
I have tried the following,
- 4 different versions of the Ultimate Shoutbox (1.32, 1.34, 1.35, 1.36), I also dropped the smf_shoutbox table for each of those installs.
- changed the permissions on Sources/shout.php to all different combinations
- for the hell of it to put a .htacess file in the SMF directory which did absolutely nothing
As far as I can tell this is the only place this is happening and I have found no similar problems from searching this forum.
Thanks in advance.
I am still having this problem, does anyone have any ideas?
Quote from: Col on May 23, 2006, 03:53:36 PM
If it only affects some, could it be a caching problem? Ask them to not just use refresh, but try shift+refresh and ctrl+refresh. If it is a caching problem, I'm unsure of the full solution. It will sort itself out eventually though.
I'll try this latest upgrade (I've not the chance yet), to see how it affects me.
Nevermind....I am stupid. Didnt have the permissions set right. Didnt even know it added a permission option.
It works. Thanks for the help.
I just installed the version 1.37.
Everything is working if i use the shoutbox inside my SMF.
If i use it in an external page with the SSI function, is not working.
Nobody can write a shout and the error we get is :
QuoteUnable to verify referring url. Please go back and try again.
Is there anyone else with the same problem ?
P.S. The function name on SSI.php is wrong also.
The correct function will be :
function ssi_shout($showform = true)
but when the mod beeing install it write this :
function ssi_shout($showform = true;)
I unfortunately am not too good with this coding stuff. I'm trying to install the shoutbox on the index of my board (was trying to install it near the news and mini search box) but I keep messing it up and crashing the template.
Do all I need to inlcude is the little smfshout(), '
in the board.index.php, or does it need extra code around it?
Greyias,
I have placed the shoutbox in the upshrinker, and it works very well. I've posted what I did a few pages back, but need to update it to shoutbox version 1.37. SMF 1.1 RC2 only. Let me know if you would like to try it, and I'll post the files here.
I'd definitely like to try :) Sounds like a lot of fun!
I have to upgrade my own forum yet, so it will be a day or two. However, I'll post a link to the forum so that you ca view it. I've totally rearranged the header, so you may not like it. It is based on the default theme though.
@Grudge,
I have a question.
Everything works fine, I see the ShoutBox Menu in my Admin Panel, I can change things and more.
When I put the code in my template, I get this error:
Table 'nissanforum.smf_shoutbox' doesn't exist
When I create the table in my database with this file: shoutPdb.php it works all ok. But when I look in to the tables I don't see the table smf_shoutbox.
Can you help me? Thnx!
Any news about the SSI function ? : http://www.simplemachines.org/community/index.php?topic=8415.msg587538#msg587538
I'm unsure if anyone actually used this, but a few asked. Anyway, here's the updated version Grudges Shoutbox in the upshrinker. It is for Shoutbox version 1.37, the latest as I write this. Obviously, it was designed for my own needs, but it is nice that I can now call the shouts to a block in my web pages using SSI, and it displays correctly, even though it is much smaller than the it appears in the upshrinker. I made use of Grudge's latest addition to the code, where there is the option to disable the shoutform when using SSI. It would be more than I could manage for the forum to display differently to fit the dimentions I've allowed for it on the webpages. Anyway, I guess that most would only be interested in having the shoutbox on their forum. Thanks Grudge for the updates, even though you have more imprtant things to do now.
For those interested, here's Grudges shoutbox in the upshrinker, for SMF 1.1, only (but will work with earlier versions, with a small adjustment or two). It is based upon the default theme.
I've removed the call for member avatar display, as I'm sure members understand what their own avatar looks like! ::) Another silly function, "Total Time Logged in" has also been removed. I've removed the call for the forum name, as I have a banner. I've also removed the SMF logo. I've rearranged the rest in a way that I think makes more sense. News is no longer in the upshrinker part of the header, and is now always displayed, so that members who have the upshrinker collapsed, do not miss important announcements.
Go to admin, and create a new forum template, a copy of the SMF default template. Continue to use your usual template for yourself, until you are finished.
Go to the modify template page for your new shoutbox upshrinker template, and replace the third section with the following:
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2p"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
// ]]></script>
<title>', $context['page_title'], '</title>';
// The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc2" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?rc2" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>';
// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';
function shrinkHeaderIC(mode)
{';
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]></script>
</head>
<body>';
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="4" cellspacing="0" border="0">
<tr id="welcome">
<td class="catbg">';
// display user name
if($context['user']['is_logged'])
echo '
<span style="font-size: 150%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>';
// Otherwise they're a guest - send them a lovely greating...
else
echo $txt['welcome_guest'];
echo '
</td>
<td align="right" class="catbg">';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="302400">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
echo '
</td>
</tr>
</table>';
echo '
<table width="100%" class="titlebg2" cellpadding="4" cellspacing="0" border="0" style="padding: 0px 0px 0px 0px;">
<tr>';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td align="left" rowspan="2">
<span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
</td>';
echo '
<td align="right" nowrap="nowrap">
<form action="', $scripturl, '?action=search2" method="post" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
echo '
</form>
</td>
</tr>';
// display the time
echo '
<tr><td align="right" valign="bottom">
<span class="smalltext">' , $context['current_time'], '</span>';
// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top" colspan="2">
<div class="upshrinkbox">
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', 'width="100%" cellpadding="8" cellspacing="0" border="0";">';
if (function_exists('smfshout'))
smfshout();
echo '
</table>
</div>
</td>
</tr>
</table>
</div>';
// Show the menu here, according to the menu sub template.
template_menu();
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}
Go to the CSS page for the shoutbox upshrinker template, and add the following:
/* Additional Header Code */
.upshrinkbox {
background-color: #adadad;
padding: 1px;
}
#welcome a:link {
text-decoration: underline;}
#welcome a:visited {
text-decoration: underline;}
#welcome a:hover {
text-decoration: underline;}
You need to modify the shout.template.php file. Create a backup, and then replace it with following:
<?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']) ? 2 : 1, '" align="center">', $txt['shoutbox_1'], '</td>
</tr><tr>
<td class="titlebg" colspan="', !empty($context['canDelete']) ? 2 : 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;sesc=', $context['session_id'], ';sid=', $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="titlebg" colspan="', !empty($context['canDelete']) ? 2 : 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>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
if ($modSettings['enablearchiveshout'] == 1 && $context['canPost'])
{
echo '
<p><table border="0" cellspacing="1" cellpadding="3" align="center" width="100%" class="borderclass">
<tr>
<td align="center">';
template_shout_form();
echo '
</td>
</tr>
</table></p>';
}
// 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'], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</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'], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</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;sesc=', $context['session_id'], ';sid=\' + 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>';
}
// Are we showing the shout form?
if ($context['show_shout_form'] && function_exists('shout_form'))
echo '
<tr class="titlebg">
<td valign="middle" style="padding: 5px 5px 5px 10px;">Shoutbox</td>', shout_form(), '
<td valign="middle" nowrap="nowrap" align="right" style="padding: 5px 10px 5px 5px; white-space: nowrap;"><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a></td></tr>';
echo '
<tr>
<td class="windowbg" colspan="3">
<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()">';
// 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;sesc=', $context['session_id'], ';sid=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
', $shout['time'], ' ', $shout['link'], ' -', $shout['message'] . $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 '
</center>
</td>
</tr>';
}
function template_shout_form()
{
global $context, $settings, $options, $txt, $user_info, $scripturl, $modSettings, $ID_MEMBER;
echo '
<td valign="middle" style="padding: 0px 0px 0px 0px;"><center>
<form action="', $scripturl, '?action=shout" method="post" height="20" style="white-space: nowrap; padding: 0; border: 0; margin: 0;">
<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=\'\'" />';
if (empty($modSettings['shout_noGuestEmail']))
echo '
<input type="text" value="', $txt['shoutbox_7'], '" name="email" maxlength="100" onfocus="this.value=\'\'" />';
}
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="60" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" />
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>
</center>
</td>';
}
// 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>';
}
?>
Go to Features and Options. Click the shoutbox tab. Where it says "Scroll box width (pixels)", enter "100%". Yes that's right, percent; ignore the "pixels" instruction. Go to the next box "Scroll box height (pixels)", and enter a suitable value (I'm using "80" pixels). You will probably find that you will need to set the the scrolling speed to "slowest" because of the wide shoutbox display.
Now, go to your profile, and check the preview of the shoutbox upshrinker template. If it looks good, go with it, try it out, and then make the new template the forum default template, and apply it to all members.
If you intend to add to add the shoutbox to your webpages, it won't display properly with my code, unles it is of similar layout, and dimentions. To remove the form from the webpages, you need to make one small change in the SSI.php file.
There is a an error in the SSI code:
function ssi_shout($showform = true;)
It should read:
function ssi_shout($showform = true)
And you will need to change it to the following to remove the form from your webpages:
function ssi_shout($showform = false)
If you are going to use SSI, then edit code: ssi_shout(false);
Hello,
Is there anyway to make the shoutbox invisible for guests? Which file should I modify to add some text to the output?
Thanks.
I apologize if this is rude, I am not that good at coding.
Currently I am using the Windows XP theme that was created by 061. The theme integrated the Ultimate Shoutbox feature very nicely.
Recently I downloaded the latest version (1.37) and I can get it to work with every other theme. On the XP theme (which is my default theme), it shows the posts but will not show the shout entry field. If you click on the View All, you do make it to the Shout page but typing something there gets you:
Your session timed out while posting. Go back and try again.
The original XP theme is here: (where I have posted my help there too along with other users with same issue):
http://www.simplemachines.org/community/index.php?topic=46928.150
I know I may be just SOL with it, but I wondered if you have seen the error message before and if it's something I can set on my own. The code that originally came with the XP was the:
CODE
';
if (function_exists('smfshout'))
smfshout();
echo '
/CODE
I also tried it with the other
CODE
if (function_exists('smfshout'))
smfshout();
/CODE
Which doens't work at all, and takes the whole theme down. Any help would be appreciated.
Maybe I could get my hands on an older version of Shoutbox. Say around version 1.31? Is that still available?
i tried to do a search on this error but it hasn't come up with anything so please excuse me if this has already been brought up...
i have an error in my shoutbox template that i would like to get sorted out and was wondering if someone would be able to help me out :)
8: Undefined index: url_direct
File: /home/kodee/public_html/forums/Themes/default/shout.template.php (eval?)
Line: 8
Quote from: perplexed on April 09, 2006, 09:47:49 AM
Quote from: perplexed on March 14, 2006, 07:34:53 AM
I am in the middle of bridging smf with joomla 1.1 rc2 and 1.0.7
Today I found a module for the shoutbox - mod_smf_ShoutBox which I have set up instead of using it directly on the forum index.
In joomla I have it set to show on 'all pages' and for registered users.
But the weird thing is that it IS showing on all pages EXCEPT when you are in the forum. Then all it shows is title in the module and the rest of the column is blank. there are other modules that should show underneath but none of them are showing at all, when in the forum. Its like the shoutbox is stopping them or something.
When I had it installed in just the forum index, I had it running down the right hand side, and the code seemed to take up the whole column even though the shoutbox was defined in options as being 400px long.
Do you know how to fix this as I think maybe this is the same problem, maybe?
Its a pity as the module great but I really want users to see it when in the forum too
does anyone know how to get this smf ultimate shoutbox to display in a joomla module?
Hi Perplexed,
have you tried this with the latest version of the shoutbox? - Grudge has recently made some changes to the shoutbox, including the SSI call. Just maybe the new version will work!?
hi Col
yeah I have tried it, the problem is:
I have smf RC2 and joomla wrapped forum
I want to put the shoutbox in a joomla module down the left hand side as the only place I can put the shoutbox INSIDE the forum is at the top or the bottom as there is no room at the side due to the joomla stuff. Having it at the bottom - no one uses it, having it at the top - annoys people.
I dont know anything about how to do this. I found a component on joomla site that claimed was written to work with this shoutbox, but it displays on all pages BUT the forum. When you go to the forum it doesnt show the shoutbox at all, which is kinda pointless.
So what I need to know is what code to put or how to get this shoutbox in a joomla module? The modules have an html box where you can enter code, but I dont know what to do with them. entering the ssi code does nothing
thanks for any help
Hello
Please help how to install Ultimate Shoutbox manual (1.37 SMF 1.06). I'm not coder :D
Please circumstantially amortise (write) :D
Hi Perplexed,
I posted about how I placed the shoutbox in the upshrinker a few posts back. It works well, I only have the shoutbox in the upshrinker (I moved news, etc. out), and everyone seems happy with it (like you, I have some members who don't like the shoutbox).
http://www.simplemachines.org/community/index.php?topic=8415.msg607527#msg607527
I'll PM a link to you so that you can see it in operation (my site is a mess and too shameful to post a link to here!) :-[ :D
Quote from: Col on July 12, 2006, 05:16:46 PM
Hi Perplexed,
I posted about how I placed the shoutbox in the upshrinker a few posts back. It works well, I only have the shoutbox in the upshrinker (I moved news, etc. out), and everyone seems happy with it (like you, I have some members who don't like the shoutbox).
http://www.simplemachines.org/community/index.php?topic=8415.msg607527#msg607527
I'll PM a link to you so that you can see it in operation (my site is a mess and too shameful to post a link to here!) :-[ :D
Hi col
thanks
I really would prefer to have the shoutbox in a joomla module down the side of the site. Where it is now is throwing the location mod out of whack so that all the pins are in the ocean instead of where they should be, plus the problem of some people not liking it at the top of the board. If I could get it to work without affecting the location mod I would like to try the upshrink option :) but I really would like it in joomla and dont know how to do that.
I tried to PM grudge but he has blocked PMs
edited to add: I managed to get this Ultimate shoutbox to work inside the Joomla module so it now appears on the left hand side of my forum. Orstio did all the work, so its all thanks to him. If anyone else has joomla, they might want to try it, as it uses this shoutbox instead of the other joomla ones which I dont think are as good :)
undefined index error - anyone know how to fix this as it is creating pages of errors:
8: Undefined index: images_url
File: /home/perplexed/public_html/forum/Themes/default/shout.template.php (eval?)
Line: 185
thanks for the help
Hello,
I tried to unistall this mod but I think something was wrong because there is still the link in "Features and Options".
How can I totally remove it?
Thanks
hi,
is it posible to colour the nicks on the shout?
is it posible to make a board format to the shout?
how do i increase the typing text field?
Sorry if questions are repeated but i didn't found on any other post
Thank you very much!
Is there any way to make the messages "auto delete" themselves after a certain length of time?
I have a problem with the shoutbox when I enable the auto refresh xml thing in the admin area features and options of the shoutbox.
All is working fine including the refresh, but when I logout and login in the forums, I get an error with an XML writte on it:
"This XML file does not appear to have any style information associated with it. The document tree is shown below.
(The following lines list all the shouts made currently.)
xxxxxxxxxxxx"
I am using version 1.0.7 of the SMF and ver. 1.37 of the ultimate shoutbox.
No other mods installed. Thanks.
HELLLLLLLp me please...
i installed this and now when i try to access
Admin> features and options i get this error...
Fatal error: Cannot redeclare modifyshoutboxsettings() (previously declared in /home/xjxwapc/public_html/forum/Sources/ModSettings.php:311) in /home/xjxwapc/public_html/forum/Sources/ModSettings.php on line 364
i take it i've done something wrong and need to edit something to fix it, can u tell me what i need to find andremove/edit please...
its ok i found the problem n fixed it...
Thanks grudge for reading this lol :D
btw, wtf is up with that ugly green LOADING bar when u push the edit button?
Quote from: GC on August 11, 2006, 01:51:14 PM
DO NOT USE THIS!
Ive found a security hole is the shout box, but since grudge has blocked my pms, I could not report it.. so here it is for the public, for you to abuse any site with it...
QuoteIm not sure if youve notice this, but, you can change your name to whatever, and modify the shoutbox to do whatever you want from any pc...
How to do it:
1. Open the source code, and search for your username (submit button)
2. Save the page as a .html page on your desktop
3. Start the page and type a post
You can allow html in posts, javascript, everything. I have users impostering me (The Admin) on my site. Has this been fixed? Im using your last release
You suck! I needed help with this and now I don't want to post my sites URL in fear that someone here will read that and screw with my site. You should PM someone about this.....why is it your PM's are blocked anyway? You a nucience around here or what?
This program works great except for a minor problem with some of my members not being able to see the text box where you type your shout into. I checked all the obvious stuff like making sure they were registered and logged into the forums but nothing changes. It also doesn't seem to matter if they are using FireFox or Internet Explorer, they still don't see the text box so they cannot use it. Any Ideas why? I wanted to post my sites URL so that someone might be able to help a little easier but the smacky above me makes feel like I shouldn't now. :(
triple check the permissions, it could be possible you never saved or click the wrong thing. Also check your error logs :P
And your welcome for releasing the security hole. Thanks Grudge :D
It seems that Grudge is blocking PMs generally, I can't PM him either, and I don't think I've been the cause of any problems. I guess he probably got fed up with cries of help from Newbies.
If someone has the inside track to Grudge, can they tell him that there appears to be security issue with the Shoutbox. To be frank, I don't understand how this would work (given the instructions above), but I know that a similar situation arose with the Tiny Portal shoutbox only a few weeks ago (this was after the last security fix by Grudge with his shoutbox).
As I said, I can't see how this would work from the above instructions, but GC, it would better to edit your post, and remove them.
well i think i shoud leave it there so that it does get fixed, its annoying the ****** out of me on my site, everyone knows it, i banned one user and had the file on his desktop and was still able to post while being banned...
Hi all,
Sorry but I blocked pm's here cause I wasn't having time to read them all - I figured anything "important" would get emailed to me instead. (My email is on all mod readme's). I also think posting the issue in public when you use the mod is akin to cutting off your nose to spite your face - anyway...
I wasn't 100% sure from the description given but it appears there were two problems:
1) If you were not a guest you could use any name you wanted
2) If you were not a guest you could put HTML within that entry.
These should now be fixed with version 1.38 as updated on the modsite.
Parse error: syntax error, unexpected ';', expecting ')' in /public_html/smf/SSI.php on line 1611
return sha1(strtolower($user) . $password) == $pass && $active == 1;
}
function ssi_shout($showform = true;)
{
global $sourcedir;
include_once("$sourcedir/shout.php");
shout_display($showform);
}
?>
Odd - Updated the package. Just remove the ; after "true"
Have you followed the instructions on the first page of the topic? You need to edit the template to make it appear.
Thanks Grudge.
Quote from: Grudge on August 13, 2006, 11:47:47 AM
Have you followed the instructions on the first page of the topic? You need to edit the template to make it appear.
I mixed up the two shout boxes, sorry about that
THis is a newbie question so please forgive me, but if I have installed this in one theme when I set it up in the other themes will they all still show the same messages?
Yes, themes just wrap the all the forum data, including the shoutbox.
Grudge could you please add me on MSN? I have a few more things about this shout box, and its starting to annoy me. Ive added it into a div command "<div align="left" valign="top" style="overflow:auto;height:100px;width:100%;">" and such, it works good and all, but I want to know if this shout box will ever get to the stage of having the option to do what that code does or will it always be the way it is now? Aslo, I dont like the way it goes to someones e-mail instead of the profile
GC- Can you drop me an email?
can i see an example of this shoutbox please
does anyone have it installed
i want to c it first
Yep.. me too... can we please. :)
Send me PM if either of you want to see my forum shoutbox. It's Grudges shoutbox, but I've made my own template for it, and Incorporated it into the upshrinker.
is it possible to have the shouts disabled to guests? so that the shoutbox is still shown, but none of the messages are displayed, instead a message that says "the shoutbox is disabled to guests"?
is it possible to have similar when the board is in maintance mode?
if you can just have it so that the shoutbox isnt shown at all under those conditions thats fine too.
Where should i Puut it in "index.template" if i want it under "Logged in as LonniE [Logout]" ????
Thanx
???
Hello.
I installed the shoutbox and all these good installed. The only concern which I have these that one does not see the shoutbox on the forum these as if it is invisible. These what the problem?
Excuse my English because I am French.
Hi WoWsagele,
You need to place a little bit of code on your template, where you'd like the shoutbox to appear:
http://www.simplemachines.org/community/index.php?topic=8415.msg79169#msg79169
Hi Grudge,
As a long time user of your shoutbox i have to communicate one big wish of my users to you.
Plkease create an option to not show the emailadres of the shouter but link to his profile page (and guests no links). I think this is a big privacy issue since users often turn of the showing of their email address in their profile but it is still visible in the shoutbox.
I hope you can address this.
;)
Quote from: Webrunner on September 04, 2006, 05:58:33 AM
Hi Grudge,
As a long time user of your shoutbox i have to communicate one big wish of my users to you.
Plkease create an option to not show the emailadres of the shouter but link to his profile page (and guests no links). I think this is a big privacy issue since users often turn of the showing of their email address in their profile but it is still visible in the shoutbox.
I hope you can address this.
;)
that is what the shoutbox does now, (not sure about guests)
I was about leave a message about this very issue.
I saw GC's post a few weeks ago about this, but did not understand there was a privacy issue; I assumed that guests could not view e-mail addresses, and only those members that have made their e-mail addresses public would have them on show. I then recently discovered for myself, that addresses were being displayed to those who should not be able to view them. Anyway, I contacted Grudge about it, and he kindly, and promptly, updated the shoutbox. As requested, usernames now link to their profiles, and only when you are logged in (depending upon your particular setup).
Version 1.39 (http://mods.simplemachines.org/index.php?action=download;mod=22;id=18402)
Thanks Grudge.
so i had the shout box installed fine before i upgraded to RC3 and now i can't figure out how to get it the way i had it before.
before i had it installed as if it were a category on my message board right at the top. Can someone please help and tell me where to include the shoutbox to do this again.
Example: in the pic below it shows the category "platinum boards". When i had the shoutbox installed it had a category above that that said "SMF shoutbox" and within that lay the shout box.
any thoughts?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fthetechnicaltrader.net%2Fforum%2Findex.php%3Faction%3Ddlattach%3Btopic%3D3.0%3Battach%3D847%3Bimage&hash=297e679dbd90406cd4defae420d8bd3aaf76209e)
Did you have a portal mod installed before?
Quote from: fous on September 14, 2006, 05:44:30 PM
so i had the shout box installed fine before i upgraded to RC3 and now i can't figure out how to get it the way i had it before.
......
any thoughts?
Same to me,
but i never installed it before.
So where do i put the code?
Example:
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:
Code:
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
and replace with:
Code:
<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;">';
Nice would be to place it between the news and the Boardname!
Any Ideas how to solve this Problem without php knowlegde?
Thx for any help!
Greetz Squaregarden
i'm unable to add shout box.. :( please help me..
in which file i put the code? and where i put the code? i dont have experiance to using php.. i try to add this code.. but its cant working..
Quoteif (function_exists('smfshout')) smfshout();
this code giving error.. then i replace this to
Quote';if (function_exists('smfshout')) smfshout();echo '
but shout box dont show any where on my page.. i install this mod pefectly but its cant show in ssi_examples.php file.. :'(
so help me.. i want to show shout box top of the all board tables..
hope hear from anyone very soon..
It will be something along these lines.
Say you want the shoutbox to appear on all pages, to the right of your forum, then you will need to locate the code in (boardindex.php, I think) where the the call is made for the main content of the forum. You would add a td tag, something along these lines:
<td>';
if (function_exists('smfshout'))
smfshout();
echo '
</td>
In the above I'm assuming that you already have a tr tag, and are just inserting another td within that tr.
I hope that helps.
Hello you all, I am sorry if I am asking a question already posted but, I am getting quite a few errors in the error log. They are all similar to this.
File: /home/sivmohub/public_html/smf/Themes/default/shout.template.php (eval?)
Line: 296
They occur on line 296, 288, and 272.
The thing I do not get is that when I check the code of shout.template.php there are only 268 lines (I have not modified this file at all. Is it possible I have a conflicting setting in the admin panel?
The board seems to be working fine, but I am concerned about the errors. I am definately not using the default theme. I do not know if that has anything to do with it.
You can check out my site here (http://www.tmsounds.com/smf).
The shoutbox is at the bottom of the page. (I know not a very handy place for a shoutbox).
Any help would be appreciated. As if you can not tell I am a bit of a newbie.
Thanks,
Leko
how can i change the background colour for the shoutbox, please
Take a look at Themes/default/shout.template.php.
One thing you could do is search for
echo '
<center>';
// Scrolling?
if ($modSettings['enablescrollshout'] == 1)
and change it to:
echo '
<div class="windowbg2"><center>';
// Scrolling?
if ($modSettings['enablescrollshout'] == 1)
and then find:
<p><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a></p>
</center>';
and change it to:
<p><a href="', $scripturl, '?action=shout_archive">', $txt['shoutbox_43'], '</a></p>
</center></div>';
That worked a treat, many thanks :D
I have also been trying to use the shoutbox function to register new scores in the arcade, but am having some difficulties. I want to show something like:
username has just scored 100 points at game
username is the new game champion with a score of 100
or whatever the game name and score are, but I can't seem to get it to work. I took a piece of code I found in these forums and fiddled around with it, but the name of the game and the score won't show up :(
// new higscore!!!
// add new highscore message in shoutbox!
$sql = "insert into ".$db_prefix."shoutbox (displayname,message,time) values ('".$user_info['username']."','".$content."<b>I am the new Champ of <a href=\"{$scripturl}?action=arcade;sa=play;game={$game_id}\" target=\"_blank\">{$game_name}</a> {$txtwit} a score of {$score}!</b>','$date')";
db_query($sql,__FILE__,__LINE__);
I'd appreciate any insight into where I've gone wrong :'(
I'd ask at the SMFarcade forum, I'm pretty sure that someone there will be able to help you.
hey guys, i'm done installing the file and it was a success.. but i don't know what to edit in Themes/default/index.template.php since i don't know anything about php
please i need some help..
Add this bit of code to where you want in index.template.php:
if (function_exists('smfshout'))
smfshout();
If you tell me where exactly you want it I might be able to give you a find and replace to add the code. Also the theme you want to add it to.
Quote from: akabugeyes on September 30, 2006, 10:12:12 AM
Add this bit of code to where you want in index.template.php:
if (function_exists('smfshout'))
smfshout();
If you tell me where exactly you want it I might be able to give you a find and replace to add the code. Also the theme you want to add it to.
Sir, i want it to appear on the top of my forum page just below the HOME, HELP, SEARCH, ADMIN, PROFILE, CALENDAR, LOGOUT tabs.. and i want it to appear on every page and auto refresh set to every 30 seconds.. by the way the theme that i'm using is TechHead. My SMF version is 1.0.7. Thanks a lot!
anybody else who can help me on this, please?
I think that'll depend on where you put the call, bisrock...
Another question. I suspect this'll be difficult, though.
In some themes, the colours in the shoutbox make it difficult/impossible to read. Midnight Ocean being a case in point.
Is there a way of making the shoutbox appear in, say, white in some themes, yet black, say, in others?
Bisrock,
Grudge gives some instructions in his opening post to this thread.
If you like, you can place it in the Upshrinker; I posted (http://www.simplemachines.org/community/index.php?topic=8415.msg607527#msg607527) instructions a few pages back, and it should work with the present version of the Shoutbox. I have removed some minor functions though, so you might want to read through first and make sure that I've removed nothing you wish to keep.
Quote from: kat on September 30, 2006, 02:25:27 PM
I think that'll depend on where you put the call, bisrock...
Another question. I suspect this'll be difficult, though.
In some themes, the colours in the shoutbox make it difficult/impossible to read. Midnight Ocean being a case in point.
Is there a way of making the shoutbox appear in, say, white in some themes, yet black, say, in others?
The easiet solution is to set the background colour of the Shoutbox, instead of it being transparent. Might be difficult to pick a colour that you happy with in all themes though.
Try a post on the coding board, I suspect that the solution will not be complicated.
Worth a try, Col. Ta!
I seem to be unable to find a complete answer to my question... so I figured I'd go ahead and post. If I am repeating something someone else has said, I am really sorry, I looked through the whole thread trying to find an answer.
I've inserted my shoutbox onto the left side of my template, I've figured out how to make a smaller black background, blue text header for it saying "ShoutBox" and I've made the shoutbox a blue background with black text. But I've got two issues now...
1. I don't like the way it rests all the way up against the left side of the browser window, or the way it is slightly above the forum boards itself. How do I bring it down, and put space between the shoutbox itself, the side of the browser window, and between the shoutbox and the forum boards? I'm kind of going for a symmetrical look here.
2. I'd like the shouts themselves to alternate between blue and black. For instance, the first shout is blue with black text, the second shout is black with blue text, etc, so on, so forth.
3. I would also like to add two more separate blocks beneath the chat to display Who's Online scripts for our site's chat rooms. If anyone has some pointers on that? So far anything I try either puts the Who's Online scripts above the board forums, or tries to sandwich the script info between the shoutbox and the board forum table.
Please help if anyone can? I have been trying for hours and I'm just getting more and more frustrated, as I'm sure it is something simple that I am missing.
Mystic,
If you post your template code, I'll have look, but I'm promising nothing.
I'll keep an eye on this, I think... ;)
I'd be happy to. Thank you so much for taking the time to look, Col. I sincerely appreciate it. I wasn't sure if you needed the whole template, or just part, so I posted all of it, and then put the only part I edited into a separate code window for you to see. There was more I tried to add to it, but it made the entire forum error, so far that bit is all I've been able to change.
Update: Nothing I do seems to make the code display properly. The file I'm trying to display is index.template.php for the theme babylon. So I'm including just the block of code I want to edit, since that seems to work okay.
// The main content should go here. A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" style="background-color:#000000;">
<tr>
<td align="center" style="background-color:#000000; color:#77aaae; border:1px solid #265362;">
<b>ShoutBox</b>
</td>
</tr>
<tr valign="top">
<td width="120">', smfshout(), '</td>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}
function template_main_below()
OK,
Try editing it. Click modify, highlight the first bit of code, click the cross hatch "code" button. Highlight the second code section, and click the cross hatch button for that. Then click save.
The problem is that by posting the code as normal text, it can be parsed into smilies, etc. I could try quoting, but I'm not 100% sure that will make everything as it should. Additionally, using the code tag ensures no nasty returns are introduced to the code.
Anyway, edit or repost it using the code tags, and I'll have a look.
If you quote his post, Col, you can copy/paste it into Textpad, or something, coz the parsing gets removed, doesn't it?
Hi Mystic,
1. All you need do is add a margin to the top and bottom:
// The main content should go here. A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" style="background-color:#000000; margin: 20px 20px 0px 20px;">
<tr>
<td align="center" style="background-color:#000000; color:#77aaae; border:1px solid #265362;">
<b>ShoutBox</b>
</td>
</tr>
<tr valign="top">
<td width="120">', smfshout(), '</td>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}
The first "20px" starts at the top, then the right, bottom, and then the left. Adjust to suit.
2. See Kat's post from some days ago. The solution for you will be very similar, but you will need to ask on coding board, they, no doubt, will be able to tell you how to make the shout colours alternate.
3. You will need to add two more tr tag pairs. Style them similarly to the shoutbox td. You can again use margin to space things as you would like.
Also, which template are you using? If you could place the shoutbox TR/TDs within the actual forum layout, you would probably gain more control of the overall layout. It would be better to post the whole template.
The only way I could get it to display the entire template was to post it in two pieces. I'm not sure why the code tags aren't working when I post it altogether. It's divided, but no pieces are missing, I am truly sorry. It's the Babylon theme that came with my SMF installation. I appreciate your help so much, and I will swing by the coding board to ask them about the color alternation. Also, I tried adding two more tr sections for the Who's Online scripts, but it totally screws up the boards. It tries to put them -above- the actual forum categories and boards themselves, and shoves that section of the table way down on the page. It was... funky looking, to say the least, lol.
<?php
// Version: 1.1 RC3; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1 RC3';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = false;
/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = false;
}
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc3"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
// ]]></script>
<title>', $context['page_title'], '</title>';
// The ?rc3 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc3" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?rc3" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>
</head>
<body>';
// Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
echo '
<div id="headerarea" style="padding: 12px 30px 4px 30px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">';
// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';
// This part is the logo and forum name. You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" style="width: 250px; float: ', !$context['right_to_left'] ? 'right' : 'left', ';" alt="" />';
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" border="0" />';
echo '
</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top">
<div class="headertitles" style="margin-right: 5px; position: relative;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="position: relative; margin-right: 5px; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/userinfo.gif" style="position: absolute; left: ', $context['browser']['is_ie5'] || $context['browser']['is_ie4'] ? '0' : '-1px', '; top: -16px; clear: both;" alt="" />
<table width="99%" cellpadding="0" cellspacing="5" border="0"><tr>';
if (!empty($context['user']['avatar']))
echo '<td valign="middle">', $context['user']['avatar']['image'], '</td>';
echo '<td valign="top" class="smalltext" style="width: 100%; font-family: verdana, arial, sans-serif;">';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
', $context['current_time'];
}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
', $txt['welcome_guest'], '<br />
', $context['current_time'], '<br />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<div style="text-align: right;">
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
', $txt['smf52'], '
<input type="hidden" name="hash_passwrd" value="" />
</div>
</form>';
}
echo '
</td></tr></table>
</div>
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<div style="margin-top: 7px;">
<b>', $txt[182], ': </b><input type="text" name="search" value="" style="width: 190px;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 8ex;" />
<a href="', $scripturl, '?action=search;advanced">', $txt['smf298'], '</a>
<input type="hidden" name="advanced" value="0" />';
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
echo '
</div>
</form>
</td>
<td style="width: 262px; ', !$context['right_to_left'] ? 'padding-left' : 'padding-right', ': 6px;" valign="top">';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif); margin-bottom: 8px;">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/newsbox.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 50px; overflow: auto; padding: 5px;" class="smalltext">', $context['random_news_line'], '</div>
</div>';
// The "key stats" box.
echo '
<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="', !$context['browser']['is_ie'] ? 'min-height: 35px;' : 'height: 4em;', ' padding: 5px;" class="smalltext">
<b>', $context['common_stats']['total_posts'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $context['common_stats']['total_topics'], '</b> ', $txt[64], ' ', $txt[525], ' <span style="white-space: nowrap;"><b>', $context['common_stats']['total_members'], '</b> ', $txt[19], '</span><br />
', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
</div>
</div>';
echo '
</td>
</tr>
</table>
<a href="javascript:void(0);" 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: 2px 2ex 2px 0;" border="0" /></a>';
// Show the menu here, according to the menu sub template.
template_menu();
echo '
</div>';
// The main content should go here. A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" style="background-color:#000000; margin:20px 20px 20px 20px;">
<tr>
<td align="center" style="background-color:#000000; color:#77aaae; border:1px solid #265362;">
<b>ShoutBox</b>
</td>
</tr>
<tr valign="top">
<td width="120">', smfshout(), '</td>
<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; color:#77aaae; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';
// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';
echo '
</div>';
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix.className == "code" || codeFix.className == "post" || codeFix.className == "signature") && codeFix.offsetHeight < 20)
codeFix.style.height = (codeFix.offsetHeight + 20) + "px";
}
}';
else
{
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix.currentStyle.overflow == "auto" && (codeFix.currentStyle.height == "" || codeFix.currentStyle.height == "auto") && (codeFix.scrollWidth > codeFix.clientWidth || codeFix.clientWidth == 0) && (codeFix.offsetHeight != 0 || codeFix.className == "code"))
codeFix.style.height = (codeFix.offsetHeight + 36) + "px";
}
if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}';
}
echo '
// ]]></script>';
}
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body>
</html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;
// Folder style or inline? Inline has a smaller font.
echo '<span class="nav"', $settings['linktree_inline'] ? ' style="font-size: smaller;"' : '', '>';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show the | | |-[] Folders.
if (!$settings['linktree_inline'])
{
if ($link_num > 0)
echo str_repeat('<img src="' . $settings['images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '<img src="' . $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' . $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" /> ';
}
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo $settings['linktree_inline'] ? ' | ' : '<br />';
}
echo '</span>';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 2px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" />' : $txt[2]), '</a>', $context['menu_separator'];
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
{
echo '
<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" />' : $txt[97]), '</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" />' : $txt[108]), '</a>';
}
// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
if (empty($button_strip))
return '';
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';
$button_strip[$key] = $buttons[$key];
}
echo '
<td ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}
I wanted to add a shoutbox and I added a few lines (following the instruction from the shoutbox install)
Now I can't even login my forums :'( using ultimate shoutbox
It shows the below msg:
Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.
You can also try refreshing this page.
Quote from: dang75 on October 08, 2006, 08:56:11 AM
I wanted to add a shoutbox and I added a few lines (following the instruction from the shoutbox install)
Now I can't even login my forums Undecided using ultimate shoutbox
It shows the below msg:
Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.
You can also try refreshing this page.
can you specify what lines you added where from the install.
I use shout_v1.39.tar can't remember which line but it's an instruction in the shout_v1.39.tar that instruct me to add something like this:
<td align="center">';
template_shout_form();
echo '
</td>
</tr>
</table></p>';
}
// 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'], '" />
oh my forums address is http://shiokxplorer.com/forums/
It is this line!!!! :(
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" style="background-color:#000000; margin: 20px 20px 0px 20px;">
<tr>
<td align="center" style="background-color:#000000; color:#77aaae; border:1px solid #265362;">
<b>ShoutBox</b>
HELP!!! I am totally locked out of my forums and it keep showing this:
Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.
You can also try refreshing this page.
thats why i wanted you to post as much info as possible so that they could here help you bro. Sorry I cant do more but when asking for help you give as much info as possible as you did and hopefully someone with knowledge of this can help you out as soon as possible. But be patient as possible sometimes it takes them a bit to get to this stuff.
Thank you StormLrd,
To my would-be-saviour,
These are the informations I can provide.
My theme is amber 1.1RC3
I added the below codes to the forum index.template
Quote<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" style="background-color:#000000; margin: 20px 20px 0px 20px;">
<tr>
<td align="center" style="background-color:#000000; color:#77aaae; border:1px solid #265362;">
<b>ShoutBox</b>
And my forums locked me out and shows
QuoteTemplate Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.
You can also try refreshing this page.
In which i can't edit the forums nor fix it... :( >:( Please help me. Thank you for hearing me out
Can you login to your host and edit the file via the file manager on your control panel?
Hello Grudge and hello @all,
my forums work with 1.1 RC3 and the default theme. I've two problems and one question:
Problems:
1. I can't speak English.
2. I didn't get an answer at the German support.
I loaded the Ultimate Shoutbox. I translated into German and now I can see the area one can set the functions. By the next I have to install it into the forums. I am not the "queen of php" and with SMF it's nearly the same. I am learning. ;)
Question:
I find a lot of examples how to install the shoutbox at the bottom, at the top, left or right at one or all sites. But I wish to have it at another place. My forums have some catagories with different permissions for the groups of users. Only 2 groups should be able to see and use the shoutbox. Therefore I want to install the shoutbox below the boards under one catagory which can be used by both user-groups. Further I want to make the shoutbox the same width like the boards.
It's possible to realize this idea? What have I to do and where it is to do?
Thx for any answer in easy English. ;D
:) busymouse
Any ideas? ... I'm still waiting ....
:( busymouse
Hi Mystic,
Sorry, this is the first time I've logged in sinse my last post.
You need to add a "rowspan" here:
<td id="bodyarea" rowspan="3" style="padding: 1ex 20px 2ex 20px;">';
The number depends upon how many "tr"s you have with your shoutbox etc. From what you have said, the figure should be "3".
Anyone tested on 1.0.8 ?
Also anyone have a demo of it on Helios Multi theme ?
Quote from: Johno69 on October 17, 2006, 01:21:31 AM
Anyone tested on 1.0.8 ?
Yes
http://www.setif-fac.com/forum
Ca in desable BBC in this shoutbox ?
one simple request... out for 73 pages here, i would like to request to somebody who managed to show it in the default theme just above the board index or below the menus. thanks a lot. :)
I keep getting 10. Execute Modification ./Sources/ModSettings.php Failure when I try to apply the mod.
I have checked the permissions and even tried 777, any ideas ?
Here is the mod required that it can't do.
<edit file>
$sourcedir/ModSettings.php
</edit file>
<search for>
'karma' => 'ModifyKarmaSettings',
</search for>
<add after>
'shout' => 'ModifyShoutboxSettings',
</add after>
<search for>
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
</search for>
<add after>
'shout' => array(
'title' => $txt['shoutbox_0'],
'href' => $scripturl . '?action=featuresettings;sa=shout;sesc=' . $context['session_id'],
),
</add after>
<search for>
function ModifyKarmaSettings()
</search for>
<add before>
function ModifyShoutboxSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
array('check', 'shout_enableXML'),
array('text', 'shoutlimit'),
array('text', 'shoutsep'),
array('text', 'shoutmaxchr'),
array('text', 'shoutsplitchr'),
array('check', 'shout_noGuestEmail'),
array('select', 'shoutdir', array(
'1' => &$txt['shoutbox_19'],
'0' => &$txt['shoutbox_20'],
)),
array('check', 'enablearchiveshout'),
array('check', 'enablescrollshout'),
array('text', 'shoutscrollwidth'),
array('text', 'shoutscrollheight'),
array('text', 'shoutscrolldelay'),
array('select', 'shoutscrolldir', array(
'up' => &$txt['shoutbox_37'],
'down' => &$txt['shoutbox_38'],
'left' => &$txt['shoutbox_39'],
'right' => &$txt['shoutbox_40'],
)),
array('select', 'shoutscrollspeed', array(
'1' => &$txt['shoutbox_31'],
'2' => &$txt['shoutbox_32'],
'3' => &$txt['shoutbox_33'],
'4' => &$txt['shoutbox_34'],
'5' => &$txt['shoutbox_35'],
)),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=shout');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=shout';
$context['settings_title'] = $txt['shoutbox_0'];
prepareDBSettingContext($config_vars);
}
</add before>
It's searching for things that are not in that file... what can be done? any help is appreciated thanks.
I have a strange error in the forum error log
I was checking it today and this error was displayed:
http://www.mysite.com/forum/index.php?topic=981.0
Apply Filter: Only show the errors with the same message
8: Undefined index: blurb
File: /home/perplexed/public_html/forum/Themes/default/shout.template.php (main sub template - eval?)
Line: 304
It had listed it twice for the same member at the exact same time etc
So I clicked on the thread to see what it was and when I went back to the log, there were two duplicate entries there for me too
Anyone know what's causing it and how to fix it?
~thanks
Quote from: Johno69 on October 23, 2006, 09:14:26 PM
I keep getting 10. Execute Modification ./Sources/ModSettings.php Failure when I try to apply the mod.
I have checked the permissions and even tried 777, any ideas ?
Here is the mod required that it can't do.
It's searching for things that are not in that file... what can be done? any help is appreciated thanks.
It's the same here... can't get it working on SMF 1.09, 'cause permissions are right but the installation fails anyway. For the manual modding: these lines seems to be related to modsetting.php for SMF 1.1rc3.
BTW, I noticed the same error on another mod (Create Topic on Report To Moderator), even if it happens only when I uninstall it (the install works fine)...
I have a question. Since installing the script, the Users Online shows most people with an Unknown Action. Is there a way to correct this?
When I try to install the package I get this error:
2: file_put_contents() [<a href='function.file-put-contents'>function.file-put-contents</a>]: SAFE MODE Restriction in effect. The script whose uid/gid is 17609/17609 is not allowed to access /mounted-storage/home30b/sub003/sc26657-RCAS/www/forum/Packages/temp owned by uid/gid 99/99
File: /mounted-storage/home30b/sub003/sc26657-RCAS/www/forum/Sources/Subs-Package.php
Line: 340
What am I doing wrong, and what can I do to fix it?
Atm we are using SMF 1.0.8 and the only other things I've installed are 2 themes, but I use standard theme and it's also the overall theme, people can though choose their own theme if they want...
I get session time out messages in RC3, I also had it in RC2.
If you post on the SSI website (non-forum) before visiting the forum then you get this error. If you visit the forum first then go to the SSI website then shouting is fine.
I can't read 73 pages of topic (well, I could), so I don't know if this has been asked, but is the shoutbox collapsible by the members?
Quote from: wastedpants on November 17, 2006, 06:40:31 AM
When I try to install the package I get this error:
2: file_put_contents() [<a href='function.file-put-contents'>function.file-put-contents</a>]: SAFE MODE Restriction in effect. The script whose uid/gid is 17609/17609 is not allowed to access /mounted-storage/home30b/sub003/sc26657-RCAS/www/forum/Packages/temp owned by uid/gid 99/99
File: /mounted-storage/home30b/sub003/sc26657-RCAS/www/forum/Sources/Subs-Package.php
Line: 340
What am I doing wrong, and what can I do to fix it?
Atm we are using SMF 1.0.8 and the only other things I've installed are 2 themes, but I use standard theme and it's also the overall theme, people can though choose their own theme if they want...
I would make a wild guess that your host has the PHP in safe mode. I can't be certain because I have zero experience with PHP in safe mode.
Ugh. It messed my forum up. I'm trying to uninstall it, but everytime I hit the uninstall link, I get this:
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions
Uninstall Actions "Ultimate Shoutbox":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Subs.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
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 successful
7. Execute Modification ./ssi_examples.shtml Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test successful
I'm afraid to proceed, what should I do?
ETA: Never mind, I finally got it uninstalled.
Version 1.1RC3
Shoutbox 1.39
Anyone have any idea why some of my members cannot use the shout feature? And when trying to get get this error; Unable to verify referring url. Please go back and try again
SMF Version: SMF 1.1 RC3
GREEN BAR STAYS THERE WHEN QUOTING? and quotes don't work at all!
Hi, Im a downright noob at SMF!!! Huh
on my forum, when u do a QUOTE, a green LOADING bar appears on top of the screen and does not go away or quote anything at all?
I feel it could be a PACKAGE that i installed that caused this problem!
I also feel it could be the Shotubox that i have installed, cos if i remove the shoutbox, then i dont get this error?
If someone could please assist me with the placement of the shoutbox code, or other solutions to this problems, i would very much appreciate it.
the forum in question is at www.rid1.co.za/smf
I have created a test account
username: test
password: test
the packages i have installed are:
1. Stars to Profile 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
2. Country Flags 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
3. Member Awards 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
4. Download 1.1 RC3 RC3 [ Apply Mod ] [ List Files ] [ Delete ]
5. Reason For Editing Mod 1.13 [ Uninstall ] [ List Files ] [ Delete ]
6. K-Detection 1.1 [ Uninstall ] [ List Files ] [ Delete ]
7. Board Viewers 0.6 [ Apply Mod ] [ List Files ] [ Delete ]
8. Active Members In Topic 1.3 [ Uninstall ] [ List Files ] [ Delete ]
9. SMFShop 2.2 [ Uninstall ] [ List Files ] [ Delete ]
10. Global Announcements 1.0 [ Uninstall ] [ List Files ] [ Delete ]
11. SMF 1.0.9 and 1.1 RC3-1 Security Patch 1.0.8/1.1 RC3 [ Uninstall ] [ List Files ] [ Delete ]
12. Users Online Today Mod 1.4.0 Beta 2 [ Uninstall ] [ List Files ] [ Delete ]
13. No Spam by Guests! 0.1 [ Uninstall ] [ List Files ] [ Delete ]
14. Karma Buttons 1.02 [ Uninstall ] [ List Files ] [ Delete ]
15. Ultimate Shoutbox 1.39 [ Uninstall ] [ List Files ] [ Delete ]
16. Message Icon Manager (Quick Reply) 1.2 [ Apply Mod ] [ List Files ] [ Delete ]
17. Googlebot & Spiders Mod 2.0.2 [ Uninstall ] [ List Files ] [ Delete ]
18. Attachments Download Permission 1.0 [ Uninstall ] [ List Files ] [ Delete ]
19. SMFShop 2.2 to 2.3 Update 2.3 [ List Files ] [ Delete ]
20. Google Talk Field 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
21. VisualWarning 1.29 [ Uninstall ] [ List Files ] [ Delete ]
22. Shop Item: Change Display Name CSS 0.1 [ Apply Mod ] [ List Files ] [ Delete ]
23. Shop Item: Profile Image 0.1 [ Uninstall ] [ List Files ] [ Delete ]
The shout code doesn't have a designated placement. I think the default for it is under the menu on the index page. Meaning that's where it appears on an unaltered installation.
When did this green bar start showing up? And what was the last mod you installed before you started getting it?
You have certianly got a lot of mods, that's dangerous in itself for new SMF users.
No update for the 1.1 final ? ;)
Install doesn't work.
I believe Grudge mentioned trying to get things updated this weekend.
Ya got to remember these folks are carrying out lives of their own off the forum, and aren't charging for anything they provide us here. ;D
thanks for your reply.
I have so many mods because i get bored with things easily, and then when i see a compatible mod, i get excited!!! ;D
Also I would uninstall some mods, but i cant, because they wont uninstall! "test failures"
I cant remember exactly since when this errors have happened...
If i install tinyportal then my quotes work fine! But tinyportal kind of slows the forum down! :'(
I have installed its mod manuall and modify it for look as D-Shoutbox
http://tmp.forum-roadster.com 8)
Nice looking site Altern.
rid123, that's one of the problems with having SO many mods.
As those mods are installed through the package manager, different lines of code are appended to, or replaced, and sometimes in several different files.
Each mod looks for particular code existing in the files so it knows where to add it's own code. By the time you get 9 or 10 mods installed, a lot of the original code has been so modified, that either another mod cannot be added by the package manager or existing mods can't be uninstalled. Because it can't find what it's looking for due to too many alterations.
Reading the .xml file in the mods will tell you what gets changed or added and they could be removed manually. But like I said...that many mods pretty much renders the package manager useless.
:D Problem SOlved!!!!! For now i think!!!!
I upgraded my forum from 1.1 RC3 to 1.1
And the Quote feature is working again!
This time around i will watch closely which mod stops it from working! 8)
And also this time around, i will keep my mods down to the ones that have only been really useful!
;D
Stumped on getting shoutbox to work
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}
function template_main_below()
using latest version of Ultimate Shoutbox and SMF
when I intalled the mod I got this message
Code:
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
and replace with:
Code:
<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;">';
code above mentioned code does not exist
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
and on the mod page of SMF is said to use this code
if (function_exists('smfshout')) smfshout();
Which code do I use?
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
or
if (function_exists('smfshout')) smfshout();
How should the code look like under the following
// The main content should go here.
Okay, I am trying to figure this out. I can't seem to figure out how to place it and the link for placement seems to be wrong now. I want to place it right below my menu on the default template. Do I put this;
if (function_exists('smfshout'))
smfshout();
inside other code like;
<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;">'
Okay I was trying to uninstall using the package manager and now my website is down. Here is the error I get;
Fatal error: Cannot redeclare smfshout() (previously declared in /home/content/s/l/e/sleepy127/html/smf/Sources/Subs.php:3347) in /home/content/s/l/e/sleepy127/html/smf/Sources/Subs.php on line 3353
Hi, I was wondering Can someone help me please? i'm very new with php.
I have successfully installed the mod, but i'm having problems with the scripting part.
everytime I put the script in it messes the template up. it splits it in half or worse don't even show the forums. get lots of errors.
I have attached the script as an attachment, can you please show me where I can put the shoutbox in?
and my forums are at belthazor.geekpagan.com/smf
suprise me in the location where to put it. :d
thanks in advanced
Updated for 1.1.1. Sorry for the delay. Use v1.40
Great mod.
I put shoutbox at bottom of the board index.
The only thing that bother me is after I send shout page is refreshed and Iam at top of the page.
I would like to jump back at same position I was.
p.s. In Who is Online it shows Unknow action for users in Shoutbox archive. ( how can i fix it )
Hello
i have a problem
when i put the code to show it in my musiconica theme i have this space
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg166.imageshack.us%2Fimg166%2F7223%2Fshoutboxdi4.jpg&hash=14104b9d8be9a06e6f09d30fc103c8a0f5a8312c)
can you help me?
How can i display shout box n different page? Using ssi functions! Please direct me to display it!
Quote from: h4ni on December 28, 2006, 06:36:03 PM
Hello
i have a problem
when i put the code to show it in my musiconica theme i have this space
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg166.imageshack.us%2Fimg166%2F7223%2Fshoutboxdi4.jpg&hash=14104b9d8be9a06e6f09d30fc103c8a0f5a8312c)
can you help me?
I have the same problem but with the default theme.
Little more info on this, since I had it working just fine with 1.1 rc3
running 1.1.1 with the following mods, keep in mind this is the test forum and the main forum is only running 5 mods.
1. Board Viewers Mod 1.1
2. View Single PM 1.1
3. Ultimate Shoutbox 1.40
4. Sticky First Post (extends sticky topic) 1.3.1
5. Users Online Today Mod 1.4.0
6. SMF Staff Page 1.5
7. Custom Profile Field Mod 3.16
8. MessagePreviewOnHover 1.4
9. SMF Links 1.6.3
10. User Email System 1.1.3
I get the above blank screen with just a message box and view all link. I can enter a message but it shows up with a red x and the message in the blank area. After adding 5 messages it starts trying to auto scroll up and down through the messages. After a couple seconds of that dizziness sets in and you pass out. Please....help....
Oh yeah, and I really only want to add it to the main board index but I get parse errors anytime I add the lines of script to the board index template.
Another weird thing, when using aceftp to manually upload the shout.template.php to the default theme it does nothing. At least no file shows up. So I went to cpanel and added it through there. It did move over but still not working. The other thing is I noticed another file in there that doesn't show up in aceftp, sbox.template.php. I'm thinking maybe this is an older file from a previous shout box that wasn't deleted with the unistall. Could this be having an effect on it?
Never mind, I renamed it .bak and the box is still not working.
Does it use Ajax technology?
Is there a live demo?
Thank you in advance :)
Hi there, i have tricky question regarding the ssi_shout() function in the SSI.php
I have installed succesfully the Shoutbox mod, and made a costum copy of the shout.template to match the shoutbox with every Theme i have on my forum.
For example:
The classic Theme, has its own Shoutbox template; The default theme has its own shoutbox template! and so on and so on, every theme has its own shoutbox template! And each template is diferent for every theme.
I am creating now a main website for my forum, and want to have the shoutbox in it, so i called the ssi_shout() function with SSI.
The problem is, that i cant specify, which template i want to use for the main website. At first it looks great, but once you login, the ssi_shout() function, calls the shout.template you use on your specific theme.
This means: If i use the default theme on my forum, it calls the shout.template in /default or if i use the classic theme, it uses the shout.template in /classic. And since every theme has its own shout.template.php, it doesnt match everytime, it depends on the skin the user use.
Examples:
Without login in (This is the way i wanted to be)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg406.imageshack.us%2Fimg406%2F187%2Fnotlogedinbd8.th.jpg&hash=65a8d0e4ac1ca569ea95fede3d0125343151bd48) (http://img406.imageshack.us/my.php?image=notlogedinbd8.jpg)
When im logged in (It lokks a little bit weird :( as you can see the font changes and the align is to the left, because i use a non-default theme in my forum)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg406.imageshack.us%2Fimg406%2F8607%2Floggedinso6.th.jpg&hash=0f831bb45baf8403a50cd602b5be5a9c79dd58cb) (http://img406.imageshack.us/my.php?image=loggedinso6.jpg)
(www.hablarmierda.net/index3.php)
My question is: Can i define, which template (shout.template.php) i want to use in the ssi_shout() function? do i have to modify the SSI.php?
I hope you guys can understand my Problem!
I don't understand the problem. Calling the shouts does not call the styling from the forum. Once logged in, the shoutbox (on the webpages) will display the input box etc. - is that the problem? If so, you can turn that off in SSI.php in your main forum directory:
function ssi_shout($showform = false)
{
global $sourcedir;
include_once("$sourcedir/shout.php");
shout_display($showform);
}
?>
I've reread your post, and I still do not understand. I've made my own shoutbox template before, but when I used SSI to port the shouts to my webpages, only the shouts and (if I allowed it) the form were ported - I styled on the actual webpages.
Hope that helps.
Ive searched all these pages and didnt find an answer. I got the box working , but would like to add a border around it and maybe change the bgcolor. Can someone point me in the right direction?
Please.
How do you get the smilies to work?
Hi Chep,
This shoutbox does not have integrated smilies with it, but if you type the code in, a smilie will appear. The easy way to do this is to open a second window to the forum (Ctrl+n), go a reply page, click the smilies you want, and copy/paste the code to the shoutbox text box in the other window to the forum.
Ok. This shoutbox is a lot easier to install and configure than the other ones.
Thanks a lot.
Hi.
Sorry, for my english *g* I understand it all, but cant write correktly.
I've installed the shoutbox with the paket manager and after installation I got many errors. Every shoutbox function exists threefoldly.
For example:
$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'shout' => 'ModifyShoutboxSettings',
'shout' => 'ModifyShoutboxSettings',
'shout' => 'ModifyShoutboxSettings',
);
I deleted two of them in every file. Now, I've no errors, and no shoutbox too.
I have only a little white textfield with an empty area above. If I write something, I get an error message like "There is an error".
My SMF is german (1.1.1). When I changed it to english, the shotbox will not be displayed too.
I copied the file "Modifications.english.php" in "Modifications.german.php" but the problem is the same.
I used a various theme, but with the default the sbox is not be displayed correktly too.
What can I do?
If I installed the shoutbox again every function will be exists threefoldly... ??? And... erm... I cant deinstall the shoutbox... I get many error messages when I'm trying to do this.
I have the shoutbox working well, on my 1.1.1 install.
However, I just can't get it to work with Bloc's "Apollo" theme. Nor, with is "Techhead" theme.
Any ideas, please?
I have a problem that if I switch Javascript XML refresh on, most user are displayed as "Unknown Action" in the "who's online" list... if I switch it off, all if back to normal. I use SMF 1.1.1
That could be because they've used the shoutbox, because making a shout isn't a defined action.
Even I do not use the shoutbox.
I just switch XML refresh on, and from then, all users are mostly displayed with unknown action, even guests, and they can not shout.
Its hard in that case to track what a user i doing.
It look like the forum lost the current user's action if the shoutbox do the refresh.
Is there anything what I can do about it? I do not like to change the shoutbox to another, this one is far the best for me.
Non-techie answer. I would assume that, every time the shoutbox refreshes, the software thinks that the last action that was done was a post in the shoutbox.
Not what you'd call a bug. More like the two mods aren't, really, compatible, in their current forms.
I had to turn off the auto refresh, for this very reason.
Less load on the server, anyway.
I wonder if this would work if the shoutbox was in an iframe instead? Worth checking the thread to see if this has been covered. I know that tried using an iframe at one time, for other reasons, but had some problems - I cannot remember what though. I'd be inclined to to just turn it off though. After all, it does refresh with each page click anyway.
Hello. How can I put this mod with the language spanish I don't mean translate the mod, only how can I see the mod with my spanish language?
Thanks
Hello, I am hopeing that someone can help me.
I am using 1.1.1 and Ig-Oh for 1.1 theme.
Now in the Admin i went to Packages then clicked on Download Packages.
I located the file shout_v1.40.tar that I downloaded from http://custom.simplemachines.org/mods/index.php?mod=22
When i clicked on ipload i get this following message.
The package you tried to upload either is not a valid package or has become corrupted.
Can someone please help me.
Jump,
Just delete it from within the manager, and try re-uploading.
I have been trying with no luck to change the display off the shout box so that the View all, input form and the shout button are horizontal instead of vertical. Could somebody point me in the right direction as how to do this?
Cheers
Hello guys a great mod indeed but i want to know something how can i disable autoscroll feature in this mod and have a manual scroll and how do u use smilies in this mod and the last thing can we have special permissions from mods and admins in shoutbox like banning if yes then how?
Thanks in advance
You can stop the scrolling, using the settings in admin. I don't think you can manually scroll, though. The only way you can see previous shouts, is to click "View all", underneath.
You should be able to put it in a div, and have scroll set to auto within the CSS.
Just set the height value of your div, then use the attribute 'overflow', and give it the value 'auto'. This means the div will always be a set size, but when the shouts displayed are too big for the box a scroll bar will be automatically generated.
Grudge does this shoutbox work with MySQL as my database is MySql?
Thanks & Regards
xsharewarex
how do install shoutbox???????
Strangely enough, via package manager...
You'll need to modify the indextemplate in each theme, other than the SMF default, manually, though.
THAT can be somewhat problematic.
Wow... too many pages to find answers. Sorry if this has been already asked, but how can I move the SB above the menu links to be viewed on every page? Tnx.
c3vettes,
I placed the shoutbox in the upshrinker, and posted the code some pages ago. However, there was a oblem with the recent to SMF (I'm sure it's just a templating issue). If you give it a few days, I'll see if I can get to it, and I'll post the code here for the default SMF template (Babylon). ;)
Getting this error on upload via package manager. Anyone got a fix or know why i would get this error? Thank you.
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. Extract File ./Themes/babylon/images/deleteshout.gif
6. Extract File ./Themes/classic/images/deleteshout.gif
7. Execute Code shoutPdb.php
8. Execute Modification ./index.php Test successful
9. Execute Modification ./Sources/Subs.php Test successful
10. Execute Modification ./Sources/ModSettings.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
12. Execute Modification ./SSI.php Test successful
13. Execute Modification ./ssi_examples.php Test successful
14. Execute Modification ./ssi_examples.shtml Test successful
15. Execute Modification ./Sources/ManagePermissions.php Test failed
I am getting this error in my error log. I see some other people have gotten this error but I didnt see how they solved it any help will be appreciated. here it is
8: Undefined index: uot_users_online_today_title
File: /home2/ibewfrie/public_html/Themes/default/shout.template.php (eval?)
Line: 411 and
8: Undefined index: uot_users_online_today_title
File: /home2/ibewfrie/public_html/Themes/default/shout.template.php (eval?)
Line: 414
Every once in a while the Shoutbox displays an error when you try to post in it on the main forums page. The error doesn't happen when you click View All and post inside there, but only on the main page. It happened in other versions of SMF - I've had many (1.0, 1.1 RC1, 1.1RC2, 1.1.1 and now 1.1.2). What could be causing the error when posting a message on the ultimate shoutbox?
Please forgive me for asking a basic question - but to what file do you upload the shoutbox files to? It wasn't said in the original mod directions - just skips to make sure install was successful. Someone kind of missed a few steps from >> download to install.
Thanks - help a newbie out today :$
Quote from: houston on January 29, 2007, 12:38:00 PM
I have been trying with no luck to change the display off the shout box so that the View all, input form and the shout button are horizontal instead of vertical. Could somebody point me in the right direction as how to do this?
Cheers
Did you get any answer how to do it? I got them all in one line. I also hide the "View All" from guest.
As I recall, the Shoutbox makes simple use of break tags. Instead, and as equally simple, use the non-breaking space code:
Use a few of these, for however much space you need.
Alright - I hate the way it scrolls can that be changed? -I'd actually rather use the archived "look" for the main shoutbox - andcan it be modified to autorefresh - all in all like it - i put it above my users and below the info index so that it can be hidden with those ( can it be given it's own forum header so it can be hidden when so wanted ??
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Frunepixels.com%2Fuimages8%2Fshoutboxlocation.png&hash=114913d79ae701831af5a753e4938655eeca6512)
There are scrolling options in the shoutbox admin.
i found that thank you :$ i've made some changes to it - still would like to know if there's a way to have it as a header to be hidden - but i'm satisfired with everything atm. it does however add more than the "max" number of messages if you dont leave the page or enter a new message o.O
hey
i wanted to align it to the left... is that posible, what should i do to the coding
also when i add the script to my template.. (magmasoul template aka BSG) i get a strip or PHP code at the top of my forum ...
?
hi guys!
I use smf 1.1.1,with the default template.
Where in the code should I put shoutbox?what's the code that must be modified?? ???
i just add this mod to my forums and i love
but its not were i won't it.
any help would be great i would like below my news fader board on helios theme 1.1.2
ps this does work on SMF 1.1.2
In the very first post in this thread, Grudge posts some instructions for the placing of the code to generate the shoutbox.
Would someone be really kind and tell me how to make the guest username bold?
Quote from: perplexed on October 31, 2006, 08:34:26 AM
I have a strange error in the forum error log
I was checking it today and this error was displayed:
http://www.mysite.com/forum/index.php?topic=981.0
Apply Filter: Only show the errors with the same message
8: Undefined index: blurb
File: /home/perplexed/public_html/forum/Themes/default/shout.template.php (main sub template - eval?)
Line: 304
It had listed it twice for the same member at the exact same time etc
So I clicked on the thread to see what it was and when I went back to the log, there were two duplicate entries there for me too
Anyone know what's causing it and how to fix it?
~thanks
ahem, I still have this error, only now that I've upgraded to 1.1.2 it says line 309 instead of 304 but its still there.
I display the shoutbox in a tiny portal block only and not on the forum if that helps.
Line 309 is the very last line with just a ?> on it ???
can anyone help and shed some light on how to make it go away?
Quote from: perplexed on February 26, 2007, 02:58:16 PM
Quote from: perplexed on October 31, 2006, 08:34:26 AM
I have a strange error in the forum error log
I was checking it today and this error was displayed:
http://www.mysite.com/forum/index.php?topic=981.0
Apply Filter: Only show the errors with the same message
8: Undefined index: blurb
File: /home/perplexed/public_html/forum/Themes/default/shout.template.php (main sub template - eval?)
Line: 304
It had listed it twice for the same member at the exact same time etc
So I clicked on the thread to see what it was and when I went back to the log, there were two duplicate entries there for me too
Anyone know what's causing it and how to fix it?
~thanks
ahem, I still have this error, only now that I've upgraded to 1.1.2 it says line 309 instead of 304 but its still there.
I display the shoutbox in a tiny portal block only and not on the forum if that helps.
Line 309 is the very last line with just a ?> on it ???
can anyone help and shed some light on how to make it go away?
my problem is solved, see this thread (http://www.simplemachines.org/community/index.php?topic=153967)
i put this shout box in and it works great but know when i go to who's online it tells me that the action is unknown action on every buddy.
// news
echo '
</div>';
// stats echo '<div style="padding-left: 0px;">'.$leftbox.'<table width="99%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" style="color: #88908a; font-size: 8pt; font-family: tahoma, helvetica, serif;"><b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b> ', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['totalMembers'], '</b> ', $txt[19], ' - ', $txt[656], ': <b> <a style="color: #b0b0b0" href="', $scripturl , '?action=profile;u=' , $modSettings['latestMember'] , '">' , $modSettings['latestRealName'] , '</a></b> </td><td align="right" style="color: #b0b0b0; font-size: 8pt; font-family: tahoma, helvetica, serif;">'.$context['current_time'].'</td></tr></table>'.$rightbox.'</div>';
if (function_exists('smfshout')) <---- this is were i put it i also tryed to put the echo ' smfshout(); and it gave me an error
// 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/'.$options['theme_color'].'/pod-midbar.gif);" ><tr>'; echo '<td style="width: 39%; background-color: black;"> </td><td><img src="' . $settings['images_url'] . '/pod/'.$options['theme_color'].'/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></td><td><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="width: 2px; height |
could some ine help me with this or tell me to put wome place else i tryed putting it under the news header i cant seem to find that area..
i a noob sorry about that
Hey I dont like how it refreshes the page is there anyway to keep the page the same but have it automatically reload every couple of seconds?
Grudge, et al ...
Where would I need to go to change the default font color of the shoutbox messages?
I'd like to try a darker background color on my forum, which makes the "shouts" basically disappear. I don't need to change font color everywhere ... just in a few key spots that will be affected by the background image change.
I tried creating a CSS id (bodyshout) and changing it there and in index.template, but it didn't work. I looked in shout.php and in the shout_script.js files, but didn't see any style controls in those, either.
Thanks in advance,
NativePages
http://www.nativepages.com/tnindian
Thank you very much for this shoutbox.
I find it so useful that actully I use it as a chat for my site (SMF 1.1.2 + TP 0.97); however I'm a bit concerned about CPU server usage since my site is hosted by a shared server.
So I'd like to make your shoutbox visible NOT in the frontal page of my site but in another page accesible via the menu.
So I edited my index.template and added this line:
// Show the [chat] button.
echo'
<td align="center" class="menubg' , $current_action == 'shout' ? '2' : '' , '">
<a href="', $scripturl, '?action=shout">' , $txt['chat'] , '</a>
</td>';
However everytime I click on my chat button, I get this:
An Error Has Occurred!
Your session timed out while posting. Please go back and try again.
Could anyone please help me? I do not know very much about php :-[
Ok, I read through the first few pages, and the last few pages, and did a search. Nothing came up, so I'm going to assume that this hasn't been asked.
I've installed the shoutbox, and it's working fine. However, when I log out and log in as my test account, with Regular User permissions, it doesn't have the shout form for inputs, on either the archive or the main view. The View All link is there on the main view, but not the textbox.
As far as I can tell, the following is where it would be...
Archive...
if ($modSettings['enablearchiveshout'] == 1 && $context['canPost'])
{
echo '
<p><table border="0" cellspacing="1" cellpadding="3" align="center" width="100%" class="borderclass">
<tr>
<td align="center">';
template_shout_form();
echo '
</td>
</tr>
</table></p>';
}
Shoutbox...
// Are we showing the shout form?
if ($context['show_shout_form'] && function_exists('shout_form'))
shout_form();
shout_form()...
function shout_form()
{
global $user_info, $settings, $modSettings, $scripturl, $context;
$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'];
$canPost = allowedTo('make_shout');
if (!$canPost)
return;
// Now do the printing...
loadTemplate('shout');
// Run the template!
template_shout_form();
}
And template_shout_form()
function template_shout_form()
{
global $context, $settings, $options, $txt, $user_info, $scripturl, $modSettings, $ID_MEMBER;
// <center>
echo '
<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="300" onfocus="this.value=\'\'" /><br />';
if (empty($modSettings['shout_noGuestEmail']))
echo '
<input type="text" value="', $txt['shoutbox_7'], '" name="email" maxlength="300" 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="300" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />
<input type="submit" name="submit" value="', $txt['shoutbox_9'], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
// </center>';
}
I've change a couple of lengths and tags, but nothing major.
My best guess is that for some reason the canPost variable (in shout_form() and template_shout_archive() as a context) is coming up false, but this account can post on the forum--are there permissions I'm missing somewhere?
I made my shoutbox in such a way that only the admin can shout. I placed it in boardindex.template.php and I use it to display selected topics on the index page.
Please how do I make the shouts show up for guests? And secondly how do I stop the shouted topics from opening in another window.
Hello Grudge
Can you please change the code of the shout.php function delete_shout_age to this... the old one will on work with register_globals on... and this is not up to date... if this not changes you can insert everything you like and it will delete everything in the shoutbox ;).
function delete_shout_age()
{
global $txt, $db_prefix, $modSettings, $scripturl;
isAllowedTo('delete_shout');
if(empty($_POST['age']) || !is_numeric($_POST['age']))
ShoutArchive();
else
$age = $_POST['age'];
$request = db_query("
DELETE
FROM {$db_prefix}shoutbox
WHERE time < " . (time() - 3600 * 24 * $age), __FILE__, __LINE__);
ShoutArchive();
}
Bye
DIN1031
Anyone can pleas help me with this (http://www.simplemachines.org/community/index.php?topic=8415.msg1002187#msg1002187)?
I have one problem with the BBcode in ShoutBox, how can I edit files that's disable the [img] tag in ShoutBox? Sometimes, people use it to show a big image resulting in a unwanted layout of my ShoutBox.
does this work for smf 1.1.2?
The latest version does. I have it woerking on mine.
I'm still looking for someone who could help me change the shoutbox's message font/text color. Anyone?
Quote from: Steev on March 12, 2007, 05:13:37 PM
I've installed the shoutbox, and it's working fine. However, when I log out and log in as my test account, with Regular User permissions, it doesn't have the shout form for inputs, on either the archive or the main view. The View All link is there on the main view, but not the textbox.
So, I was directed to the permissions, and discovered that they hadn't been added to the proper page. Once I went through the .mod file and discovered what I needed to have there, and entered it manually, everything works properly now. Just in case anyone else has this issue.
Quote from: Adolfo on March 20, 2007, 06:25:27 PM
Anyone can pleas help me with this (http://www.simplemachines.org/community/index.php?topic=8415.msg1002187#msg1002187)?
I'm not aware of any problems with CPU usage and this mod - unless you have it auto-refreshing! If you do use auto-refresh, this can be turned off in the shoutbox options.
Quote from: Adolfo on March 11, 2007, 08:03:17 PM
Thank you very much for this shoutbox.
I find it so useful that actully I use it as a chat for my site (SMF 1.1.2 + TP 0.97); however I'm a bit concerned about CPU server usage since my site is hosted by a shared server.
So I'd like to make your shoutbox visible NOT in the frontal page of my site but in another page accesible via the menu.
So I edited my index.template and added this line:
// Show the [chat] button.
echo'
<td align="center" class="menubg' , $current_action == 'shout' ? '2' : '' , '">
<a href="', $scripturl, '?action=shout">' , $txt['chat'] , '</a>
</td>';
However everytime I click on my chat button, I get this:
An Error Has Occurred!
Your session timed out while posting. Please go back and try again.
Could anyone please help me? I do not know very much about php :-[
You could add the tag into an advert in adManager, then use admanager to put it where you want.
Getting this message using v 1.1.2
Installation Readme
Sorry, but the SMF Shoutbox Mod doesn't support your SMF version!
Install Actions
Installations actions for "SMF Shoutbox":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Tried install uploading thru package manager & uploading package tthru ftp
Dave,
Which version of SMF are you running; which version of the shoutbox are you trying to install?
I am running Smf 1.1.2 & shoutbox 1.40 Col
Just tried it again & its installed fine??????
I'm trying to add the shoutbox into adManager as a column, I can do it with the php tag, but what I'm trying to do is create block with other things in, affiliates buttons etc.
So I want to use HTML only, how exactly would I do this, I'm new to PHP so don't know how or if I can inject a php statement directly into my html code.
Thanks
I have installed this mod at my smf 1.1.2 with a custom theme but shoutbox doesn't show up at the top of Board.index,what can I do.
Storm,
Read the very first post in this thread. There is a pice of code that you must insert in your template for the shoutbox to appear.
Quote from: Col on April 08, 2007, 07:34:53 PM
Storm,
Read the very first post in this thread. There is a pice of code that you must insert in your template for the shoutbox to appear.
Thanks cool but my problem is where I have to insert the code,I want shoutbox to appear under the news in top page but do not know where,can you or someone tell me where,thanks.
Possible bug discovered with the US yesterday.
One of my users managed to get a double-shout in. The same thing, about half a second apart. Probably double-clicked or something. Not really sure how she did it.
Anyway, I went to delete one of them by clicking the red X beside it, and *every* shout disappeared.
I took a quick look at the code, and it looks like it's trying to delete based on shout ID, as it should; perhaps the double shout managed to not get an ID, so the query left that blank? Not really sure, and I haven't managed to repeat the process yet.
can any of you guys tell me how to intall the shoutbox in the first place, I will be more than gratefull to know how to do that :)
Im kinda new at this so please help me out :)
Is it possible to edit this shoutbox, so it is a Shoutbox in the right side of the Index-page. It has to look something like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg408.imageshack.us%2Fimg408%2F208%2Fshoutboxjb3.jpg&hash=94b838242d1f50c71f19c2fa922fb0cd7eed5faa)
If it is possible. A list of corrections would be appreciated.
STILL STILL STILL waiting to see if anyone knows how to change the font color in the shoutbox. I really need to convert mine to white! I've been back and forth through the template and scripts and can't see where there's an opportunity to do that without risking messing up code I don't understand.
NativePages
NativePages. I changed the size of text in my shoutbox to 9 point as well as the color to blue . Maybe it will help you. Dont forget to save a backup before you do the editing.
original codes from default theme -> shout.template.php
// If it's an admin - they get the delete button...
if (!empty($context['canDelete']))
echo '
<a href="', $scripturl, '?action=delete_shout;sesc=', $context['session_id'], ';sid=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
', $shout['time'], ' ', $shout['link'], ' -', $shout['message'] . $modSettings['shoutsep'];
echo '
</div>';
changed to:
// If it's an admin - they get the delete button...
if (!empty($context['canDelete']))
echo '
<a href="', $scripturl, '?action=delete_shout;sesc=', $context['session_id'], ';sid=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '<span style="font-size:9pt";>
', $shout['time'], ' <b>', $shout['link'], '</b> -', '<span style="color:blue;">', $shout['message'] . $modSettings['shoutsep'],'</span></span>';
echo '
</div>';
That may help you. Goodluck.
Quote from: Alisha on January 18, 2005, 11:44:51 AM
Quote from: ****** on January 18, 2005, 05:41:49 AM
<div align="left">Shout</div>
<span style="float: left">Shout</span>
e.g.
thanks.. searched through 9 pages to get to this message on how to right justify the ultimate shoutbox in smf. (that enough words for a search for someone else :) )
same here.. dont care if its right.. it works and doesnt generate any errors.. so I say mission accomplished.. (for real)
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.
Thanks, Johny. I got so frustrated I finally just put a background image behind it to make it show up in black, but I'll go try this. The site is on image overload now, and I don't like the look of the background image at all. I'd rather just have a different color font.
Quote from: JohnyB on April 27, 2007, 07:05:48 PM
NativePages. I changed the size of text in my shoutbox to 9 point as well as the color to blue . Maybe it will help you. Dont forget to save a backup before you do the editing.
original codes from default theme -> shout.template.php
// If it's an admin - they get the delete button...
if (!empty($context['canDelete']))
echo '
<a href="', $scripturl, '?action=delete_shout;sesc=', $context['session_id'], ';sid=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
', $shout['time'], ' ', $shout['link'], ' -', $shout['message'] . $modSettings['shoutsep'];
echo '
</div>';
changed to:
// If it's an admin - they get the delete button...
if (!empty($context['canDelete']))
echo '
<a href="', $scripturl, '?action=delete_shout;sesc=', $context['session_id'], ';sid=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '<span style="font-size:9pt";>
', $shout['time'], ' <b>', $shout['link'], '</b> -', '<span style="color:blue;">', $shout['message'] . $modSettings['shoutsep'],'</span></span>';
echo '
</div>';
That may help you. Goodluck.
Hey, I finally got this working but I've run into a snag.
The shoutbox messages center themselves and I don't like it like that.
How do I align all of the messages to the left.
Example:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fzube.us%2Fshoutbox.png&hash=f001d2dee8117240cd763bb1fbf15518a5e38803)
http://www.simplemachines.org/community/index.php?topic=169021.msg1110682#msg1110682
security hole !!
Thats what other people say. I say some SMF staff should look at this for security holes ;)
Please how do I make only the posted tipic show? I want to stop the date, and poster's id from showing up.
Quote from: hvyhitter on May 14, 2007, 01:51:57 PM
Quote from: Alisha on January 18, 2005, 11:44:51 AM
same here.. dont care if its right.. it works and doesnt generate any errors.. so I say mission accomplished.. (for real)
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.
Not sure of the line differences, but you
should close the center tag on around 210 (of mine), or about 40 lines down from the original center tag.
Its just above this text:
// Are we showing the shout form?
if ($context['show_shout_form'] && function_exists('shout_form'))
shout_form();
}
Quote from: richfella on June 09, 2007, 12:03:03 PM
Please how do I make only the posted tipic show? I want to stop the date, and poster's id from showing up.
in shout.template.php find (line 184 on my copy):
// 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;sesc=', $context['session_id'], ';sid=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
', $shout['time'], ' ', $shout['link'], ' -', $shout['message'] . $modSettings['shoutsep'];
echo '
</div>';
}
change to:
// 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;sesc=', $context['session_id'], ';sid=', $shout['id'], $context['url_direct'], '"><img src="', $settings['images_url'], '/deleteshout.gif" border="0" alt="X"></a>';
echo '
', ' -', $shout['message'] . $modSettings['shoutsep'];
echo '
</div>';
}
didn't try it, but it looks like it should work.
I was going to post the exact same suggestion yesterday, but decided to try the edit myself before posting. For some reason though, nothing changed. I have hacked about with that template file before though, so maybe I introduced something that somehow overrides that change, but I doubt it.
@ Weekend Camper
Hey thanks, it worked perfectly.
Hmmm. That's decidedly odd then. I even double checked to see if I was editing the correct shoutbox template (in the correct theme). Oh, maybe it only affects new shouts? That would explain it.
Anyway, glad it's working for you richfella.
Hi ummm im trying to install this shoutbox and im having some problems... like where do i put that code in the boardindex.template?? i want it over the main board.. but not sure where to put it
Hi Dette,
Click the link to my forum - I've put the shoutbox in the colapseable part of the header. I could give you a copy of my index.template and shoutbox.template files and additional CSS if you like. I removed some features from the header that I considered useless, but you could probably add them again without too many difficulties. You would have to work up your own template, as I've made other small changes to the index page.
Thanks col...
none of my mods will work AT ALL right now... so i have to fix that first :(.... there all getting errors when i install.. maybe you could help?
Hi Dette,
Uninstall your mods in reverse order - the last mod you installed should be the first mod you remove. If all else fails, back up your database, and install a fresh forum (first, be sure to backup any themes you've made, and any other files you think important). I usually back up everything in such situations, just in case.
If you are looking for direct help, I'd be wary of asking any random person person here. I'm sure most people are fine, but you never know. If ever you need hands on help, ask one of the SMF team.
Hello.
Is it possible to place shoutbox on the userinfo table, on teh right corner? I'm not very good on php, would you help me? Thank you.
Yes it is possible. You would have to place the code:
if (function_exists('smfshout')) smfshout();
wherever you want it to appear. Most likely your index.template.php for the top header area. ;)
Is there an option to hide the shoutbox for guests ?
thanks
Quote from: sportforum on July 20, 2007, 12:23:16 PM
Is there an option to hide the shoutbox for guests ?
thanks
Hi,
Try these posts:
http://www.simplemachines.org/community/index.php?topic=8415.msg461536#msg461536
http://www.simplemachines.org/community/index.php?topic=8415.msg465159#msg465159
Thanks Col ! Its working :)
mutch better now :p
will this work on 1.1.2?
Quote from: netlink on August 02, 2007, 03:49:12 AM
will this work on 1.1.2?
It should. I'm running it on 1.1.3. You should probably upgrade to 1.1.3 yourself! ;)
Hi
Im so much new to SMF i think that SMF is so much better than IPB now!
Ive downloaded the shoutbox, where should i upload it, in what directory sorry that im really noob.
And what then? run a installation or something pls answer!
Use package manager in the admin area
hello i have added sboxdb.php in sources folder do i need to chmod it i have added all other files in my new theme folder added if (function_exists('smfshout')) smfshout(); in my index.template.php but it wont show up what am i doing wrong ??
Quote from: clocktower on August 06, 2007, 07:28:47 AM
hello i have added sboxdb.php in sources folder do i need to chmod it i have added all other files in my new theme folder added if (function_exists('smfshout')) smfshout(); in my index.template.php but it wont show up what am i doing wrong ??
HI,
You seem to be using SMFshoutbox files, but the Ultimate Shoutbox call!
Quote from: LunyMarcus on August 05, 2007, 11:34:44 PM
Use package manager in the admin area
Yes, now it works and ive add that thing to my template and so on, but a new problem :/!!!
Watch this:
The Shoutbox dont show and there is only one button with none text and a input??
PLS HELP SOMEONE WHAT COULD BE WRONG?!
http://img111.imageshack.us/img111/1469/heeelpeb6.png
Quote from: brianjw on July 03, 2007, 08:06:39 AM
Yes it is possible. You would have to place the code:
if (function_exists('smfshout')) smfshout();
wherever you want it to appear. Most likely your index.template.php for the top header area. ;)
I DID WHAT U WAS SAYING NOT IT DOESNT DISPLAY IT, THAT MEANS THAT THE FUNCTION DOESNT EXCIST RIGHT?
PLEASE REPPLYYYY!!!
Thats the correct code, maybe it didnt install completely
OK, most likely the mod didn't get installed correctly and fully.
Another thing to check is that this code
if (function_exists('smfshout'))
smfshout();
must be placed in a php area, so if there is html around it you would use
';
if (function_exists('smfshout'))
smfshout();
echo '
Hello,
I've just installed the shoutbox on my SMF 1.1.3 and it works. My problem is that once someone shouts, the page is redirected to the man SMF board page. This is big issue for me because I use SSI function "shout" to call the shoutbox in a frame, meaning that everythime that someone shouts somethins, the small frame initially showing the shoutbox is loading the main page of the forum...
Can anybody please help me solve this?
Thanks.
PiP
I know these questions have been asked before and I apologize for bringing them back up but unfortunately I have not found a solution yet. I am wanting to align all of the shouts to the left instead of the center and I am wanting the shout button to be next to the input field.
I have read through this thread and have been unable to find working solutions. Any suggestions would be greatly appreciated, thank you.
Quote from: Azzyh on August 06, 2007, 10:14:07 AM
Quote from: LunyMarcus on August 05, 2007, 11:34:44 PM
Use package manager in the admin area
Yes, now it works and ive add that thing to my template and so on, but a new problem :/!!!
Watch this:
The Shoutbox dont show and there is only one button with none text and a input??
PLS HELP SOMEONE WHAT COULD BE WRONG?!
http://img111.imageshack.us/img111/1469/heeelpeb6.png
Copy script_shout.js and shout.template.php to your theme directory (if not default theme), do not forget also to copy the shout data to modifications.yourlanguage.php (check modifications.english.php and copy/translate shout data into your language file
Quote from: pipo_il_primero on August 08, 2007, 07:28:09 PM
Hello,
I've just installed the shoutbox on my SMF 1.1.3 and it works. My problem is that once someone shouts, the page is redirected to the man SMF board page. This is big issue for me because I use SSI function "shout" to call the shoutbox in a frame, meaning that everythime that someone shouts somethins, the small frame initially showing the shoutbox is loading the main page of the forum...
Can anybody please help me solve this?
Thanks.
PiP
bump.
please help.
Frame? Do you mean you are using an iframe? If so, why do you need to use that?
Hello Col,
thanks for your interest in helping me with me problem.
The situation is that I am using Joomla, and I don't want to bridge it with SMF.
I want to be able to give the right to the users of SMF (not of Joomla) to use the shoutbox, so I've created an iframe with Joomla Wrapper to wrap the shoutbox.
Hope the above helps you help me...
Do you have to use the iframe because of Joomla? The shoutbox will work on ordinary webpages using SSI - Grudge added this functionality! I've used the Ultimate Shoutbox with another CMS and without an iframe. I think the instructions appear in a readme with the mod files.
Thanks for they reply Col.
I am using SSI code, but in the iframe.
Even if I don't use an iframe and just add the SSI code in the CMS template, the same problem remains: When someone "shouts" the shoutbox redirects to the forum mainpage...
I really need some help on this... I am totally lost, and my coding skills are very, very, VERY basic...
I couldn't get it to work. I can't get ANYTHING as far as mods are concerned to work. Our board installed fine through an autoinstalled on the server. All files match anything downloadable from this site. Themes work fine. I had to update manually to 1.1.3 however.
None of the shoutbox's work, TinyPortal would not work. The YouTube mod would not work. All mods give an error when applied, something like this or similar;
Fatal error: require() [function.require]: Failed opening required '/home66b/sub002/sc39973-PMGE/www/Packages/temp/./shoutPdb.php' (include_path='.:/usr/local/lib/php/') in /mounted-storage/home66b/sub002/sc39973-PMGE/www/Sources/Packages.php on line 552
I have very limited knowledge of PHP coding and syntax, which is obviously going to be a hinderance. But isn't that what the packages and autoinstaller is for? Doesn't matter...
Anyone have any ideas what I'm doing incorrectly? This forum software is awesome and I am quite pleased with my efforts thus far, but need a little insight on how to improve it by adding the toys that I know my visitors demand.
This might have already been asked and I've over looked it, But how can I put it where mods can bann from the shout box?
Thank you.
Quote from: whitedove1 on August 24, 2007, 11:13:50 PM
This might have already been asked and I've over looked it, But how can I put it where mods can bann from the shout box?
Thank you.
I created a ShoutboxBan group. Simply deny access to the shoutbox for this group. If you wish to ban a member, add them to this as a secondary group. ;)
anybody can help?
thx
There have been a few posts concerning redirect issues, but they were to do with being redirected away from the 'View All' page when deleting shouts. Maybe they will help with this issue though:
http://www.simplemachines.org/community/index.php?topic=8415.msg527851;topicseen#msg527851
http://www.simplemachines.org/community/index.php?topic=8415.msg440390#msg440390
For more posts about this, use the search function at the top of this page with the term 'redirect' and 'this topic' from the drop down.
I want to use the Ad Management mod to place this shoutbox where I want it. What code would I enter into the "content" portion of the ad manager to make this display? Do I select PHP or HTML? Thanks in advance!
4fit,
Check out the first post on this thread. Grudge posted some code. I'm uncertain of which you would use.
OK, I've managed to progress a little, but still need help.
*Current situation:
Shoutbox is loaded in an iframe on my website's main page (not forum's main page), and is autorefreshed every 45 seconds. 10 last posts appear everytime.
*Where I want to go:
separate the "Shout" input box from the shoutbox itself so that I can autorefresh the last posts faster, but without having to refresh the input box aswell as this means that people need to type VERY fast.
Also, I want to be able to have a scroll bar in the iframe which includes all shouts so that I can display more than 10 shouts without losing too much space.
Please help me with this, it is really basic coding for someone who is php litterate.
Many thanks,
PiP
Is possible make Shoutbox visible ONLY for determinate membergroups?
i want onlye some groups of users view shoutbox others no
some solution ?
Try looking into http://www.simplemachines.org/community/index.php?topic=13205.0
This will help, the code you will want to use is..
if (in_array(9,5,6, $user_info['groups']))
{
SHOUTBOX PHP CODE HERE
}
else
{
echo 'You don't have access to use the shoutbox!';
}
(you will want to put this in php code) for html make it look like this:
';
if (in_array(9,5,6, $user_info['groups']))
{
SHOUTBOX PHP CODE HERE
}
else
{
echo 'You don't have access to use the shoutbox!';
}
echo '
Change 9,5,6, to your membergroup ids. You must have a comma after the last id.
Replace shoutbox php code here with your shoutbox code.
More information at http://www.simplemachines.org/community/index.php?topic=13205.0
brianjw
Done but retunr me back this:
Parse error: syntax error, unexpected T_VARIABLE in /home2/crazyzonews/www/Themes/default/index.template.php on line 631
Line 631
if (in_array(1,2,3,123,118,120,122,135,133 $user_info['groups']))
Try changing
if (in_array(1,2,3,123,118,120,122,135,133 $user_info['groups']))
to
if (in_array(1,2,3,123,118,120,122,135,133, $user_info['groups']))
Quote from: brianjw on September 14, 2007, 08:10:04 PM
You must have a comma after the last id.
This might not be the problem but try it with the fixed code above and see if that will do any good...
Brianjw
Hi Pipo,
This thread may well point you in the right direction. It is ssi-login and ssi-logout, but addresses the same issue: returning you to the same page.
http://www.simplemachines.org/community/index.php?topic=18077.0
i got it installed in my forum... i got it up and running through package install.
i noticed that the shoutbox is not visible to guest. i want my shoutbox to be visible by guest but can't post.
and also i want to change the background color of the shout box perhaps add an image to it.
and also change the size and color of the default text in shout.
i will appreciate any help...
Thanks in advance.
where do i put the shout function in 1.1.4 index.template.php to show the shoutbox bottom not top?
It's not so much where you put it, as to what you put.
The positioning of it is explained in it's documentation.
Curious.
How would I change the colour of the shouts, for use with a dark-coloured theme?
anybody can help me?
i'm use ultimate shoutbox at phobos themes and it's work but i have a question, how to change ultimate shoutbox font colour and ultimate shoutbox background colour??
Thx
HEY ALL the problem im haveing isi am the admin so i can shout but my members cant even see the message text box or the shout buttom i do not see any permissions to let them shout either on members or guest groups i see the shoutbox button in the admid where i can change stuff but there is nothing for members here is what it looks like www.maddmoviez.com is there somewhere in the files that i need to change to let members see the text box and shout button i have mine in tiny portal block
edited: i found out whats wrong is the permissions dont show the 2 boxes that i need to put a check in to let people shout and delete shouts can anybody post what goes into the manage permissions box so i can use the shoutbox thanks DjScrappy
Hi
I don't manage to modify the Who files to make user on shout_archive shown on the list of
actions. Any help ?
Thanks
Hello....
I am trying to make the ShoutBox work in an outside page but i cant.
I use this code :
<?php require("/home/alliance/public_html/community/SSI.php"); ?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<?php ssi_shout(); ?>
</body>
</html>
but i get the following error :
Unable to verify referring url. Please go back and try again.
Is there something i can do to fix that ?
Thank you.
Please i want some help for the above question :(
Someone ? Please ?
Hi all...looking for some help here.
I am trying to set this up on a SMF 1.1.4 that has the Dilber MC theme (but have tried other themes) and I get a message that an error has occurred. When I go into the error log, I get the following
8: Undefined index: shoutbox_11
File: /Sources/shout.php
Line: 207
8: Undefined index: shoutbox_7
File: /Sources/shout.php
Line: 206
8: Undefined index: shoutbox_6
File:/Sources/shout.php
Line: 206
8: Undefined index: shoutbox_9
File: Themes/default/shout.template.php (eval?)
Line: 245
8: Undefined index: shoutbox_8
File: /Themes/default/shout.template.php (eval?)
Line: 244
8: Undefined index: shoutbox_8
File: /Themes/default/shout.template.php (eval?)
Line: 244
8: Undefined index: shoutbox_43
File: /Themes/default/shout.template.php (eval?)
Line: 210
* I edited out some information that I didn't think was wise to broadcast...I am paranoid that way ;)
I see the shoutbox in the database, so I am not sure where to go from here. Install issue?
Thanks in advance,
Doc
Ok, a little more investigation...I changed the default to YaBB SE and language to English (from English utf-8). I was not getting the proper template displayed, and then once I changed all that over, I was able to see options and such in the Forum Layout and Options tab.
Is this mod designed only for YaBB SE or derivatives from that...and also, does it matter what language?
Thanks.
the mods only install on the default CORE theme and regular english (english-utf8 is a different language)
i can see soon this shout working on SMF 2.0 ?
thx grudge
where i can see a preview of this mod and how i can to make to this mod work with SMF 1.1.5??
Excuse my bad english
YES it works on 1.1.5! I'm using it on 1.1.5
http://www.rid1.co.za/smf
you can see it at the bottom of the page!
No special instructions needed, it uses the same procedure for the previous versions!
Is it possible to make some modifications with flash or ajax so the shouts with appear one by one with some cool transitions? Any idea?
Can someone help me
I have installed this mod manually to my site... and I like the look of it - but my members dont :(
This is what they want
1. To have the shout box hideable - just like collapsing a category
2. They would like to the shout box be in a box.. not across the whole screen as it now
Personally I kinda like it the way it is, but I do what the majority want
Has anyone written any code that may help me in my endeavours
Thanks
GMC
PS I am also keen on what Don Pepito asked for above :)
Quote from: rid123 on May 10, 2008, 10:15:03 PM
YES it works on 1.1.5! I'm using it on 1.1.5
http://www.rid1.co.za/smf (http://www.rid1.co.za/smf)
you can see it at the bottom of the page!
No special instructions needed, it uses the same procedure for the previous versions!
thanks for your help.
[offtopic] Thanks for use NO Right Click Mod :) [/offtopic]
This doesn't work with beta 3.1 as the permissions, index and ssi files differ from the instructions. Anyone manage to get this working?
Quote from: GMCbris on May 13, 2008, 11:03:08 PM
Can someone help me
I have installed this mod manually to my site... and I like the look of it - but my members dont :(
This is what they want
1. To have the shout box hideable - just like collapsing a category
2. They would like to the shout box be in a box.. not across the whole screen as it now
Personally I kinda like it the way it is, but I do what the majority want
Has anyone written any code that may help me in my endeavours
Thanks
GMC
PS I am also keen on what Don Pepito asked for above :)
I can help you with your second question :) Even though you posted it a little while ago. But ill post it anyway in case anyone else wants it.
Place this in you BoardIndex.template.php depending where you want it // Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $context['calendar_only_today'] ? $name="ShoutBox" : $name="ShoutBox", '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '"><img src="', $settings['images_url'], '/shout-icon.gif" alt="', $txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">';
if (function_exists('smfshout'))
smfshout();
}
Its still got some code from the upcoming calendar because I borrowed it from there. It still works fine ;)
Also replace "/shout-icon.gif" with a picture of your choice :)
Here is my Ultimate shoutbox. I love it. Thanks for the great mod ;D
Photo attached.
Can anyone gif the code and some explanation where to put the code to be like the attached screenshot ?
Ok, I have installed this shoutbox because NONE of the other ones I tried would get me ANYWHERE!
So now I have a few things to fix.
I need this to be much wider than it is. The message box needs to be wider also.
I don't have a clue why that white box with a red X is showing there.
Also, it constantly scrolls unless the mouse is on it.
I HAVE to use this one because it is the only one that gave me any results at all.
If you could please take a look and maybe give some detailed instructions on how to change these things I will be very greatful.
The theme may have something to do with it. This is the theme that my forum likes overall though. So I do not intend on changing the theme "Gunsmoke".
Here is the site please take a look:
http://gfxunleashed.com/
my ultimate shoutbox is working wel wid my default theme but wid other theme ,shoutbox appers but when i try to send sumthng it says an error has occurred...n in other theme it also dn't show txt on button n view all link
Quote from: Yngwiedis on March 29, 2008, 08:13:38 AM
Hello....
I am trying to make the ShoutBox work in an outside page but i cant.
I use this code :
<?php require("/home/alliance/public_html/community/SSI.php"); ?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<?php ssi_shout(); ?>
</body>
</html>
but i get the following error :
Unable to verify referring url. Please go back and try again.
Is there something i can do to fix that ?
Thank you.
Is there anyone who can help me with that ?
Thank you.
Have a look at this post http://www.simplemachines.org/community/index.php?topic=163770.msg1109808#msg1109808
Then add:
// Show the shoutbox
ssi_shout();
Underneath
require('SSI.php');
Thank you but is not working again...
I get the same error.
Unable to verify referring url. Please go back and try again. :(
It worked for me. Im not sure what your the problem is then mate sorry. Someone else may be able to help you.
can some one help me how to install it?
when I try to install it become:
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
and then I make all file become 777
and it still happen ::)
Hi, newbie here.
I installed ultimate shoutbox, in my forum, and it all seems okay and working; but when I try to use XML mode (auto-refresh?) --- the server said that I got database error.
my website is in indonesian (utf8) language and I already copied all the modification.english-utf8 to modification.indonesian-utf8.php. After around 10-15 minutes, my hosting-server keeps sending me alert that SMF got database error.
i like very much the Ultimate Shoutbox by Grude
& i want this to install to my fourm...
my question is...
is it compatible or not
with my url
http://beermen.freehostia.com/forum/index.php
and im using smf 1.1.5
pls teach me how... step by step...
thanks...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg258.imageshack.us%2Fimg258%2F4923%2Fshoutboxdb2.jpg&hash=21a28f46e29d4492355a39f038c2d94b5004701c)
this is my forum... shoutbox is there...
what would be next...
follow up ... pls... help
up...
pls... help me... about my problem regarding the ultimate shoutbox...
up...
anybody help... pls...
Quote from: jdizine on June 10, 2008, 04:26:19 PM
I need this to be much wider than it is. The message box needs to be wider also.
Fix the overall width in your admin panel under the shoutbox settings.
To fix the "message box" go to shout.template.php and change the size attribute on the text input named "message".
Quote from: jdizine on June 10, 2008, 04:26:19 PM
I don't have a clue why that white box with a red X is showing there.
Check that deleteshout.jpg is in your "images" folder under the theme folder you are using. If not, copy it from the images folder under the default theme.
Quote from: jdizine on June 10, 2008, 04:26:19 PM
Also, it constantly scrolls unless the mouse is on it.
You can control its speed and whether or not it even scrolls in the admin panel under the shoutbox settings.
Apart from updating the files so that SMF doesn't do the "Not for this version" thing, is there any reason why this won't work with SMF v2.0?
I'd be very surprised if it worked.
Yeah, so would I, to be honest.
Luckily, this is only for a test forum, so I can try it out making the edits manually. I wouldn't entertain a beta for a working forum, myself.
The manual instructions are pretty good. As long as I keep backups of all the files, I'll be OK.
Ta, Col.
It might be possible to addapt it, but I think it would require a lot of work. There is at least one other shoutbox that is being maintained. I imagine I'll have to use an alternative shoutbox when I switch to SMF2.
I found one. Ajax-based, I believe.
I couldn't get it to work, sadly.
I'll have to persevere, I reckon. ;)
No, try these - fully functioning and integrated into SMF, as far as I can tell. It appears that the second of these is an updated version of the first, but maybe they work with different versions/themes/etc., since both threads seem to be active.
http://www.simplemachines.org/community/index.php?topic=76344.0 (http://www.simplemachines.org/community/index.php?topic=76344.0)
http://www.simplemachines.org/community/index.php?topic=115579.0 (http://www.simplemachines.org/community/index.php?topic=115579.0)
Edit: Oh, you probably meant this thread: http://www.simplemachines.org/community/index.php?topic=137508.0 (http://www.simplemachines.org/community/index.php?topic=137508.0)
Yeah, Nneonneo's one just wouldn't work, for me.
One of those mods doesn't even appear, now. Since the SMF one has manual instructions, which seem VERY clear, I might just try and use that one. If it's not SMF v2-compatible, doing it that way, I'm sure I'll find out.
Ta, Col!
Both links are working for me. Try again.
Both links work for me, too. It's the link, in the thread, to the mod which doesn't. Well, it does, but I get "Sorry but no mod was found" with the link in this thread: http://www.simplemachines.org/community/index.php?topic=115579.0
I just searched the mod section, and this shoutbox is indeed not listed. There is one other shoutbox, just in case it is of interest: http://custom.simplemachines.org/mods/index.php?mod=818 (http://custom.simplemachines.org/mods/index.php?mod=818)
Thanks for the effort, Col.
That one has this:
"WARNING: To function properly, this shoutbox needs mkportal site-integration."
Shame.
I don't think I'll bother, now. Once SMF v2.0 has gone "Gold", as some put it, it might be worth the hassle. As it's still a beta, things could change a lot, so I doubt it's worth bothering, for now.
Thanks, again, for your efforts, though. :D
Only admins can delete the shouts,i cant set deleting shouts permissionm to mods..
i want to gibve them this permission,i tried by clicking at the option but nothing happened...?
any help pls
He's right, you know. Any membergroup can be set to be able to delete shouts, except "Moderator".
Weird, huh?
Hi, I have a little question, how could I integrate Ultimate Shoutbox with mkportal??? im using Scribbles2 theme and the latest version of mkportal, the mod works great, but i dont want it in to the forum I want to show it as a module or a block of mkportal.
greetings from mexico ¡¡¡¡
Quote from: kizley on August 11, 2008, 11:17:26 AM
Only admins can delete the shouts,i cant set deleting shouts permissionm to mods..
i want to gibve them this permission,i tried by clicking at the option but nothing happened...?
any help pls
Create a group called something like Shoutbox moderator, and give this group the power to delete shouts. Add this as a secondary group to all your moderators.
Quote from: mirahalo on August 19, 2008, 08:39:54 PM
Hi, I have a little question, how could I integrate Ultimate Shoutbox with mkportal??? im using Scribbles2 theme and the latest version of mkportal, the mod works great, but i dont want it in to the forum I want to show it as a module or a block of mkportal.
greetings from mexico ¡¡¡¡
I guest its just not posible thanks anyway...
I am trying to edit the shout.template.php file to make it so the shouts are left-aligned instead of centered, but I can't figure out how to get it to work... Any ideas?
EDIT: Right after I posted this, I found the <center> tags. I'm just not used to seeing that, was looking for <div>'s instead. :P
Quote from: semostudents.com on September 07, 2008, 07:08:46 PM
I am trying to edit the shout.template.php file to make it so the shouts are left-aligned instead of centered, but I can't figure out how to get it to work... Any ideas?
EDIT: Right after I posted this, I found the <center> tags. I'm just not used to seeing that, was looking for <div>'s instead. :P
For the VERY new like myself, where did you change this? mine are center aligned too and I was hoping for aligning about 200 pixels from the absolute left. speak ........ reallly .......slowly. Im a true rookie O:)
also wondered where I could go to learn how to make it only viewable to registered members.
thanks for your help.
How it can work with non-english language? I have different language and there is no letters. Pls help.
Hi all
super newbie on modifing the SMF forum. Want to add in the Shoutbox feature, I have it all set up and installed. Instructions give a little line of code to add, but viewing the PHP, it very hard to know where to put it. Can anyone direct me on where or how to edit that file. Would like the shoutbox at the top somewhere, below the search and above the button area. Any help would be great.
thanks
You might be better off using this shoutbox: http://www.simplemachines.org/community/index.php?topic=137508.0 (http://www.simplemachines.org/community/index.php?topic=137508.0). Ultimate Shoutbox is no longer properly supported, and will be useless when SMF2 is released.
thanks, looks pretty good. And they tell you where to put the code....
I'm sure they will. I could help you with Ultimate Shoutbox (it's the shoutbox I use), but when SMF2 if fully released (it must be soon now), I will be upgrading, as will most other people, as there will be many good reasons to upgrade. I will be forced to switch to the other shoutbox (I am assuming the other shoutbox will be modified to work with SMF2), as there is no way the Ultimate Shoutbox will work with SMF2.
Ok, i have been looking over this mod, but i still cannot figure out how to add in the shoutbox in the theme. Scanned through some of the posts, but yet everything went bumper.
Please give me steps. I am totally lost. :(
From the package info file:
After installation you will need to add the shoutbox to your template. To do this just call the smfshout(); function
from somewhere within your template. You may need to add it as ', smfshout(), ' if you are inside an echo statement.
Example:
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.
Most themes have this bit:
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}
function template_main_below()
I've added it here:
// The main content should go here.
echo '
', smfshout(), '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}
function template_main_below()
and it seems to work OK.
ok i basically got it right, but i dont have the text // The main content should go here...
Hence i pasted it in some other place. and basically messed up a bit. and well it is centered automatically... and the macro shows no text over it.
Thanks for explaining Kat. I appritiate it.
To be honest, with a few of the custom themes, I did an AWFUL lot of trial-and-error, with it.
I got there, in the end. Took quite a bit of peeing about, at times, though.
What theme are you trying it with? I might just be using the same theme...
its the classic Yabb Se.. with a bit of css modifications.
Ah. We blatted that one.
My host has it on her forum, though. I'll just ask her where she put it, on hers.
ok kwl, do let me know how i can sort this editing pain out. :)
This is her reply...
Quote from: Lisa on September 30, 2008, 04:22:15 PM
this is what i did with mine.
my shoutbox code
<center><table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table></center>
and i put it above
<table cellspacing="0" cellpadding="10" border="0" align="center" width="95%" class="tborder">
<tr><td valign="top">';
}
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
hope that helps
I'm really lucky, having such a blindingly good host.
She's free, too, if anyone else needs a host. Just a few Google ads, in return.
(I don't have the ads, lucky me)
lolz.. friendly host.. comon i should get some concession..
that code did work out.. it seems the codes got messed up a lil bit. The guy has messed up the forum.. was helping him out and now i m messed up.. (hosting for me !!) no ads please. :P
Well, she's not a company, or anything, so she needs to pay for the server, somehow.
The ads aren't too obtrusive, at all. Just one band of Google ads, tiz all.
Quote from: Kat on October 01, 2008, 06:22:22 AM
Well, she's not a company, or anything, so she needs to pay for the server, somehow.
The ads aren't too obtrusive, at all. Just one band of Google ads, tiz all.
Alright ;)
She's about to drop a baby, any minute, though. I'll give you a shout, when she's finished.
Women, ay? ;)
Quote from: Kat on October 01, 2008, 02:01:26 PM
She's about to drop a baby, any minute, though. I'll give you a shout, when she's finished.
Women, ay? ;)
Give her a wave from a young, handsome hunk. Baby will start being naughty as me. ;) (lets not make this mod support as a chitchat zone)
*shhhhh i am sleeping.
I don't think they'll mind us socialising...
After all, others might be looking for a good host. ;)
Quote from: Kat on October 01, 2008, 02:24:22 PM
I don't think they'll mind us socialising...
After all, others might be looking for a good host. ;)
Better to be safe then getting some warnings to anything ;)
There IS that.
I'll shut up, now. :)
15. Execute Modification ./Sources/ManagePermissions.php Test failed
Anyone know what the problem is? >.<
Yep. You have other mods that prevent the alteration being made, automatically. The edit will have to be done manually.
Quote from: Kat on October 02, 2008, 01:52:06 PM
Yep. You have other mods that prevent the alteration being made, automatically. The edit will have to be done manually.
Oh, I think I know exactly what is doing it, Thanks :D
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.augk18.dsl.pipex.com%2FSmileys%2Fc014.gif&hash=0ef61ff2bc9ea8a23920a1224944f12fcb52a9bd)
Hello!
I have smf 1.1.6.
And the theme Anecdota.What should i edit in order to make the shoutbox visible?
I got it install no problem.. well.. so i thought.
The settings wont save?? any ideas?
Well, i see values but cant change them in the admin panel
this doesnt refresh on its own, the whole page does, and u have to refresh to see others.
bah no good
Hello my friend.
Maybe your directory does not have the permissions set to 777.
Go through your Cpanel or direct admin and set the permissions of the folders to 777.
I am not sure about this!
Now i d like to ask you something.
Where did you add the code on order the shoutbox will be visible?
Hello!
I cant view the shoutbox in my forum!
I added the code of the fisrt page in de template.index.php of my theme(Efsane turkler 2)
In the default theme its works correctly but in my theme no...
You have turned on support for Ultimate Shoutbox, but it doesn't seem the mod is actually installed!
You have turned on support for TinyPortal, but it doesn't seem the mod is actually installed!
Now, my Forum cannot shown correctly. Could any one please give me a help to solve this problem or how to turn off these Packages in my Theme.
Quote from: daoducquan on October 30, 2008, 07:35:35 PM
You have turned on support for Ultimate Shoutbox, but it doesn't seem the mod is actually installed!
You have turned on support for TinyPortal, but it doesn't seem the mod is actually installed!
Now, my Forum cannot shown correctly. Could any one please give me a help to solve this problem or how to turn off these Packages in my Theme.
HELP ME PLEASE!!! :'( :'( :'(
I'm not sure I understand. Can you not just uninstall the package? Failing this, you could just use back up of your files - you did back up your files before installing the mod, didn't you?
thanks for this mod. does anyone has this on their site working? I tried a couple of links but it said "page not found".
also, does this mod archive the conversations? if not, is there any shoutbox where you can see the log of conversations?
Use the link to my forum in my signature. I posted back in this thread on how to add this shoutbox to the upshrinker. To be frank though, however you might add this shoutbox to your template, you would be better off using one of the other shoutboxes as this one will not work with SMF2:
http://www.simplemachines.org/community/index.php?topic=8415.msg1634935#msg1634935 (http://www.simplemachines.org/community/index.php?topic=8415.msg1634935#msg1634935)
http://www.simplemachines.org/community/index.php?topic=8415.1280 (http://www.simplemachines.org/community/index.php?topic=8415.1280)
anybody can tell me how to change marquee to be scrolling bar?
This mod is not working with SMF 1.1.7 kindly update it.
Quote from: dsanchez on November 02, 2008, 11:32:52 AM
thanks for this mod. does anyone has this on their site working? I tried a couple of links but it said "page not found".
also, does this mod archive the conversations? if not, is there any shoutbox where you can see the log of conversations?
you may want to try this shoutbox as it has a message history function http://www.simplemachines.org/community/index.php?topic=137508.0
Quote from: Baloch on November 22, 2008, 05:23:23 AM
This mod is not working with SMF 1.1.7 kindly update it.
there 2 shoutbox's for 1.1.7
http://www.simplemachines.org/community/index.php?topic=137508.0
http://www.simplemachines.org/community/index.php?topic=269091.0
Quote from: bullbreedluverz on November 22, 2008, 05:29:54 AM
Quote from: Baloch on November 22, 2008, 05:23:23 AM
This mod is not working with SMF 1.1.7 kindly update it.
there 2 shoutbox's for 1.1.7
http://www.simplemachines.org/community/index.php?topic=137508.0
http://www.simplemachines.org/community/index.php?topic=269091.0
what about messages that my members shouted via ultimate shout box?
if you are saying you dont want to lose the shouts you already have on your shoutbox and switching to another would effectively lose them then i suppose you could copy them from the history file of your present shoutbox and copy them into the new one - i.e. download the history file from your present 1 and then download the history from new shoutbox and just copy and paste them over and reupload to the new 1..... if thats what you mean lol
Quote from: bullbreedluverz on November 22, 2008, 09:18:47 AM
if you are saying you dont want to lose the shouts you already have on your shoutbox and switching to another would effectively lose them then i suppose you could copy them from the history file of your present shoutbox and copy them into the new one - i.e. download the history file from your present 1 and then download the history from new shoutbox and just copy and paste them over and reupload to the new 1..... if thats what you mean lol
Thanks for your response. Well I dont have any history button in ULTIMATE Shout box :( any other solution?
Quote from: Baloch on November 22, 2008, 10:10:51 AM
Quote from: bullbreedluverz on November 22, 2008, 09:18:47 AM
if you are saying you dont want to lose the shouts you already have on your shoutbox and switching to another would effectively lose them then i suppose you could copy them from the history file of your present shoutbox and copy them into the new one - i.e. download the history file from your present 1 and then download the history from new shoutbox and just copy and paste them over and reupload to the new 1..... if thats what you mean lol
Thanks for your response. Well I dont have any history button in ULTIMATE Shout box :( any other solution?
'History' is called 'View All' with Ultimate Shoutbox. It should be there!
fist of all I want to say that in my forum (1.1.7)its working perfectly (with Load stanard languages mod)
Now i ask for an option that less to refresh only the shoutbos NOT all page
Can you undestand me? its possible whit any shout box?
An example: www.tdescarga.info/foro
is it possible to make the scrollbox has scrollbar? fyi, i like to see the shout without to click "view all"
Can someone be so kind as to tell me what to edit to make the shoutbox Input Field Auto Focus so the user doesn't have to click on the input field every time.
I assume it is here in shout.template.php
<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="25" maxlength="300" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />
<input type="submit" name="submit" value="', $txt
But I don't know enough to do it. :)
Also: When I go to 'Delete shouts older than 25 days" it deletes all regardless of age? Any suggestions?
I must have come to the wrong place for help. Can anyone direct me to the right place?
What if I were to donate money would that get me any help?
Hi!
Just wanted to ask if someone is thinking about porting this mod to SMF 2.0 RC1 ?
I need something simple and nneonneo's Shoutbox is a bit much for what I need :(
Quote from: Arebias on January 18, 2009, 09:17:16 AM
What if I were to donate money would that get me any help?
to one who nows, yes
to a fish, no
Could I have a screenshot?
Is there anyway I can alter the height?
I've had a look at shout.template.php but can't find anything.
I need to do this because the shout box currently puts a large blank space between the bottom of the shouts, and the page content below it.
See the left hand column (http://www.flashuk1983.byethost4.com/)
Howdy all
first of all..we are very happy with our SMF forum. We've used a theme intifada and modified it ourselves..so it became a whole new theme. Thanks to the scripter of intifada.
Also we are using ezBlock Manager
Now we have a prolem and i cant solve it:
we are looking for a shout with minimum the following features. We've looked everywhere en tried to install some shouts but none of the installed shouts fullfilled our needs and/or we had problems installing it in our theme:
- Auto refresh shout - refresh time editable or on/off;
- After auto refreshing or adding a message...page in the browser (like firefox of internet explorer) stays at the same place..so users will still see shout instead of going back to the top of our site.
- the use of the smilies map (forum: Smileys and Message Icons)
- admin/staff (depending of permissions) can edit and delete messages
- view history
- emty out shout in one time by admins/staff depending on permissions
- klick on user you go to his/her profile
- just use "enter" to add the shout (instead of button "add shout" )
- integrated in our theme
can you help us? we are desperate to have one like this. Note we are using ezBlock Manager also.
Pls help us? for us and our community a good shout is very important.
Thanks in advance
Kind regards
Katrien
1place4nzb.eu
I run intifada on smf 1.1.9 @ http://ibrr.org/forum/ (http://ibrr.org/forum/) and would love a shoutbox as well! thanx!
Hello ppl, I'm new here like I'm new in forum's stuffs :D
I have installed package.
If someone can help me because I'm not good with code and really don't know what to do?!
I want to put the shoutbox above "info center" at the bottom of the forum, and to show only on main page.
What code and where to put it?
Thanks in advance
Quote from: Jesus Raves on July 14, 2009, 09:11:11 PM
Hello ppl, I'm new here like I'm new in forum's stuffs :D
I have installed package.
If someone can help me because I'm not good with code and really don't know what to do?!
I want to put the shoutbox above "info center" at the bottom of the forum, and to show only on main page.
What code and where to put it?
Thanks in advance
howdy
Download and instal EZPortal. You can make separate pages, add blocks per page (f.a. shout) etc.
Good luck
Kind regards
Katrien
Is there a way to increase the length of the messages allowed for the shout box.
-----
I am also having an issue with admins log-in. When an admin logs in it takes them to this- index.php?action=shout_xml;xml
When members log in it works fine.
Fixed this issue by turning off the javascript refresh, still want to know how to increase the message length.
Quote from: Trajek on August 30, 2009, 02:55:27 PM
Is there a way to increase the length of the messages allowed for the shout box.
Anything?
Quote from: Trajek on August 30, 2009, 08:59:19 PM
Quote from: Trajek on August 30, 2009, 02:55:27 PM
Is there a way to increase the length of the messages allowed for the shout box.
Anything?
Found it, thanks.
I am having a great deal of difficulty with this mod and am not sure why. I'm very new at all of this so the error is likely something I'm doing.
I've downloaded the package (shout_v1.40.tar.gz & have uploaded it via the package manager.
The issue starts here, I don't see any options for it in the options section at all, but when I add the code to the theme, the content area drops down like I would expect it to... but there is a very small ... what appears to be text field in the center of my screen above the content with... I'm assuming some kind of a square with rounded corner button centered directly below that.
I can type in the text field, but when I hit enter, I get a new screen that shows the template header, the space for the shoutbox, the text field & button thing... but in the content area of the forum, it says simply "An Error Has Occured!"
The same error screen pops up if I hit the button thing.
Any help would be greatly appreciated.
Can this be updated please for 2.0 RC2?
Given that its author hasn't updated it in 3 years, I'd say an update for any version of 2.0 is unlikely.
lol but it's always worked for me on previous versions so I've never needed to update it in all that time, and it's a great shoutbox. I haven't actually checked if it will install on 2.0 so maybe I should check that first.
edit: hmm not without some test fails
I'll look at it further when I get more time
It won't; 2.0 has changed so much from 1.1 that it won't install.
That's too bad. It's an excellent mod. Now I gotta look for a new one :(
i installed this mode on my website but cant see the shoutbox on it
Smf installed : SMF 1.1.11
Quote from: mailtokikku on December 24, 2009, 03:18:31 PM
i installed this mode on my website but cant see the shoutbox on it
Smf installed : SMF 1.1.11
did you make sure to add
if (function_exists('smfshout'))
smfshout();
some where in your templates?
where to add this (i dont no programming), so pls explain me
wher to add this code (on which template)
Quote from: mailtokikku on December 26, 2009, 04:14:13 PM
wher to add this code (on which template)
Read the opening post to this thread. ;)
i wanna make enable this Ultimate shoutbox at the top of the page just below news [Just like neonneo shoutbox] what sort of modification i ahve to do in my index.template .php
please provide me the entire coding please....
It would be great if this was updated for 2.0. This is a nice simple mod that works well.
Man I really love your mod...
Now I just have this simple problem... Right now, only admins can shout... How can we let members shout? :-\
Did you go into Admin > Permissions ?
Yeah, I enabled the 'Shout' option for members and 'Shout' and 'Delete Shout' for Moderators
i dont suppose anyone can tell me how to fix this error?
Quote8: Undefined index: num_users_online
File: D:\Hosting\4508226\html\APforums\Themes\default\shout.template.php (main sub template - eval?)
Line: 361
Today at 12:24:04 am
8: Undefined index: num_users_online
File: D:\Hosting\4508226\html\APforums\Sources\BoardIndex.php
Line: 408
Today at 12:24:04 am
I've placed this into my forums, and installed it.
It claims to be successful on my 1.1.11, but in the configuration nothing shows up, and the homepage.
Can somebody provide me a screenshot of this shoutbox.. Tnx
ya me too want to see
Difficult to do, coz it can be in different positions.
You can see it in action, here:
http://www.tlakoc.org.uk
i cant see.. will i have to be login?
No, it's open for guest-viewing. I can see it OK, as a guest.
Still cant..
How odd...
Quote from: loudog on April 02, 2010, 12:29:55 AM
It would be great if this was updated for 2.0. This is a nice simple mod that works well.
ditto, all the others are too fussy!
could someone please update this for smf 2.0.2?
will this mod be update for smf 2.0? hope someone could update it for us.
Moved to the chat/shoutboxes category on the mod site.