Jump to content

(NB40) RSS Sidebar Widget


newbie LAC

Recommended Posts

  • 1 month later...
  • 8 months later...
  • 2 months later...

Hello


I have Your "(NB40) RSS Sidebar Widget" but I did use "custom block" for my rss, unfortunetly as few other things latest 4.1.14.2 update make it not work correct (some tiems dispay, some times not -at random). Can You help me and advice me what files I need to edit to use Your widget but to it work as my custom code (I mean to display images from my feed with tittle on them and all clickable with link)?

$rss = new DOMDocument();
	$rss->load('http://bigholestube.com/feed/');
	$feed = array();
	foreach ($rss->getElementsByTagName('item') as $node) {
		$item = array ( 
			'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
			'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
			'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
			);
		array_push($feed, $item);
	}
	$limit = 7;
	for($x=0;$x<$limit;$x++) {
		$title = str_replace(' & ', ' &amp; ', $feed[$x]['title']);
		$link = $feed[$x]['link'];
		$description = $feed[$x]['desc'];
        echo '<p><strong><a href="'.$link.'" title="'.$title.' " target="_blank">'.$title.'</a></strong><br />';  
		echo '<a href="'.$link.'" " target="_blank"><img src="'.$description.'</a>';
	}

 If You will be so kind to help me again I will be really really thankful. 

Link to comment
14 hours ago, alex1981 said:

I have Your "(NB40) RSS Sidebar Widget" but I did use "custom block" for my rss, unfortunetly as few other things latest 4.1.14.2 update make it not work correct (some tiems dispay, some times not -at random). Can You help me and advice me what files I need to edit to use Your widget but to it work as my custom code (I mean to display images from my feed with tittle on them and all clickable with link)?

Hello,

For my widget you need only rss link.

Link to comment

Yes exacly and this is how I ask You to some help what to edit to make it work for me. May be this will be also usefull for other owners.

 

Take a look:

My custom block display for me tittle (if is to long it wrap it) and image both clickable to post on wordpres tube.
rssexample1.jpg

 

While Your one display for me:
Title (works ok but is not wrapped if need)
Image (it is only mini image - no link to source)
and worst: under image display link to video file on server with working click to it (so all idea to move ppl to post on wordpres tube where rss is sourced die since they got instant file)
rssexample2.jpg
ofcourse I can disable description but this left only title link without images I need so much.

So if You will be so kind to tell me what I need to edit in code to get results like in my custom block what after last update stop work well I will be thankful. I want to use Your module since it have settings for groups and it works instead of custom block all time.

 

 

Link to comment
46 minutes ago, alex1981 said:

Title (works ok but is not wrapped if need)

Content of your rss link has html with big width.

<img width="300" height="169"
<div style="width: 960px;
53 minutes ago, alex1981 said:

So if You will be so kind to tell me what I need to edit in code to get results like in my custom block what after last update stop work well I will be thankful.

All html located in js. You need edit it before install the plugin.


You can add in custom.css 

.feedEkList * {
	width: 280px !important;
}
.feedEkList .itemContent > div {
	display: none !important;
}
.feedEkList .itemContent > img {
	cursor: pointer;
}

And add in includeJs template

<script>
$(document).ready(function() {
  $('#divRss').on('click', '.itemContent img', function() {
    var link = $(this).parents('.ipsDataItem').find('.itemTitle a');
    var href = link.attr('href');
    var target = link.attr('target');
    if (link) {
      window.open(href, target);
    }
  });
});
</script>

 

Link to comment
  • 4 months later...

Dang, upgrades always improving something but breaking other nice things.

My Rss feed NB40 from my Blog used to work flawlessly but after the recent update to 4.1.17.1 it has stopped. The board RSS feed works to import into a forum section but the sidebar RSS block no longer works. So the RSS from the Blog must be working okay but the NB40 isn't working any longer. Any suggestions on how I can fix it? Any help appreciated because this is such a great widget.

Link to comment
17 minutes ago, Windwalker222 said:

Thanks for the fast response! It is RSS from a Word Press Blog of mine. The Blog link is http://castlekeepdanes.com/depotblog/

The RSS feed link is http://castlekeepdanes.com/depotblog/?feed=rss2

Thanks,

https://developers.google.com/feed/

Quote

This API is officially deprecated and will stop working after December 15th, 2016. See our deprecation policy in our Terms of Service for details.

I'm sorry.

You can use alternative widgets

- Pages inbuilt RSS

https://invisionpower.com/files/file/7342-feed-widget/

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...