View Full Version : RSS feed not working on phpLD
Haris
03-01-2007, 03:44 PM
Hello,
RSS feed is not working on my PHPLD directory site which is known as www.proxybucket.com
Any help is appreciated as RSS feeds are my main feature of the site.
David
03-01-2007, 04:45 PM
This one looks good
http://www.proxybucket.com/rss.php?list=latest&s=H&p=1
What is wrong?
tomsa
03-01-2007, 04:53 PM
Hello,
The RSS feed on the homepage is empty, it is normal. You'll find content in categories feeds.
Haris
03-01-2007, 05:15 PM
How can I gather all the submissions from all the categories for homepage RSS?
Content visible to registered users only.
Can I make it work like this feed for the homepage?
James
03-01-2007, 06:07 PM
It builds it off of the entries. You could I gues but myself I just wrap it in if category.id > 0 tags so its hidden home page and live on others.
Haris
03-01-2007, 06:14 PM
Content visible to registered users only.
How? I need an example because I'm very new to PHPLD.
James
03-01-2007, 06:29 PM
find this in your template:
{if $smarty.const.ENABLE_RSS and (!empty($search) or !empty($category.ID) or $p or $list)}
<a href="{$smarty.const.DOC_ROOT}/rss.php?{if !empty($search)}search={$search|@urlencode}{elseif $list}list={$list}{else}c={$category.ID}{/if}{if $sort}&s={$sort}{/if}{if $p}&p={$p}{/if}">
<img src="{$smarty.const.DOC_ROOT}/images/xml.gif" align="top" alt="RSS Feed" border="0" />
</a>
{/if}
and change it to this :
{if $category.ID > 0}
{if $smarty.const.ENABLE_RSS and (!empty($search) or !empty($category.ID) or $p or $list)}
<a href="{$smarty.const.DOC_ROOT}/rss.php?{if !empty($search)}search={$search|@urlencode}{elseif $list}list={$list}{else}c={$category.ID}{/if}{if $sort}&s={$sort}{/if}{if $p}&p={$p}{/if}">
<img src="{$smarty.const.DOC_ROOT}/images/xml.gif" align="top" alt="RSS Feed" border="0" />
</a>
{/if} {/if}
The bold code is added and tells the script that if category is greater than 0 , 0 being the main page then show the rss feed.
Haris
03-02-2007, 07:54 AM
Which template file? Can't find it in category_root.tpl and main.tpl
Content visible to registered users only.
David
03-02-2007, 02:19 PM
You are using a custom template so we don't know the answer.
Also, I see you are running v3.1
It would be greatly appreciated if you could join the supporters forum.
Thanks,
David
Haris
03-06-2007, 06:30 AM
Okay, Now it is removed from homepage but it's not being displayed at latest links and other pages.
Any solutions?
James
03-06-2007, 07:37 AM
hmmm never checked it other than removing it. Just set the cehck for the others using &&
was going to visit your site but you have an error in your init.php
Haris
03-06-2007, 08:27 PM
Content visible to registered users only.
The init.php error is fixed. :)
Can you please check now?
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.