The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hook to use for firing plug-in in posts but not in pms or usernotes
I have a simple str_replace plug to replace certain words/urls with a message in posts. The plug-in is fine. But, the problem is that it also fires in private messages and usernotes because they use the postbit_display_complete also. But, I only want to use this plug in posts.
I've tried other hook locations (from looking that hooks available in debug mode) but I can't find another one that works, and it seems like postbit_display_complete would be correct anyway. Here is the plug for reference: PHP Code:
Thanks. |
#2
|
||||
|
||||
Put a condition around it to only work on the showthread page:
PHP Code:
|
#3
|
|||
|
|||
Thanks! Haha, that was a lot easier than I was making it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|