xoops forums

Kainaij

Quite a regular
Posted on: 2011/4/20 8:01
Kainaij
Kainaij (Show more)
Quite a regular
Posts: 256
Since: 2004/10/5
#1

X-Re-aggregator 2.52 - How do I...

I have a block here:

http://kainaistudies.com/index.php

that gets a feed from a remote site into the block entitled "Partner News".

Hopefully a simple question. How do I set the module to allow for me to go straight to the web feed link and not to the x-aggregator module?

I've come this far and need just this one last tweak to make it right as rain.

Thanks for any help on this.

wishcraft

Module Developer
Posted on: 2011/4/20 9:41
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#2

Re: X-Re-aggregator 2.52 - How do I...

Sorry it has been awhile since i looked into this module for majority of code.. but the file you need to alter i think is /modules/xreaggregator/block/xreaggregator_block.html

Currently it would read:

<a href="<{$site_url}>" target="_blank"><{$site_name}></a><br />
<{if 
$image.url != ""}>
  <
img src="<{$image.url}>" width="<{$image.width|default:88}>" height="<{$image.height|default:31}>" alt="<{$image.title}>" /><br />
<{/if}>

<
ul>
<{
section name=i loop=$items}>
  <{if 
$items[i].title != ""}>
  <
li><a href="<{$xoops_url}>/modules/xreaggregator/index.php?id=<{$site_id}>#<{$items[i].link}>"><{$items[i].title}></a></li>
  <{/if}>
<{/
section}>
</
ul>



If you change it to this then it should link you to the article:
<a href="<{$site_url}>" target="_blank"><{$site_name}></a><br />
<{if 
$image.url != ""}>
  <
img src="<{$image.url}>" width="<{$image.width|default:88}>" height="<{$image.height|default:31}>" alt="<{$image.title}>" /><br />
<{/if}>

<
ul>
<{
section name=i loop=$items}>
  <{if 
$items[i].title != ""}>
  <
li><a href="<{$items[i].link}>"><{$items[i].title}></a></li>
  <{/if}>
<{/
section}>
</
ul>
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

Kainaij

Quite a regular
Posted on: 2011/4/20 17:52
Kainaij
Kainaij (Show more)
Quite a regular
Posts: 256
Since: 2004/10/5
#3

Re: X-Re-aggregator 2.52 - How do I...

Worked like a charm! Thank you very much for that. This module is now perfectly what I wanted, thanks for your work and effort Wishcraft.

wishcraft

Module Developer
Posted on: 2011/4/20 17:57
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#4

Re: X-Re-aggregator 2.52 - How do I...

No problems Kainaij
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies