Support Forums

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

How to set a default image for News Show SP2 ?

Featured Lock Resolved
Hello ,
I am trying to override News Show SP2 to set a default image if the article has no image .
I believe this is where need to be changed :

<?php /*Image position before title*/if ($article_show_image && $article_image_pos=='top' && $list[$i]->image): ?>
<?php if ($article_linked_image): ?>
<a href="/<?php echo $list[$i]->link ?>">
<?php endif; ?>
<img class="ns2-image" style="<?php echo $article_image_float ?>;<?php echo ($article_image_margin) ? "margin:$article_image_margin" : "" ?>" src="/<?php echo modNSSP2CommonHelper::thumb($list[$i]->image, $article_thumb_width, $article_thumb_height, $article_thumb_ratio, $uniqid) ?>" alt="<?php echo $list[$i]->title ?>" title="<?php echo $list[$i]->title ?>" />
<?php if ($article_linked_image): ?>
</a>
<?php endif; ?>
<?php endif; ?>

2 Answers

Toufiq - Staff

More than a month ago #Permalink
Dear,

Thanks for your query. This feature are not available in News show sp2. By the we don't provide custom development.

-Thanks

rabad

More than a month ago #Permalink
I know it is not available that's why I am asking help to modify the code not asking for custom development , I did this before with a K2 but this one I am not sure where to insert the code to grab an image if the article has none .
I thought the forum is here so the members will help each others :D .
Thanks anyway .


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 135
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 120
Toufiq

Toufiq

Total Accepted Answers: 65
Pavel

Pavel

Total Accepted Answers: 5
Mohammed Ahmed

Mohammed Ahmed

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us