SimplePortal

Customization => Blocks and Modifications => Topic started by: Blue on May 07, 2009, 04:54:30 PM

Title: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 04:54:30 PM
Smart Shoutbox Detection Block
[Ajax Chat] | [nneonneo's Shoutbox]

Description: A smart block that detects if you are using Ajax Chat or nneonneo's Shoutbox and then it shows a nice top/bottom block or a side block.

nneonneo's Shoutbox

Screenshots:

[TOP/BOTTOM Block]
(http://img503.imageshack.us/img503/5210/nneonneosshoutbox.png)

[SIDE Block]
(http://img508.imageshack.us/img508/2461/sidenneonneosshoutbox.png)

Note: There is no need to change or replace any source file. Just use the code in a php block!

Ajax Chat

Screenshots:

[TOP/BOTTOM Block]
(http://img378.imageshack.us/img378/9783/topbottomajaxchatspblocy.png)

[SIDE Block]
(http://img72.imageshack.us/img72/332/ajaxchatspblock.png)

Note: For the top/bottom block, you don't have to change or replace any source files. But for side block you need to replace shoutbox.html from (boarddir/chat/lib/template) for the one attached.

SMART BLOCK CODE
Code: [Select]
<?php
global $txt,$context,$boarddir;

//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir '/chat/lib/'))
{
if (allowedTo('shout_access')){
echo'
<div id="ShoutBox">
'
getShoutBoxContent() ,'
</div>'
;
}
}
//YSHOUT HERE | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir '/yshout/yshout.php'))
{
   if(
allowedTo('yshout_view'))
   {     
echo '<div id="yshout">';
      include_once(
$boarddir.'/yshout/yshout.php');
      echo 
'</div>';
   }
   elseif(
$context['user']['is_guest'])
      echo 
$txt['yshout_no_guests'];
}
?>


I hope you like ;D


IMPORTANTE

If you are experiencing problems in IE7 with the Lateral Ajax block you can use this fix:
Click here -> Thanks to mrtrc266 ;) (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

And this is how It'll look: Click here (http://simpleportal.net/index.php?topic=2233.80)
Title: Re: [BLOCK] Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on May 07, 2009, 05:22:35 PM
Blue,  your turning into a maker of very cool blocks!  :applause:

I just tried it but it is not working on my forum. 

http://gwgoodolddays.net/forums/index.php (http://gwgoodolddays.net/forums/index.php)

I have nneonneo's Advanced Shoutbox version 1.22 installed..

I have it working as a side block with the following code

Code: [Select]
   // 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" />';   

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

<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
   <script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}</script>

   <style type="text/css">
      #yshout #shouts {
         overflow: auto;
         width: 170px;       /* the width you want to display */
         height: 450px;     /* the height you want to display */
}
         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: 50px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         width: 150px;
         margin-right: 2px;
      }
      #yshout #shout-button {
         width: 55px;
      }
      #yshout .shout-invalid { /* invalid shout (shout textbox) */
         background: #FFFDD1;
      }
   </style>';
   // YSHOUT END - <head> code

   // YSHOUT HERE - shoutbox code
   global $txt,$context,$boarddir;
   if(allowedTo('yshout_view'))
   {
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];
   // YSHOUT END - shoutbox code

I have no idea if I needed all of that or not.. but it has always worked.  I have always had one complaint about that block though.. It is set to a fixed width.. so it you look at it on a 800x600 resolution monitor it makes all the left side blocks really wide and if you look at it with a large high res monitor it just looks stupid.

Anyway.. I have added your code as a new left side block at the end (currently your code is only set to show on the portal page) the block is titled simply "Shout".. check it out.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 05:28:47 PM
Have you tried the code of the first post? It's working in my website so it's very strange it does not work in yours :(

Hum... Try this:
Code: [Select]
global $txt,$context,$boarddir;
 
 if(allowedTo('yshout_view'))
   {    
echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];

Does it work?

And yes, that's a lot of code, you don't need that all :P

I think I know how to fix your width problem but first try the code ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on May 07, 2009, 05:33:26 PM
same result   :(
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on May 07, 2009, 05:39:13 PM
I have been contemplating switching to ajax chat anyway.. or perhaps wait for the new simple portal shoutbox to be released.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 05:42:01 PM
Ah! I know what's happening. You don't have the first code above installed in your index.template.php, am I right? When you did the shoutbox installation you forgot to tick "install in other templates".

And the code on my first post only works if you have the yshout installed in the templates.

Nevermind, try this (it includes the fix for your width, I hope)
Code: [Select]
  // 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 #shouts {
         overflow: auto;
         height: 180px;     /* the height you want to display */
         width: 150px;
  }
  #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 {
         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

I have been contemplating switching to ajax chat anyway.. or perhaps wait for the new simple portal shoutbox to be released.

SP Shoutbox isn't going to be release soon so, and in my opinion, try Ajax Chat. As you can see I tried to do a great work in the Side Block of it :)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on May 07, 2009, 05:46:19 PM
you know.. i think your right.. I think when i installed it I decided I just wanted it set as a permanent block visible in all areas.. so I did not place the code in that file.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 05:47:22 PM
you know.. i think your right.. I think when i installed it I decided I just wanted it set as a permanent block visible in all areas.. so I did not place the code in that file.

eheh :P Have you tried the code I gave you in the post above? Does it work? Does it fixes your width problem?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on May 07, 2009, 05:52:25 PM
I disabled my normal (ugly) shout block to make sure theres no confusion.. I placed that code into a block titled "New Shout"... it displays nothing.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 05:52:59 PM
Sorry Sorry! I forgot to add something:

I'm a bit distracted :-[ :-[ :-[

Here it is:
Code: [Select]
// 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>

<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
   <script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}</script>

   <style type="text/css">
      #yshout #shouts {
         overflow: auto;
         width: 150px;       /* the width you want to display */
         height: 450px;     /* the height you want to display */
}
         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: 50px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         width: 150px;
         margin-right: 2px;
      }
      #yshout #shout-button {
         width: 55px;
      }
      #yshout .shout-invalid { /* invalid shout (shout textbox) */
         background: #FFFDD1;
      }
   </style>';
   // YSHOUT END - <head> code

   // YSHOUT HERE - shoutbox code
   global $txt,$context,$boarddir;
   if(allowedTo('yshout_view'))
   {
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];
   // YSHOUT END - shoutbox code

Edited I see that maybe I fixed your width to much :P In the code:
Code: (find) [Select]
      #yshout #shouts {
         overflow: auto;
         width: 150px;       /* the width you want to display */
         height: 450px;     /* the height you want to display */
}
         font-size: 12px;
         overflow: hidden;
      }

Code: (replace) [Select]
      #yshout #shouts {
         overflow: auto;
         height: 180px;     /* the height you want to display */
width: 160px;
  }
  #yshout {
         font-size: 10px;
         overflow: hidden;
      }
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on May 07, 2009, 05:57:09 PM
That worked! its awkward sized.. Are you saying that if I just remove that "width" line in the code it will have a "fluid" width?

nvm.. i just tried removing that width line and it worked!
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 06:02:09 PM
No, not at all. It worked :P But I don't know if that will fix. I thought it didnt

First, you have an error on the code. On my post above find the code I gave you and replace it for the other one.

And try replacing
Code: [Select]
width: 160px;
to

Code: [Select]
width:auto;
Instead of removing the width. I think if it's auto it will "float" depending on your screen resolution.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on May 07, 2009, 06:09:59 PM
yep.. still looks great!  ;D

Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 06:11:21 PM
eheh :) I'm glad I helped you ;D

Oh, and thanks for the:
Blue,  your turning into a maker of very cool blocks!  :applause:

:P :P :P
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on May 07, 2009, 06:19:58 PM
you are! as of recently I tried learning this php nd xml stuff so I could port this phpbb mod (http://gwgoodolddays.net/forums/index.php?action=downloads;sa=view;down=1).   Anyway, ever since then I have been gathering heeps of respect for those who can do what I have great trouble with...  so ppl like [SiNaN] are gods.

Thanks for all your help Blue!
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 07, 2009, 08:49:31 PM
BEST.  BLOCK.  EVER.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 09:37:36 PM
BEST.  BLOCK.  EVER.

LOL! Thanks but this is the easiest I've done :P

But I'm glad you liked that much ;D ;D
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 07, 2009, 09:46:39 PM
LOL! Thanks but this is the easiest I've done :P

But I'm glad you liked that much ;D ;D

I've been wanting to get the AJAX shoutbox off to the side ever since I installed it.  I don't suppose you'd know how to make it just a tad taller would you?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 09:54:14 PM
hum... I think I know how to make it taller but you would need to change another source file. If you don't mind with that, I can tell you how you can do it :P

Replace the shoutbox.css file from (boarddir/chat/css) for the one attached.

If you want more / less just say so ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 07, 2009, 11:13:42 PM
hum... I think I know how to make it taller but you would need to change another source file. If you don't mind with that, I can tell you how you can do it :P

Piece of cake.  Though it was easier to just change it online than upload/overwrite.  So I opened yours and mine in a file comparison util to see the difference.  No big deal.  I appreciate it!
I'll go make a post with a link to this thread in the AjaxChat Integration thread on the SMF forum.  There's lots of people who've been looking for this for a long time.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 07, 2009, 11:18:35 PM
Thanks a lot for that and don't forget to say it only works for Simple Portal :P

Therefore, you are helping this Portal to grow ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 08, 2009, 08:28:54 PM
Blue,

since you've knocked all of the other questions outta the park, here's one more for you.  Looking at the layout of the sidebar shoutbox, wouldn't it make sense to remove just one of the emoticons?  There's got to be half a dozen smiley ones which can barely be distinguished from one another.

(http://img72.imageshack.us/img72/332/ajaxchatspblock.png)

Can you help me get rid of just one of them?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 08, 2009, 09:56:48 PM
Yes,

Just go to (boarddir/chat/js) find the file config.js and in line 151 is where emoticons are defined ;)

Just change, cut, add whatever you want :P
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: 130860 on May 08, 2009, 10:38:16 PM
oh my...  :in-love:

Im not to much into Shoutboxs, but thanks to you and your wonderful block I now will give it  a try and install one,  just to use your block !!!

many, many thanks !!!
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 08, 2009, 10:49:47 PM
LOL!

Gracias por tu comentário  ;D  Me siento honrado :-[

(Translation: Thanks for your comment, I am honered)

The credits for the Ajax Chat and Neoneon's are not mine. I only did some modifications of the original code ;)

I'm just a simple SP block maker who likes to create beautiful blocks eheh :P


Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Old Fossil on May 08, 2009, 11:05:37 PM
Blue the shoutbox on my site has an error 500

would it be possible to ask if you could help add a shoutbox to our portal?

Members have said how easy the portal is to navigate.

Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 08, 2009, 11:14:54 PM
Blue the shoutbox on my site has an error 500

Hum... It's the shoutbox or the block?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Old Fossil on May 08, 2009, 11:20:54 PM
have no clue on how to fix it which is the problem.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 08, 2009, 11:25:44 PM
But I'm asking if the shoutbox was working before you put the php code in the php block.

Was it working?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Old Fossil on May 08, 2009, 11:38:53 PM
didn't try it.

A more experienced person installed the chat for us
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 08, 2009, 11:41:42 PM
I'm not quite sure if I'm understanding you. So, that "experience" person that installed the shoutbox put it to really work?

Or you never had a shoutbox because of the error?

Or the error appeared when you put my code in a php block?

My php block only works if you have Ajax Chat ou Neoneon's Shoutbox installed..
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Old Fossil on May 08, 2009, 11:52:33 PM
the ajax shoutbox didnt work.

Can the neoneo shoutbox be used with the ajax chat?

Our members are 'shouting' for a shoutbox.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 09, 2009, 12:06:27 AM
The Ajax Chat didn't work? Are you referring to the installation of the mod? Or are you telling me that, when you added the code to a php block, the page appeared with an error?

If you need help with the installation of the mod, not the block, go to the official website and ask for help. [Click here] (http://www.simplemachines.org/community/index.php?topic=257973.0)

Code: [Select]
Can the neoneo shoutbox be used with the ajax chat?
No, it can't.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Old Fossil on May 09, 2009, 12:10:54 AM
 :)

Roll on simpleportal shoutbox.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: mrtrc266 on May 09, 2009, 12:49:28 AM
TYVM For the block, there have been quite a few requests for this on the AJAX Chat Intergration Mod which I heavily support on SMF. I haven't have the time to play with it yet but I'm sure it will be a huge hit.

Thanks again for your time, will post back if we have any questions.

Thank you tfs for directing providing the link.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Old Fossil on May 09, 2009, 12:54:55 AM
mrtrc I have left a message for you regarding the ajax chat and shoutbox on the appropriate topic on the smf site.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 09, 2009, 02:54:12 AM
Yes,

Just go to (boarddir/chat/js) find the file config.js and in line 151 is where emoticons are defined ;)

Just change, cut, add whatever you want :P

You da man!  It looks so much cleaner without that one little button taking up the whole line.  Thank you very much.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 09, 2009, 07:40:34 AM
I'm glad I helped you ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: 130860 on May 10, 2009, 01:07:22 PM
LOL I know you just made the block ;P


I'm just a simple SP block maker who likes to create beautiful blocks eheh :P




Thats why I wanna to say thank you ;P
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 10, 2009, 02:21:47 PM
eheh ;D
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 13, 2009, 10:03:30 PM
I have AJAX shoutbox installed, and am using SimplePortal 2.2.1 and this Smart Block Code, along with the shoutbox.html for side blocks to display a shoutbox on the left side of my forum.  Since I only use FireFox I didn't realize that there's a problem with other browsers until this evening when a friend told me that it didn't look right in Opera.  It turns out that it doesn't look right in IE7 either.  The width is wrong and the box bleeds over into and behind the middle boxes.

Looks great in Firefox!  :)  Unfortunately though, most of my visitors are running IE.

Image attached.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 14, 2009, 11:31:06 PM
Is anyone else having display problems with browsers other than Firefox?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 15, 2009, 09:42:02 AM
Hi tfs, sorry for the delay but I'm having college exams so I'm not here so often :(

I've tried in IE and it works great. This is very odd :( Did you try it in IE7/IE8 or IE6?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 15, 2009, 11:12:56 AM
Hi tfs, sorry for the delay but I'm having college exams so I'm not here so often :(

I've tried in IE and it works great. This is very odd :( Did you try it in IE7/IE8 or IE6?

IE7, Opera, AOL's browser and Firefox.  The only it looks right on is Firefox.  The rest of them have a problem setting the width.

If it's working for you then perhaps I've got a glitch in there somewhere.  I'll double check that I have the latest files from you and report back then.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 15, 2009, 03:17:06 PM
I've tried in IE and it seams fine like attached.

I'll see if i have a glich somewhere ;) :-[ ;P
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 15, 2009, 07:54:49 PM
I've tried in IE and it seams fine like attached.

I'll see if i have a glich somewhere ;) :-[ ;P

Can you send me a copy of your shoutbox.html?  Is yours identical to the one that is attached at the beginning of this thread?

Can you think of any other file I might have that's different from yours?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 15, 2009, 09:27:09 PM
Nothing is different from the one posted in the very first post.

You can see for yourself in the attachment  :( This is very odd. Mine works just fine :| :O
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 17, 2009, 01:21:21 PM
Nothing is different from the one posted in the very first post.

You can see for yourself in the attachment  :( This is very odd. Mine works just fine :| :O

Can you give me the url of your board so I can see if it's a problem with my forum or with my computer?

Though I'm guessing it's my board because two different people have mentioned it to me.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 17, 2009, 01:34:57 PM
sent you a pm :)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 17, 2009, 04:54:13 PM
sent you a pm :)

Thanks, I created an account on your board and it does the same thing.  Additionally, I got an error as soon as I clicked into the chat text field that said [Object Error].

Firefox worked great.  IE looked bad.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 17, 2009, 04:57:06 PM
A note about the picture.  It says "Test of width with FireFox" but that's because I logged in first with FireFox and typed that.  This is when I logged in with IE7 and then clicked into the chat box, and the error message came up.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 17, 2009, 06:14:49 PM
Hum... maybe is a problem of IE7. I tested with IE8 and it works great.

Hum... do you have a backup of your old/original shoutbox.html?

Try the shoutbox with the original html file. If the error continues to appear than it's an Ajax Chat error and not and shoutbox block error :|
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: MUSTAFAINE on May 19, 2009, 10:52:34 AM
I couldnt understand how simple portal shows the ajax chat ?
do you have the php integration codes
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 19, 2009, 11:43:00 AM
Blue link is right I do not have any more to say all the thing that he said is all the thing that I must say.,
i will tell you this that you must follow what Blue Link said.

Considering that this is your first ever post I wasn't worried about you not having anything more to say at all.  :) 

But that doesn't change that it's still broken.  I'm not asking Blue to fix it for me.  I'm merely passing along information.  The side block doesn't work on IE7, Opera, AOL and whatever browser my Linux buddy was using the day he logged in.

I've logged into Blue's test system myself, and it exhibits the same behavior there too.  I'll be glad to get AJAX Chat off my system whenever SimplePortal ships their shoutbox.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 19, 2009, 03:43:47 PM
Sorry, I'm in college exams so I'm a bit busy till next week. I installed IE7 just to have a look (and safari, chrome and opera) ;P

The problem appears in IE7 and Safari :( I think its a CSS problem. If we ajust the width the problem will be solved for sure.

I'll try to fix the code this evening between pharmacology and dental materials studies :P
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 19, 2009, 04:35:52 PM
Ok, Try the shoutbox.html attached ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 20, 2009, 12:34:45 AM
Ok, Try the shoutbox.html attached ;)

It looks a little different, but still not quite there.  The width is about twice what it should be.  (See attached)  My left side blocks are set to 200 px in Simple Portal.

But if you're studying to be a dentist you need to do that and ease up on the programming!  :)  Dentistry is one of the fields that has advanced so incredibly far from when I was a kid.  You guys are awesome!  God Bless our dentists!  :)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 20, 2009, 07:55:11 AM
200px? Try this then :|

Quote from: tfs
But if you're studying to be a dentist you need to do that and ease up on the programming!  :)  Dentistry is one of the fields that has advanced so incredibly far from when I was a kid.  You guys are awesome!  God Bless our dentists!  :)

Thank you for thinking like that eheh :) Dentistry really advance and it's an incredible field, well... at least I like it eheh :P I just do programming for fun and on my free time ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: MUSTAFAINE on May 20, 2009, 08:47:00 AM
I install the ajax chat mod in my smf site bit i couldnt integrate with simple portal how did you do please say again
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 20, 2009, 09:09:31 AM
You just need to copy the code from the first page to a new php block ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 20, 2009, 11:05:38 AM
200px? Try this then :|

No joy.  It's still wide in IE7.

Thank you for thinking like that eheh :) Dentistry really advance and it's an incredible field, well... at least I like it eheh :P I just do programming for fun and on my free time ;)

I just think back to how dentistry was in the 60's when I was a kid, or the 70's when I had braces, and even back in the 80's or 90's and I think that the status of dentistry today has come a loooooong way.  Going to the dentist used to border on the traumatic.  Maybe I just have an excellent dentist,  and I do, but it seems that you guys dish out so much less pain today than before.  And then there's those cute little dental hygienist babes at the dentists office....  hoo man, I need to get my teeth cleaned!  :)

I don't actually want to go to the dentist.  Nobody in their right mind does, but it's really not so bad anymore, and I do want to take the opportunity to express my appreciation when I get the chance to say thanks!
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 20, 2009, 01:06:26 PM
Quote from: tfs
No joy.  It's still wide in IE7.

ARGGGGG! This is becoming frustrating! I've 2 exams friday and I need to study a lot to them but Saturday I'll have a look on those CSS files and resolve your problem once and for all! Till then, you can use the shoutbox like a top or bottom block (with the original shoutbox.html file)

Quote from: tfs
I just think back to how dentistry was in the 60's when I was a kid, or the 70's when I had braces, and even back in the 80's or 90's and I think that the status of dentistry today has come a loooooong way.  Going to the dentist used to border on the traumatic.  Maybe I just have an excellent dentist,  and I do, but it seems that you guys dish out so much less pain today than before.  And then there's those cute little dental hygienist babes at the dentists office....  hoo man, I need to get my teeth cleaned!  :)

I don't actually want to go to the dentist.  Nobody in their right mind does, but it's really not so bad anymore, and I do want to take the opportunity to express my appreciation when I get the chance to say thanks!

Nobody wants to go to the doctor, that's a fact. But going to the dentist seams, for some people, worse that going to other doctor. I don't know why that happens but it's not only in US. I live in Portugal and the problem is the same. Maybe it's related to the spinning tools or because it hurts a lot. But that is past. It doesn't hurt anymore. We, dentists, have a lot of new technology to avoid pain and we can do some crazy new things that 3 years ago wasn't even possible to do.

That's why I like being in this field. Technology and medicine are the best together and It's cool to see new smiles in people's mouth eheh ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on May 20, 2009, 04:16:21 PM
Quote from: tfs
No joy.  It's still wide in IE7.

ARGGGGG! This is becoming frustrating! I've 2 exams friday and I need to study a lot to them but Saturday I'll have a look on those CSS files and resolve your problem once and for all! Till then, you can use the shoutbox like a top or bottom block (with the original shoutbox.html file)

I say go prep for your exams.  I've found a top block that fits nicely.  No hurries anymore for me.  The fact that I can fit the shoutbox into a top block makes a huge difference.  It's not taking the entire width of the screen anymore, which is a big improvement.

Thanks!
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: MUSTAFAINE on May 21, 2009, 07:30:45 AM
sorry blue but i just want to ask again about shoutbox integration..

i ve the ajax chat but when i add your php codes in my simple portal anything is changing.. an empty shoutbox area is in my hand, what is the problem do u thing anything about that..
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 21, 2009, 12:09:04 PM
Do you have a custom theme? Did you have the Ajax Chat installed in your theme?

You need to have the Ajax Chat installed in your index.template.php in order to work.

If you don't know how to do it just attached the file and I'll do it for you ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: MUSTAFAINE on May 22, 2009, 03:19:43 AM
http://metalfrm.com/chat/

blue i have the ajax chat mod & i changed the shoutbox.html file and & i put your codes in a php block..

if i need any other thing do it for me please i m feeling stupidly :)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 22, 2009, 11:17:22 AM
Hum.. Can you attach me a file, in your server in .::templates>"name of your theme"::. called index.template.php?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: MUSTAFAINE on May 25, 2009, 02:37:03 AM
requested file attached, thanks..
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on May 26, 2009, 07:28:57 AM
Try this
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: MUSTAFAINE on May 26, 2009, 08:32:02 AM
blue anything is changed, anything is in my board
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on June 03, 2009, 12:49:58 PM
NVM Blue the file here (http://simpleportal.net/index.php?topic=2233.msg15680#msg15680) fixed it.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Dream12 on June 06, 2009, 04:37:05 PM
Hey Blue,

I am also having that IE7 problem. Was just wondering if there are any updates mate???

thanks Man!!
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on June 06, 2009, 10:26:42 PM
The problem is with IE and the emoticons area.. it does not automatically provide line breaks like it should.. instead it simply forces all the smileys on one line.


(http://gwgoodolddays.net/forums/index.php?action=dlattach;topic=1239.0;attach=709;image)

if I can find the file that "emoticonsContainer" is defined in I am confident I can fix it
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Eliana Tamerin on June 07, 2009, 01:57:21 AM
Well, since it's an ID of a div, it'll be the CSS that defines it.

Look in /chat/css/positions.css and look for #content #emoticonsContainer.

I'm sure you can use SMF's built-in IE7 detector to give IE7 another CSS sheet that contains just that one class and the IE7-specific values it needs. That is, unless they're so IE-specific that it doesn't matter (if Firefox/Opera/Chrome/Konq/etc won't read them anyway) or if they don't screw up the rest of the browsers.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Dream12 on June 07, 2009, 08:06:23 AM
hmmmmmmmmmmmmmmmmm i am sorry but didnt umderstamd amu of that lol

So have i got to chamge the template file for the shoutbox????
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Eliana Tamerin on June 07, 2009, 10:08:13 AM
I was mostly speaking to Blue and amlucent, to see if either one wished to attempt the solution.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on June 07, 2009, 12:08:15 PM
I am going to attempt the solution.  I think adding a css file just for IE7 would be the solution that I should go with.  but I dont know what to alter to make only IE7 use a diff css. 

I wonder how hard it would be to make the smileys into a little popup window so that only a button shows on the shoutbox.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on June 09, 2009, 10:56:31 AM
Then maybe I could just get rid of half of the emoticons and it would fix the problem?  Let's face it, the times that you've just GOT to have that one special smiley doesn't come around that often.  :)  I'd rather have a reliable shoutbox which, interestingly enough, would be quicker and more space efficient.

There's only two emoticons I ever "need" anyway, smile & frown, and even those fall into the "cutesy" category when the rubber hits the road.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on June 12, 2009, 12:18:28 PM
amlucent, did you try to ask where "emoticonsContainer" is to the mod creator?

Since I'm not at home (till the end of college exames) I can't solve or try to solve this problem.

You can use the block in top or bottom blocks just for a temporary solution :|
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: mrtrc266 on June 12, 2009, 12:27:04 PM
I wonder how hard it would be to make the smileys into a little popup window so that only a button shows on the shoutbox.

You can check this out, pay particular attention to the shoutbox.html, shoutbox.css and posistions.css to see the changes I make to make the smileys popup. Of course you will have to do it a little differently but this should get you going in the right direction.

Adding Smileys and Making them Pop Up (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

Have fun :D
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on June 19, 2009, 11:43:38 PM
Thx mrtrc266.

That helped me solve it..  This makes it look perfect in IE. I am attaching the files incase anyone is interested in applying this change. Download the shoutboxsmileypopup.zip attached and use the files contained to replicate this change on your site.   My shoutbox and chat room are linked so your mileage with these files may vary if yours is different.

Also I am not a pro at css and what not.. mostly I just bumble my way through things so my work could probably be cleaned up quite a bit by someone more experienced.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Eliana Tamerin on June 20, 2009, 02:34:18 AM
Blue:

Well, since it's an ID of a div, it'll be the CSS that defines it.

Look in /chat/css/positions.css and look for #content #emoticonsContainer.

I'm sure you can use SMF's built-in IE7 detector to give IE7 another CSS sheet that contains just that one class and the IE7-specific values it needs. That is, unless they're so IE-specific that it doesn't matter (if Firefox/Opera/Chrome/Konq/etc won't read them anyway) or if they don't screw up the rest of the browsers.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on June 20, 2009, 08:24:35 AM
I'm just a rookie in coding php/html/css so I don't really know how to use SMF's built-in IE7 detector :'( :-[

mrtrc266, thanks for your idea. It's great and looks even better. The good thing is that is stops "bugging" ie7 ;D

It will be added to the first post :nervous-happy:
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Eliana Tamerin on June 20, 2009, 12:07:16 PM
You should look at how SMF determines which CSS file to serve to IE, I believe the index.template.php has a little bit of it. Subs.php or Load.php probably has the rest.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on June 20, 2009, 09:32:34 PM
Ok, thanks :)

I'll have a look ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: spammer1337 on June 26, 2009, 03:14:54 PM
Hey,
I have a problem with my shoutboxblock using ajax chat integration.
The block has no scroll bar. That means if i write something in to the chat the block keeps getting bigger and bigger. But I want to scroll through the chat and not such a big block. So whats the problem?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on June 26, 2009, 07:22:54 PM
Hi,

If you search for screenshots in this topic you will find that everyone has scrollbar so the problem is not from the block.

You should contact the Ajax Chat's creator ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tfs on June 26, 2009, 10:01:05 PM
Hey,
I have a problem with my shoutboxblock using ajax chat integration.
The block has no scroll bar. That means if i write something in to the chat the block keeps getting bigger and bigger. But I want to scroll through the chat and not such a big block. So whats the problem?

This might help...

http://www.simplemachines.org/community/index.php?topic=257973.msg2105662#msg2105662
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: spammer1337 on June 27, 2009, 04:57:09 PM
It works!
Thanks a lot!
Its a great support here
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: jiminoregon on June 28, 2009, 03:03:42 AM
I know this issue has been addressed, but no matter how hard I try I can't fix this simple alignment problem.  Pic 1 is the shoutbox in Firefox...Pic 2 is the shoutbox in IE.... 

I uploaded the newer shoutbox.html and the css sheets from the fix at Simple Portal...but still have the alignment issue.  I'm using SP 2.2 and SMF 2.0 RC1-1.

Any Ideas?

Thanks...Jim 
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on June 28, 2009, 03:41:51 AM
I know this issue has been addressed, but no matter how hard I try I can't fix this simple alignment problem.  Pic 1 is the shoutbox in Firefox...Pic 2 is the shoutbox in IE.... 

I uploaded the newer shoutbox.html and the css sheets from the fix at Simple Portal...but still have the alignment issue.  I'm using SP 2.2 and SMF 2.0 RC1-1.

Any Ideas?

Thanks...Jim


are you talking about my fix from here?

http://simpleportal.net/index.php?topic=2233.msg17374#msg17374

you applied it and it is not working?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: jiminoregon on June 28, 2009, 12:11:14 PM
I know this issue has been addressed, but no matter how hard I try I can't fix this simple alignment problem.  Pic 1 is the shoutbox in Firefox...Pic 2 is the shoutbox in IE.... 

I uploaded the newer shoutbox.html and the css sheets from the fix at Simple Portal...but still have the alignment issue.  I'm using SP 2.2 and SMF 2.0 RC1-1.

Any Ideas?

Thanks...Jim


are you talking about my fix from here?

http://simpleportal.net/index.php?topic=2233.msg17374#msg17374

you applied it and it is not working?

Yeah.  I'm sure I musta screwed up something...but it escaping me!  That usually means the fix is very easy and obvious...
 
Jim
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: jiminoregon on June 28, 2009, 12:24:04 PM
I know this issue has been addressed, but no matter how hard I try I can't fix this simple alignment problem.  Pic 1 is the shoutbox in Firefox...Pic 2 is the shoutbox in IE.... 

I uploaded the newer shoutbox.html and the css sheets from the fix at Simple Portal...but still have the alignment issue.  I'm using SP 2.2 and SMF 2.0 RC1-1.

Any Ideas?

Thanks...Jim


are you talking about my fix from here?

http://simpleportal.net/index.php?topic=2233.msg17374#msg17374

you applied it and it is not working?

Yeah.  I'm sure I musta screwed up something...but it escaping me!  That usually means the fix is very easy and obvious...
 
Jim

For others with this problem...I switched to the minishoutbox.html included with integretion 3.2 and this fixed it. Thanks mrtrc266 for the fix!

Jim
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: mrtrc266 on June 28, 2009, 12:48:14 PM
Glad you got it sorted :)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on June 28, 2009, 01:13:56 PM
For others with this problem...I switched to the minishoutbox.html included with integretion 3.2 and this fixed it. Thanks mrtrc266 for the fix!

Jim


yeah, my directions where based off ajax chat integration 3.0.. your milage will vary with 3.2.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: mrtrc266 on June 28, 2009, 01:29:15 PM
Workin on some new layouts for the shoutbox.

You can see it in a topblock here.
http://monsters-mansion.com/testsmf2/index.php

And on index page here
http://monsters-mansion.com/testsmf2/index.php?action=forum

Will post it when it's complete.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Eliana Tamerin on June 28, 2009, 03:57:54 PM
You need to upgrade your SP. :P
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on June 28, 2009, 09:58:04 PM
Workin on some new layouts for the shoutbox.

You can see it in a topblock here.
http://monsters-mansion.com/testsmf2/index.php

And on index page here
http://monsters-mansion.com/testsmf2/index.php?action=forum

Will post it when it's complete.

Really nice new layout ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: mrtrc266 on June 29, 2009, 01:01:00 AM
You need to upgrade your SP. :P

Hmmmm...In my package list it says...
7. SimplePortal 2.2.2   [ Uninstall ] [ List Files ] [ Delete ] 

But in the copy rights it says...
SimplePortal 2.2 © 2008-2009

Did something not go right?

Workin on some new layouts for the shoutbox.

You can see it in a topblock here.
http://monsters-mansion.com/testsmf2/index.php

And on index page here
http://monsters-mansion.com/testsmf2/index.php?action=forum

Will post it when it's complete.

Really nice new layout ;)

Thank you...as soon as I figure out how to get the smileys to actually open in a new window so they dont load on the page I will post all the edits. Right now they still load on every page the shoutbox is on and it really slows down the site.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Coles on June 29, 2009, 08:49:20 PM
Workin on some new layouts for the shoutbox.

You can see it in a topblock here.
http://monsters-mansion.com/testsmf2/index.php

And on index page here
http://monsters-mansion.com/testsmf2/index.php?action=forum

Will post it when it's complete.

I really like the new layout.  Excited to put it to use!
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: jalan on July 02, 2009, 08:12:57 PM
what code exactly for ajaxchat to put it in block to show in forum?

im using sp 2.2 and make no frontpage. It is go directly to the forum.

when i put in the block the code in the first post of this topic, the shoutbox is not running(theri is no scroll-the msg go down and down. I want to delete the default one in the forum and make it custom in the block.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: neuikc on July 09, 2009, 01:23:00 PM
I've gotten nneonneo's Shoutbox installed without issue, EXCEPT, for one issue remaining. I can't seem to get the "sound" to work on the box. Is this related to the code in the "smart block" or something else I havent been able to find?

Any help would be appreciated.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on July 09, 2009, 01:35:21 PM
its always "just worked" right out of the box on every server I have ever put it on.  I dont think it could be Blues box code.  **I have not tried the updated ajax chat 3.2.


Have you looked at mrtrc266's  F.A.Q.'s on the support thread of the mod?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: neuikc on July 09, 2009, 03:20:19 PM
its always "just worked" right out of the box on every server I have ever put it on.  I dont think it could be Blues box code.  **I have not tried the updated ajax chat 3.2.


Have you looked at mrtrc266's  F.A.Q.'s on the support thread of the mod?

Both the default theme and my custom have the following code in their respective index.template.php:

Code: [Select]
// 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>
<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript">
soundManager.url="',$boardurl,'/yshout/soundmanager2.swf";
soundManager.debugMode = false;soundManager.consoleOnly = false;
soundManager.onload = function()
{
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}
</script>';
// YSHOUT END - <head> code

I modified the 'block' code to look as follow:

Code: [Select]
// 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>

<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
   <script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:true});
}</script>

   <style type="text/css">
      #yshout #shouts {
         overflow: auto;
         width: auto;      /* the width you want to display */
         height: 200px;     /* the height you want to display */
}
         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: small;
         font-weight: small;
      }
      #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: 50px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         width: auto;
         margin-right: 2px;
      }
      #yshout #shout-button {
         width: 55px;
      }
      #yshout .shout-invalid { /* invalid shout (shout textbox) */
         background: #FFFDD1;
      }
   </style>';
   // YSHOUT END - <head> code

   // YSHOUT HERE - shoutbox code
   global $txt,$context,$boarddir;
   if(allowedTo('yshout_view'))
   {
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];
   // YSHOUT END - shoutbox code

Am I missing something obvious?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on July 09, 2009, 04:31:31 PM
I will never understand that.. if you are using the chat block why bother inserting the shoutbox into your index.  just make it a block and put it on all the pages you want it on... its prettier anyway.

whats your website address?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: neuikc on July 09, 2009, 05:24:33 PM
I will never understand that.. if you are using the chat block why bother inserting the shoutbox into your index.  just make it a block and put it on all the pages you want it on... its prettier anyway.

whats your website address?

So if I pull that code from both the index.template.php of default and my custom theme it would still work?

**UPDATE**

Removing it from the index.template.php didn't help.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on July 09, 2009, 06:54:20 PM
amlucent is right. What's the point inserting into index.php?

Just create a block and insert it ;)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: neuikc on July 09, 2009, 07:33:09 PM
Removing it from the index.template.php didn't help.

Using the following code in a block, produces a working shoutbox, except for the "sound".


Code: [Select]
// 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>

<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
   <script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}</script>

   <style type="text/css">
      #yshout #shouts {
         overflow: auto;
         width: autopx;       /* the width you want to display */
         height: 245px;     /* the height you want to display */
}
         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: 50px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         width: 150px;
         margin-right: 2px;
      }
      #yshout #shout-button {
         width: 55px;
      }
      #yshout .shout-invalid { /* invalid shout (shout textbox) */
         background: #FFFDD1;
      }
   </style>';
   // YSHOUT END - <head> code

   // YSHOUT HERE - shoutbox code
   global $txt,$context,$boarddir;
   if(allowedTo('yshout_view'))
   {
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];
   // YSHOUT END - shoutbox code
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on July 09, 2009, 08:27:45 PM
Does sound work when its not in a bloc?  What about when you are in the chat room?

looking at the ajax chat website it looks like sound is considered optional and will work if your server has the appropriate stuff installed

Quote
Optional Flash based sound support

Quote
The Flash plugin is used for (optional) sound support and to establish the (optional) socket connection on client side. The (optional) socket server is implemented in Ruby.

you are using XAMP for your server right?  I think you will need ruby installed also.. I would ask on the ajax chat site.. or the smf support thread.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: neuikc on July 09, 2009, 09:02:30 PM
Does sound work when its not in a bloc?  What about when you are in the chat room?

looking at the ajax chat website it looks like sound is considered optional and will work if your server has the appropriate stuff installed

Quote
Optional Flash based sound support

Quote
The Flash plugin is used for (optional) sound support and to establish the (optional) socket connection on client side. The (optional) socket server is implemented in Ruby.

you are using XAMP for your server right?  I think you will need ruby installed also.. I would ask on the ajax chat site.. or the smf support thread.

I've only placed it in a block. Chat room?

Naw, I moved to a host a bit back. http://uk.gw-alliance.org

Running gallery mod and Aeva mod so I'm pretty sure Flash is implemented without issue on the host.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on July 10, 2009, 01:38:23 AM
oh snap.. I am sry.. I reread your first post (Its fundamental).. you are using nneonneo's Shoutbox?  ok.. I used to use that on my site (using the ajax chat now).  First off, I always found using the "advance shoutbox" version of nneonneo's was the easiest way to get sound working... that being said I could never get sound working with it on my new server/host (it worked on the old one, i migrated the same code and it didnt work anymore)... its one of the reasons I switched to ajax chat.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: neuikc on July 10, 2009, 10:10:08 AM
oh snap.. I am sry.. I reread your first post (Its fundamental).. you are using nneonneo's Shoutbox?  ok.. I used to use that on my site (using the ajax chat now).  First off, I always found using the "advance shoutbox" version of nneonneo's was the easiest way to get sound working... that being said I could never get sound working with it on my new server/host (it worked on the old one, i migrated the same code and it didnt work anymore)... its one of the reasons I switched to ajax chat.

Yea, I installed Ajax chat but had issues with it, no text in box, chat "page" errors, I read the faq but couldn't resolve the issues I was having so I thought I'd try nneonneo's.

I was running HacksPark ShoutBox, which I was happy with, but when using within the SimplePortal Block mod, again, the sound stopped working. If I could go back to HacksPark *AND* have the sound work within a block I'd be more than happy - :)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: neuikc on July 10, 2009, 03:10:17 PM
One thing I've just noticed, if I use the following code in a PHP block it spits out errors in my logs:
Code: [Select]
// 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>

<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
   <script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}</script>

   <style type="text/css">
      #yshout #shouts {
         overflow: auto;
         width: auto;       /* the width you want to display */
         height: 245px;     /* the height you want to display */
}
         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 {
         width: 50px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         width: 350px;
         margin-right: 2px;
      }
      #yshout #shout-button {
         width: 55px;
      }
      #yshout .shout-invalid { /* invalid shout (shout textbox) */
         background: #FFFDD1;
      }
   </style>';
   // YSHOUT END - <head> code

   // YSHOUT HERE - shoutbox code
   global $txt,$context,$boarddir;
   if(allowedTo('yshout_view'))
   {
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];
   // YSHOUT END - shoutbox code

The error:

Code: [Select]
8: Undefined variable: scripturl
File: /XXXX/XXXXXX/XXXXXXXX/XX/Sources/SPortal2.php(3218) : eval()'d code
Line: 4

Any ideas? Maybe thats ultimately the issue?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on July 10, 2009, 08:58:13 PM
Hum... It can't be because of the block's code since the code only calls the shoutbox and don't interact with it.

For the error above just replace
Code: [Select]
global $boardurl,$shoutFile;
to
Code: [Select]
global $boardurl,$shoutFile;$scripturl;
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: ai_yazawa on August 01, 2009, 04:43:30 PM
i wonder why this doesnt work in my forum. i'm using nneonneo shoutbox 1.22, smf 1.1.9, and simple portal 2.2

i already got nneonneo shoutbox installed before this and it works perfectly in the forum. but when i created a php block and put the php code u gave, i got this error in the block:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /www/xxxxx.com/x/x/x/x/x/x/x/x/xxxxx/htdocs/Sources/SPortal1-1.php(3232) : eval()'d code on line 5

Parse error: syntax error, unexpected $end in /www//www/xxxxx.com/x/x/x/x/x/x/x/x/xxxxx//htdocs/Sources/SPortal1-1.php(3232) : eval()'d code on line 26
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: iosys on August 04, 2009, 01:56:13 PM
After bashing my head against the keyboard for about 2 hours trying to get my side Block displaying in IE7 correctly heres what worked for me:

In shoutbox.html find

<tr><td>
<div id="emoticonsContainer" dir="ltr"></div><hr />
</td></tr>


and replace with

<tr><td width="180px">
<div id="emoticonsContainer" dir="ltr"></div><hr />
</td></tr>


Hope this helps someone else too!
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: pinoygroundz on August 17, 2009, 01:37:35 PM
im using neoneo shoutbox which is not advance can i still put it in to the block?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: amlucent on August 17, 2009, 01:42:48 PM
im using neoneo shoutbox which is not advance can i still put it in to the block?

If you are referring to the code on the first post of this thread then yes it will work fine.  Try it.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: pinoygroundz on August 18, 2009, 08:47:08 AM
for side blocks for neo shoutbox? can you give me tutorial for it thanks.

HELP: my shoutbox in portal block is unusable cant post and shout.. check here: http://pinoygroundz.comuf.com try the test account
username: test
password: test
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: mihkel on October 28, 2009, 08:30:08 AM
okay, i have well functioning neoneo shoutbox over here planet.frihost.org/foorum . How can i add a block, i mean where is the PHP code which i have to copy to PHP field.

Thanks
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: roomeat on December 29, 2009, 08:03:30 PM
Hmm.. I have read through this thread and a couple that are linked to in this thread.. but I must be simply overlooking where the actual fix is...

I have this block as a side block (working with SMF2.0 RC2 and Ajax Chat 3.2.2

When viewing in Opera.. the block looks OK as far as the width.. but it has no vertical scroll bat.. so each time someone posts a message it just gets larger and larger.

When viewing in IE8.. it has the same problem as above.. but it also does not fit in width.. it's too wide.

I seen mention of the smilies.. but from what I understand.. the code in the first post has been updated to correct this??

You can see it yourself at www.ozsuperbikes.com

Can anyone please tell me what I have missed??
Title: Re: Smart Shoutbox Detection | Error
Post by: vyache on December 31, 2009, 07:30:51 PM
Having trouble getting it to look exactly the way you have it shown in your topic blue. I used the same code you have.

Here is an example in my picture.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Maarten on January 11, 2010, 08:59:43 AM
Doesn't work ?
Can't install install yShout on SMF 2.0 RC2?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: vyache on January 11, 2010, 09:04:28 AM
Doesn't work ?
Can't install install yShout on SMF 2.0 RC2?

Can't get AjaxChat to work with SimplePortal... AjaxChat works stand alone.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Maarten on January 11, 2010, 11:56:33 AM
Doesn't work ?
Can't install install yShout on SMF 2.0 RC2?

Can't get AjaxChat to work with SimplePortal... AjaxChat works stand alone.
Oh, amazing XD it's working.. but this plugin doesn't work...
Code: [Select]
Fatal error: Call to undefined function getShoutBoxContent() in /home/maarten/domains/[mywebsite].nl/public_html/beta/Sources/PortalBlocks.php(3272) : eval()'d code on line 10
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: pinoygroundz on January 30, 2010, 02:40:51 AM
got problem with my simpleportal blocks for neo shoutbox its not working.. the message is not showing.. need help pls thanks! heres the picture take a look:
(http://img686.imageshack.us/img686/1839/newbitmapimagesq.png)
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: vyache on January 30, 2010, 11:38:04 AM
It works but, as you can see in my picture above, it doesn't look anything like the topic thread...

Anyone know why?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Chen Zhen on January 30, 2010, 01:16:27 PM
got problem with my simpleportal blocks for neo shoutbox its not working.. the message is not showing.. need help pls thanks! heres the picture take a look:
(http://img686.imageshack.us/img686/1839/newbitmapimagesq.png)

Filipino eh?

You should really start your own thread since the original poster had their own issues with a different version of ajax chat.
Anyhow...

Give us a copy of the code you used (in a code block please).
And also attach a copy of your :
/ Themes / default / index.template.php

... I am guessing that the style coding (head code) for the shoutbox is installed in the file mentioned above and you are probably using a custom theme? I usually just edit out the style and initialize code from that file and apply it in the block itself, this way no matter what theme or side/top block is used, the shoutbox block will always work with a specific style for each instance (side or top/bottom).

Also tell which smf version you are using and if you edited any of the index.template.php and/or BoardIndex.template.php files from other themes with code from nneonneo shoutbox.

You can do it my way or just add the style (head) code to the index.template.php file of all your themes but these settings will be uniform throughout your site no matter where you place a shout block if you do it this way.

If you look at my forum you can see examples of the nneonneo shoutbox on the forum page (as a top block) and the arcade page (as a side block) where being able to adjust the style within the block itself comes into play. (You have to register to view it)

UD
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: pinoygroundz on February 01, 2010, 01:33:29 AM

Filipino eh?

You should really start your own thread since the original poster had their own issues with a different version of ajax chat.
Anyhow...

Give us a copy of the code you used (in a code block please).
And also attach a copy of your :
/ Themes / default / index.template.php

... I am guessing that the style coding (head code) for the shoutbox is installed in the file mentioned above and you are probably using a custom theme? I usually just edit out the style and initialize code from that file and apply it in the block itself, this way no matter what theme or side/top block is used, the shoutbox block will always work with a specific style for each instance (side or top/bottom).

Also tell which smf version you are using and if you edited any of the index.template.php and/or BoardIndex.template.php files from other themes with code from nneonneo shoutbox.

You can do it my way or just add the style (head) code to the index.template.php file of all your themes but these settings will be uniform throughout your site no matter where you place a shout block if you do it this way.

If you look at my forum you can see examples of the nneonneo shoutbox on the forum page (as a top block) and the arcade page (as a side block) where being able to adjust the style within the block itself comes into play. (You have to register to view it)

UD

Yes Filipino here.., im using SMF 2.0 RC 1.2 i used the smart block code here
Code: [Select]
<?php
global $txt,$context,$boarddir;

//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir '/chat/lib/'))
{
   if (
allowedTo('shout_access')){
      echo
'
         <div id="ShoutBox">
            '
getShoutBoxContent() ,'
         </div>'
;
   }
}
//YSHOUT HERE | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir '/yshout/yshout.php'))
{
   if(
allowedTo('yshout_view'))
   {     
   echo 
'<div id="yshout">';
      include_once(
$boarddir.'/yshout/yshout.php');
      echo 
'</div>';
   }
   elseif(
$context['user']['is_guest'])
      echo 
$txt['yshout_no_guests'];
}
?>


index.template attached.. pm me your site let me have look on it
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: vyache on February 02, 2010, 11:29:52 AM
@Underdog

I was wondering if you had  the Ajax Chat code that would also work like YSHOUT ?

Thank You.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Maarten on February 03, 2010, 12:57:12 PM
Does there is a Ajax Chat integration script for SMF 2.0 RC2
I can't find 1 :S:S:S
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Chen Zhen on February 04, 2010, 12:46:00 AM
@Underdog

I was wondering if you had  the Ajax Chat code that would also work like YSHOUT ?

Thank You.

Google is your friend!

Try this: CLICK HERE (https://blueimp.net/ajax/)

UD
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Chen Zhen on February 04, 2010, 12:48:49 AM
Does there is a Ajax Chat integration script for SMF 2.0 RC2
I can't find 1 :S:S:S

nneonneo shoutbox will work with smf 2 rc2

CLICK HERE (http://askusaquestion.net/index.php/topic,739.0.html)  to download nneonneo shoutbox (with smileys and command icons).

UD
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: vyache on February 04, 2010, 01:21:08 AM
Sorry I wasn't specific. I wanted the code for the block. The one that started the thread. I can't get it to look right in my block using Simple Portal.

I have Ajax Chat, installed...
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: pinoygroundz on February 12, 2010, 07:32:10 AM
i cant make the shoutbox work i used your php code block in my sp portal, custom php when i put it error message pops up
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: pinoygroundz on February 12, 2010, 07:39:58 AM
(http://img691.imageshack.us/img691/2609/errordu.png)

This Error what id got
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Chen Zhen on February 12, 2010, 11:37:29 AM
(http://img691.imageshack.us/img691/2609/errordu.png)

This Error what id got

Well, I could help you out further but I want to give you some advise from what I've experienced lately...

I have seen 2 forums that use free web hosting that tried to install nneonneo shoutbox and both times the javascript from the shoutbox somehow interfered with the 'free web hosts' advertising on their sites and they had their accounts terminated promptly.

I'm not positive but I gather that the whole point of the free web hosting is to push advertising on their clients sites to make their money. When something interferes with how they have those advertisements display on their clients web page, they have a low tolerance and will terminate their contract with said client.

If you use free web hosting as your images imply, I suggest trying a different shoutbox such as the pre-written one that comes with the latest simple portal version. Other variables may have been used that will perhaps not interfere with the ads.

If I'm in error regarding the free web hosting and you want to continue with nneonneo shoutbox...
It appears as though you are getting error messages from the shoutbox trying to write to file. You may possibly have to change the file permissions for read/write of the yshout folder from FTP access. It is also possible that you installed 2 different shoutboxes without uninstalling one of them properly (yshout) and it's trying to write to files that do not exist.
People get confused between the old yshout and nneonneo shoutbox.... nneonneo shoutbox used the old yshout code as a base but changed a lot of stuff (such as file names)... I have had to fix a few peoples forums because they install/uninstall both shoutboxes.
I found bits of code in your index file from both shoutboxes so this is why I say this.

If you decide the latter then I can assist you further but if you use free web hosting don't be surprised when what I mentioned occurs...

UD
 



 
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: pinoygroundz on February 13, 2010, 01:31:54 AM
its working anyway but maybe some codes doesnt work with it., maybe i need to remove something.. because in my wapversion my shoutbox working smoothly the neo shoutbox counterpart in wap mode
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Maarten on March 17, 2010, 02:04:50 PM
Ajax chat for SMF 2 RC3  :O http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: avenger on March 27, 2010, 12:02:20 PM
I tried the code for an SMF 2 RC3 install.. it doesnt work!

if i install ajaxchat, can i display it as a block on the portal page?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Darkflame on June 11, 2010, 08:39:57 AM
Currently having scroll issues with mine (anyone have any idea why the block refuses to scroll all the way down to the bottom?)

Also, how do i reverse the chat so it goes upwards instead of downwards?
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Deezel on August 11, 2010, 11:28:05 PM
Can anyone get this to work with SMFPacks shoutbox mod?
Code: [Select]
http://custom.simplemachines.org/mods/index.php?mod=1295
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: lakechurch on September 30, 2010, 11:50:29 AM
Can anyone get this to work with SMFPacks shoutbox mod?
Code: [Select]
http://custom.simplemachines.org/mods/index.php?mod=1295

I don't know which versions you got. I got smf 2.0RC3  and SP 2.3.2. I didn't put it in a block but just changed the parameters of the shoutbox.
In the shoutbox settings just add a page where to view the shoutbox. I added "sportal_main" and it works fine.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: aliceaod on January 07, 2011, 08:18:18 PM
I am using only the code for the AjaxChat (no interested in the shoutbox as SP comes with one).

Block code in OP is not working with SMF 1.1.12, SP2.3.3 Here's the code that I'm putting into the "Top" PHP Block:
Code: [Select]
<?php
global $txt,$context,$boarddir;

//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir '/chat/lib/'))
{
   if (
allowedTo('shout_access')){
      echo
'
         <div id="ShoutBox">
            '
getShoutBoxContent() ,'
         </div>'
;
   }
}
?>

Is there something else I should be doing?  AjaxChat works fine stand-alone but I'd love to have it in a block that appears where ever I want...

Works a treat on the forums as a "top" box when put into an iframe using an html block but it gets squashed on the portal page due to the width limit of the center column. I'd love to be able to use this on the portal page...any help appreciated.

iframe code:
Code: [Select]
<iframe src="./chat/index.php" width="100%" height="300"> </iframe>
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: wiecher on April 09, 2011, 06:57:18 PM
Not working fine here.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: wiecher on April 10, 2011, 08:28:12 AM
Hey,
I have a problem with my shoutboxblock using ajax chat integration.
The block has no scroll bar. That means if i write something in to the chat the block keeps getting bigger and bigger. But I want to scroll through the chat and not such a big block. So whats the problem?

This might help...

http://www.simplemachines.org/community/index.php?topic=257973.msg2105662#msg2105662

I did that but it don`t work.
Please help me
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tombillings on April 22, 2011, 03:23:45 PM
Okay, i love this block, and the ajax chat, my issue is so plain...i just want the thing to not display on my index (forum home) page, i have it in a block and it's fine, i just need it off my forum home page because it's tacky having it littered throughout.

SMF 2.0 RC 4 - SP 2.3.3
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: tombillings on April 23, 2011, 11:11:16 PM
nevermind sorted my own issue
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: Blue on June 29, 2011, 01:19:52 PM
Not working fine here.

For the top/bottom block, you don't have to change or replace any source files. But for side block you need to replace shoutbox.html from (boarddir/chat/lib/template) for the one attached in the first post.
Title: Re: Smart Shoutbox Detection: [Ajax Chat] & [nneonneo's Shoutbox]
Post by: crash_8675 on November 14, 2013, 06:51:39 PM
Hi, the smart block code doesn't work for me, I'm using SMF 2.0.6 and SimplePortal 2.3.5.
This is the error when I try to use code in PHP Block:

 Fatal error: Call to undefined function getShoutBoxContent()
(http://i.imgur.com/JAbcaAO.png)


Mi solution for view Ajax Chat in Portal was using a iframe in a HTML BLOCK:

<iframe src="./chat/index.php" frameborder="0" marginwidth="50" width="100%" height="400" scrolling="auto"> </iframe>

I don't know why that error, sorry for my english.
SimplePortal 2.3.8 © 2008-2024, SimplePortal