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

Find each line that starts with "$output .= " in the for loop at the end of the output function in class.tail.php.
Change each line (there should be exactly three, one after another) from
$output .= <something>;
to
$output = <something> . $output;
This will cause the output to be reversed, since the lines will be added to the front rather than the back.

HTH,
nneonneo
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!

Zwerko

guys help ! It's smiley's thing again  >:(  They don't work, but on top of that, in IE (TM) they look very ugly, in firefox they show as text like Wing or Cheesy but in IE grrrr  >:(  Is there any solution for this? I have attached screenshot.
Any1 can see at www.cromobilesound.com/forum/
user: tester
pass: tester

WxChat.com

Quote from: nneonneo on January 26, 2007, 12:36:43 PM
Find each line that starts with "$output .= " in the for loop at the end of the output function in class.tail.php.
Change each line (there should be exactly three, one after another) from
$output .= <something>;
to
$output = <something> . $output;
This will cause the output to be reversed, since the lines will be added to the front rather than the back.

HTH,
nneonneo

Thanks nneonneo.. we will try that

WxChat.com

These three lines?

$output .= $pre_line;
  $output .= ($this->regexpr == '')?$this->outputarray[$i]:str_replace($this->highlight, $highlight, $this->outputarray[$i]);
  $output .= $post_line;

changed to this
$output .= $pre_line. $output;
  $output .= ($this->regexpr == '')?$this->outputarray[$i]:str_replace($this->highlight, $highlight, $this->outputarray[$i]). $output;
  $output .= $post_line. $output;


I did that and it still shows new on bottom? I use UltraEdit 32 so if you can get me line numbers that would help :)

k8jsl

I even pushed it into an array, then added a new array reverse function, it must be in the jscript somewhere ...
Jeff Lake
MichiganWxSystem.com [nofollow]
HamWeather.com [nofollow]
[nofollow]

Daggers

#245
Quote from: mwmconsulting on January 23, 2007, 01:46:12 PM

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

This worked for me with regard to the errors when viewing topics/posts. :)

But the smileys still dont work. I have deleted all custom Smileys and switched back to the default set, uninstalled, re-installed, etc, etc :(

If you change the Base URL to.... /forum/Smileys/default then the smileys will appear in the shoutbox.... but they wont appear in the posts :(


Daggers

I have solved the Smileys problem  :D :D

In the admin panel change the Base URL and the Absolute Path to .... /Smileys/default

If you CPanel or ftp access to your website create another default folder inside the smileys default folder so the path would be.... Smileys/default/default

This then allows both the forum posts and the shoutbox smileys to appear.....

It worked for me  :D :D

bobeq

#247
I installed the mod and the only thing i can see is:

hxxp:img201.imageshack.us/my.php?image=errorkn5.png [nonactive]

Really strange characters. ;) Do you think it's a problem with my host?

Zwerko

2 Daggers: Dude that's it !!! you have save the day :) If you ever come to zagreb/croatia send me pm/mail

Daggers

Quote from: Zwerko on January 27, 2007, 11:36:40 AM
2 Daggers: Dude that's it !!! you have save the day :) If you ever come to zagreb/croatia send me pm/mail

thanks mate :)

xsharewarex

Quote from: xsharewarex on January 25, 2007, 12:50:23 AM
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

Someone pls help me with this problem that I am facing with the forum...SMF Ver 1.1.1

kirkie

I´m sorry but i´ve tried about everything and i can´t get a way to put my shoutbox working... I´ve read all the posts and tried all, and nothing... It keep sayngs ....Shoutboxloading..... and nothong appears!
Can anyone leave a final solution for this problem?




Thanks

nneonneo

Quote from: WxChat.com on January 26, 2007, 08:56:49 PM
These three lines?

$output .= $pre_line;
  $output .= ($this->regexpr == '')?$this->outputarray[$i]:str_replace($this->highlight, $highlight, $this->outputarray[$i]);
  $output .= $post_line;

changed to this
$output .= $pre_line. $output;
  $output .= ($this->regexpr == '')?$this->outputarray[$i]:str_replace($this->highlight, $highlight, $this->outputarray[$i]). $output;
  $output .= $post_line. $output;


I did that and it still shows new on bottom? I use UltraEdit 32 so if you can get me line numbers that would help :)
Lines are right; edit is wrong (slightly).
It's pretty hard to tell, but in my instructions, I said to use "$output =" not "$output .=" (.= is totally different :P).
Code should be (apologies for the complete change-over, but I think this may work better...):
$output = $pre_line .($this->regexpr == '')?$this->outputarray[$i]:str_replace($this->highlight, $highlight, $this->outputarray[$i]) .$post_line. $output;
You'll note it's just the right sides of each line, "." between each segment, with ". $output" at the end ("." is the string addition (concatenation) operator for PHP, for example, "a"."b" becomes "ab").
This causes each new line read to be read to the beginning of the output array, instead of the end as it would normally. Hope that works!

@kirkie: I need more information. Please find your web server/webhost log files, and PM them to me if you think there's nothing identifiable or personal there. Also visit "http://your/forum/path/yshout/yshout.php". If it says "Nothing to do" then shoutbox *should* work, its probably a configuration problem for the browser. Anything else is to be sent to me so I can see what's wrong and hopefully fix it.
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!

kirkie

Ok thanks  nneonneo's this is the error log:

[2007-01-28 02:42:50]: error: file is writable by others: (/home/kantotug/public_html/smf/yshout/yshout.php)



This is the path to my forum:

http://www.kantotuga.com/smf/yshout/yshout.php

It says "Nothing to do"



My Forum:

http://www.kantotuga.com/smf



My smf version is 1.1.1 


Thanks for the help nneonneo's i realy don´t no waht to do more  :'(

















WxChat.com

I changed this
// TODO render output
$output = $pre_output;
for ($i = $this->lines - $this->showlines; $i<$this->lines; $i++){
if (isset($this->outputarray[$i])) {
// format string
$output .= $pre_line . $output;
  $output .= ($this->regexpr == '')?$this->outputarray[$i]:str_replace($this->highlight, $highlight, $this->outputarray[$i]) . $output;
  $output .= $post_line . $output;
}
}
$output .= $post_output;
return $output;
}


to this

// TODO render output
$output = $pre_output;
for ($i = $this->lines - $this->showlines; $i<$this->lines; $i++){
if (isset($this->outputarray[$i])) {
// format string
$output = $pre_line .($this->regexpr == '')?$this->outputarray[$i]:str_replace($this->highlight, $highlight, $this->outputarray[$i]) .$post_line. $output;
  }
}
$output .= $post_output;
return $output;
}


and it still is showing the post in order Top to bottom. Did I code it wrong? If you have tested this and it works can you just send me the tail file? wxchat(at)gmail.com or post the code exactly as it should be.. thanks for all the help!

nneonneo

#255
@WxChat.com: sorry, I misunderstood you the first time about what was needed. class.tail.php only handles history, not active shouts.
You should probably revert changes to class.tail.php, unless you want the history file to be upside down too.
In readChat(), find
$chatText = file_get_contents($chatPath)
replace that line with
$chatText = implode('',array_reverse(file($chatPath)));
and the chats should be reversed.

@kirkie: Please "chmod" yshout/yshout.php to 755 (or use Package Manager -> Options -> Cleanup File permissions -> All files are writable -> Change File Permissions). That *should* fix the problem.
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


Col

Anyone with a link to a site that still has this installed. I've been right through the thread and every preview takes me to site with no shoutbox! :(

fritpa

How can i put this mod at the bottom of the forum?

brianjw

Quote from: Col on January 28, 2007, 07:09:51 PM
Anyone with a link to a site that still has this installed. I've been right through the thread and every preview takes me to site with no shoutbox! :(
I have a running shoutbox which is this shoutbox. It works.
Unfortunately my site will reopen on Friday.
If you would like to try out my website on Friday here is the info you need:

http://www.brianjwilson.com
Username: test
Password: test
(do not abuse the test account)
\\\\The shoutbox can be found on one of the left blocks ONCE LOGGED IN! :)\\\\

Brianjw

PS: isnt anyone going to reply to me about the latest suggestions ive made? ???

Advertisement: