Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Syndicate X-Cart news as RSS 2.0 Channel
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #21  
Old 07-17-2008, 09:32 AM
 
justy justy is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 39
 

Default Re: Syndicate X-Cart news as RSS 2.0 Channel

I've put test stories up using the news module, and they appear on the website's news page. But the feed made by the news_feed.php file only shows as blank. I get no errors.
__________________
---
x-cart 4.1.9
XC SEO 1.4

x-cart 4.2
Reply With Quote
  #22  
Old 07-17-2008, 10:17 PM
 
zaa zaa is offline
 

X-Cart team
  
Join Date: Apr 2004
Location: Ulyanovsk, Russia
Posts: 125
 

Default Re: Syndicate X-Cart news as RSS 2.0 Channel

Quote:
Originally Posted by justy
I've put test stories up using the news module, and they appear on the website's news page. But the feed made by the news_feed.php file only shows as blank. I get no errors.

I've just checked the news_feed.php file on X-Cart 4.1.9, 4.1.10 installations on our development server and failed to reproduce the issue.
You might need to add output of debug information to the script and check where it fails, etc.
Reply With Quote
  #23  
Old 07-18-2008, 06:17 AM
 
justy justy is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 39
 

Default Re: Syndicate X-Cart news as RSS 2.0 Channel

For the news_feed.php, I'm getting these errors:

PHP Parse error: syntax error, unexpected T_SL in news_feed.php on line 62
PHP Parse error: syntax error, unexpected T_STRING in news_feed.php on line 64

They seem to happen at

Code:
$items_code .= <<<EX <item> <title>{$m['subject']}</title> <description><![CDATA[{$m['body']}]]></description> <link>$news_page_url</link> <guid isPermaLink="false">{$m['newsid']}@$news_page_url</guid> <pubDate>$pubDate</pubDate> </item> EX; }

Which is interesting, because Dreamweaver's syntax highlighting chokes on the <<<EX string as well.
__________________
---
x-cart 4.1.9
XC SEO 1.4

x-cart 4.2
Reply With Quote
  #24  
Old 07-18-2008, 06:30 AM
 
zaa zaa is offline
 

X-Cart team
  
Join Date: Apr 2004
Location: Ulyanovsk, Russia
Posts: 125
 

Default Re: Syndicate X-Cart news as RSS 2.0 Channel

Quote:
Originally Posted by justy
For the news_feed.php, I'm getting these errors:

PHP Parse error: syntax error, unexpected T_SL in news_feed.php on line 62
PHP Parse error: syntax error, unexpected T_STRING in news_feed.php on line 64

They seem to happen at

Code:
$items_code .= <<<EX <item> <title>{$m['subject']}</title> <description><![CDATA[{$m['body']}]]></description> <link>$news_page_url</link> <guid isPermaLink="false">{$m['newsid']}@$news_page_url</guid> <pubDate>$pubDate</pubDate> </item> EX; }

Which is interesting, because Dreamweaver's syntax highlighting chokes on the <<<EX string as well.

Try to copy&paste text of provided script using, for example, notepad.
Apparently current editor mangles the file in some way.

PS. I've attached the news_feed.php script to this message, you can try to us it.
Attached Files
File Type: php news_feed.php (4.7 KB, 30 views)
Reply With Quote
  #25  
Old 07-18-2008, 07:00 AM
 
justy justy is offline
 

Advanced Member
  
Join Date: Feb 2008
Posts: 39
 

Default Re: Syndicate X-Cart news as RSS 2.0 Channel

zaa, that worked perfectly. Thanks!
__________________
---
x-cart 4.1.9
XC SEO 1.4

x-cart 4.2
Reply With Quote
  #26  
Old 09-09-2008, 06:04 AM
 
RCTOYS RCTOYS is offline
 

Member
  
Join Date: Apr 2007
Posts: 28
 

Unhappy Re: Syndicate X-Cart news as RSS 2.0 Channel

Hello,

I got an error while using this latest code (never used before).

Code:
INVALID SQL: 1054 : Unknown column 'date' in 'field list' SQL QUERY FAILURE:SELECT COUNT(*) as msg_count, MAX(date) AS last_date FROM xcart_newslists AS nl LEFT JOIN xcart_newsletter AS n ON n.listid = nl.listid WHERE nl.avail='Y' AND nl.show_as_news='Y' AND n.show_as_news = 'Y' ORDER BY n.date DESC

Anyone can help me ?

X-CART version 4.1.7
__________________
X-CART GOLD 4.1.7
ADDONS : X-RMA | X-AOM | X-MAGNIFIER
HACKS : MINICART MAGNIFIER
Reply With Quote
  #27  
Old 10-06-2008, 04:44 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Syndicate X-Cart news as RSS 2.0 Channel

Quote:
Originally Posted by zaa

Note: The script is intended for displaying of news. If you would like to create a feed with the latest store products, etc then you need to adjust it according to your needs.

Best regards,

What would need to be adjusted to create a feed with the latest store products?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #28  
Old 01-10-2012, 08:28 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: Syndicate X-Cart news as RSS 2.0 Channel

Is there a version of news_feed.php for 4.4.4?
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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


All times are GMT -8. The time now is 07:21 AM.

   

 
X-Cart forums © 2001-2018