I have recently upgrade an IPB version of my forum but the quotes were not upgraded and IPS is not giving the support I need.
I need to build a regular expression do find and replace
For example this is the old forum format:
<div class="quotetop">QUOTE(Cleber__v @ Apr 14 2015, 12:25 PM)
<a href="index.php?act=findpost&pid=2778161"><{POST_SNAPBACK}>
</a></div><div class="quotemain"><!--quotec-->
TEXT TO BE KEPT
<!--QuoteEnd-->
</div><!--QuoteEEnd-->
And this is the new format it should be on:
`<div>
<blockquote class="ipsQuote"
data-cite="Em 14/04/2015, (Cleber__v disse:" data-ipsquote=""
data-ipsquote-timestamp="1428004301" data-ipsquote-userid="2350"
data-ipsquote-username="Cleber__v" data-ipsquote-contapp="forums"
data-ipsquote-contenttype="forums" data-ipsquote-contentclass="forums_Topic"
data-ipsquote-contentid="105179" data-ipsquote-contentcommentid="2768819">
TEXT TO BE INSERTED</blockquote></div><p><span></span></p>`
So I need to find the content, save Username, postID (or commentid), time and text and replace it with the correct format.
I've been researching regex for about a week now with no sucess on how to make this happen
Anybody could help? Thank you
xmlparser. What's exactly you've done so far?