nneonneo's Shoutbox

Started by nneonneo, December 26, 2006, 06:58:11 PM

Previous topic - Next topic

Dr. Jay Sin

#4320
Quote from: dav on November 05, 2008, 08:58:22 PM
okay. so I did the regular install and manual install and the shoutbox isn't coming up.... i'm running SMF 1.1.6. My theme is Black Rain v.2

please help me!

thanks
-dav
Did you check to see if it's present under SMF default, and maybe you just have to modify Black Rain's index.template?

dav

#4321
Quote from: Menard on November 05, 2008, 09:00:38 PM
Quote from: dav on November 05, 2008, 08:58:22 PM
okay. so I did the regular install and manual install and the shoutbox isn't coming up.... i'm running SMF 1.1.6. My theme is Black Rain v.2

please help me!

thanks
-dav
Did you check to see if it's present under SMF default, and maybe you just have to modify Black Rain's index.template?


YUP. I checked all that

EDIT: WAIT! I fixed it. Thanks man!

nneonneo

@Nequil: I can't see anything wrong :-\

Try turning off $gzipCompression.

@HR: It's not really planned at this time. If you really must fix something, you can edit home.txt.

@Menard: Check /index.php?yshout to see if anything shows up. If you see the forum, installation somehow failed; if you see "Nothing to do" then installation was successful. Were there any "test failed" warnings during install?
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

Dr. Jay Sin

#4323
Quote from: nneonneo on November 05, 2008, 09:18:53 PMWere there any "test failed" warnings during install?
Alas, there were none.

I've moved on to uninstall, and to then reinstall in the hopes of a fresh install doing the trick, but something MUST have gone wrong the first time; for it will not let me uninstall.  I get some error message about a file not being rewritable.  Any ideas?

I'd like to completely get it stripped out and try again at another time.  I may just go in do it manually, but I'd prefer it be less work.  Whatever it takes, though.  As is, it is PARTIALLY uninstalled, and I need to go the rest of the way.

EDIT: I stripped out all remaining files through my webhost's file manager.  I'll try again later.

dav

NEW PROBLEM!!!

Getting connection problems after I installed shoutbox

Error: Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

Been happening a few times in like 25mins. like 2 or 3 times.. its weird.


Nequil

Quote from: nneonneo on November 05, 2008, 09:18:53 PM
@Nequil: I can't see anything wrong :-\

Try turning off $gzipCompression.

ok, now its works ;]

Gaugenstien

This is a most excellent application! We installed it for our members and it works beautifully. I thought I was stupid until I realized it was tied into the permissions system. VERY NICE!

The one feature I have not seen, which would be great for us, is when someone makes a new post/thread, The shoutbox could be informed of that and an entry made to the effect of: SuchandSuch posted in [Section name] OMG Shoutbox is awsomes!!!

If it's something someone wants to take a crack at, that would be sweet. That way people don't have to keep refreshing the whole page or look elsewhere to see when people make posts.

Thanks again! This is great!

jasuk70

Hi, I've just installed the latest beta of SMF 2.0 (B4) and tried to install this package and found:

1.     Execute Modification     ./index.php     Test successful
      1.    Add Before    ./index.php    Test successful
*    2.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Add After    ./Themes/default/index.template.php    Test failed
      2.    Replace    ./Themes/default/index.template.php    Test failed
      3.    Add After    ./Themes/default/index.template.php    Test failed
*    3.    Execute Modification    ./Themes/default/index.template.php    Test successful

Is there a problem with Beta 4?

Thanks,

Jas

nneonneo

@dav: Not sure. It's possible that the shoutbox is putting a strain on the server; if so, see the main mod page under "High bandwidth use for large forums"

@Gaugenstien: Yes, doable. I have gotten it half-working: the shout is made, but the shoutbox shows up when you try to post. I think a bit of tweaking the code should do it.

Here's what I have so far -- use at your own risk:
In Sources/Post.php, before
}

// Get the topic for display purposes.
function getTopic()

add
ob_start();
global $context;
include_once('yshout/yshout.php');
makeShout("New Topic: ".$_POST['subject']);
ob_end_clean();

That's for SMF 1.16, and it should also work for Beta 4. On posting a new topic, it will automatically post a shout as well. However, it isn't perfect, so I'm trying to work out that bug.

@jasuk70: Beta 4 requires manual installation; see main mod page.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

mathmission

Wow, I can't believe I have to ask this, but I accidentally banned myself from using the shoutbox. How do I go about reversing that?

nneonneo

Crack open _banlist and remove the entire line with your username or IP.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

Gaugenstien

nneonneo:

Yes that code is very beta indeed. haha.

If you get time to play with it eventually, see if you can make the chatterbox entry a link to the post itself. That would be fantastic!

psynx

i am having difficulty modifying the size of our names that should appear in the shoutbox and also i want to change the font size. problem is, i dont know which of these codes i have to edit. i only have this code in my index.template.php

// YSHOUT HERE - <head> code
   global $boardurl,$shoutFile;
   $shoutFile='home';
   $scripturlparsed = parse_url($scripturl);
   $scriptpath=isset($scripturlparsed['path'])?$scripturlparsed['path']:'/';
   $args='';
   foreach($_GET as $key => $value) // passthrough $_GET
      $args.='&'.urlencode($key).'='.urlencode($value);
   echo '
   <script src="',$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
   <script src="',$boardurl,'/yshout/settings.js" type="text/javascript"></script>
   <script type="text/javascript"><!-- // --><![CDATA[
   window.onload=function(){loadChat();};
   var shoutFile="',$shoutFile,'";
   var yshout_php="',$scriptpath,'?yshout',$args,'";
   // ]]></script>
   <script src="',$boardurl,'/yshout/js/yshout.js?July062008" type="text/javascript"></script>
   <style type="text/css">
      #yshout {
         font-size: 12px;
         overflow: hidden;
      }
      #yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
      }
      #yshout #shouts { /* main shouts area */
      }
      #yshout .shout { /* one shout */
         margin: 0 0 0; /* Top Bottom Linespacing */
         line-height: 1;
      }
      #yshout .shout-timestamp {
         font-style: normal;
         font-weight: normal;
      }
      #yshout .shout-adminlinks { /* del and ban buttons */
         font-size: 6pt;
         color: #141414;
      }
      #yshout #shout-form {
         margin: 0;
         padding: 0;
      }
      #yshout #shout-form fieldset {
         border: none;
      }
      #yshout #forum-name {
         width: 80px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         width: 310px;
         margin-right: 5px;
      }
      #yshout #shout-button {
         width: 55px;
      }
      #yshout .shout-invalid { /* invalid shout (shout textbox) */
         background: #FFFDD1;
      }
   </style>';
   // YSHOUT END - <head> code

asmith

Today  I opened my shoutbox and there was only 1 shoutmessage there.  I checked the history, it was fine, all my shoutbox messages were there.

but why shoutbox is showing only one? 

Is there an option for it? 

master2oo8

#4334
I have installed the shoutbox in a other board, but its not displayed.
of course i have done the modifications in the template, then i created a new category and added "<div id="yshout">Loading shoutbox...</div>  ", normaly sb must be shown, but there stands only "Load shoutbox..." for 5 seconds and then its empty.

I have viewed the html version of the forum:
Quote
<p><div id="yshout">Loading shoutbox...</div>  </p>
On the other forum stands in html only <div id="yshout">Loading shoutbox...</div>.

i am using smf 2.0 beta 4


can you help me? what can i do?

xakiru

Quote from: nneonneo on November 01, 2008, 07:59:46 PM
This means it failed to load the soundmanager. If you go to http://www.evanels.eu/forum/yshout/soundmanager2/soundmanager2.swf [nofollow] you see a 404, it means that the soundmanager script could not be found. Try putting the soundmanager2 file there.

thank you for answering me , i changed it to there but i still get no sound , and the debug is :


-soundManager.onload() complete
SMSound() merged options: {
id: sound,
url: http://www.evanels.eu/forum/yshout/a.mp3,
autoPlay: false,
autoLoad: false,
stream: true,
onbeforefinishtime: 5000,
onjustbeforefinishtime: 200,
multiShot: true,
pan: 0,
volume: 100
}
soundManager.createSound(): sound (http://www.evanels.eu/forum/yshout/a.mp3)
soundManager.initComplete(): calling soundManager.onload()
-- SoundManager 2 loaded (OK) --
(Flash): Enabling polling
Flash security sandbox type: remote
(Flash): _externalInterfaceTest(): JS <-> Flash OK
Attempting to call JS -> Flash..
-- soundManager.init() --
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got OBJECT element (created via JS)
soundManager._createMovie(): Trying to load http://www.evanels.eu/forum/yshout/soundmanager2/soundmanager2.swf
-- SoundManager 2 V2.90a.20081028 (AS2/Flash 8), high performance mode --
Personal: www.xakiru.com [nofollow] | Private RO Server: www.sublimero.com [nofollow] |
Working at: www.Divisi0n.com [nofollow]

Enira

How can I make the font size of the history larger?
On my forum everything is fine but the history font is very tiny :/

nneonneo

@Gaugenstien: Here's what needs to be changed.

In yshout/yshout.php, find
session_write_close(); // so that future session requests succeed
$heartBeatSent=false;
if(!$forceRefresh)
{
while((time() - $start_time < $updateTimeout) && ($time==filemtime($chatPath)))
{
usleep($updatePeriod*1000);
// heartbeat - check connection to ensure client is still connected
echo ' ';
flush();
ob_flush();
$heartBeatSent=true;
clearstatcache();
}
}
@session_start(); // restart session, so updates to $_SESSION are applied

and replace by
$heartBeatSent=false;
if(!$forceRefresh)
{
session_write_close(); // so that future session requests succeed
while((time() - $start_time < $updateTimeout) && ($time==filemtime($chatPath)))
{
usleep($updatePeriod*1000);
// heartbeat - check connection to ensure client is still connected
echo ' ';
flush();
ob_flush();
$heartBeatSent=true;
clearstatcache();
}
@session_start(); // restart session, so updates to $_SESSION are applied
}

This will fix the output problem and allow the topic posting to go over normally.

@psynx: For general font size, increase the 12 in
      #yshout {
         font-size: 12px;
         overflow: hidden;
      }

For usernames, add after that block
      #yshout #userclass{
         font-size: 20px;
      }

where 20 is whatever size you want.

@asmith: Check $maxLines. It is also possible that someone else (another moderator?) has deleted all but one shout.

@master2oo8: Is the shoutbox on the board twice by some chance? Only one shoutbox can be active per page.

@xakiru: According to the output, soundmanager2 is working perfectly. Maybe it is just muted or something. If you want I can come to check it out?

@Enira: Edit yshout.php and look for
#yshout {
font-size: 10px;
overflow: hidden;
}

Change 10 as necessary.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

master2oo8

#4338
Quote

@master2oo8: Is the shoutbox on the board twice by some chance? Only one shoutbox can be active per page.
No, i dont use it double :)

The installer says me, that template changes cant made. Then i add this code on the right place:

// YSHOUT HERE - <head> code
global $boardurl,$shoutFile;
$shoutFile='home';
$scripturlparsed = parse_url($scripturl);
$scriptpath=isset($scripturlparsed['path'])?$scripturlparsed['path']:'/';
$args='';
foreach($_GET as $key => $value) // passthrough $_GET
$args.='&'.urlencode($key).'='.urlencode($value);
echo '
<script src="',$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/settings.js" type="text/javascript"></script>
<script type="text/javascript"><!-- // --><!]]><![CDATA[[CDATA[
window.onload=function(){loadChat();};
var shoutFile="',$shoutFile,'";
var yshout_php="',$scriptpath,'?yshout',$args,'";
// ]]]]><![CDATA[></script>
<script src="',$boardurl,'/yshout/js/yshout.js?July062008" type="text/javascript"></script>
<style type="text/css">
#yshout {
font-size: 10px;
overflow: hidden;
}
#yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
}
#yshout #shouts { /* main shouts area */
}
#yshout .shout { /* one shout */
margin: 0 0 0; /* Top Bottom Linespacing */
line-height: 1;
}
#yshout .shout-timestamp {
font-style: normal;
font-weight: normal;
}
#yshout .shout-adminlinks { /* del and ban buttons */
font-size: 6pt;
color: #141414;
}
#yshout #shout-form {
margin: 0;
padding: 0;
}
#yshout #shout-form fieldset {
border: none;
}
#yshout #forum-name {
color: #666666;
width: 70px;
margin-right: 5px;
}
#yshout #shout-text {
width: 310px;
margin-right: 5px;
}
#yshout #shout-button {
width: 55px;
}
#yshout .shout-invalid { /* invalid shout (shout textbox) */
background: #FFFDD1;
}
</style>';
// YSHOUT END - <head> code

and open a new section with the description

<div id="yshout">Loading shoutbox...</div> 


Its too not working when i make

      // YSHOUT HERE
      if (!empty($context['current_board']) && $context['current_board']==2) echo '
                     <br /><b>Shout Box</b><br /><br />
                     <div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
      // YSHOUT END

Short stands Shoutbox loading, 5 sec after its away...
I mean, i cant make much false, what can be the error?

On my other board it works without any problems...

asmith

Quote@asmith: Check $maxLines. It is also possible that someone else (another moderator?) has deleted all but one shout.

It showed 1 shout,but when people posted in there, it went again to 12 as it was in the shout.
Dunno why it got down to 1 out of sudden. 
there's no moderator on the site.
possible some user or guest try to crack the shoutbox or something?

Advertisement: