News:

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

Main Menu

Ultimate Shoutbox

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

Previous topic - Next topic

weekend camper

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.

EvilElvis138

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


Catbyte

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


Catbyte

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

EvilElvis138

I just told how to do just that, in the post directly before your first one :)

Catbyte

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

EvilElvis138

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

ArkServer

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

Foreverpurple

I'm not able to download...the transfer fails.

Which one do I need for SMF 1.0.5??

Mike_PL

I can't download this mod... :(

ToyDozer

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 [nofollow]

Thanks in advance
Jon
Jon Stensaa
www.wheelingadventures.com [nofollow]
[email protected]
Accelerator : The stomped out hole in the floarboard!!!!

Jerry

#631
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

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?


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

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

ArkServer

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

Jerry

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


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

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

FBI

I am currently use Ultimate ShoutBox in my forum.
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.

ArkServer

#635
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


pastortravis

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 [nofollow].

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!

Jerry

#637
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


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


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

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

Foreverpurple

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.

ToyDozer

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 [nofollow]

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?

Jon Stensaa
www.wheelingadventures.com [nofollow]
[email protected]
Accelerator : The stomped out hole in the floarboard!!!!

Advertisement: