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

You need to add the <head> code in order for the news box shoutbox to work (note that the regular shoutbox wouldn't have worked correctly without that code; it would not have been interactive)
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!

angrybanana5000

Quote from: nneonneo on July 22, 2008, 07:55:00 PM
You need to add the <head> code in order for the news box shoutbox to work (note that the regular shoutbox wouldn't have worked correctly without that code; it would not have been interactive)
Where do I add the <head>?

ccbtimewiz

Quote from: angrybanana5000 on July 22, 2008, 08:22:09 PM
Quote from: nneonneo on July 22, 2008, 07:55:00 PM
You need to add the <head> code in order for the news box shoutbox to work (note that the regular shoutbox wouldn't have worked correctly without that code; it would not have been interactive)
Where do I add the <head>?

The file you are needing to edit is the index.template.php file. It can be found in

%root%/%smf_root%/Themes/*theme*/index.template.php

With *theme* as the name of your theme. If that file doesn't exist in your theme, then edit the default theme's index.template.php.

angrybanana5000

Quote from: CTwiz on July 22, 2008, 08:28:25 PM
Quote from: angrybanana5000 on July 22, 2008, 08:22:09 PM
Quote from: nneonneo on July 22, 2008, 07:55:00 PM
You need to add the <head> code in order for the news box shoutbox to work (note that the regular shoutbox wouldn't have worked correctly without that code; it would not have been interactive)
Where do I add the <head>?

The file you are needing to edit is the index.template.php file. It can be found in

%root%/%smf_root%/Themes/*theme*/index.template.php

With *theme* as the name of your theme. If that file doesn't exist in your theme, then edit the default theme's index.template.php.
I knew that, I meant where in the file?

ccbtimewiz

Quote from: angrybanana5000 on July 22, 2008, 08:34:28 PM
Quote from: CTwiz on July 22, 2008, 08:28:25 PM
Quote from: angrybanana5000 on July 22, 2008, 08:22:09 PM
Quote from: nneonneo on July 22, 2008, 07:55:00 PM
You need to add the <head> code in order for the news box shoutbox to work (note that the regular shoutbox wouldn't have worked correctly without that code; it would not have been interactive)
Where do I add the <head>?

The file you are needing to edit is the index.template.php file. It can be found in

%root%/%smf_root%/Themes/*theme*/index.template.php

With *theme* as the name of your theme. If that file doesn't exist in your theme, then edit the default theme's index.template.php.
I knew that, I meant where in the file?

... where the <head> tag starts. xD

[unplugged]

Typically, the <head> and </head> go between the <html> and <body> tags. ;D
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



angrybanana5000

I don't have any <html> or <body> tags?  :o

nneonneo

Quote from: http://custom.simplemachines.org/mods/index.php?mod=585#post_otherthemes
In the theme's "index.template.php" file:
find // If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

After that, add

// YSHOUT HERE - <head> code
global $boardurl,$shoutFile;
$shoutFile='home';
$scripturlparsed = parse_url($scripturl);
$scriptpath=isset($scripturlparsed['path'])?$scripturlparsed['path']:'/';
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="',$scriptpath,'?yshout";
</script>
<script src="',$boardurl,'/yshout/js/yshout.js?June102008" type="text/javascript"></script>
<style type="text/css">
#yshout {
font-size: 10px;
overflow: hidden;
}
#yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
}
#yshout #shouts { /* main shouts area */
color: #000000;
}
#yshout .shout { /* one shout */
margin: 0 0 0; /* Top Bottom Linespacing */
line-height: 1;
}
#yshout .shout-timestamp {
font-style: normal;
font-weight: normal;
color: #000000;
}
#yshout .shout-adminlinks { /* del and ban buttons */
font-size: 6pt;
color: #141414;
}
#yshout #shout-form {
margin: 0;
padding: 0;
}
#yshout #shout-form fieldset {
border: none;
}
#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;
}
#yshout .shout-invalid { /* invalid shout (shout textbox) */
background: #FFFDD1;
}
</style>';
// YSHOUT END - <head> 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!

angrybanana5000

Quote from: nneonneo on July 22, 2008, 09:26:26 PM
Quote from: http://custom.simplemachines.org/mods/index.php?mod=585#post_otherthemes
In the theme's "index.template.php" file:
find // If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

After that, add

// YSHOUT HERE - <head> code
global $boardurl,$shoutFile;
$shoutFile='home';
$scripturlparsed = parse_url($scripturl);
$scriptpath=isset($scripturlparsed['path'])?$scripturlparsed['path']:'/';
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="',$scriptpath,'?yshout";
</script>
<script src="',$boardurl,'/yshout/js/yshout.js?June102008" type="text/javascript"></script>
<style type="text/css">
#yshout {
font-size: 10px;
overflow: hidden;
}
#yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
}
#yshout #shouts { /* main shouts area */
color: #000000;
}
#yshout .shout { /* one shout */
margin: 0 0 0; /* Top Bottom Linespacing */
line-height: 1;
}
#yshout .shout-timestamp {
font-style: normal;
font-weight: normal;
color: #000000;
}
#yshout .shout-adminlinks { /* del and ban buttons */
font-size: 6pt;
color: #141414;
}
#yshout #shout-form {
margin: 0;
padding: 0;
}
#yshout #shout-form fieldset {
border: none;
}
#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;
}
#yshout .shout-invalid { /* invalid shout (shout textbox) */
background: #FFFDD1;
}
</style>';
// YSHOUT END - <head> code
I have that now, but it does not load still.

nneonneo

OK, let's see your forum.
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!

[unplugged]

Works for me....

   July 22, 2008, 08:34:58 PM
  * angrybanana5000 has just cleared the shoutbox

   Today at 04:12:36 AM
JustTestingSB: test

:P
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



angrybanana5000

Quote from: SunKing on July 22, 2008, 09:43:09 PM
Works for me....

   July 22, 2008, 08:34:58 PM
  * angrybanana5000 has just cleared the shoutbox

   Today at 04:12:36 AM
JustTestingSB: test

:P
I can not see it though. :|
Thanks for the help anyways though. :)

edi67

Quote from: nneonneo on July 22, 2008, 02:30:16 PM
@edi67: One way is simply to disable autoscroll (I think I will make this an option in the next AdvSB).
Comment out
divScroll = new chatscroll.Pane('shouts');
objDiv = document.getElementById('shouts');
objDiv.scrollTop = objDiv.scrollHeight;

from yshout/js/yshout.js.

how disable it nneon ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

trekkie2444

Still no effect on my shoutbox. Everything is still centered.

Zwerko

Hello guys :)

I'm testing new smf 2.0 with sunset 2.0 theme localy. I have installed latest adv1.20 shoutbox and it works ok on default theme, but I can't make it work on sunset. I don't know where to put each peace of code to make it work  ::) Guess I only need to modify sunset's index.template.php  ???

[unplugged]

@trekkie and @Zwerko

attach your index.template.php and I will see if I can fix them for you.   :D

(Zwerko, obviously, it needs to be the index.template.php of your Sunset theme)
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



trekkie2444

I already attached my index.template. Twice.

Nequil

#3057
lol...

Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in /home/sirdel/public_html/forum/yshout/yshout.php on line 230

nneonneo

@Nequil: Turn off $gzipCompression in yshout/settings.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!

*JENNY*

#3059
Hi is a pleasure to join such a forum....i don't know if I am posting on the right place, sorry if  I am....

I have a huge problem , and i wish you guys could help me...My friends forum, I'm an adm. there we had a problem w/ the shoutbox it said .........loading shoutbox......that at was after he erased some codes of some kind..Well we Uninstalled the shoutbox , and it was still visible , we reg. on your site and found a post that we thought was helpful it said to search for the // yshout  in the code and delete it something like that so we went over the codes and didn't find anything...so he installed the default theme and installed the shoutbox but we dont know what else we have to do ...before we had a webmaster but appearantly he has no internet where he lives so theres no way he could help us ......I went over the installing manually procedure for the shoutbox and thought i had everything right but then when i hit save i got this error:

The file you tried to save generated the Parser error:
Parser error: syntax error, unexpected `<` in index.template.php on line 116


If you guys could help us i would really appreciate it...Thanx!!

Advertisement: