Member 3639
Active member
Okay for anyone who doesn't want their avatar block to be used for the first posted media (i mean seriously why is there no option to disable that - am i the only one it annoys as it messes up the articles you post).
I actually figured it out, on RecentNews.php block, comment out the code inside the bottom function called
To make it look like this;
I actually figured it out, on RecentNews.php block, comment out the code inside the bottom function called
public function getDefault($post)
To make it look like this;
PHP:
public function getDefault($post)
{/*
if (preg_match('#\[medio\](\d+)\[/medio\]#i', $post['message'], $matches))
{
$post['promote_data'] = $matches[1];
$post['medio'] = $this->getMedio($post);
return $post;
}
if (!empty($post['attachments']))
{
foreach ($post['attachments'] AS $attach)
{
if ($attach['thumbnailUrl'])
{
$post['promote_data'] = $attach['attachment_id'];
$post['attach'] = $this->getAttach($post);
return $post;
}
}
}
if (preg_match('#\[img\](.+?)\[/img\]#i', $post['message'], $matches))
{
$post['promote_data'] = $matches[1];
$post['image'] = $this->getImage($post);
return $post;
}
*/
return $post;
}