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

nneonneo

@DLElement: this mod installs to the default theme; for other themes, you have to insert the code into the theme yourself (check main mod page for details)
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 installed This shoutbox . Working Excellent. I want to Delete the User information above the Shoutbox. that is " Show unread posts since last visit.
Show new replies to your posts.
Total time logged in: 4 days, 16 hours and 22 minutes.". I dont want to Display this above the Shoutbox. How to Delete that. I want to put that info in Portal Blocks.

3mrhythm

does this have permission on a groupmember basis i can set? i want to set it for my supporting members only... can that be done?
www.nhfragswap.com
www.yariscentral.com

Totosfo

Quote from: nneonneo on January 21, 2007, 03:46:25 PM
As for the collapsing shoutbox problem, it's because the header code is still linked to it.
Quick fix:
Find ', empty($options['collapse_header']) ? '>' : ' style="display: none;">','
and replace it by a single >, so the line looks something like
<div id="yshout">...loading shoutbox...
That should fix the odd vanishing shoutbox.

Hi nneonneo,

thanks for the hint, but unfortunately I cannot locate an exact match of the code you provided. I grepped through various files - could you give me the filename and an approx line number where to look?

Thanks again for your support!

Thomas
Cheers,

Thomas

xsharewarex

Quote from: nneonneo on January 21, 2007, 10:40:55 PM
@DLElement: this mod installs to the default theme; for other themes, you have to insert the code into the theme yourself (check main mod page for details)

I installed This shoutbox . Working Excellent.

Thanks nneonneo for creating this mod & thanks for your help.


Thanks & Regards
XsharewareX

brianjw


Future Version Suggestions

1. Admin panel for nneonneo's shoutbox, view/edit/delete posts there. Access to history files :)

2. Online image next to users name; Lets them know if the user is online or offline. Just show the image and not the text.
(GOOD EXAMPLE: Brianjw: Hey all whats up!)
(BAD EXAMPLE: Online Brianjw: Hey all whats up! -Bad example because it shows online/offline text next to image)

Brianjw

DLElement

still cant get it, and also future suggestion have it so it updates without having to refresh the page

mwmconsulting

Gday SMFers...

Just a note to say that the latest version of this mod (1.05) conflicts handily with the Googlebot & Spiders mod by Omar (http://custom.simplemachines.org/mods/index.php?mod=143).

The shout box works fine on the home page, or any page using index.php?.  But as soon as you enter into a discussion or post the shoutbox fails to load because the URL is rewritten and appears to the browser to be in a subdirectory (thus making the yshout directory up a level).

To fix this, you need to ensure the code looks for the yshout directory in the appropriate place.

So, after you install nneonneo's Shoutbox edit the files /Themes/default/index.template.php and /yshout/js/yshout.js and search for "yshout/" in each.  Where ever you find that bit of text, place a "/path/to/your/forum/" in front.  So, if the root path to your forum was "/forum/" you would change the text to "/forum/yshout/" in all instances.

Hope this helps some people out.  Great MOD nneonneo!  Thx!   :D

- Seppo
========================
MWM Consulting, Inc.
InSiteful Business Solutions
http://www.mwmconsulting.biz
========================

WxChat.com

Ok question.. the shoutbox shows in the index of the board but it doesn't show up on any of the other boards? it just shows loading???

Is there a way to show the shoutbox on all boards? or a way to show it only on the index?

WxChat.com

Wow I just read this thread and I find the answer :p

http://www.simplemachines.org/community/index.php?topic=137508.msg905190#msg905190

Search engine friendly is bad until you fix it.. thanks!

BTW my site is GRLevelXStuff.com

WxChat.com

Ok Last question I promise!

I want to add this to the front page of my CMS in an iframe? Can you help me there nneonneo? http://www.grlevelxstuff.com

I will mess with it but if you have an idea please let me know.

nneonneo

Quote from: brianjw on January 22, 2007, 09:38:26 PM

Future Version Suggestions

1. Admin panel for nneonneo's shoutbox, view/edit/delete posts there. Access to history files :)

2. Online image next to users name; Lets them know if the user is online or offline. Just show the image and not the text.
(GOOD EXAMPLE: Brianjw: Hey all whats up!)
(BAD EXAMPLE: Online Brianjw: Hey all whats up! -Bad example because it shows online/offline text next to image)

Brianjw
The online-offline thing I could probably handle, though the admin panel is a bit trickier.
I've been working on getting yShout v3 to work with SMF, but so far, I've found that it is too resource intensive: it will probably bring down the server on a high-user board. It has some very fancy features, so I will see if I can borrow some for use on this shoutbox (progress goes slowly though :P)

@WxChat.com: You can use this post (right above your first one): http://www.simplemachines.org/community/index.php?topic=137508.msg923303#msg923303 to make the shoutbox work with search-engine friendly URLs.
AFAIK to get it into a CMS, you need to add the JS includes (first block of code added by the mod to index.template.php) somewhere in the header (preferably also get the CSS for style):
// YSHOUT HERE
if(***CHECK FOR LOGGED IN USERS***)
echo '
<script src="yshout/js/prototype.js" type="text/javascript"></script>
<script src="yshout/js/moo.ajax.js" type="text/javascript"></script>
<script src="yshout/js/behaviour.js" type="text/javascript"></script>
<script src="yshout/js/domFunction.js" type="text/javascript"></script>
<script type="text/javascript">

var myfunc = new domFunction(function()
{
loadChat();
}, { "yshout":"id"});

</script>
<script src="yshout/js/yshout.js?Oct112006" 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 span {
color: #141414;
}
#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: 310px;
margin-right: 5px;
}
#yshout #shout-button {
width: 55px;
}
#shouts .owner a {
color: #F00;
}
#shouts .moderator a {
color: #00F;
}
</style>';
// YSHOUT END

Note that it is slightly different from the usual code: use whatever code the CMS uses to detect logged on users (in SMF, this is $context['user']['is_logged'], but this may not be the case on the CMS. Replace ***CHECK FOR LOGGED IN USERS*** with the proper code.

In the desired shoutbox location, place this code (you may have to mess around with the HTML to make it fit or look nice, though; also check the CSS)
// YSHOUT HERE
echo '
<br /><b>Shout Box</b><br /><br />
<div id="yshout">...loading shoutbox...<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
// YSHOUT END
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!

WxChat.com

Thanks.. seems fun!

OK I notice that the shouts are new on bottom how to make the new shouts on top.. I will look at the main file and see if I can find anything.. A CP for this would help alot..or find a way to incorp this in the SMF ACP

Thanks

brianjw


Some more Future Version Suggestions

- Makes a sound when someone has posted in the Shoutbox (can be disabled in some file or admin if applicable)
- Clear all posts; This will automatically delete posts displayed in the shoutbox by time. As an example you can set it to clear all messages every Saturday at some time. (can be disabled and edited in some file or admin if applicable)


Brianjw ;)

xsharewarex

Hi,

I have installed the shout box successfully & it works properly for approximately 15-20 mins & then suddenly it displays the following errors or disappears from the forum. I am not sure why.

Can some pls help me with this.

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /mounted-storage/home31a/sub001/sc26922-PGPV/xsharewarex.com/forum/Sources/Subs.php on line 321

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /mounted-storage/home31a/sub001/sc26922-PGPV/xsharewarex.com/forum/Sources/Errors.php on line 123

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /mounted-storage/home31a/sub001/sc26922-PGPV/xsharewarex.com/forum/Sources/Errors.php on line 124



Thanx & Regards
XsharewareX

3mrhythm

Quote from: 3mrhythm on January 22, 2007, 02:52:10 PM
does this have permission on a groupmember basis i can set? i want to set it for my supporting members only... can that be done?
?
www.nhfragswap.com
www.yariscentral.com

dawgstr

Great mod nneonneo's. Working fine in all my themes. I changed color on timestamps and raise fonts up to show better in some themes. Where is the code for del/ban text to change their colors and font size?

nneonneo

@3mrhythm: Sorry for the late reply; I've posted a solution earlier (but I know crawling the thread is a pain; here's the link: http://www.simplemachines.org/community/index.php?topic=137508.msg879855;topicseen#msg879855). I hope that helps.
@dawgstr: Colors are set in
Code (index.template.php) Select
#yshout span {
color: #141414;
}

and the font size in
Code (yshout.php) Select
<span style="font-size: 6pt;">
(just search for either block of code in their respective files; you'll find it. I'm sorry it's so hard to find though; I am trying to find a suitable solution using only CSS, while aiming to ensure it works for all browsers!)
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!

WxChat.com

nneonneo is it possible to show the latest shouts on the TOP instead of on the bottom??

k8jsl

nneonneo .. Im trying to assist WxChat in reversing the order,
which array function in the class.tail.php holds and creates the array for display,
so a array_reverse can be applied ....
Jeff Lake
MichiganWxSystem.com [nofollow]
HamWeather.com [nofollow]
[nofollow]

Advertisement: