How do I get my news rss working - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Bug Reports

Bug Reports "Brrr! Bugs!" Yes, we do hate them as well. But nothing is perfect in this world and if you found a bug let us know so that we can make eSyndiCat Directory Software even better.

Reply
 
Thread Tools Display Modes
Old 06-02-2012   #1
popey87
Paid Customer
 
popey87's Avatar
 
Join Date: Mar 2011
Location: New Zealand
Posts: 201
popey87 is on a distinguished road
Default How do I get my news rss working

Please if you go to www.bawd.co.nz and click on the rss icon on the very top right of the website can anyone tell me what that error means. Cheers guys
__________________
Quality Directories for link building. Quality Directory for your blog, forum or directory, Submit URL Here. Visit our Free Directory List

If you are interested in selling a single licence please PM me with a price, Thanks.
popey87 is offline   Reply With Quote
Old 06-13-2012   #2
scottthomas
 
Join Date: Feb 2011
Posts: 6
scottthomas is on a distinguished road
Default

Hello!
The script is showing listings of the ROOT category.
It is empty as far as there is no listings in this category.
If you want the RSS to display new listings from any category when you are clicking RSS on the index page:

[ Open the file feed.php ]
[ Find the code: ]
PHP Code:
if ((is_array($from) && in_array('category'$from)) || ('category' == $from))
{
    
$category_id = isset($_GET['id']) && !empty($_GET['id']) ? (int)$_GET['id'] : 0;

    
$category $esynCategory->row("*""`id` = '{$category_id}'");
    
    
$out .= '<title>' esynSanitize::html($category['title']) . '</title>';
    
$out .= '<description>' esynSanitize::html(strip_tags($category['description'])) . '</description>';
    
$out .= '<link>';
    
$out .= $esynLayout->printCategoryUrl(array('cat' => $category));
    
$out .= '</link>';

    
// Get link for the selected category
    
$listings $esynListing->getListingsByCategory($category_id$start$limitfalsefalse0);

    if (!empty(
$listings))
    {
        foreach (
$listings as $key => $item)
        {
            
$item['path'] = $category['path'];

            
$out .= create_rss_item($item);
        }
    }

[ Replace it with: ]
PHP Code:
if ((is_array($from) && in_array('category'$from)) || ('category' == $from))
{
    
$category_id = isset($_GET['id']) && !empty($_GET['id']) ? (int)$_GET['id'] : 0;

    if(
$category_id == '0')
    {
        
$out .= '<title>' $esynI18N['new_listings'] . '</title>';
        
$out .= '<description>' $esynI18N['newly_added_listings'] . '</description>';
        
$out .= '<link>' ESYN_URL;
        
$out .= $esynConfig->getConfig('mod_rewrite') ? 'new-listings.html' 'new-listings.php';
        
$out .= '</link>';

        
// Get link for the selected category
        
$listings $esynListing->getLatest($start 0$limit);
    }
    else
    {
        
$category $esynCategory->row("*""`id` = '{$category_id}'");
        
        
$out .= '<title>' esynSanitize::html($category['title']) . '</title>';
        
$out .= '<description>' esynSanitize::html(strip_tags($category['description'])) . '</description>';
        
$out .= '<link>';
        
$out .= $esynLayout->printCategoryUrl(array('cat' => $category));
        
$out .= '</link>';

        
// Get link for the selected category
        
$listings $esynListing->getListingsByCategory($category_id$start$limitfalsefalse0);
    }

    if (!empty(
$listings))
    {
        foreach (
$listings as $key => $item)
        {
            
$item['path'] = $category['path'];

            
$out .= create_rss_item($item);
        }
    }

scottthomas is offline   Reply With Quote
Reply

Tags
rss

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:12 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us