OK, I had solve the other problem, now after testing some other coding, I found another problem.
[lock id="3" code="23"]ehhe[/lock]
[lock id="3" code="23"]ehhe[/lock]
[lock id="32" price="22"]ahha[/lock]
if ($tag_count = preg_match_all("#\[lock id=([\"']|"|&\#039;|&\#39;)(.+?)([\"']|"|&\#039;|&\#39;) price=([\"']|"|&\#039;|&\#39;)(.+?)([\"']|"|&\#039;|&\#39;)\](.+?)\[/lock\]#is", $pclass->post['post'], $tag_matches)) {
for ($i = 0; $i <= $tag_count - 1; $i++) {
print $tag_matches[2][$i];
if (!is_numeric($tag_matches[2][$i]) or !is_numeric($tag_matches[5][$i])) {
$pclass->class->obj['post_errors'] = "cant_post_purchase_invalid_value";
$pclass->show_form();
}
}
}
If you see the three lock tags that I enter, the preg_match_all returns the wrong values. For the id, it returns as following:
3" code="23"]ehhe[/lock]
[lock id="3" code="23"]ehhe[/lock]
[lock id="32
This is just wrong man, this works fine if the purchase lock tag was on top of the other two code locks, but when it below the other two, this is what i get. What going on? It is the modiers settings wrong? I mean the #ie.