1
Anonymous
Howto hack xreaggregator ?
  • 2011/11/15 13:26

  • Anonymous

  • Posts: 0

  • Since:


I want to uses the xreaggregator block, but don't want the links to go to the module itself. I'd like the links from the block pointing straight to the original source.

I guess it can be done by stripping something, but where and what?

2
wishcraft
Re: Howto hack xreaggregator ?

You have to alter line 9 of xreaggregator/blocks/xreaggregator_block.html currently the [a] is pointing to the form but I will show you the change:

Currently:
<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>


So it goes directly to the source of 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
http://www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

3
Anonymous
Re: Howto hack xreaggregator ?
  • 2011/11/15 21:51

  • Anonymous

  • Posts: 0

  • Since:


Thank you so much Wishcraft, i tested it and it works like a charm ! This would be a handy option to add to the block options btw!

4
wishcraft
Re: Howto hack xreaggregator ?

It is open source flipse, design to be altered otherwise I would have encoded it with IonCube or something.
Resized Image
http://www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

5
Anonymous
Re: Howto hack xreaggregator ?
  • 2011/11/15 22:44

  • Anonymous

  • Posts: 0

  • Since:


It's open source, right. But I am thinking of making Xoops a simple to use cms for the masses too

6
wishcraft
Re: Howto hack xreaggregator ?

I only have so many hours in the day...
Resized Image
http://www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

Login

Who's Online

388 user(s) are online (284 user(s) are browsing Support Forums)


Members: 0


Guests: 388


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits