News:

Wondering if this will always be free?  See why free is better.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

master2oo8

Quote from: nneonneo on September 26, 2007, 11:56:05 PM
Alternately, you may choose to insert a topic to the board with a hacked name -- i.e. add a topic and change the title *directly in the database*, containing the code
<div id="yshout">',$txt['yshout_loading'],'<br />. This method is NOT recommended.
How can this be done in SMF 2.0?
At my forum smf 2.0 stands then only "$txt['yshout_loading'],", at 1.1.5 it worked

nneonneo

@assam_sidibapa: Before the shoutbox code:
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="gridlineColor">
<tr>
<td class="titlebg">Shoutbox</td>
</tr>
<tr>
<td class="windowbg">

After shoutbox:
</td></tr></table></div>
(p.s. if you don't like it try the code below)

@optimushunk:
(if you don't like it try the code above)
Before the shoutbox code:
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 5px 6px 5px 6px; vertical-align: middle; text-align: left; ">
Shoutbox
</div>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="gridlineColor">
<tr>
<td class="windowbg">

After shoutbox:
</td></tr></table></div>

@Furqon:
Are you *sure* that
// Show the shoutbox!
if(empty($context['current_action']))
shoutbox();

still shows the shoutbox? I just tried it on 2.0, and the shoutbox disappears on all but the front page, as expected...

@master2oo8: Try setting the description to <div id="yshout">Loading shoutbox...</div>
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!

Adish - (F.L.A.M.E.R)

Quote from: nneonneo on July 30, 2008, 10:42:17 PM
@optimushunk:
(if you don't like it try the code above)
Before the shoutbox code:
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 5px 6px 5px 6px; vertical-align: middle; text-align: left; ">
Shoutbox
</div>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="gridlineColor">
<tr>
<td class="windowbg">

After shoutbox:
</td></tr></table></div>

I am sorry, but where about am i suppose to add this code ? I cant find any shoutbox code in boardindex.template.php and in Index.template.php it shows template parse error as it is used.

Please tell me the place where I have to add in the code. Thank you for your help in this. I Really appriciate it.

Rafferty

I applied the latest version and the users online mod ceased to work afterwards, is there a conflict?
Don't Follow me I got No Idea what I'm Doing

nneonneo

@optimushunk: Wrap it in echo '...'; in index.template.php

@Rafferty: I don't know of any conflict, but I have never tested it with the Users Online mod. Can you describe the problem in more detail?
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!

assam_siddibapa

Where do i put the code?? And which shout box code

[unplugged]

Quote from: Rafferty on July 30, 2008, 11:53:16 PM
I applied the latest version and the users online mod ceased to work afterwards, is there a conflict?

I have the latest version of the Shoutbox installed under SMF 2.0 with no conflicts whatsoever with the Users Online mod.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Rafferty


@Rafferty: I don't know of any conflict, but I have never tested it with the Users Online mod. Can you describe the problem in more detail?
[/quote]

I'm sorry it is not the user online mod but the "Profile User Action" mod (http://custom.simplemachines.org/mods/index.php?mod=540)

After installing the shoutbox mod all online users show only as being on the forum page and not the page their viewing as it should be.

Don't Follow me I got No Idea what I'm Doing

Adish - (F.L.A.M.E.R)

sorry to inform, that doesnt work.

Anything else which can help ?

Thanks.

Nequil

@neonneo



how i can change full date in shoutbox to simple date (28.07.08,15:55) ?
Date must be changed only in shoutbox not at forum.

CrazyHorse80

I've installed the Advanced package 1.20 and there's a problem with it:
when I click the "shrink or expand shoutbox" button, it does nothing at all. Could this be solved?
Then I've two requests:
a) is it possible to disable sound notifications by default? (Now they're active by default)
b) little OT maybe, but is it possible to help me integrating the smiley mod when viewing shotbox in MKPortal? I modded the index.php, but I can't get smiley to show up, I only get the "open smiley" and "close" links.
Thank for help and for this great mod!
Bye,
PS

nneonneo

@Rafferty: It's a known problem with 1.20. I've got a fix in 1.21, and will likely release that later this week.

@optimushunk: What, this doesn't work?
echo '<BEFORE CODE>';
<SHOUTBOX CODE>
echo '<AFTER CODE>';


@Nequil: http://www.simplemachines.org/community/index.php?topic=137508.msg1630065#msg1630065

@CrazyHorse80: For the first problem, I don't know what the issue might be. Does the upshrink work for the Info center and other parts? It uses basically the same code. If you can't figure it out, post a forum URL and I'll come take a look.

Sound should be disabled by default (they're only enabled if a specific cookie is set).

For the smileys, you should make sure that animatedcollapse.js is being included in the <head> section of the 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!

Nequil

#3192
function preg_timeformat($matches)
{
   // format: <timeval=(value)>
   global $user_info, $modSettings;
   $ts=intval($matches[1]) + ($user_info['time_offset'] + $modSettings['time_offset']) * 3600;
   $daystamp=date('M j, Y',$ts);
   if(date('M j Y') == date('M j Y',$ts)) $daystamp='<b>Today</b>';
   if(date('M j Y',time()-3600*24) == date('M j Y',$ts)) $daystamp='<b>Yesterday</b>';
   return '['.date('D, H:i:s',$ts).']';
}


look's great :)


but i need change english three letters days to polish days:
schema: Mon -> Pon etc.
where i can change this ?

nneonneo

Hmm, according to PHP, date() doesn't respect locale, so it has to use strftime instead.
Change the last line to

setlocale(LC_TIME,'pl_PL');
return '['.strftime('%a, %H:%M:%S',$ts).']';

or, if that doesn't work (this is adapted from timeformat())

global $txt;
$weekday=$txt['days_short'][(int)strftime('%w',$ts)];
return '['.$weekday.date(', H:i:s',$ts).']';
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!

Threepwud

Hi and thanks very much for this mod. A hearty well done :)
Anyway, I have a few themes on my forum (http://www.hldrforum.com) and am only just now getting into adding the shoutbox onto these other themes. I have started with the babylon theme and using your instructions it worked very well - thanks!

But I'm still a bit of a novice. The whole box should fit the width of the screen but the news box and key stats boxes are on the side thus givng the shoutbox a very crumpled effect - so coming to think of it, I need to move those boxes....

Was going to ask for a little guidance on changing the settings for the shoutbox but I think I need to move those boxes instead. Any help would be appreciated but only now have I realised this is probably not for this thread. Never know if a kind soul here has any answers anyway!

All the best

Adish - (F.L.A.M.E.R)

ow srry, i missed one code so had some problem... thanks for this.

nneonneo

@Threepwud: I guess it depends on how wide your browser window is. I use the same setup here, and it looks OK with a 1280-pixel wide display (fullscreen window). It's really up to your own preferences :P
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!

assam_siddibapa

Quote from: optimushunk on July 31, 2008, 12:14:17 PM
ow srry, i missed one code so had some problem... thanks for this.


Hey optimshunk can u say me what did u do ???

Nequil

#3198
Quote from: nneonneo on July 31, 2008, 11:41:39 AM
Hmm, according to PHP, date() doesn't respect locale, so it has to use strftime instead.
Change the last line to

setlocale(LC_TIME,'pl_PL');
return '['.strftime('%a, %H:%M:%S',$ts).']';

or, if that doesn't work (this is adapted from timeformat())

global $txt;
$weekday=$txt['days_short'][(int)strftime('%w',$ts)];
return '['.$weekday.date(', H:i:s',$ts).']';


works!


1. I need these commands to move from behind the text
schema: del ban [Pn 14:12:55] Nequil: : D racja

Where i can do this?

2. and in history and extended history enlarge the fonts.

Where i can do this?

Thanks for help :)

Threepwud

Quote from: nneonneo on July 31, 2008, 12:16:55 PM
@Threepwud: I guess it depends on how wide your browser window is. I use the same setup here, and it looks OK with a 1280-pixel wide display (fullscreen window). It's really up to your own preferences :P

Ah mate, that is PERFECT! Though how do I keep the screen from coming so far down? A little is good but mine shows the last 12 messages and each one has a gap between them. Any way I can get rid off this gap or at least bring them closer? I have had a look at the php settings and css ones but can't find anything. Changed the line-spacings too to no avail. I am using 1.20 standard.

many thanks mate

Advertisement: