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

JayRoe

I'm using v0.5 for SMF 2.0 Beta 3.1 Public.

nneonneo

Aha! It's a bug in the shoutbox. I didn't load the user permissions (didn't even know I should have), so that's why it rejected the spoilers.

I'll patch that for next release; meanwhile, you can add
loadPermissions();
before
loadTheme();
in yshout/yshout.php to fix it (and let me know if that works!)
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!

nneonneo

@Old Lynx: OK, it's my fault. I just realized that I forgot to use a case-insensitive replace, so [ IMG ] will work :P

That will most definitely be fixed.


OK, the next version, which will be numbered 1.20, is almost ready. I am still open to suggestions of new features and improvements, and don't be afraid to suggest something that has already been said before.

I won't be providing upgrade scripts due to the sheer volume of changes (over half of the lines in yshout.php have been altered in some way).

There's one detail I haven't yet finalized:
I am considering adding three forum permissions "shoutbox_moderate", "shoutbox_view" and "shoutbox_post" which would replace the existing $moderatorGroups system (which requires users to figure out group IDs, something I've never really liked), as well as probably making things a little easier. However, the downside of this is that I will need new language translations (some of the existing ones aren't too complete anyway, so it might just be due...). Another potential downside is that I can't assign sensible defaults (e.g. global moderator can moderate shoutbox), but that might not be a big problem. Any thoughts?
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!

Old Lynx

Hi nneonneo :)

OK I just went and added [img] and [IMG] << both of them and still it doesn't work ! still people are able to post images :( :(

neotan

#2604
1.SMF 1.1.5 / Had to do a manual installation since it's custom theme
2. SB_1.16

Error on index page:

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


- Any ideas?

- I have attached the index.template.php


nneonneo

@Old Lynx: Yeah, but [ ImG ] will still work, as will half-a-dozen other variations. You are best off using str_ireplace instead of str_replace (for PHP 5 only).

@neotan: Try turning off gzipCompression in yshout/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!

Forte

For some reason, no matter where I put it in the index.template.php file, it always ends up at the very top, before the theme even begins. It also never displays anything. Any help?

SMF v 1.1.5
Using Xbox 360 ELITE theme by Metalcore
SB_1.16

[unplugged]

Where exactly are you wanting it to display?

Usually, when the code ends up "outside" the theme, it's a result of the shoutbox code being placed outside of the containing tags (the main <div>'s or <table>'s, etc.).
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Old Lynx

how do I know if my place supports PHP5 ??

thanks

[unplugged]

Your host should have that info somewhere in your account section. You can also look that info up inside cPanel, or phpMyAdmin, or something similiar.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Forte

I want it right under where it says "Welcome(Your name)" or in that general area. I'm no good with PHP or whatever the layout is written in, so I don't really know where to put it.

[unplugged]

Do you have any other mods installed? If so, then attach your index.template.php to this post and I'll see what I can do for you. Otherwise I can just mod the original file and put it here for you to grab.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



nneonneo

Dang it, 000webhost picked the perfect time to audit my website :P

Oh well, I will simply wait it out (I've got a personal webserver for testing purposes, but it isn't publicly available). Meanwhile, I think I'm going to (experimentally) code up a version that uses forum permissions.
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!

Old Lynx

OK I've just been to my host's website and it says their servers support php4 & 5 !!

So how do I do that thing you talked about nneonneo :)

Thanks man :)

nneonneo

You see str_replace in yshout.php? Just change it to str_ireplace.
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!

Old Lynx

and that would sort that problem I'm having !!!! seems to easy to be true LOL

let me go and try

I'll report back in a minute

thanks nneonneo :)

Old Lynx

hey nneonneo :)

I searched for str_replace in the yshout.php and I find about 4 or 5 !!!

which one is it that I change ? or do I change them all ?

thanks

nneonneo

The one with the [ img ] tag.
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!

Old Lynx

ok I just did that and it didn't work !! :( attached is the file can you please check it to see if I have done it right ? PLEASE :(

thanks nneonneo

Forte

Quote from: SunKing on June 14, 2008, 08:14:05 PM
Do you have any other mods installed? If so, then attach your index.template.php to this post and I'll see what I can do for you. Otherwise I can just mod the original file and put it here for you to grab.

Sorry it took me so long to reply. I do have a few mods installed, so I'm attaching the index. I hope I did the main part right.

Advertisement: