News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

nneonneo

That's not my fault. I do not modify the Load.php file, so it is probably another file. Looks like the TinyPortal theme loading function...maybe a TP specific mod?
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

I have no idea. All I did was replace the register.template.php and now every part of my ssi and your shoutbox is messed up :(

nagr

I've searched a bit before asking this, but couldnt find answers...so I have two quick question:

1 - Which uses more server resources, this mod or SMF Shoutbox

2 - May I use nneonneo's shoutbox outside my forum, in an html page?

Thanks in advance

Ouly

I think that the line 183 in file yshout.php :

loadUserSettings();

should be removed because this function is already called in file SSI.php on line 138.

This will fix smiley's url problem.

nneonneo

#584
@Ouly: Actually, it's loadTheme() that properly sets the smileys up (e.g. using default set if the user has no set selected), not loadUserSettings(). However, it would be good to reduce the load on the server (just a bit) by removing that line -- I will look into that

@nagr: This mod uses more resources, but if the refresh rate is turned down then they are comparable in efficiency.
Also, it can be used outside the forum. If you want it to be linked to the forum, then just use the code

<script src="http://domain.com/path/to/forum/yshout/js/prototype.js" type="text/javascript"></script>
<script src="http://domain.com/path/to/forum/yshout/js/moo.ajax.js" type="text/javascript"></script>
<script src="http://domain.com/path/to/forum/yshout/js/behaviour.js" type="text/javascript"></script>
<script src="http://domain.com/path/to/forum/yshout/js/domFunction.js" type="text/javascript"></script>
<script type="text/javascript">

var myfunc = new domFunction(function()
{
loadChat();
}, { "yshout":"id"});
var board_url = "http://domain.com/path/to/forum";

</script>
<script src="http://domain.com/path/to/forum/yshout/js/yshout.js?Mar42007" 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 {
overflow: hidden;
}
#yshout .shout-timestamp {
font-weight: normal;
color: #000;
}
#yshout .adminlink {
font-size: 6pt;
color: #141414;
}
#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>

in the <head> section of your page, where http://domain.com/path/to/forum is the path to your forum (relative links *may* work, but untested outside of the forum path).
Next, at the spot where you want the SB,
<b>Shout Box</b><br /><div id="yshout">Shoutbox Loading...</div>

If you do *not* want or need it to be linked to the forum, see http://yurivish.com/yshout/ to get yShout v4 which is probably nicer looking on a standalone page ;)
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!

katb

 :( :( How can i admiser my SB..not sowing any links under Admin panel

nneonneo

The shoutbox does not have any links under the Admin panel; rather, all the administrative functions are in the shout box itself as the links at the top and the "del" and "ban" links (as well as slash commands like /banuser).

If you cannot see these commands, then you need to copy a language pack: copy Themes/default/languages/Modifications.english.php to Themes/default/languages/Modifications.<your_forum_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!

Ouly

Quote from: nneonneo on April 28, 2007, 02:37:59 PM
@Ouly: Actually, it's loadTheme() that properly sets the smileys up (e.g. using default set if the user has no set selected), not loadUserSettings(). However, it would be good to reduce the load on the server (just a bit) by removing that line -- I will look into that
Yes, right but loadTheme() is already called in SSI.php too  ;) (just after loadUserSettings() )

nneonneo

Hmm, very strange...I checked that and it is there, as you said. Strangely, then, the loadTheme() fix should do nothing, but it *does* somehow fix smilies issues. That is quite puzzling.
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!

Ouly

The problem is that the function parsesmileys() (in file Subs.php) use $user_info['smiley_set'] which is erased with the second call of loadUserSettings() in yshout.php.

loadUserSettings() only set $user_info['smiley_set'] with some eventual user settings without checking if it has been already set (from line 481) :

$user_info += array(
...
'smiley_set' => isset($user_settings['smileySet']) ? $user_settings['smileySet'] : '',
...

nneonneo

OK, thank you for clarifying that. I will remove the duplicated calls in yshout.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!

graziano

hello

I installed latest smf 1.1.2
Then I downloaded the package

When I try to install it I receive this


Type Action Description
1. Execute Modification install.xml&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Modification parse error
2. Execute Modification - Modification parse error
3. Extract Tree ./yshout&nbsp;


I am using SB_1.06 .

How to solve the problem please ?

graziano

the problem was "safe_mode_on" on my server

brianjw

@nneonneo: I have a question for you...

- I installed a new website but this doesn't include tinyportal, it is a normal php website (not smf) with smf inside of an iframe. How can I put all the settings and stuff inside of the smf forum folder and let it run through there but make it appear on the normal php website (not smf)?

nneonneo

#594
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!

Con

I get an error while trying to uninstall this.

./Themes/default/languages/Modifications.english.php Test failed

how can i uninstall the script?
(I LOVE this shoutbox, but I was told its very bad without a php accelerator  :'()

nneonneo

Well, it cannot be used reliably *at high refresh rates* (i.e. low refreshTime value). If you set refreshTime higher, then it should be fine.
Hosts differ in their abilities, I recommend you try it out for a while, and tune the refreshTime value accordingly (in yshout/js/yshout.js).

If you still don't want to use it, uninstall it (ignoring that error), and then find that file (Themes/default/languages/Modifications.english.php), find
// ---- Begin modification - nneonneo's Shoutbox ----
and delete everything up to the line
// ---- End modification - nneonneo's Shoutbox ----.
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!

infonlinebr

in the navigation of mine yshout has some problem, when enters in description it opens a new window with link of "yshout/yshout.php? file=home.txt&history" instead of opening in the proper page.
thx.

nneonneo

@infonlinebr: I don't quite understand what you mean, could you elaborate?
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!

brelwit

How do you let only the username of the currently logged-in user appear in the name field?

Advertisement: