MyBB Community Forums

Full Version: mycode within a quote/cite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

how can i let mycode execute within a quote/cite? 

The mycode works well in normal post. But if i quote/cite such a mycode-transformed post, there is only the content to see in the quote before mycode did its work. Also within the quote/cite mycode do not act. 

I searched the web but did not found anything for that problem. Thx.
What MyCode do you have a problem with for quotes?

For me (and I just checked) all work, such as Bitchute, Rumble, Brighteon, Twitter, X, Instagram, spoiler, highlight, no-embed, marquee ... and any others ... all quote as they should except Telegram!

So which MyCode is not quoting for you?
https://www.aparat.com/v/(.*)

e.g.  https://www.aparat.com/v/7sqw9

<embed width="800" height="450" src="https://www.aparat.com/video/video/embed/videohash/$1/vt/frame"></embed>

works. In the post the vid is shown and i can play the vid.


But if i quote this post, there only is shown the original url 

"https://www.aparat.com/v/7sqw9" 

in the quote and not 

"<embed width="800" height="450" src="https://www.aparat.com/video/video/embed/videohash/7sqw9/vt/frame"></embed> 

but an error is shown
Just tried and I can quote it but not using your regX

[Image: quote-for-mybb.png]


I used your replacement as you posted but the regX I used is:

\[aparat\]([A-Za-z0-9]+)\[/aparat\]

So your members only need to put in between the MyCode tags (which you can see what they would be from the above) the "7sqw9" part of the link you gave.

If the potential links have a different format from just uppercase or lowercase letters plus numbers then you would need to change the regX.
Great! Now all is fine Smile I do this one

https://www.aparat.com/v/([A-Za-z0-9]+)

so the users just need to paste the original link

I really have to read some docs about regex ^^