nneonneo's Shoutbox

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

Previous topic - Next topic

pongsak

#900
Quote
The smileys guide is quite nice; can I add this functionality into a future version of the shoutbox?

Sure.  :)

About the sound after i try it, there's 2 thing annoying .
1. It alway shows message at the bottom of the page like this. http://img171.imageshack.us/img171/8360/psk01vw5.jpg



2. Code may be miss somewhere cause it error in ie7 (the soundmanager page say it can use in ie)

smf 1.1.2 with dilbermc themes.
> 50 mods installed.

pongsak

Ok, the first one i can correct it by open soundmanager.js and set this.debugMode = false; .
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

nneonneo

@brianjw: In smiley.php:
Change

elseif ($user_info['smiley_set'] != 'none')
{
if (($temp = cache_get_data('posting_smileys', 480)) == null)
{
$request = db_query("
SELECT code, filename, description, smileyRow, hidden
FROM {$db_prefix}smileys
WHERE hidden IN (0, 2)
ORDER BY smileyRow, smileyOrder", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
$row['code'] = htmlspecialchars($row['code']);
$row['filename'] = htmlspecialchars($row['filename']);
$row['description'] = htmlspecialchars($row['description']);

$context['smileys'][empty($row['hidden']) ? 'postform' : 'popup'][$row['smileyRow']]['smileys'][] = $row;
}
mysql_free_result($request);

cache_put_data('posting_smileys', $context['smileys'], 480);
}
else
$context['smileys'] = $temp;
}

to
// Load smileys - don't bother to run a query if we're not using the database's ones anyhow.
if ($user_info['smiley_set'] != 'none')
$context['smileys']['postform'][] = array(
'smileys' => array(
array('code' => ':)', 'filename' => 'smiley.gif', 'description' => $txt[287]),
array('code' => ';)', 'filename' => 'wink.gif', 'description' => $txt[292]),
array('code' => ':D', 'filename' => 'cheesy.gif', 'description' => $txt[289]),
array('code' => ';D', 'filename' => 'grin.gif', 'description' => $txt[293]),
array('code' => '>:(', 'filename' => 'angry.gif', 'description' => $txt[288]),
array('code' => ':(', 'filename' => 'sad.gif', 'description' => $txt[291]),
array('code' => ':o', 'filename' => 'shocked.gif', 'description' => $txt[294]),
array('code' => '8)', 'filename' => 'cool.gif', 'description' => $txt[295]),
array('code' => '???', 'filename' => 'huh.gif', 'description' => $txt[296]),
array('code' => '::)', 'filename' => 'rolleyes.gif', 'description' => $txt[450]),
array('code' => ':P', 'filename' => 'tongue.gif', 'description' => $txt[451]),
array('code' => ':-[', 'filename' => 'embarrassed.gif', 'description' => $txt[526]),
array('code' => ':-X', 'filename' => 'lipsrsealed.gif', 'description' => $txt[527]),
array('code' => ':-\\', 'filename' => 'undecided.gif', 'description' => $txt[528]),
array('code' => ':-*', 'filename' => 'kiss.gif', 'description' => $txt[529]),
array('code' => ':\'(', 'filename' => 'cry.gif', 'description' => $txt[530])
),
'last' => true,
);


@pongsak: Give me the URL to your page and I will check it using IE6/7. I am not the author of SoundManager2, so I can't say what the problem is without seeing it.
As for debug mode, I didn't know it was on by default; I have edited the tip posted 3 posts ago to fix this.

What does it say in debug mode before the IE error appears?
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!

pongsak

After correct code to your new edit , ie still show same problem.
My forum : http://www.med17psu.com/forum
user: test1
pwd: test1
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

pongsak

Another problems except that one in ie is the sound can here with one who typing.
Such as if i type i here, but other type and show new text i didn't here anything.
The other side is same as me.The sound only heard for the one typing.
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

pongsak

Sorry about ie problem, accidentally i 've used internet with ie in IT shop and found that it's no problem now. (The problem come when i  use ff and ie in same computer , even different log in).
But the problem above persist.
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

JSizzal

Hi nneonneo

Long time

Your shoutbox has been working nice for me now i have a different question

Is there any way to make the shoutbox "pop-up-able" like when u first go to the site you wont see the shout box just the main forum and the on the menu bar i.e (home, help, search) you can click on the shoutbox and then it will pop up where it normally was

Speaking on the defualt theme, with nothing extra added, just arcade

Did u get wat i was asking for ...

Thanks man

nneonneo

@pongsak: So, now, what is the problem?

@JSizzal: See http://www.simplemachines.org/community/index.php?topic=137508.msg1195341#msg1195341 for an implementation. Make a new tab in the default theme with a link to the page you create (using target="_blank" or Javascript to make it open in a new window).
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!

pongsak

#908
The problem now is there's the sound only for typer not the receiver.
Suppose u and me chat in shout box, If u type u hear but i don't hear , if i type i hear and u don't hear.
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

nneonneo

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!

nneonneo

>.< I posted the wrong instructions.

Fixed instructions at http://www.simplemachines.org/community/index.php?topic=137508.msg1206809#msg1206809 (edited the original post)
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!

pongsak

 :) Thanks for help.
But something weird again  :)
If anyone type and send a message  he'll always hear 2 times.But if he recieve a message he'll the sound once.
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

nneonneo

Remove the code from schedRefresh :)
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!

pongsak

Ok, It's working very good now.
I think u should release new version include smiley & sound, cool.
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

pongsak

Another suggestion.
At my forum, i've used ajax user online that update every 30 sec.
I've noticed that when users  chat and not do anything else , users's  name
will disappear from user online after 15 min.

This function call data from smf_log_online, my suggestion is there's a way
to write this table while user's chatting? may be every q 5 min for maintain user
in user online.
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

feqty

I have SMF 1.1.3 version of forum, and I have instaled 1.0.8 version of nneonneo's Shoutbox, and I have one annying problem...

...loading shoutbox...

And nothing happens... I looked  the EROR log, instaled manualy the codes in the Index.template.php in my theme... And I still am geting this message....

Link to the forum... hxxp:www.feqty.com [nonactive]

nneonneo

@pongsak: Smileys will be added as an optional feature (though probably without the sliding animation); sound will be added to the main mod page as an add-on to the shoutbox.

I will also add brianjw's lock/maintenance mode idea as a command ("/lock <message>", "/unlock").

@feqty: When I visit http://www.feqty.com/forum/yshout/yshout.php I get a "406 Not Acceptable" error -- Apache's mod_security is preventing yshout.php from executing. yshout.php should be "chmod 755", if it's not, correct it and try again.
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!

feqty

@nneonneo i erased this mod... I was tryning all day to install it, and then i gave up...
I'm sure that is a good MOD... but i can not spare any more time...


Thank's anyway ;D

brianjw

The shoutbox is giving me a hard time and has for a while. I am using the latest version of this shoutbox (1.08).

It extends out of the TinyPortal block like the screenshot below. Also below I include the code for the css supposed to be in the index.template.php, what will I need to change or can you change it for me to make it fit in a width of 208 Pixels. Where the red line is accross the image below is where about the block is supposed to stop continuing, it also may be something in yshout.php.


// YSHOUT HERE
   global $boardurl;
   echo '
   <script src="',$boardurl,'/yshout/js/prototype.js" type="text/javascript"></script>
   <script src="',$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
   <script src="',$boardurl,'/yshout/js/behaviour.js" type="text/javascript"></script>
   <script src="',$boardurl,'/yshout/js/domFunction.js" type="text/javascript"></script>
   <script type="text/javascript">

   var myfunc = new domFunction(function()
   {
      ',empty($options['collapse_header']) ? 'loadChat();':'','
   }, { "yshout":"id"});
   var board_url = "', $boardurl, '";

   </script>
   <script src="',$boardurl,'/yshout/js/yshout.js?Mar42007" type="text/javascript"></script>
   <script type="text/javascript">var shoutFile = "home.txt";</script>
   <style type="text/css">
      #yshout {
         font-size: 10px;
      }
      #yshout p {
         margin: 0 0 0; /* Top Bottom Linespacing */
      }
      .shout-invalid {
         background: #FFFDD1;
      }
      #yshout fieldset {
         border: none;  
      }
      #yshout em {
         font-style: normal;
      }
      #yshout p {
         line-height: 1;
         margin-top: 0;
      }
      #yshout {
         overflow: hidden;
      }
      #yshout .shout-timestamp {
         font-weight: normal;
         color: #000;
      }
      #forum-name, #shout-text, #shout-button {
         font-size: 9px;
         margin: 0;
         padding: 0;
      }
      #yshout #forum-name {
         color: #666666;
         width: 70px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         color: #000000;
         width: 150px;
         margin-right: 5px;
      }
      #yshout #shout-button {
         width: 55px;
      }
      #shouts .owner a {
         color: #F00;
      }
      #shouts .moderator a {
         color: #00F;
      }
   </style>';
   // YSHOUT END


Thanks,
Brianjw

nneonneo

@feqty: Thanks for letting me know.

@brianjw: Have you tried #yshout {
    font-size: 10px;
    width: 208px;
}

?
I am not a CSS expert, but this *should* work.
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!

Advertisement: