nneonneo's Shoutbox

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

Previous topic - Next topic

kichu

How to add Selection of Color Code option for Users :) as Buttons

lash

Quote from: SunKing on September 10, 2008, 06:26:46 PM

Quote from: lash on September 10, 2008, 12:12:38 PM
Can anyone help me if I attach my index.template file?

I would be glad to help, but I need to know where you would like the shoutbox displayed.


Thanks for replying Sunking :)

I've attached picture of the forum header and any where along the red line would do.

I'm reattaching the index.template file also.



[unplugged]

@lash

I think this is what you are looking for. I really can't test it thoroughly because I cannot find that particular theme to download and install. Make a backup of your current index.template.php. Download the one I have attached and upload it to your theme folder. If for some reason it doesn't work, replace it with your backup, and I'll need the theme, if at all possible, or a link to your site for starters.  ;D
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



lash

#3783
Thanks for helping SunKing :)

it works now.

BUT...

the width of rest of the template below the shoutbox is kinda messed.

I'll PM you the link with a login and pass.


EDIT: PM'ed you.

RE EDIT: need HELP BIG TIME, i was playing around with the index.template file to try to fix the problem myself, but am now left with the Internal Server Error!!

I've tried reverting to the original file, but no success, any thoughts?

modifiyeli.org


pipo_il_primero

Quote from: nneonneo on September 10, 2008, 09:01:22 PM
It will only affect new posts.

great job thanks!

many thanks to SunKing as well !!!!

Con

Sunking... I've done it again... Since the other layout came with too many features that interfered with the mods, I got a new one.. and it's having shoutbox issues as well >> (maybe I pick too evil templates?)

This time the layout is 'Darkbreak'
It's so bad it actually crashes the moment the index is opened.. and I swear, I didnt do anything but add the codes..

Please be the saviour you've been before? (though maybe without accedently sending the old file? :P)

[unplugged]

Con, where would you like it placed?
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



machmanx

Thank you soo much for helping me with the sound, it works now.  But I do have a lag issue and the following vb error when I added the mute/unmute feature:-

'request' is null or not an object

function unloadChat() {
   delete_cookie("yShout_open");
   request.abort();

I dunno what that is.  Also, it seems that this mod disables the sound by default.  Can you make the sound on default?  Thanks.

Updated mute/unmute instructions (original at http://www.simplemachines.org/community/index.php?topic=137508.msg1384923#msg1384923)
In yshout/js/yshout.js, after
if (oldShouts != null && ltrim(oldShouts) != ltrim($("shouts").innerHTML)
add
&& get_cookie("shoutSound") == "true"

In yshout/yshout.php, add this to where you need it:
      if(!isset($_COOKIE['shoutSound'])) {
            echo '&nbsp;<a href="javascript:delete_cookie(\'shoutSound\');set_cookie(\'shoutSound\',\'true\',3600*24);delete_cookie(\'yShout_open\');loadChat();">Use Sound</a>';
      } else {
            echo '&nbsp;<a href="javascript:delete_cookie(\'shoutSound\');delete_cookie(\'yShout_open\');loadChat();">No Sound</a>';
      }

One good place to add this is after the line
echo '<a href="javascript:goTo(\'help\')">',$txt['yshout_commands'],'</a>';
[/quote]

nneonneo

@machmanx: "request" should be set after a few seconds (it's nothing to sweat about, though). I'm not sure why it might lag.
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!

kichu

I want Color selection buttons in shoutbox for messages

Con

Quote from: SunKing on September 11, 2008, 06:27:37 PM
Con, where would you like it placed?
At the bottom just above the 'powered by' links.

trancesistor

Hello!

thanks nneonneo the mod is great!

But when I followed the instructions to add smileys I took this error:
Open Smiley | Close
Fatal error: Cannot redeclare loadsmileys() (previously declared in /home/forum/mymod/smiley.php:12) in /home/forum/mymod/smiley.php on line 94

at the end of every page. Can anyone help me?

Sorry for my English!

nneonneo

@trancesistor: Are you sure that the smiley.php file is the correct one? It seems that it may have some duplicated code or something.

@kichu: Assuming you have the smiley mod, you can add
if (!isset($context['disabled_tags']['color']))
echo ' <br /><select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.', $a, '.', $b, '); this.selectedIndex = 0; document.forms.', $a, '.', $b, '.focus(document.forms.', $a, '.', $b, '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
echo '<br />';

to the place you want it (probably right before
}
// END: Borrowed from template_postbox(&$message) in Post.template.php


These directions are for SMF 1.1.6.
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!

trancesistor

Quote from: nneonneo on September 12, 2008, 10:22:04 AM
@trancesistor: Are you sure that the smiley.php file is the correct one? It seems that it may have some duplicated code or something.

I downloaded the attachment smiley.php from your post here: http://www.simplemachines.org/community/index.php?topic=137508.msg1388091#msg1388091

Thanks for the reply!

nneonneo

Post your smiley.php. I think something is wrong here...
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!

trancesistor

This is!
if that helps you, the error appears on every page except the main page of the forum!
I use SB 1.21

zhar

#3797
I noted that the history is not really working for me, when the message drops from the shoutbox it's lost forever. The history and admin's extended history return only the present shouts, they are the only one in the .txt file, too  :-[ Any suggestions where to look for some solution ?

4T3IG0

Quote from: 4T3IG0 on September 07, 2008, 09:13:24 PM
1) No I didn't shift+refresh...   I will try it again.

2) And if some of the members are already Global Mod, and I don't wish all off them to Mod the Shout?

Thanks  :)

Well...   now it´s working very well. Thanks to all, especial to you nneonneo for your precious help.

4T    :)

nneonneo

@trancesistor: Are you by some chance including the file twice? Look for mymod/smiley.php in index.template.php, and if it occurs more than once, then that would be the problem.

@zhar: try chmod'ding yshout/chats to 777 and/or create yshout/chats/history.home.txt with the appropriate permissions
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: