We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    Quote from: Jesse at Feb 22, 2008, 06:50 PM

    Does it show anything in the "Feed Data" tab?

    Yep, shows the three forum posts that I have in the three ID’s mentioned (only in forum #130, IIRC).
      My Snippets
      -> PopUpChunk v1.0
      • 14050
      • 788 Posts
      Well, if the debug console shows data in the "Feed Data" tab, then FeedX is working properly. It is likely a template issue. What is your complete feedx call and what do your templates look like?
        Jesse R.
        Consider trying something new and extraordinary.
        Illinois Wine

        Have you considered donating to MODx lately?
        Donate now. Every contribution helps.
        • 28033
        • 925 Posts
        Quote from: Jesse at Feb 24, 2008, 10:25 AM

        Well, if the debug console shows data in the "Feed Data" tab, then FeedX is working properly.  It is likely a template issue.  What is your complete feedx call and what do your templates look like?

        {{forum_topics}} [!FeedX? &url=`http://symphonicheaven.com/forum/syndication.php|xq|fid|xe|136,138,130` &preset=`rss`!] {{/forum_topics}}


        The {{forum_topics}} + {{/forum_topics}} are just chunks being used as templates to put the DIV-layer "Forum Topics" box around the RSS output. IIRC, the template is just a simple unordered list (ul/li).

        It works on other pages just fine, so I dunno what the issue is. The error I get in MODx’s System Events is...

        FeedX: Unable to parse XML document: http://symphonicheaven.com/forum/syndication.php?fid=136,138,130

        Which has feed data, so I dunno what the issue is, TBH.
          My Snippets
          -> PopUpChunk v1.0
          • 24731 ☆ A M B ☆
          • 211 Posts
          alright, this one is driving me nuts and I am almost quiting on it hehe. This is my last cry for help:

          I’m pulling info from Amazon, I get the data with no problems. My templates are displaying fine. Except for one field.

          here is my template structure:

          Chunk: AmazonXML
          {{ITEMLOOKUPRESPONSE->AmazonResponse}}


          Chunk: AmazonResponse
          {{ITEMS->AmazonItems}}


          Chunk: AmazonItems
          {{ITEM->AmazonItemAttrbt}}


          Chunk: AmazonItemAttrbt
          <a href="[+DETAILPAGEURL+]">{{MEDIUMIMAGE->AmazonItemImage}}</a><br /><br />
          <strong>ASIN:</strong> [+ASIN+]<br />
          {{ITEMATTRIBUTES->AmazonData}}<br />
          {{EDITORIALREVIEWS->AmazonItemEditorialReview}} ... <a href="[+DETAILPAGEURL+]">[Read More]</a>


          Chunk: AmazonItemImage
          <img src="[+URL+]" />


          Chunk: AmazonData
          <strong>Title:</strong> [+TITLE+]


          Chunk: AmazonItemEditorialReview
           {{EDITORIALREVIEW->AmazonItemEditorial}}


          Chunk: AmazonItemEditorial
          <strong>Source:</strong> [+SOURCE+]<br />
          [+CONTENT+]


          The above works perfectly all as expected. The breakage happens if I try to include the price in its corresponding chunk like this:

          Chunk: AmazonData
          {{LISTPRICE->AmazonPrice}}<br />
          <strong>Title:</strong> [+TITLE+]


          Adding: {{LISTPRICE->AmazonPrice}} Breaks the code, I get the following error:

          Fatal error: Only variables can be passed by reference in ****/cms/assets/snippets/FeedX/classes/feedx.class.inc.php on line 237

          I confirmed accessing the feed directly on the browser the feed data, the variables are there at the right level so I am bugged out of my mind trying to figure out what I am doing wrong.

          I have attached my debug window on the template section.

          Any ideas?

          Jose
            • 24731 ☆ A M B ☆
            • 211 Posts
            ok, I decided to go with the template presets instead of the chunks and it worked fine. So I am guessing this is some kind of weird behavior when working with this snippet and chunks.

            Jose
              • 24731 ☆ A M B ☆
              • 211 Posts
              Hello again, I am having some issues with validating my code. In my templates I use
              but when they are output to the page, they come up as:



              Any idea why? and where/how I fix this?

              Jose

              UPDATE:
              Figured out after some hours that when I view selective source code using firefox it strips some tags, as the mentioned above. The actual source code is correct.
                • 24731 ☆ A M B ☆
                • 211 Posts
                Its me again, after spending a couple of days playing with feedx I finally achieve what I wanted.

                I managed to pull specific data and images from amazon using their API and using FeedX to process it.

                I’m getting the output I wanted, I am only having some difficulties with optimizing some things in the template but haven’t gotten around it yet, if anyone has any pointers I appreciate it.

                Lets say I am pulling CD’s and tracks for a given amazon CD.

                Here’s part of the output:

                <Tracks>
                −
                	<Disc Number="1">
                <Track Number="1">Heater - Samim</Track>
                <Track Number="2">Let Me Think About It - Ida Corr, Fedde Le Grand</Track>
                <Track Number="3">Let's Dance - Hi Tack</Track>
                <Track Number="4">Some Kinda Rush [Dub Mix] - Booty Luv</Track>
                <Track Number="5">Uninvited - Freemasons, Bailey Tzuke</Track>
                −
                	<Track Number="6">
                Love Has Gone - Dave Armstrong, , H-Boogie, , Redroche
                </Track>
                <Track Number="7">Suburban Knights  [Full Length - Hard-Fi, </Track>
                <Track Number="8">Waiting 4 [Hi_tack UK Club Mix] - Peter Gelderblom</Track>
                −
                	<Track Number="9">
                It's True - Salem Al Fakir, Axwell, , Sebastian Ingrosso
                </Track>
                <Track Number="10">Stop Me [Kissy Sell out Remix] - Mark Ronson</Track>
                −
                	<Track Number="11">
                Get Down [Calvin Harris Remix] - Groove Armada, Red Rat, Stush
                </Track>
                −
                	<Track Number="12">
                Creeps (Get on the Dancefloor) [Vandalism Vocal Mix] - Freaks
                </Track>
                <Track Number="13">Everybody Freakin' - Dirty South, , MYNC Project</Track>
                <Track Number="14">Magenta - Arias, Arno Cost, </Track>
                <Track Number="15">Echo - Luke Dzierzek</Track>
                −
                	<Track Number="16">
                Cream [Robbie Rivera's Juicy Ibiza Mix] - Federico Franchi
                </Track>
                −
                	<Track Number="17">
                Feel the Hard Rock (Up to No Good) [Heiko & Maiko Extended Vocal Mix] - Hardrox
                </Track>
                −
                	<Track Number="18">
                Kinda New (We All Live & Die) [Dirty South '07 Remix] - Spektrum
                </Track>
                −
                	<Track Number="19">
                Work It Out [Ruff N Tort Remix] - DJ Disciple, Dawn Tallman
                </Track>
                <Track Number="20">Whistler - Claude VonStroke</Track>
                </Disc>
                −
                	<Disc Number="2">
                −
                	<Track Number="1">
                With Every Hearbeat [Tong & Spoon Wonderland Remix] - Kleerup, , Robyn
                </Track>
                <Track Number="2">Don't Mess with My Man - Booty Luv</Track>
                <Track Number="3">I Want Your Soul - Armand Van Helden</Track>
                −
                	<Track Number="4">
                Ride the Storm [Carl Kennedy Original Club Mix] - Carl Kennedy, Roachford
                </Track>
                −
                	<Track Number="5">
                Young Folks [Punks Jump Up Special Disco Mix] - Victoria Bergsman, Peter Bjorn and John, 
                </Track>
                −
                	<Track Number="6">
                Get Down [Kenny Dope Original] - DJ Sneak, Kenny Dope, Terry Hunter, Tara McDonald, Todd Terry All Stars
                </Track>
                −
                	<Track Number="7">
                Everybody Movin' [Eddie Thoneick & Kurd Maverick Remix] - Bob Sinclar
                </Track>
                −
                	<Track Number="8">
                Rise Up [Harry 'Choo Choo' Romero Remix] - Yves Larock
                </Track>
                −
                	<Track Number="9">
                Lollipop [The Drill Remix] - Dada, Sandy Rivera, , Trix
                </Track>
                −
                	<Track Number="10">
                Do It Yourself [Ryan Murgatroyd Mix] - Uniting Nations
                </Track>
                −
                	<Track Number="11">
                I Thought That [Boris Dlugosch Remix] - The Migrants
                </Track>
                <Track Number="12">Take Off - Betty Boo, Jack Rokka/Betty Boo</Track>
                <Track Number="13">Evribadi [Fonzerelli Remix] - Mauro Picotto</Track>
                <Track Number="14">Guilty [Eddie Thoneick Remix] - De Souza, , Shena</Track>
                <Track Number="15">Spirit (Wanna Stay Here Forever) - Fonzerelli</Track>
                <Track Number="16">Real Love - Doc Da Funk</Track>
                −
                	<Track Number="17">
                Destination Calabria [Paul Emanuel Remix] - Alex Gaudino, , Crystal Waters
                </Track>
                <Track Number="18">Gotta Move [Fonzerelli Remix] - Turbofunk</Track>
                <Track Number="19">Sweet Harmony [Spoon & Talk Mix] - Liquid</Track>
                <Track Number="20">Back Once Again [Vandalism Remix] - DJ Jeroenski</Track>
                </Disc>
                −
                	<Disc Number="3">
                −
                	<Track Number="1">
                Shine /The Creeps (Get on the Dancefloor) [Acappella][Mix] - Booty Luv, , Freaks
                </Track>
                −
                	<Track Number="2">
                Let Me Think About It /The Creeps [Acappella] - Ida Corr, , Freaks, Fedde Le Grand
                </Track>
                −
                	<Track Number="3">
                Rapture /Love on My Mind [Acappella] - Freemasons, iiO, Amanda Wilson
                </Track>
                −
                	<Track Number="4">
                I Want Your Soul/Lollipop [Acappella] - Dada "The Golden Child", Sandy Rivera, , Trix, Armand Van Helden
                </Track>
                −
                	<Track Number="5">
                Heaven /Loneliness [Acappella] - DJ Sammy, Do All, Tomcraft, Yanou
                </Track>
                −
                	<Track Number="6">
                Whistler/Destination Calabria [Acappella] - Alex Gaudino, Claude VonStroke, Crystal Waters
                </Track>
                −
                	<Track Number="7">
                Put Your Hands Up for Detroit/Pump Up the Voume [USA 12" Mix] - Fedde "F.L.G." LeGrand, , , M/A/R/R/S
                </Track>
                −
                	<Track Number="8">
                Make a Move on Me /Electric Shock 2005 [Acappella] - Joey Negro, Soul Seekerz
                </Track>
                −
                	<Track Number="9">
                Geht's Noch?/Walking on the Moon [Acappella] - Delano & Crockett, Roman Fl
                </Track>
                −
                	<Track Number="10">
                Sex N' Money /Take It (Closing Time) [Acappella] - Lima, Tom Novy, Paul Oakenfold, Pharrell Williams
                </Track>
                −
                	<Track Number="11">
                NYC Beat/Feel the Hard Rock (Up to No Good) - Hardrox, Armand Van Helden
                </Track>
                <Track Number="12">My Life /Sex Shooter [Acappella] - Chan , Firefox</Track>
                −
                	<Track Number="13">
                Don't Mess with My Man /Billie Jean [Acappella] - Booty Luv, Sound Bluntz
                </Track>
                −
                	<Track Number="14">
                Time to Turn Around/(I Wanna Give You) Devotion [Acappella] - Denis The Menace, , Nomad, Jerry Ropero
                </Track>
                </Disc>
                </Tracks>


                As you can see, I am getting 3 CD’s each one with a number of tracks.

                I though that the template would recursively look inside and get each CD and each track by itself, and it is not doing it. Instead it is only giving me 1 CD, and the first track. It is not recursively looping through each item, so I’ve had to code some unnecessary things in my templates, like:

                [+DISC.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.NUMBER+]</p><ol>{{DISC(0)->tracks}}</ol>`+]
                [+DISC.1.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.1.NUMBER+]</p><ol>{{DISC(1,1)->tracks}}</ol>`+]
                [+DISC.2.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.2.NUMBER+]</p><ol>{{DISC(1,2)->tracks}}</ol>`+]
                [+DISC.3.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.3.NUMBER+]</p><ol>{{DISC(1,3)->tracks}}</ol>`+]
                [+DISC.4.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.4.NUMBER+]</p><ol>{{DISC(1,4)->tracks}}</ol>`+]
                [+DISC.5.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.5.NUMBER+]</p><ol>{{DISC(1,5)->tracks}}</ol>`+]
                [+DISC.6.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.6.NUMBER+]</p><ol>{{DISC(1,6)->tracks}}</ol>`+]
                [+DISC.7.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.7.NUMBER+]</p><ol>{{DISC(1,7)->tracks}}</ol>`+]
                [+DISC.8.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.8.NUMBER+]</p><ol>{{DISC(1,8)->tracks}}</ol>`+]
                [+DISC.9.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.9.NUMBER+]</p><ol>{{DISC(1,9)->tracks}}</ol>`+]
                [+DISC.10.NUMBER:ifnotempty=`<p><strong>Disc Number:</strong> [+DISC.10.NUMBER+]</p><ol>{{DISC(1,10)->tracks}}</ol>`+]


                [+TRACK:ifnotempty=`<li>[+TRACK+]</li>`+]
                [+TRACK.1:ifnotempty=`<li>[+TRACK.1+]</li>`+]
                [+TRACK.2:ifnotempty=`<li>[+TRACK.2+]</li>`+]
                [+TRACK.3:ifnotempty=`<li>[+TRACK.3+]</li>`+]
                [+TRACK.4:ifnotempty=`<li>[+TRACK.4+]</li>`+]
                [+TRACK.5:ifnotempty=`<li>[+TRACK.5+]</li>`+]
                [+TRACK.6:ifnotempty=`<li>[+TRACK.6+]</li>`+]
                [+TRACK.7:ifnotempty=`<li>[+TRACK.7+]</li>`+]
                [+TRACK.8:ifnotempty=`<li>[+TRACK.8+]</li>`+]
                [+TRACK.9:ifnotempty=`<li>[+TRACK.9+]</li>`+]
                [+TRACK.10:ifnotempty=`<li>[+TRACK.10+]</li>`+]
                [+TRACK.11:ifnotempty=`<li>[+TRACK.11+]</li>`+]
                [+TRACK.12:ifnotempty=`<li>[+TRACK.12+]</li>`+]
                [+TRACK.13:ifnotempty=`<li>[+TRACK.13+]</li>`+]
                [+TRACK.14:ifnotempty=`<li>[+TRACK.14+]</li>`+]
                [+TRACK.15:ifnotempty=`<li>[+TRACK.15+]</li>`+]
                [+TRACK.16:ifnotempty=`<li>[+TRACK.16+]</li>`+]
                [+TRACK.17:ifnotempty=`<li>[+TRACK.17+]</li>`+]
                [+TRACK.18:ifnotempty=`<li>[+TRACK.18+]</li>`+]
                [+TRACK.19:ifnotempty=`<li>[+TRACK.19+]</li>`+]
                [+TRACK.20:ifnotempty=`<li>[+TRACK.20+]</li>`+]
                [+TRACK.21:ifnotempty=`<li>[+TRACK.21+]</li>`+]
                [+TRACk.22:ifnotempty=`<li>[+TRACK.22+]</li>`+]
                [+TRACK.23:ifnotempty=`<li>[+TRACK.23+]</li>`+]
                [+TRACK.24:ifnotempty=`<li>[+TRACK.24+]</li>`+]
                [+TRACK.25:ifnotempty=`<li>[+TRACK.25+]</li>`+]
                [+TRACK.26:ifnotempty=`<li>[+TRACK.26+]</li>`+]
                [+TRACK.27:ifnotempty=`<li>[+TRACK.27+]</li>`+]
                [+TRACK.28:ifnotempty=`<li>[+TRACK.28+]</li>`+]
                [+TRACK.29:ifnotempty=`<li>[+TRACK.29+]</li>`+]


                So basically I’ve had to assume a maximum for each of the fields and just manually call each entry.

                I though and from examples I’ve seen that each template goes through the list of items in its level, but for some reason, my application is not doing this.

                Any pointer is greatly appreciated.

                Jose
                  • 25080
                  • 175 Posts
                  There is no documentation to install it ?
                    • 14050
                    • 788 Posts
                    The documentation to install it should be in the download itself. Essentially, you paste the code from the first post into a new snippet and upload the files from the attachment on the first post.
                      Jesse R.
                      Consider trying something new and extraordinary.
                      Illinois Wine

                      Have you considered donating to MODx lately?
                      Donate now. Every contribution helps.
                      • 25080
                      • 175 Posts
                      ok sorry ...