<?php
$img = '<p><img src="/skin/images/'.mt_rand(1,1).'.png" alt="'.$navinfor['title'].'"></p>';
$pos = strpos($navinfor['newstext'], "</p>");
if ($pos === false) {
echo $navinfor['newstext'];
}
echo substr_replace($navinfor['newstext'], "</p>{$img}", $pos, strlen("</p>"));
?>In the content page, replace the article tag with the code above
Then put the serial numbered png format pictures under /skin/images/, such as: 1.png, 2.png
Finally, modify mt_rand in the code according to the needs of your picture (the smallest picture serial number, the largest breakthrough serial number)