![]() |
Stop Quoted text > New text - which hook?
Hi folks,
I'm pretty fair with php, but putting that into the context of vB isn't always easy for me. It's finding where the body is buried, or the needle in a haystack or the leaf in the forest - the frustrating search for where to inject your code and how to get it called. I'm here for your help with that! What I want to do is intercept the message text on its way to the post and return the user to the editor with a message saying something like "You must have more new text than quoted text to post on <Forum Name>. Please edit your quotes to just the most relevant text and submit your reply again." I'm pretty sure I can parse the text and then compare new to quoted character counts. May I ask:
Anything else you want to suggest as far as templates or tutorials, is appreciated. 'snore |
Look at one of the newreply hooks. The relevant variables will be available there.
|
All times are GMT. The time now is 09:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|