nneonneo's Shoutbox

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

Previous topic - Next topic

nneonneo

Hmm, odd. I don't know why you wouldn't have that file.

Do you have a file called "Themes/default/languages/Modifications.english.php"? If so, then you can manually install to there.

Quote from: nneonneo on July 10, 2007, 09:54:04 AM
@magnitude: You are probably not using english-utf8.

Find Themes/default/languages/Modifications.english.php
and add, right before the ?> at the end:
// ---- Begin modification - nneonneo's Shoutbox ----
$txt['yshout_shoutbox'] = 'Shout Box';
$txt['yshout_loading'] = '...loading shoutbox...';
$txt['yshout_rp_banned'] = "Sorry, you've been banned from the shoutbox.";
$txt['yshout_no_guests'] = 'Sorry, you must be logged in to use the shoutbox!';
$txt['yshout_ban_conf'] = 'Ban Confirmation';
$txt['yshout_select_mode'] = 'Select Ban Mode:';
$txt['yshout_rp'] = 'Reading and Posting';
$txt['yshout_p'] = 'Posting only';
$txt['yshout_error'] = 'ERROR: ';
$txt['yshout_no_user'] = 'User not found.';
$txt['yshout_del_success'] = 'Shout deleted.';
$txt['yshout_no_action'] = 'Nothing to do.';
$txt['yshout_history'] = 'History';
$txt['yshout_commands'] = 'Commands';
$txt['yshout_exthistory'] = 'ExtendedHistory';
$txt['yshout_hide'] = 'Hide';
$txt['yshout_show'] = 'Show';
$txt['yshout_admlinks'] = 'AdminLinks';
$txt['yshout_return'] = 'ReturnToShoutbox';
$txt['yshout_p_banned'] = 'You are banned from posting.';
$txt['yshout_banned'] = 'Banned';
$txt['yshout_shout_button'] = 'Shout!';
$txt['yshout_banlist_caption'] = 'Shout Box Bans (click to unban)';
$txt['yshout_ip_bans'] = 'IP Bans for ';
$txt['yshout_username_bans'] = 'Username Bans for ';
$txt['yshout_ban_type_error'] = 'use /banuser or /banip!';
$txt['yshout_ban_mode_error'] = 'Must have mode argument.';
$txt['yshout_imp_slash_error'] = 'Prefix shout with "/" (slash character)! See "/help impersonate" for details.';
$txt['yshout_imp_uname_error'] = 'No username given!';
$txt['yshout_imp_max4_error'] = 'Maximum 4 arguments!';
$txt['yshout_cmd_reference'] = 'Command Reference';
$txt['yshout_cmdlist'] = array( '/help'    => ' [command]: Help on a command, or all if no command is specified.',
'/return' =>    ': Go back to the Shout Box.',
'/pi' =>    ' [digits]: What is the value of pi to the nth digit?',
'/me' =>    ' &lt;message&gt;: Emotes the message (e.g. <font color="red"> * Nathaniel likes dogs</font>)');
$txt['yshout_cmdlistadmin'] = array('/clear' =>   ': Completely empty the Shout Box.',
'/help'    => ' [command]: Help on a command, or all if no command is specified.',
'/return' =>    ': Go back to the Shout Box.',
'/banlist'   => ': List all bans currently in place. Unban the users by clicking on their names.',
'/banuser'   => ' &lt;mode&gt; &lt;username&gt;: Ban a user by name. You should use the user\'s real username, otherwise the ban can be evaded. Mode can be "u" to unban, "rp" for read and post bans, or "p" for a post ban.',
'/banip' =>   ' &lt;mode&gt; &lt;IP&gt;: Ban a user by IP. Mode can be "u" to unban, "rp" for read and post bans, or "p" for a post ban.',
'/impersonate'=>' &lt;user&gt; [userlevel] [ip] [userid] /[shout text]: Impersonate a user. Shout text must be prefixed by a "/" or else it will fail.<blockquote>
&lt;user&gt;: Username to use<br />
[userlevel]: User Level to use. 0=normal, 1=mod, 2=admin<br />
[ip]: IP address to use, as 1.2.3.4<br />
[userid]: User ID from forum, to fix profile link</blockquote>');

// ---- End modification - nneonneo's Shoutbox ----

and things 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!

brianjw

@nneonneo: Tip!: I have seen mods that ignore errors and you can make it so if they dont use utf8 then it will ignore the error and install with the other one. ;) and the other way around....

Daggers

I didn't have that file when I installed your latest version, I downloaded it from the language packs...

http://www.simplemachines.org/download/?languages;lang=english_british

:)

nneonneo

Err, I don't think my package uses English-British.

Nonetheless, I'm going to see if I can install to multiple language packs at once, preferably without duplicating code.
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!


magnitude

Thanksss nneonneo

now i get a new error i logged in as admin but i can only see 2 options in shout box that is history and command can't see the admin links ....

nneonneo

Hmm, that's quite strange. Try logging out and back in.
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!

Spike Saunders

This will sound like a wierd question, so bear with me here.

But is it possible to modify this so that the users may post into the chat anoynmously? Still have to be a registered member, but if they wish to, could click a checkmark box that says 'anonymous' so that nobody knows who posted it. And in the Admin CP perhaps the admin can see through that.

I want to offer my users the chatbox to voice their opinions on things, and not get yelled at for them. Easier when nobody knows who said it. :)

thanks

pongsak

#748
Coding below can limit smileys use in this ajax shout box.

Find in yshout.php

$newText = parse_bbc($newText); // w00t!

Add after.

//start modified here, limit smileys for 1 shout
  $smileyLimit = 3;  // how many u want to show.
  $prev = substr_count($newText, '[img') + substr_count($newText, '[IMG');
  $tempmsg = doUBBC($newText, true);
if (substr_count($tempmsg, '<img') > ($prev + $smileyLimit))
$newText = 'U can't use smileys >  '.$smileyLimit;
   // end here
smf 1.1.2 with dilbermc themes.
> 50 mods installed.

nneonneo

@Spike Saunders: I suppose that would be possible, and I can understand why it would be needed. It would take some effort to make this work, though, as it would involve modifying the form, probably adding a new parameter and changing the guest check to include anonymous users. It can be done, though. (of course, if they *really* want to be anonymous, they can log out, post as guest (provided that feature isn't disabled), and log back in, but of course that's a pain in the neck to do)

@pongsak: yes, that could definitely come in handy when battling smiley spam...
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!

Spike Saunders

Quote from: nneonneo on July 17, 2007, 01:34:43 PM
@Spike Saunders: I suppose that would be possible, and I can understand why it would be needed. It would take some effort to make this work, though, as it would involve modifying the form, probably adding a new parameter and changing the guest check to include anonymous users. It can be done, though. (of course, if they *really* want to be anonymous, they can log out, post as guest (provided that feature isn't disabled), and log back in, but of course that's a pain in the neck to do)
Yep. I know it'd take alot to do.. which is why I asked if it was possible lol. I mean you woul think it could be easily done since you could maybe force a logout for the shoutbox usage... But most of my users use the log in forever option, heh. I know that a year or so ago i had a forum running with a shoutbox that allowed for anonymous chatting and such. Was pretty useful.

nneonneo

I suppose, actually, that it wouldn't be so hard to do. Some quick modifications to yshout.php would do it...something like adding a checkbox, which adds an "anonymous" option to the request and fires off loadChat() again; and a little piece of code that unsets $user['is_logged'] if it finds the option.
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!

Devilsin

I need help, I installed the shoutbox, and it was working fine, then out of nowhere it shut off and then it said:

Download yshout.php
Your request to download yshout.php is being processed.

Please Wait...

and its been like that ever since. I tried reinstalling it and that doesn't work. Please help!

Spike Saunders

Quote from: nneonneo on July 17, 2007, 08:41:38 PM
I suppose, actually, that it wouldn't be so hard to do. Some quick modifications to yshout.php would do it...something like adding a checkbox, which adds an "anonymous" option to the request and fires off loadChat() again; and a little piece of code that unsets $user['is_logged'] if it finds the option.
Saddly I know nothing of modifying SMF, lol. I used to do stuff on Invision before it went 'pay license', but it was simple stuff. I have no idea how to do this lol.  If by chance someone can write up how to do this, or something that'd be great. :)

Devilsin

Ugh, I don't know what the heck is wrong, I just finished reinstalling the whole forum and it STILL gives me that yshout error after i installed the shoutbox. This is seriously stressing me out.

th2mods

#755
Quote from: Devilsin on July 18, 2007, 03:47:22 PM
I need help, I installed the shoutbox, and it was working fine, then out of nowhere it shut off and then it said:

Download yshout.php
Your request to download yshout.php is being processed.

Please Wait...

and its been like that ever since. I tried reinstalling it and that doesn't work. Please help!

dude, i get the same thing. iv tried everything. and when i unistalled it it corrupted my theme, so i need to reinstall the default theme. i am currently trying to fix this. please help us! my users want the shout box back!



Big image:
http://img164.imageshack.us/img164/9217/untitledje4.jpg

im guessing i need that file, could you give it to us?



EDIT:
I download the "smf_1-1-3_english-utf8 " language: http://www.simplemachines.org/download/?languages;lang=english

then i put all the files in that folder to, Themes/default/languages/ then i got no errors... but now i get this, its back to my original problem, http://img522.imageshack.us/img522/7957/untitledgd8.jpg

Gears of war fan site/modding site ||| Get the latest halo 2 plugins
------------------------------------------------------------------------

brianjw

You get the error for Modifications.english-utf8.php because you don't use utf. However, the Modifications.english.php installs fine. Just skip the error in the installation if one works and the other doesn't ;)

Brianjw

th2mods

i just stated in my edit i got that error message to go away.. now i have a new problem like Devilsin gets

Gears of war fan site/modding site ||| Get the latest halo 2 plugins
------------------------------------------------------------------------

kichu

Only 11 Messages Displaying in shout box .. How to Increase the Messages.. Like i want to Display 20 messages as Chat Room..

brianjw

@kichu: Open up the ./yshout/yshout.php file and replace 11 to 20. Should be at the top ;)

Advertisement: