Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Jan 2010, 16:56
mme42 mme42 is offline
 
Join Date: Feb 2009
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Reply With Quote
  #2  
Old 26 Jan 2010, 17:31
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Put a condition around it to only work on the showthread page:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
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.)
Reply With Quote
  #3  
Old 26 Jan 2010, 18:09
mme42 mme42 is offline
 
Join Date: Feb 2009
Thanks! Haha, that was a lot easier than I was making it.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:10.

Layout Options | Width: Wide Color: