nneonneo's Shoutbox

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

Previous topic - Next topic

BCK

Hi..nneonneo's...Im as green as grass here,,just setup the latest version, 1.1.6 and theme enterprize,,but as said i'm very green when it comes to code,,and i also wanted to ask. when its  put into a theme, does it take on the themes colors. style etc..or just incorperate into the theme as it is,,,thank,,has anyone tested it with enterprize and 1.1.6, iv been reading this thread off and on for a cpl days,,still not finished,srry if this has been answered somewhere in here,,,

lash

Hi everyone,

am new to using SMF and tried to install nneonneo's SB.

I've managed to do everything till the part that will actually SHOW the shoutbox,

every single place I've tried to place it, I get the following error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/Carbon/index.template.php on line 794

the line number changes depending where I've placed it.

Can anyone help me if I attach my index.template file?

Ryan


pipo_il_primero

Hello again, this shoutbox is great but also very difficult to customize if you don't know some code... which is my case.

I have version 1.21 of yshout.php and would like to disable some bbcode tags. Anybody knows how to do this? I had done it in the previous version of yshout.php but now can't seem to find the appropriate code to change!

thanks

P.

machmanx

#3764
OK, so I thought I might do some code debugging myself.  Now, this is one thing I found:-

Quote from: nneonneo on August 19, 2007, 03:39:56 PM

Replace
var request;
// This gets called each refresh; it reloads the shoutboxes content.

by

function ltrim(text) {
return text.replace(/^\s*/g,'');
}
var request;
// This gets called each refresh; it reloads the shoutboxes content.
var oldShouts = null;
function doRefresh() {
if (oldShouts != null && ltrim(oldShouts) != ltrim($("shouts").innerHTML))
soundManager.play('sound');
oldShouts = $("shouts").innerHTML;


But there is already another function doRefresh() present.  This is the code of the existing doRefresh()  :-


function doRefresh() {
if($("yshout").style.display == "none") {refreshSet = false; return;};
set_cookie("yShout_open","true",duplicateWait);
request=new ajax (yshout_php, {
postBody: 'reqtype=refresh&file=' + shoutFile,
update: $('shouts'),
onComplete: schedRefresh
}


So, what to do here?

Threnelegy

Awesome, it works perfectly. Thanks a lot, SunKing!

nneonneo

@machmanx: In yshout.js, replace
function doRefresh() {
if($("yshout").style.display == "none") {refreshSet = false; return;};

by
if($("yshout").style.display == "none") {refreshSet = false; return;};
(the function line is duplicated, so this removes the extra line)

@BCK: 1.21 should try to use theme colors when possible, but you can always tune the style by editing the CSS (CSS is a language for changing the appearance of webpages and is much simpler than PHP or JS). Also, note that a lot of the early content in this massive thread are not applicable to the current version. You may wish to begin reading more recent posts (probably at most 20 pages back)

@lash: How are you adding the code? Can you give an example or a modified index.template.php?

@M3THOD: That's a little weird. Maybe I could see the forum?

@pipo_il_primero: See $bannedCode 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!

BCK

thx nneoneon's...will keep reading for sure,,save me some time.thx

[unplugged]

#3768
Quote from: Threnelegy on September 10, 2008, 05:38:32 PM
Awesome, it works perfectly. Thanks a lot, SunKing!

Glad I could help. Enjoy.

Quote from: lash on September 10, 2008, 12:12:38 PM
Can anyone help me if I attach my index.template file?

I would be glad to help, but I need to know where you would like the shoutbox displayed.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



pipo_il_primero


pipo_il_primero

sorry, just one more question.
how can I make that the usernames shown in the shoutbox open in new window once clicked?
P.

sadiqsaad

SunKing bro can you install the shoutbox on my forum if I make you admin?

[unplugged]

I will be more than happy to try, sadiqsaad.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



nneonneo

@pipo_il_primero: Change
$writeText="<a$a_style href=\"index.php?action=profile;u=$userID\">$shoutName</a>";
to
$writeText="<a$a_style href=\"index.php?action=profile;u=$userID\" target="_blank">$shoutName</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!

pipo_il_primero

won't work my friend, I get
Parse error: syntax error, unexpected T_STRING in /path/to/yshout.php on line 123

[unplugged]

Shouldn't it be target=\"_blank\"?
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



pipo_il_primero

well seen SunKing.
No parse error anymore, but usernames do not open in new windows....

[unplugged]

I just made the edit to my yshout.php and it does not open profiles in a new window. Also, when I view the page source, it isn't showing the target="_blank" part at all. I have cleared the browser cache to see if that was the problem, but no luck.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



nneonneo

It will only affect new posts.
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]

And it works in new posts flawlessly.  :P
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Advertisement: