- This topic is empty.
- The forum ‘Back End’ is closed to new topics and replies.
I don’t know why but I seem to be having a brain freeze at the moment. I’m trying to get a bit of php in our bbCode engine to find where we have for example, check the number and if its below 10 put the number to 10. And doing the same if the number is above 50 (putting the number to 50).
I cannot seem to think of the most suited way of doing this. Currently we don’t check what the number is and use the following code:
$Text = preg_replace("([font=(.+?)](.+?)[/font])is","$2",$Text);
But this is getting annoying for our mods.
Thanks for any help