Hello,
You can change shortcode to use [ instead. Edit plugin file hot_random_image.php and change this line:
if ( !preg_match("#{randomimage}(.*?){/randomimage}#s",$srchtml) ) {
to this:
if ( !preg_match("#[randomimage](.*?)[/randomimage]#s",$srchtml) ) {
This line:
if (preg_match_all("#{randomimage}(.*?){/randomimage}#s", $srchtml, $matches, PREG_PATTERN_ORDER) > 0) {
to this:
if (preg_match_all("#[randomimage](.*?)[/randomimage]#s", $srchtml, $matches, PREG_PATTERN_ORDER) > 0) {
and finally this line:
$srchtml = preg_replace( "#{randomimage}".$hotrandomimage_input."{/randomimage}#s", $html, $srchtml );
to this:
$srchtml = preg_replace( "#[randomimage]".$hotrandomimage_input."[/randomimage]#s", $html, $srchtml );
Please let us know if the plugin works now.
Best regards,
Milos