?

2

(6 replies, posted in PunBB 1.2 troubleshooting)

.

3

(6 replies, posted in PunBB 1.2 troubleshooting)

.

bump

N/M figured it out.

I don't want anyone to know who is online, and who is offline. I've already disabled it on the index page, but it still shows under their usernames in threads.

How do I remove that?

TIA

7

(1 replies, posted in PunBB 1.2 discussion)

Don't know if this issue is being addressed in the 1.3 release, but punBB when using IE7 is very skewed.

Awesome! Thank you SO much for taking the time to help me!

smile

I get spammed a lot with a ? character, and want it to not allow posting if that character is in either the subject title, or body

TIA

Hm. Nope. Same thing.

sad

Smartys wrote:

You added the function in the correct place (at the end of parser.php, outside of anything else)?
You added the edits to post.php and edit.php in the right place?

What version of PHP are you using?

Yep, everything added in correct locations.

I'm running 4.4.2

Smartys wrote:
viperjosh wrote:
Smartys wrote:

Can you email me a copy of your parser.php (smartys@gmail.com)

on its way smile

The copy you sent me doesn't have the new function in it wink

Yeah, I took it out after the code wasn't working - remember it was giving the error if you tried to use a registered username

Smartys wrote:

Can you email me a copy of your parser.php (smartys@gmail.com)

on its way smile

Nope. Re entering the code did nothing. Also, I did see that error when trying to use a registered username, this was after entering your code.

Hmm.. I restored the code back to original. I'll try to re-enter it and see what happens.

Smartys wrote:

I'm getting a bunch of errors like this
Warning: Wrong parameter count for preg_replace() in /home/.ester/million1/ffc.fcstuff.com/include/parser.php on line 922

Hm. I didn't get those when I tested...

Smartys wrote:

Link?

http://ffc.fcstuff.com/viewforum.php?id=3

Just try a test post as a guest user

Smartys wrote:

And when you try and post more than 5 smilies it allows it?

Yes

Smartys,

I appreciate your help, but I can't figure out why it isn't working for me! I'm doing it exactly as you say... sad

Smartys,

WOW, thanks for the quick reply.

However, that still isn't doing anything. sad

Smartys wrote:

Oh, whoops, I know why big_smile
Yeah, it's not a simple thing to do that tongue
I guess the easiest way would be to write a new function (or mod do_smilies) to tell you how many smilies are in a post and use that knowledge in post.php and edit.php to reject posts that are over

I hate to ask, but i'm not really good enough in php to be able to do that. If you (or anyone else) has some free time, maybe helping me out with creating that code?

smile

TIA!

Oh, duh.

Thanks!

I just want it to redirect without the whole loading page.

TIA

Smartys wrote:

I'd try
FIND

$num_smilies = count($smiley_text);

AFTER, ADD

if ($num_smilies > 5)
        $num_smilies = 5;

That didn't quite do it. I was messing around with it a bit and couldn't get it.

Anyone got any ideas? :confused:

(preg_match('#\[b\]|\[/b\]|\[u\]|\[/u\]|\[i\]|\[/i\]|\[color|\[/color\]|\[quote\]|\[quote=|\[/quote\]|\[code\]|\[/code\]|\[img\]|\[/img\]|\[url|\[/url\]|\[email|\[/email\]#i', $username))

How do I edit that line to include both "." and "%"

I don't want to allow dots and percentage signs to be allowed in usernames.

thanks