2016-07-22, 12:40 PM
Hi,
I'm using the "Portal News Preview" mod
I use 1st method, that show only first picture (code above)
But, it's things are included before picture.
How to only show first [img] [/img] ?
Nothing before, Nothing After.
Regards
I'm using the "Portal News Preview" mod
I use 1st method, that show only first picture (code above)
But, it's things are included before picture.
How to only show first [img] [/img] ?
Nothing before, Nothing After.
if($mybb->settings['whichway'] == 1) {
$announcement['message'] = substr($announcement['message'], 0, strpos($announcement['message'], '[/img]', strpos($announcement['message'], '[img', 0)) + 6);
$announcement['link'] = "<strong><a class=\"readmore\" target=\"_blank\" href=".$mybb->settings['bburl']."/".$announcement['threadlink'].">".$mybb->settings['readmoremessage']."</a></strong>";
}
Regards