The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
postparsed table hook location?
I currently have a custom function which rewrites text/links on posts. If X text is posted, then the output is Y+X(urlencoded).
Problem is, at times, it doesn't get applied. I have to edit the post and re-save to trigger the rewriting. I still am not sure why sometimes it works and other times it does not. The function is run at init_startup The application of the function is done via postbit_display_complete AND bbcode_parse_complete. Seems like there is an issue with the postparsed table. If the desired rewritten link gets inserted to the postparsed table before appending, then regardless of what you have going on the other hooks, it doesn't apply. Editing and resaving triggers a refresh of postparsed, so that's why it works then. Is there a proper way to apply the function at hooks that will 100% guarantee they are run before postparsed gets a hold of it? Possibly adjusting the hook order? Or, is there a place to hook into postparsed and run it there. Like $postparsed = function($postparsed); Any help appreciated. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|