News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

leechingzone

does it work on default theme?

Old Lynx

Quotehave you tried it in the independent /yshout shoutbox?

I don't know what you mean by that nneonneo :( sorry can you explain a little how I can do that .. I'm a n00b.

thanks

nneonneo

@leechingzone: take a look at the AdvSB yshout.php for an implementation of the shout icons.

@Old Lynx: go to http://domain.com/forum/yshout and you should see (with 1.20) a shoutbox; see if that shows the same problem.

@SwapsRulez: Maybe a test account is needed...
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!

Old Lynx

Sorry about that nneonneo the problem turned out to be stupid Internet Explorer

I cleaned its offline files, passwords, temporary files .... and it is all back to being fast now !

but I decided if IE7 is gonna keep doing this .. I might as well use something else .. so now I'm on FireFox 3

Thank You nneonneo :D

leechingzone

Quote from: nneonneo on August 08, 2008, 03:17:26 PM
@leechingzone: take a look at the AdvSB yshout.php for an implementation of the shout icons.

@Old Lynx: go to http://domain.com/forum/yshout [nofollow] and you should see (with 1.20) a shoutbox; see if that shows the same problem.

@SwapsRulez: Maybe a test account is needed...

okay done the icons yay! and what about the shoutbox bar and the + and - thing?

trekkie2444

Whenever I try to make the theme edits for another theme, the shoutbox doesn't show up.

Old Lynx

that is because each theme is coded differently trekkie :)

SwapsRulez

Quote from: nneonneo on August 08, 2008, 03:17:26 PM
@SwapsRulez: Maybe a test account is needed...

Sure sir, here is the address with test account.

Site address : http://www.project-bb.org/
Chat location : http://www.project-bb.org/index.php?action=chat
Username : test
Password : test
The code for the custom action mod :

<?php
echo '<html><head>';
// YSHOUT HERE - <head> code
global $boardurl,$shoutFile;
$boardurl="http://www.project-bb.org/"// change this to the relative or absolute path to the forum root
$shoutFile='home';
//if(!file_exists("$boardurl/Themes"))
// die("Can't find Themes directory -- is \"$boardurl\" the correct path to the forum root?");
if(file_exists("$boardurl/Themes/default/script.js"))
echo '<script src="',$boardurl,'/Themes/default/script.js" type="text/javascript"></script>';
else
echo '<script src="',$boardurl,'/Themes/default/scripts/script.js" type="text/javascript"></script>
<script type="text/javascript">var smf_charset="UTF-8";</script>'
;
echo 
'
<script src="'
,$boardurl,'/yshout/js/prototype.js" type="text/javascript"></script>
<script src="'
,$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
<script src="'
,$boardurl,'/yshout/js/behaviour.js" type="text/javascript"></script>
<script src="'
,$boardurl,'/yshout/js/domFunction.js" type="text/javascript"></script>
<script src="'
,$boardurl,'/yshout/settings.js" type="text/javascript"></script>
<script type="text/javascript">
var myfunc = new domFunction(function()
{
loadChat();
}, { "yshout":"id"});
var shoutFile="'
,$shoutFile,'";
var yshout_php="'
,$boardurl,'/index.php?yshout";
</script>
<script src="'
,$boardurl,'/yshout/js/yshout.js?June102008" type="text/javascript"></script>
<style type="text/css">
#yshout {
font-size: 12px;
overflow: hidden;
}
#yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
}
#yshout #shouts { /* main shouts area */
color: #FFFFFF;
}
#yshout .shout { /* one shout */
margin: 0 0 0; /* Top Bottom Linespacing */
line-height: 1.7;
}
#yshout .shout-timestamp {
font-style: normal;
font-weight: normal;
color: #ABCDEF;
}
#yshout .shout-adminlinks { /* del and ban buttons */
font-size: 6pt;
color: #00FF00;
}
#yshout #shout-form {
margin: 0;
padding: 0;
}
#yshout #shout-form fieldset {
border: none;
}
#yshout #forum-name {
color: #000000;
width: 100px;
height: 15px;
margin-right: 5px;
}
#yshout #shout-text {
color: #000000;
width: 670px;
height: 15px;
margin-right: 5px;
margin-top: 12px;
color: black;
font-weight: bold;
}
#yshout #shout-button {
width: 100px;
height: 25px;
margin-top: 12px;
}
#yshout .shout-invalid { /* invalid shout (shout textbox) */
background: #FFFDD1;
}
</style>'
;
// YSHOUT END - <head> code



   // YSHOUT HERE - shoutbox code
   
global $txt,$context,$boarddir;
   if(
allowedTo('yshout_view'))
   {
      echo 
'<br /><b>Chatbox</b><br /><br />';
      echo 
'<div id="yshout">';
      include_once(
$boarddir.'/yshout/yshout.php');
      echo 
'</div>';
   }
   elseif(
$context['user']['is_guest'])
      echo 
$txt['yshout_no_guests'];
   
// YSHOUT END - shoutbox code

?>
Project-BB.org : Educational Forum For Engineering, Diploma & Technical Students

The Engineering, Diploma & All technical students lounge for Free Projects, Seminars, Syllabus, Question Papers, College Assignments, Placement Papers, E-Books, Company Information & other technical stuffs.

T_Richardson

I installed this mod on a new board (1.1.5), and I don't see anything. Using tiny portal, and followed instructions.
Previous board 1.1.4 was working fine on it.

riker

Quote from: nneonneo on August 07, 2008, 12:33:45 PM
@riker: Try downloading the package again. I have no idea what would cause the parse error, since I've successfully used the package posted without any problems...

Otherwise, for 1.16, you can just edit yshout/yshout.php and turn off $allowGuests and/or $allowGuestsPost.
Tried it on 3 different servers now with 1.1.5 and beta 3.1 and they just don't like 1.20.  Looks like I'll have to do 1.16 because at least that'll load

bullbreedluverz

#3370
Hi, I have installed shout box 1.20 on my SMF 1.1.5 (backup test site) but there is a few changes i would like to change to a few eliments of it

a) the font size, it doesnt fit well (for my own personal preference) with the theme text size of the forum - i want to reduce the number of lines for shouts (which i have done in the settings.php) but i want to change the font size now so that it more matches the font size on the forum - i have tried this in the yshout.php but when i chaned the figures to a large font size it had no effect on the shout box

b) remove the "today" from the post so that it only leaves the time the post was made - i use a 24hr clock on my forum and as shouts will be made on a regular basis i dont feel the need to have it stated as posted "today" as that will be evident on my forum

c) i would like to make the shouts scrollable so that when members come online they can scroll up and review posts made

i am sure some these points have been covered throughout this thread but with the amount of pages there are it is difficult to find the exact information and i want to ensure that any changes i may make are the correct changes for v1.20

thank you


bullbreedluverz


nneonneo

@T_Richardson: Did you check the shoutbox permissions (Membergroups->Permissions)?

@SwapsRulez: Does it give an error about undefined functions? It looks like allowedTo might not be defined in this file (since it doesn't import the Security.php sub). Maybe it would be best to use this as the shoutbox code:
   // YSHOUT HERE - shoutbox code
   global $txt,$context,$boarddir;
      echo '<br /><b>Chatbox</b><br /><br />';
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   // YSHOUT END - shoutbox code



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>';
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!

bullbreedluverz

the links chukster gave me has helped me sort 2 of my wishes a) & c)

just now if sum1 could help me with the last 1 id be grateful

b) remove the "today" from the post so that it only leaves the time the post was made - i use a 24hr clock on my forum and as shouts will be made on a regular basis i dont feel the need to have it stated as posted "today" as that will be evident on my forum

chunkster

@nneonneo I've added the scrollbars mod and change the option to scroll up, and move shout text box to the top but it scrolls down instead of up take a look here hxxp:arnoldmagnetictechnologies.co.uk [nonactive] username and password is test

nneonneo

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

@chunkster: You mean the autoscroll? Yeah, you will have to manually disable it (this will be an option in future version 1.21, which should be posted today or tomorrow...)
In yshout/js/yshout.js, remove
divScroll = new chatscroll.Pane('shouts');
objDiv = document.getElementById('shouts');
objDiv.scrollTop = objDiv.scrollHeight;

and
setTimeout("divScroll.activeScroll()", 5);
and then shift+refresh after saving.
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!

bullbreedluverz


kriskd

Quote from: nneonneo on August 02, 2008, 12:38:29 AM
Who's Online and related mods should now work correctly

I'm having an issue where my users are always showing as online and I'm wondering if it is due to this mod.  Does the shoutbox constantly keep users active and therefore making it appear that they are online if their browser is open to any page of the message board?
SMF 2.0.2

nneonneo

@kriskd: Yes, the shoutbox does keep a user active; I am planning to change this to "active only on shouts" in a future release.
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: