Cezz
Well-known member
Hey hoping someone can help with this,
I am trying to change the bbcode shown if there is more than 1 instance of the code in the same post...
For example, say I wanted to display one template the first time the bbcode is used but want to show a different template for each consecutive use of it... Or if you wanted to show one template if the bbcode is used between 1-5 times but if they use more than 5 you use a different template (maybe a smaller block)
Is there any way of doing this?
What I want in short is to be able to #1 check how many times a bbcode block is used in a post and #2 know which block we are currently processing either at plugin level or template...
Really appreciate help with this!
I am trying to change the bbcode shown if there is more than 1 instance of the code in the same post...
For example, say I wanted to display one template the first time the bbcode is used but want to show a different template for each consecutive use of it... Or if you wanted to show one template if the bbcode is used between 1-5 times but if they use more than 5 you use a different template (maybe a smaller block)
Is there any way of doing this?
What I want in short is to be able to #1 check how many times a bbcode block is used in a post and #2 know which block we are currently processing either at plugin level or template...
Really appreciate help with this!