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

caryb

Hi, I love this mod! I upgraded to 1.1.2 yesterday & lost most of my mods & had to reload from scratch. the shoutbox I was using is not supported so i tried this one :D I have a couple of questions:-
1) Smileys I read they are not supported. My guys are missing them.
2) history scroll bar
3) increase font size in the shouts

Has anyone tackled any of these? I would appreciate any help! Please keep up the good work as this is the most used part of our forum/


Cary

nneonneo

@caryb:
1) Check main mod page for a quick fix for smilies. It is needed for some boards.
2) What about a history scroll bar? The history should open in a new blank page.
3) Edit the CSS block in index.template.php (between the first // YSHOUT HERE and // YSHOUT END lines)

@Sarke: (reference to http://www.simplemachines.org/community/index.php?topic=137508.msg996154#msg996154 which I must've missed when scanning for new replies :P)
I did in fact consider this when designing the mod (and I meant 304; I was pulling the number OTOH without checking it first :( ). However, I did not find a suitable implementation -- though the solution you posted does appear to work.
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!

TieuDieuTu

For some reason, I was able to install the Mod but in the Admin --> Features & Options, I don't have any settings for the Shoutbox show up. Therefore I cannot set permissions for my members and users.

Would someone enlighten me as to where I mess up. Thanks.

JohnnyMcKinney

#423
Quote from: nneonneo on March 05, 2007, 09:36:22 PM
@Johnny:
1) Disabling BBC: there are two spots in yshout/yshout.php where the code "[list]" (*with quotes*) is found. Add "[img" (no closing bracket) and whatever other tags you want to disable to *each* instance of the replacing code.
It should look a bit like this
str_replace(array("[list]",[*other replaces*],"[right]","[img")"",$newText));
It will disable images, but please do note that some raw BBC will show through (unless you do some more advanced PHP stuff, like adding preg_replace).
2) readChat is in yshout/yshout.php.
3) Type /help impersonate to get help on that command. [/list][/list]

Thanks, is there a way to disble IMG commands only for users, but admins and mods can still use it?

Also on impersonate what is the point of user id and user level if when you impersonate someone it just comes out as text?

Zetro

Thanks Nneon! Your new update yesterday fixed all my problems. My members love it. Thanks!

JohnnyMcKinney

One more thing. It's really bugging me and my users that when the shoutbox load its on the first post. Can you make it so it always is at the last post. I am using a scroll bar by the way.

nneonneo

@Tieu: Unfortunately, I do not know enough about SMF's admin code to add the mod there. I am planning on having settings for those soon, but there are a few things to work out. What kind of permissions do you need?
@Johnny: I don't think the BBC parser is able to distinguish different access levels, though if users have taken to abusing the image tag, you can add it to the BBC exclusion list (search for [left] in yshout/yshout.php)
Also, the purpose of userid and userlevel is to make a more "realistic" impersonation: the link color of the profile and the profile link itself.
I also don't quite understand the last reply you just made. Can you please clarify?
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!

JohnnyMcKinney

Register on my forums

www.silentkillops.com/forum/

login and check out the shout box. Each time you refresh the page it doesnt scroll down to the last post it scrolls to the very top again.

Also if I make it so no one can use the IMG tag does it come with an error message like "Sorry you are not permitted to use this code" or is it possible to make one?

I am also confused by your answer?

I don't think the BBC parser is able to distinguish different access levels, though if users have taken to abusing the image tag, you can add it to the BBC exclusion list (search for
in yshout/yshout.php)

Is that a yes? Cause it sounds different from the first answer or is that the same answer?

Also, the purpose of userid and userlevel is to make a more "realistic" impersonation: the link color of the profile and the profile link itself.

Mine doesnt show a profile link or anything.

I type this
/impersonate ferndogg03
  • [71.102.13x.x] [403] /WAS UP!!

    and I tried this

    /impersonate ferndogg03 0 71.102.13x.x 403 /WAS UP!!

    but they both end up like this

    [Today at 11:27:56 pm] del  ban ferndogg03: WAS UP!!

    the name is black. No link or anything. I even tried changing the userlevel and user ID.

nneonneo

Oh, shoot! Sorry about that -- the guest modifications broke impersonation (I thought I fixed it, but I must've forgotten to copy the file from the test server to the mod package).

I'll come up with a fix -- thanks for noticing.
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!

JohnnyMcKinney

#429
LOL 29 pages later and no one has noticed this? Can you help me with my other problems :( AWWW CRAP abandoned again...

nneonneo

Err, I said that this problem was only here since the 1.06 (guest) modifications.

Here's a fix until I get time to update the SB:
Find $fakeuser=array('id'=>$userid,'name'=>$name,'is_admin'=>($userlevel==2)?1:0,'is_mod'=>($userlevel==1)?1:0); // fake SMF $user array
in yshout/yshout.php
replace with
$fakeuser=array('id'=>$userid,'name'=>$name,'is_admin'=>($userlevel==2)?1:0,'is_mod'=>($userlevel==1)?1:0,'is_logged'=>($userlevel==-1)?0:1); // fake SMF $user array
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!

rayco

#431
Is this MOD compatible with Col Atesi v3.0? theme??
Man i did follow all the instructions but still got no luck.
Can some1 help me....plz :)

SMF 1.1.2

JohnnyMcKinney

Quote from: JohnnyMcKinney on March 16, 2007, 10:29:07 PM

Also if I make it so no one can use the IMG tag does it come with an error message like "Sorry you are not permitted to use this code" or is it possible to make one?

I am also confused by your answer?

I don't think the BBC parser is able to distinguish different access levels, though if users have taken to abusing the image tag, you can add it to the BBC exclusion list (search for
in yshout/yshout.php)

Is that a yes? Cause it sounds different from the first answer or is that the same answer?
Can you answer those question. Thanks for the fix on the shoutbox. I don't know the purpose of the impersonate, but its freaking funny when members say WTF I DIDNT SAY THAT!! Guess thats why you made it lol.

jay.jarri

I am sorry if this has already been asked before, but have gone through all the pages and found nothing...

Is there a way to display this shoutbox some other place???

I would like it to show only on the main page (so i use boardindex.template.php) and i'd like to display it just under the menu bar (the one that has all those Home, Help, Search, Members etc buttons).

Can somebody help identify what codes do i need to put/modify?

JohnnyMcKinney

No one can get this to work either man.

majesticwish

#435
The mod works ok for me. There's a few problems, and I REALLY want this mod to work, as NONE of the other chat mods work for my forum.

My main problem is that when I install it, it works fine for a few days. Then, when I come back, suddenly none of the admin features are there. I can't ban, clear, etc. I only see the History and Commands link, just as if i was a regular member. And it stays that way. What is wrong?

EDIT: I just deleted my cookies, and now it's working...maybe that's the problem?

Also, when i first go to the page it says this above the shoutbox: Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /home/www/brewtech.freehostia.com/forum/yshout/yshout.php on line 604

Once I log in, it's gone...any solutions?

Joris Meeus

i got the error Write error (writeLine); aborted

I chmodded that home.txt file to 777 but it doesn't work :(

Can som1 plz help me

Greetz Joris

nneonneo

@majesticwish: First bug: I know of the variant where the shoutbox appears to be "broken" temporarily, but never for extended periods of time. It probably has to do with the server not reading the response correctly, but I have never been able to pinpoint the problem due to its unpredictability. If that happens, I would try Shift+Refresh (depends on browser) to resend the request and clear any corrupted cache data.

Second (warning) bug: If you don't like the warning showing up, in yshout/yshout.php set gzipCompression to false. It has to do with whatever "URL-Rewriter" is -- it's overriding the GZip compression handler.

@Johnny: Please restate all your questions. I don't know which ones I've answered.

@jay: In your case, this should not be too difficult.
1) In index.template.php, remove both the short Javascript fragment (the second block, *not* the first) and the actual div (the third block). Leave the first intact.
2) Under the lines // YSHOUT HERE
global $boardurl;

add
if(empty($context['current_board']))
3) In BoardIndex.template.php, add the line
echo '<div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
at the point in the code where you want the shoutbox to appear. In your case, this will probably be after "global $context, $settings ..." at the 6th line of BoardIndex.template.php.

@Joris: Try Admin->Packages->Options->Select All Files are Writable->Change File Permissions. If that doesn't help, PM me the board URL and I'll take a look.
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!

Joris Meeus

well, new news, others can post in the shoutbox but i can't  :(

I get the Write error (writeLine); aborted error

Others just can post a message in the SB

majesticwish


Advertisement: