PDA

View Full Version : ReQ: How to show Rss Feeds of SE or any other site in PHPLD?


admans
05-14-2006, 04:49 PM
Hello all,

I have been looking for the solution of this for a long time know. I used Magpie to show the Rss feeds on my site on my PHPLD but its showing smarty error. Can anybody guide to adding the rss feeds of my site on PHPld. Thanks.

Any help would be highly appreciated.

Regards,

Admans.

Optimit
05-14-2006, 10:48 PM
try opening index.php and adding something like Content visible to registered users only.
Right after Content visible to registered users only.
(Substitue according to your own directory path and aggregator)

discover
05-14-2006, 11:24 PM
which aggregator you recommend opti?
gonna add some rss news to my site also

Optimit
05-14-2006, 11:40 PM
I always use the free version of Carp. Simple to set up, and easy to customize.

discover
05-15-2006, 12:43 AM
ko ill give it a check
fanks :)

brk
05-16-2006, 03:57 AM
OK, it works, I tried and it with CaRP and it works nicely.

Only, if you put the code in index it shows up in any page, is that right?

I actually wanted the feed to show in the homepage only. Isn't that what you guys do too?

Thanks!

Optimit
05-16-2006, 04:21 AM
Putting the code in Index has nothing to do with getting it to show up on only the home page. If you want it to show up on just the home page, you edit the code in your tpl for that.

anon
05-16-2006, 06:26 AM
Content visible to registered users only.

{if $category.ID eq 0}

code in here...
Will show your feed *ONLY* on the home page

{/if}

{if $category.ID gt 0}

code in here...
Will show your feed On EVERY page BUT the home page

{/if}


The above code will need to be placed in your main.tpl file



eq = equal
gt = greater than

brk
05-16-2006, 03:30 PM
Thank you very very much!

Very kind of you!

anon
05-16-2006, 10:14 PM
No problem. :)

If you need any help getting it implemented, let me know.

Rob
(ps.s - see sig for greater kindness :))

MKInfo
05-17-2006, 06:14 AM
Can someone please post the full code to display this on the homepage.
I have managed to install carp with no probs but the rest I'm lost.
After all I'm only an old dog :p

Thanks

Optimit
05-17-2006, 08:19 AM
Here is an example.

In the tpl page.

Content visible to registered users only.
In index.php

Content visible to registered users only.

anon
05-17-2006, 08:52 AM
Content visible to registered users only.
read post #8 above.

shows for homepage only, or all but homepage.

MKInfo
05-17-2006, 01:53 PM
Thanks guys.
I'm using it to display the latest links at the moment to test it.
The possibilities are endless.
*Wags tail happily:)

http://www.directorytogo.com/

I really must change that color scheme too:rolleyes:

So much to do so little time.

Optimit
05-17-2006, 02:03 PM
Very nice. Wow what a nice template! hehe

MKInfo
05-17-2006, 02:23 PM
Content visible to registered users only.

Do you design these and is that your site?

Optimit
05-17-2006, 02:28 PM
haha, yes, and yes.

MKInfo
05-17-2006, 02:48 PM
Nice one.I take it you do modifications.I like that layout very much but will want a few things added when I have finished the cats.Can I contact you then? (paid of course)

Optimit
05-17-2006, 02:54 PM
of course you can. Just PM me with any questions.

dcristo
06-01-2006, 01:06 PM
Content visible to registered users only.

If you wanted to display the feed on certain categories within a specific range, for example category id 1-20, what php code would achieve this? I would imagine you use greater then and less then functions but I couldnt code if my life depended on it :)

Optimit
06-01-2006, 01:35 PM
It would be something like

{if $category.ID gte 0 and $category.ID lte 20}

dcristo
06-01-2006, 01:47 PM
Content visible to registered users only.

Thanks Optim - works great! :)