• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Page breaks blog image in recent post module

Page breaks blog image in recent post module 9 years 4 months ago #29378

Hello after I add some code to this PHP foreach the page goes blank and all I can see is a round black dot at the top left of screen.

My website is in Joomla3 and I am trying to customize a module. my site is get2gethersports.com

I have a recent post module that only shows the articles title. that code is posted below
<?php if ($items) { ?>
<ul class="rsblog-recent-module unstyled<?php echo $params->get('moduleclass_sfx',''); ?>">
    <?php foreach ($items as $item) { ?>
        <li>
            <a <?php echo $opener; ?> href="<?php echo JRoute::_('index.php?option=com_rsblog&view=post&id='.RSBlogHelper::sef($item->id,$item->alias).$Itemid,false); ?>">
                <?php echo $item->title; ?>
            </a>
        </li>
    <?php } ?>
</ul>
<?php } ?>
I would like to add an image abocve like the blog feed on vape-co.com

So I navigated to the component and saw the call for the image. which is posted below:
<div class="rsblog-entry-content">
        <?php if ($this->item->image) { ?>
        <div class="rsblog-entry-image">
            <img class="rsblog-entry-thumb img-polaroid" src="<?php echo JURI::root().'components/com_rsblog/assets/images/blog/'.$this->item->image; ?>?nocache=<?php echo uniqid(''); ?>" alt="<?php echo $this->escape($this->item->title); ?>">
        </div>
        <?php } ?>
but whenever i add it or a snippet of it to the previous code it breaks....

Any ideas why it is breaking the page and how to fix it? I tried adding in new li tags. Just adding the PHP part above the a link etc...
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!