MyBB Community Forums

Full Version: Preventing Quote in Quote
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello

in a larg subjective forum abality of quote in quotes in forum (threads not private message) must be disable
be cause having a larg discussion of previuse users in my post grow forum database very soon!
an option for disabling quote in quote in threads is very usefull in my idea!
of curse it can be implements as a plugin that hooks to newreply events but an admin option and internal implementing make it better

be happu
Well actully u dont need to quote in quote, wheter remove the whole quote, especially in a private message,

or just select what u wanna quote ur self .


regards
zaher1988 Wrote:Well actully u dont need to quote in quote, wheter remove the whole quote, especially in a private message,

or just select what u wanna quote ur self .


regards
handy?
oh no! i want automatic!
see Vbulltein Wink
can any one help me on writing a new plugin for disabling quote in quote?
it must be possible!?

what event must i hook? and what variable must i change ?
You probably want to use the handle 'posbit'.
You will want to use the preg_replace function with something like
preg_replace('#(\[quote\].*)\[quote\].*[/quote](.*\[/quote\])#i', '\1\2', $postbit);
decswxaqz Wrote:You probably want to use the handle 'posbit'.
You will want to use the preg_replace function with something like
preg_replace('#(\[quote\].*)\[quote\].*
(.*\[/quote\])#i', '\1\2', $postbit);
[/quote]
thank senior!
i write a plugin and test it before reading your post, but i thank you so much!
i think your solution has a little problem and you can see my plugin! its very useful and you can test it !
i attach it in another thread!
be happy!