How do I get the MediaRecent block thumbnails to work with the latest Xenporta?
They've been acting like this ever since I upgraded xenporta.
I tried changing the block cache, Tried uninstalling and reinstalling the block.
Still no thumbnails.
Are you using the newest version of XenMedio as well?How do I get the MediaRecent block thumbnails to work with the latest Xenporta?
They've been acting like this ever since I upgraded xenporta.
I tried changing the block cache, Tried uninstalling and reinstalling the block.
Still no thumbnails.
View attachment 25459
No. Will update now.Are you using the newest version of XenMedio as well?
Does anybody know how we avoid the IMG, ATTACH, PREBREAK tags in the recent slider module?
View attachment 25564
provided_file_is_not_a_block_xml_file
getting this error during installation:
Code:provided_file_is_not_a_block_xml_file
Works now! Gonna rate all your stuff 5 stars soon.
Does anybody know how we avoid the IMG, ATTACH, PREBREAK tags in the recent slider module?
View attachment 25564
foreach ($news AS &$post)
{
$post['attachments'] = $this->getModelFromCache('XenForo_Model_Attachment')->getAttachmentsByContentId('post', $post['first_post_id']);
$post['attachments'] = $this->getModelFromCache('XenForo_Model_Attachment')->prepareAttachments($post['attachments']);
foreach ($post['attachments'] AS $attach)
{
if ($attach['thumbnailUrl'] && $attach['filename'] == $options['filename'])
{
$post['attach'] = $attach;
break;
}
}
}
foreach ($news AS &$post)
{
$post['attachments'] = $this->getModelFromCache('XenForo_Model_Attachment')->getAttachmentsByContentId('post', $post['first_post_id']);
$post['attachments'] = $this->getModelFromCache('XenForo_Model_Attachment')->prepareAttachments($post['attachments']);
$post['message'] = preg_replace('#\[(prebreak|floatleft|float_left|attach|media|img)[^\]]*\].*\[/\\1\]#siU', '[\\1]', $post['message']);
$tosearch = array('[floatleft]','[prebreak]','[img]');
$post['message'] = str_ireplace($tosearch,'',$post['message']);
foreach ($post['attachments'] AS $attach)
{
if ($attach['thumbnailUrl'] && $attach['filename'] == $options['filename'])
{
$post['attach'] = $attach;
break;
}
}
}
Try this example and don't forget to empty block cache. You can modify the code to suit your needs.
RecentSlider.php
Find:
PHP:foreach ($news AS &$post) { $post['attachments'] = $this->getModelFromCache('XenForo_Model_Attachment')->getAttachmentsByContentId('post', $post['first_post_id']); $post['attachments'] = $this->getModelFromCache('XenForo_Model_Attachment')->prepareAttachments($post['attachments']); foreach ($post['attachments'] AS $attach) { if ($attach['thumbnailUrl'] && $attach['filename'] == $options['filename']) { $post['attach'] = $attach; break; } } }
Replace with:
PHP:foreach ($news AS &$post) { $post['attachments'] = $this->getModelFromCache('XenForo_Model_Attachment')->getAttachmentsByContentId('post', $post['first_post_id']); $post['attachments'] = $this->getModelFromCache('XenForo_Model_Attachment')->prepareAttachments($post['attachments']); $post['message'] = preg_replace('#\[(prebreak|floatleft|float_left|attach|media|img)[^\]]*\].*\[/\\1\]#siU', '[\\1]', $post['message']); $tosearch = array('[floatleft]','[prebreak]'); $post['message'] = str_ireplace($tosearch,'',$post['message']); foreach ($post['attachments'] AS $attach) { if ($attach['thumbnailUrl'] && $attach['filename'] == $options['filename']) { $post['attach'] = $attach; break; } } }
What exactly does this do? just erase the img text""
I can not get this to work: Http://www.your-site.com/portal/{layout}/index
Any Ideas?
Thanks,
Itworx4me
We use essential cookies to make this site work, and optional cookies to enhance your experience.