FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 <rssMesh:extra> passing value View next topic
View previous topic
Post new topicReply to topic
Author Message
elmirage001



Joined: 15 Oct 2006
Posts: 4

PostPosted: Sun Oct 15, 2006 10:44 pm Reply with quoteBack to top

Hello !

Thank you for the great scripts!!

I'm trying to use a string value from the "Extra" in the config php file to the rssMesh.php script. Is "Extra" using ItemRssMesh_extra[$x] ?

I would like to add the "Extra" value to the ItemTitle[$x]; so that it's displayed together as the Title during the output of the the feed.

Something like...

$n = $rss_parser->ItemTitle[$x];
$n .= $rss_parser->ItemRssMesh_extra[$x];
$rss_parserResults->ItemTitle[] = $n;

Thank you very much!

Paul
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Mon Oct 16, 2006 5:06 am Reply with quoteBack to top

elmirage001 wrote:
Hello !

Thank you for the great scripts!!

I'm trying to use a string value from the "Extra" in the config php file to the rssMesh.php script. Is "Extra" using ItemRssMesh_extra[$x] ?

I would like to add the "Extra" value to the ItemTitle[$x]; so that it's displayed together as the Title during the output of the the feed.

Something like...

$n = $rss_parser->ItemTitle[$x];
$n .= $rss_parser->ItemRssMesh_extra[$x];
$rss_parserResults->ItemTitle[] = $n;

Thank you very much!

Paul


That looks like you are trying to do it in rss2html.php, if so. It would be easier in the HTML template to just use

~~~ItemTitle~~~ ItemRssMeshExtra~~~

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
elmirage001



Joined: 15 Oct 2006
Posts: 4

PostPosted: Mon Oct 16, 2006 12:29 pm Reply with quoteBack to top

Hi Jim,

I was using a script I am familiar with.
Using rss2html and the template I have the same problem

Using
~~~ItemTitle~~~ ItemRssMeshExtra~~~
=
correct item title ItemRssMeshExtra~~~

Using
~~~ItemTitle~~~ ~~~ItemRssMeshExtra~~~
=
correct item title

When I use ~~~ItemRssMeshExtra~~~ there is no output

I'm meshing 5 feeds together and everything is working fine
on that end. I'm not getting any output with either
ItemRssMesh_extra[$x]; or
~~~ItemRssMeshExtra~~~

Thank you for your help!!

Paul
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Mon Oct 16, 2006 12:59 pm Reply with quoteBack to top

elmirage001 wrote:
Hi Jim,

I was using a script I am familiar with.
Using rss2html and the template I have the same problem

Using
~~~ItemTitle~~~ ItemRssMeshExtra~~~
=
correct item title ItemRssMeshExtra~~~

Using
~~~ItemTitle~~~ ~~~ItemRssMeshExtra~~~
=
correct item title

When I use ~~~ItemRssMeshExtra~~~ there is no output

I'm meshing 5 feeds together and everything is working fine
on that end. I'm not getting any output with either
ItemRssMesh_extra[$x]; or
~~~ItemRssMeshExtra~~~

Thank you for your help!!

Paul


Did you set a value for Extra in the rssMesh configuration?

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
elmirage001



Joined: 15 Oct 2006
Posts: 4

PostPosted: Mon Oct 16, 2006 1:30 pm Reply with quoteBack to top

Hi Jim,

Below is

Output URL
Configuration
Template

Here is the url of the output from meshing 7 feeds. There should only be 10 listings as the itemCount=1 in all.
http://www.meteorite.com/rss/rss2html.php

The Configuration

<?PHP

$useOutputCaching = 0;

$outputCacheTTL = 3600;

$XMLTemplate = "rssMesh_Template.xml";

$sortOutputByPubDate = 0;

$feedList = Array(

// Entry #1
Array("fileURL" => "http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=0&language=en-US&output=RSS20&fsop=1&fsoo=1&sass=catchafallingstar.com&frpp=25",
"itemCount" => "1"
,
"feedExtra" => "test of extra feed"
)
,

// Entry #2
Array("fileURL" => "http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=0&language=en-US&output=RSS20&fsop=2&fsoo=1&sass=katy2kary&frpp=50",
"itemCount" => "1"
,
"feedExtra" => "ELKK METEORITES Auction -"
)
,

// Entry #3
Array("fileURL" => "http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=0&language=en-US&output=RSS20&fsop=1&fsoo=1&sass=meteorites.com&frpp=25",
"itemCount" => "1"
,
"feedExtra" => "METEORITES.COM Auction -"
)
,

// Entry #4
Array("fileURL" => "http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=0&language=en-US&output=RSS20&fsop=1&fsoo=1&sass=meteoritehunters",
"itemCount" => "1"
,
"feedExtra" => "MICHAEL FARMER METEORITES #1 - Auction -"
)
,

// Entry #5
Array("fileURL" => "http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=0&language=en-US&output=RSS20&fsop=1&fsoo=1&sass=meteorite-hunter",
"itemCount" => "1"
,
"feedExtra" => "MICHAEL FARMER METEORITES #2 - Auction -"
)
,

// Entry #6
Array("fileURL" => "http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=0&language=en-US&output=RSS20&fsop=1&fsoo=1&sass=nakhladog",
"itemCount" => "1"
,
"feedExtra" => "NAKHLA DOG METEORITES - Auction -"
)
,

// Entry #7
Array("fileURL" => "http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=0&language=en-US&output=RSS20&catref=C5&sacqy=&sacur=0&fsop=1&fsoo=1&from=R6&sasl=Meteorock&sacqyop=ge&saslc=0&floc=1&saprclo=&saprchi=&saaff=afcj&ftrv=13&fasi=1&ftrt=1&fcl=2&ft=1&afcj=1858019&nojspr=y&frpp=200&satitle=meteorit*&sacat=-1&saslop=1&afmp=&fss=1",
"itemCount" => "1"
,
"feedExtra" => "MIDWEST METEORITES - Auction -"
)
);

?>

**The Template**

<HTML>
<HEAD>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>
~~~FeedTitle~~~
</TITLE>
</HEAD>
<BODY>
<H1>~~~FeedTitle~~~</H1>
<H2>~~~FeedDescription~~~</H2>
<BR>
<TABLE width="100%">
~~~BeginItemsRecord~~~
<TR>
<TD>
~~~ItemPubShortDate~~~ ~~~ItemPubShortTime~~~
</TD>
</TR>
<TR>
<TD>
<A href="~~~ItemLink~~~">~~~ItemTitle~~~ ~~~ItemRssMeshExtra~~~ <--extra to the left of arrow if shows</A>
</TD>
</TR>
<TR>
<TD>
~~~ItemDescription~~~
<BR>
</TD>
</TR>
~~~EndItemsRecord~~~
</TABLE>
</BODY>
</HTML>

[url][/url]
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Mon Oct 16, 2006 1:54 pm Reply with quoteBack to top

elmirage001 wrote:
Hi Jim,

Below is

Output URL
Configuration
Template

Here is the url of the output from meshing 7 feeds. There should only be 10 listings as the itemCount=1 in all.



I found the problem, at one point for uniformity somethings were renamed. On about line number 603 of rssMesh.php you should find
Code:
        if (($rss_parser->ItemRssMesh_extra[$x] == "") && isset($feedList[$inputCounter]["extra"])) {
          $rss_parserResults->ItemRssMesh_extra[] = $feedList[$inputCounter]["extra"];


Change the "extra" to "feedExtra" at the end of each line so it looks like
Code:
        if (($rss_parser->ItemRssMesh_extra[$x] == "") && isset($feedList[$inputCounter]["feedExtra"])) {
          $rss_parserResults->ItemRssMesh_extra[] = $feedList[$inputCounter]["feedExtra"];


And you should be all set.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
elmirage001



Joined: 15 Oct 2006
Posts: 4

PostPosted: Mon Oct 16, 2006 8:46 pm Reply with quoteBack to top

Hi Jim,

Just got home this evening and updated the code and it works perfectly!

Thank you very much!

Paul
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme