News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

bfeo

Quote from: Jessikard on October 12, 2008, 10:50:13 AM
Quote from: bfeo on October 12, 2008, 08:19:04 AM
Jessi, you can use tinyportal for that.

Internet, there is a guide to fixing height, and in one of the configuration files a place to limit number of shouts shown.
i use MKPortal an want to put it in a php-box now
but the only one i can see, is the template-design but without content of the shoutbox
what is wrong now ?

i followed the instruction for TP (i thought it must be the same for MKPortal)

help please


I use <div id="yshout">';include_once($boarddir.'/yshout/yshout.php');</div> in an html + bbc box for mine.  It saved space but in the coding, the shoutbox itself, and it removed this double load glitch I was getting.

Jessikard

 :'( no success with this code

nneonneo

@bfeo: First change should be found in index.template.php. Remove
echo '<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />';

Second change: you need to add
#shout-adminlinks { float: right; position:relative; top:-1em; }
to the CSS block in yshout.css or index.template.php. This _might_ not work in all browsers (specifically IE, since it tends to have very poor CSS support) but it should work for most. You may need to tweak the top: value or use a pixel value in order to make it fit into the top left corner (I'm convinced there's a better way to move it there, but I can't seem to find it)

@Jessikard: Have you added the <head> code to the theme files?

@leonardus:
1) Depends on the theme. The following is code that should work for the default theme (it is a theme box without upshrink):
echo '<div class="catbg" style="padding: 5px 5px 5px 10px;border-top:1px solid #ffffff;">';
// Block Title
echo '<span style="width:49%"></span><span>ShoutBox</span>';

echo '</div>
<table border="0" width="100%" cellspacing="1" cellpadding="1" class="bordercolor" style="margin-top: 1px;">
<tr>
<td class="windowbg" width="6%" align="left" valign="top">';
// SHOUTBOX HERE
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'];
// SHOUTBOX END
echo '
</td>
</tr>
</table>';

2) http://www.simplemachines.org/community/index.php?topic=137508.msg1532028#msg1532028
3) It is possible, but I don't know how. Anyways, you can use BBC, so stuff like [b]Bold![/b] can work.
4) Check your Themes/<theme>/languages/Modifications.<language>.php file. It is possible that the shoutbox strings are missing. This is what should be there:
// ---- 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. <span class="meaction"> * Nathaniel likes dogs</span>)');
$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><div>
                  &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</div></blockquote>',
                  '/lock'         =>   ' &lt;message&gt;: Lock the shoutbox for maintenance with the specified message.',
                  '/unlock'      =>   ': Release the shoutbox from maintenance.');
$txt['yshout_maintenance'] = 'Locked';
$txt['yshout_lock_arg_error'] = 'You need to specify a reason for maintenance!';
$txt['yshout_lock_changed'] = 'Changed maintenance reason to "%s".';
$txt['yshout_lock_success'] = 'Locked shoutbox for maintenance with reason "%s".';
$txt['yshout_unlock_already'] = 'Failed to unlock: shoutbox isn\'t locked!';
$txt['yshout_unlock_success'] = 'Successfully unlocked shoutbox.';
$txt['yshout_no_posting'] = 'Sorry, you cannot post to the shoutbox.';
$txt['yshout_smilies'] = "Smilies";
// Permissions
$txt['permissiongroup_yshout'] = 'Shoutbox';
$txt['permissionname_yshout_view'] = 'View shoutbox';
$txt['permissionname_yshout_post'] = 'Post in shoutbox';
$txt['permissionname_yshout_moderate'] = 'Moderate shoutbox';
$txt['permissionhelp_yshout_view'] = 'This permission allows access to the shoutbox. If it is enabled, users will see the shoutbox and the chats in it.';
$txt['permissionhelp_yshout_post'] = 'This permission allows users to post messages to the shoutbox. If it is disabled, users cannot enter any messages.';
$txt['permissionhelp_yshout_moderate'] = 'If this permission is set, users will be allowed to moderate the shoutbox -- deleting, banning and clearing among other features.';
// ---- End modification - nneonneo's Shoutbox ----


@InternetMafia: index.template.php and/or yshout.css contain a block like this:
#yshout #shout-text {
color: #000000;
width: 310px;
margin-right: 5px;
}

which you can edit to your liking.
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!

bitmovel

#4083
http://www.xxx.com/test/index.php?action=forum

shoutbox keeps getting hidden

what is going on?

usind advanced 1.21 on smf 2.0 b4

nneonneo

What language file are you using? It has a broken forumProfile string: see http://www.simplemachines.org/community/index.php?topic=266731.0. Post there with your language. The fix is simply to correct forumprofile to forumProfile in index.<language>.php.
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!

HateFlavor

I have been reading and searching this thread since 10am WOW! it's a big one.

I finally downloaded the right version and have the chatbox working, but I am unable to find a way to constrain the line numbers the. I also should mention that I am using Simple portal and the more style theme.

The portal block keeps getting longer as I type, How do I keep the block from expanding? I have inspected all of the PHP files and the only reference to lines I have seen is the history number.

How do I remove these links?
[History] [Commands] [ExtendedHistory] [HideAdminLinks] [ReturnToShoutbox]

hxxp:www.midsouthmetal.com/SMF/index.php [nonactive]

nneonneo

1) $maxLines in yshout/settings.php
2) display:none; in #yshout #yshout-toollinks CSS block (index.template.php or yshout.css)
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!

HateFlavor

Quote from: nneonneo on October 12, 2008, 05:31:13 PM
1) $maxLines in yshout/settings.php
2) display:none; in #yshout #yshout-toollinks CSS block (index.template.php or yshout.css)

Thank you I was one line away from seeing that happen, I'm sorry to waste your time but I really appreciate your help!

BlackXBOX

Can anybody help me? This mod isn't work on mine

My SMF version is 1.1.5 and this is my custom theme I'm using:

http://custom.simplemachines.org/themes/index.php?lemma=577

Please help!

bitmovel

#4089
Quote from: nneonneo on October 12, 2008, 05:12:37 PM
What language file are you using? It has a broken forumProfile string: see http://www.simplemachines.org/community/index.php?topic=266731.0. Post there with your language. The fix is simply to correct forumprofile to forumProfile in index.<language>.php.


thank you.

I have fixed that.

now the shoutbox appears, but it does not show anything.

Could you check this please?

http://www.xxx.com/test/index.php?action=forum


nneonneo

@bitmovel: Your test forum seems to be missing?

@BlackXBOX: What do you mean "doesn't 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!

bitmovel

#4091
where is cache of shoutbox stored?

I have moved my forum from http://xxx.com/test to http://xxx.com and it shows errors in shoutbox.

I have already cleared cache.

http://www.xxx.com/index.php?action=forum





edit: nevermind.

nneonneo, please check now why shouts does not appear. best regards

bitmovel

nevermind.

nneonneo, please check now why shouts does not appear. best regards

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!

bitmovel

thank you!


great support.

that worked.

bet regards

BlackXBOX

What I mean is that nothing happened. The shoutbox didn't appear. Nothing changed after I installed it.

Should I send you the index.template.php and then can you edit it for me and send it back?

bitmovel

#4096
I'm here again.

1 - on advanced shoutbox, how can i put timestamp and shout text in same link?

2 - in smf 2.0b4 it does not collapse when i click on the red button

best regards

nneonneo

@BlackXBOX: Have you already made the theme edits? Did the code end up on the same line? (that happens more often than you might expect...)

@bitmovel: Edit yshout/settings.php and remove the <br />s from the end of preg_timeformat.
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!

bitmovel

thank you for the reply.

how about the second problem?

I click in collapse button, but it keeps the same. using firefox 3 and smf 2.0 b4

www.nsubs.com

user and pass is nneonneo

nneonneo

You need this code in <head> section (best to go with the other upshrink codes):
// script for shoutbox upshrink
echo '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// Create the shoutbox header object.
var sbHeader = new smfToggle("upshrinkSB", ', empty($options['collapse_shoutbox']) ? 'false' : 'true', ');
sbHeader.useCookie(', $context['user']['is_guest'] ? 1 : 0, ');
sbHeader.setOptions("collapse_shoutbox", "', $context['session_id'], '");
sbHeader.addToggleImage("upshrinkSB", "/upshrink.gif", "/upshrink2.gif");
sbHeader.addTogglePanel("upshrinkSBHeader");
function sbToggle() { sbHeader.toggle(); }
// ]]></script>';
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: