Pass message to bbcode callback function #702

Open
Phorum opened this Issue Jun 11, 2011 · 4 comments

Comments

Projects
None yet
1 participant
@ghost
Collaborator

ghost commented Jun 11, 2011

Would be good to pass message to bbcode formatting callback functions. Example usecases are: change tag behaviour basing on poster user_id; use message metadata when formatting the tag.

Reported by: Alexey Torkhov atorkhov@gmail.com
Imported from TRAC: http://trac.phorum.org/ticket/804

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Jun 11, 2011

Collaborator

Here, would be also good to pass that message as reference to allow formatting function change something in metadata.

By: Alexey Torkhov atorkhov@gmail.com

Collaborator

ghost commented Jun 11, 2011

Here, would be also good to pass that message as reference to allow formatting function change something in metadata.

By: Alexey Torkhov atorkhov@gmail.com

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Jun 11, 2011

Collaborator

bbcode callback functions? You mean the module function itself? bbcode has just one hook and its purpose is clearly about tags and not the messages. Is there something I am missing?

By: brian

Collaborator

ghost commented Jun 11, 2011

bbcode callback functions? You mean the module function itself? bbcode has just one hook and its purpose is clearly about tags and not the messages. Is there something I am missing?

By: brian

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Jun 11, 2011

Collaborator

The functions that are defined with BBCODE_INFO_CALLBACK param in tag description.
I'm saying that their logic could depend on message itself (well, and sometimes is to alter message metadata).

By: Alexey Torkhov atorkhov@gmail.com

Collaborator

ghost commented Jun 11, 2011

The functions that are defined with BBCODE_INFO_CALLBACK param in tag description.
I'm saying that their logic could depend on message itself (well, and sometimes is to alter message metadata).

By: Alexey Torkhov atorkhov@gmail.com

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Jun 11, 2011

Collaborator

By: ts77

Collaborator

ghost commented Jun 11, 2011

By: ts77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment