Problem using plugin_remoterss.tpl

Creating and modifying plugins.
Post Reply
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Problem using plugin_remoterss.tpl

Post by T »

Hello,

I'm having a weird problem using the plugin_remoterss template file. Whenever I turn Smarty templates on, the RSS-feed shows up properly, but all items are linked to the current page (the static url of the entry).

I have tried using the default, unedited template, but the problem persists. The only way to get the links working is to turn of the templates, but than things don't look so nice...

What am I doing wrong?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem using plugin_remoterss.tpl

Post by garvinhicking »

Hi!

You are using Serendipity 1.4.1?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Re: Problem using plugin_remoterss.tpl

Post by T »

No, 1.3.1. Should I upgrade?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem using plugin_remoterss.tpl

Post by garvinhicking »

T wrote:No, 1.3.1. Should I upgrade?
Yes :)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Re: Problem using plugin_remoterss.tpl

Post by T »

Well, I just did, no problem in upgrading, but still the same problem...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem using plugin_remoterss.tpl

Post by garvinhicking »

Hi!

Caching might still be in effect; either reduce the caching time (should be configurable in the plugin) or remove the files in templates_c/.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Re: Problem using plugin_remoterss.tpl

Post by T »

Thanks for your help so far. Refresh time was already set to 1 sec. After clearing both templates_c and my browsers' cache, I still keep having the same problem...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem using plugin_remoterss.tpl

Post by garvinhicking »

Hi!

What's the URL?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Re: Problem using plugin_remoterss.tpl

Post by T »

garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem using plugin_remoterss.tpl

Post by garvinhicking »

Hi!

Sorry, I should've been more specific; I would need the RSS Feed URL that you put into the RemoteRSS plugin? As I can see on your site, the href is empty, so it seems that the link element might be somehow be messed with...?!

Can you also tell me the exact settings of how you configured the RemoteRSS plugin?

(BTW, very nice page layout you have there!)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Re: Problem using plugin_remoterss.tpl

Post by T »

Thanks!

It's a regular YouTube-channel-feed:

http://www.youtube.com/rss/user/exnatur ... videos.rss

As I said, it works fine when the tpl is turned off.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem using plugin_remoterss.tpl

Post by garvinhicking »

Hi!

When using the template, you are using the one shiped in /plugins/serendipity_plugin_remoterss/plugin_remoterss.tpl or did you copy that file over into your template directory?

The bugfix applied to s9y 1.4 was done on the first directory; if you copied the .tpl file somewhere else where it might be picked up, that could be the reason why it's still having that bug for you?!

This is the bugfix code: http://svn.berlios.de/viewcvs/serendipi ... 03&r2=2441

Check if your file properly contains the part like on the right side, and not on the left side.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Re: Problem using plugin_remoterss.tpl

Post by T »

garvinhicking wrote:Hi!
This is the bugfix code: http://svn.berlios.de/viewcvs/serendipi ... 03&r2=2441
That's it! I just copy/pasted the bugfix code into my own tpl, cleared the cache and it now works. However, the target of the links still doesn't work properly: it shows up in the code as

Code: Select all

target="$remoterss_items.target"
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem using plugin_remoterss.tpl

Post by garvinhicking »

Hi!

Okay, sorry, that's another bug. It needs to have { and } around, so that it reads {$remoterss_items.target} :(

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Re: Problem using plugin_remoterss.tpl

Post by T »

Great! Works like a charm, and at least now it's discovered...

I have another question, regarding the template-chooser, however I guess I'll better start another thread?

Again, many thanks for all your help so far.
Post Reply