Log in

View Full Version : BBCode Parsing, Detect If Signature?


Mohajer
12-25-2012, 08:55 AM
I'm hooking bbcode_create and doing some things with the parsed URLs. Is there a way to detect if the bbcode is from a signature or from the post itself?

Thanks for any help.

kh99
12-25-2012, 10:42 AM
I don't think you can know at hook bbcode_create. But when parse() is called, the forumid property ($this->forumid or $parser->forumid) will be set to 'signature'.

Mohajer
12-26-2012, 03:44 PM
How to detect if this is whole user signature ?
i need something like this :

if (!$post['signature'])

Thank you .

kh99
12-26-2012, 06:16 PM
I'm not sure what you're asking. What do you mean by the "whole user signature"?

Like I said above, I don't believe there's any way to know using hook bbcode_create, but if you explain what you're trying to do we might be able to figure out a way to do it.