Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Disable newsgallery images

Hi smile

Where can i disable the newsgalery? In my eyes it is a bit useless smile
I do not understand. Do you want to disable the "news gallery" as it is written to you? So pictures for news? But it does not make sense, news without pictures!
Or do you mean to turn off all the news? If so, turn off in Administration / System / Infusions under News / Uninstall.
Without news gallery, please use the Blog Infusion.
Maybe just add option "Enable News Gallery?" after " Enable Ratings"

RobiNN wrote:

@RobiNN - Maybe just add option "Enable News Gallery?" after " Enable Ratings"

It would be a good function. It is useful to many. Gallery in the news not everyone needs.
Here on the site, in the news there is no gallery https://www.php-fusion.co.uk/infusion...admore=637
How was this done?
1. The code was deleted from the file ...\infusions\news\templates\news.php?
CodeDownload  
 if (!empty($data['news_gallery'])) {
 echo '<hr/>';
 openside(fusion_get_locale('news_0019')) ?>
 <div class='post-gallery overflow-hide m-b-20'>
 <?php foreach ($data['news_gallery'] as $news_image_id => $news_image) : ?>
 <div class='post-gallery-item overflow-hide pull-left' style='width: 250px; height: 120px;'>
 <?php echo colorbox(IMAGES_N.$news_image['news_image'], '', FALSE, 'pull-left') ?>
 </div>
 <?php endforeach; ?>
 </div>
 <?php closeside();
 }


It turns out the code of this gallery is sometimes found in some topics on the site: https://github.com/php-fusion/PHP-Fus...#L172-L184
2. Or something different?
Thread Information
Author
Replies
6 posts
Views
1041 times
Last Post
Last updated on 19 days ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Kvido, Chan, lifeguard, zizub, RobiNN