The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
What hook location to use?
I'm looking to do a search and replace on text in a post when a user displays a post in their browser... Basically there will be code for a specific image in the post HTML, something like <img src="myimage.jpg" alt="alt text" /> and if the user has a specific custom user profile field enabled they will see the image, but if they have it disabled it will do a search and replace on the text and display some alternate HTML code instead. I think I've got the rest of the code figured out but wondering what hook location I should use... newpost_complete I don't think is right... maybe postbit_display_complete or postbit_display_begin? Or something else?
thanks... |
#2
|
||||
|
||||
I would think postbit_display_complete. (Try it and see.)
|
#3
|
||||
|
||||
Yes that looks to be working, Thanks Lynne!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|