![]() |
|
Thread Tools |
#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:
Is there a different hook that I could use? Or is there a different way to do this so that the plug-in only replaces text in posts and not anywhere else? Thanks. ![]() No members have liked this post.
|
#2
|
||||
|
||||
Put a condition around it to only work on the showthread page:
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#3
|
|||
|
|||
Thanks!
![]() No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 00:10.