We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    Please post your FeedX call(s), your templates, and a link to your site with the debug console turned on in the FeedX support thread and I we will see what we can figure out.
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 19257
      • 141 Posts
      There’s something in the weather snippet that’s making my site not validate. It’s an <img> tag that is somehow embedded into the source code. I have no idea how to edit the <img> tag so that my site validates. Here’s the source code from my page.

      <p>Temp: 75°F</p>
      <p>Wind: East @ 9mph<img src="http://server.as5000.com/AS5000/adserver/image?ID=WUND-00049&C=0" width="0" height="0" border="0"/></p>
      <p>Conditions: Partly Cloudy</p>
      <p>Pressure: 30.07in (Steady)</p>
      <p>Humidity: 60%</p>
      <p>Sunrise: </p>
      <p>Sunset: </p>


      It’s the <img> tag right after the "Wind" part. How can I get to that? I’ve looked in the snippet code and the chunk but I can’t find it. huh
        • 36592
        • 970 Posts
        I think the IMG tag was in the responce of Wunderground.com.
        (It’s not generated in the snippet.)
          • 19257
          • 141 Posts
          I’m using weather.com, is there any way I can prevent the tag from appearing?
            • 36592
            • 970 Posts
            Quote from: miamisurf at Apr 28, 2008, 03:20 AM

            I’m using weather.com, is there any way I can prevent the tag from appearing?
            But I think the HTML code you wrote in your previous comment is from Wunderground.com.
            What is your snippet call ?
            Does that include &provider parameter ?
              • 14050
              • 788 Posts
              As tkfm noted, this has to do something with your call or the template. The code itself does not output any html formatting whatsoever. Please post your snippet call and and the code you are using with the placeholders.

              Essentially, please post something like this:

              [!weather? &zipcode=`90001` &units=`metric` &offSet=`2` &nightTime=`19`!]
              <div>
                <p>Temp: [+wxTemp+]</p>
                <p>Wind: [+wxWindDir+] @ [+wxWindSpeed+]</p>
                <p>Conditions: [+wxConditions+]</p>
                <p>Pressure: [+wxPressure+]</p>
                <p>Humidity: [+wxHumidity+]</p>
                <img src="[+wxIcon+]"><br />
              </div>
              
                Jesse R.
                Consider trying something new and extraordinary.
                Illinois Wine

                Have you considered donating to MODx lately?
                Donate now. Every contribution helps.
                • 19257
                • 141 Posts
                I’m using this chunk on my template

                [[WeatherX]]


                to call the following:

                [!weather?&zipcode=`33126`&units=`english`&provider=`weather.com`&wxDate&clock=`12`!]
                <div>
                  <p>Temp: [+wxTemp+]</p>
                  <p>Wind: [+wxWindDir+] @ [+wxWindSpeed+]</p>
                  <p>Conditions: [+wxConditions+]</p>
                  <p>Pressure: [+wxPressure+]</p>
                  <p>Humidity: [+wxHumidity+]</p>
                  <p>Sunrise: [+wxSunr+]</p>
                  <p>Sunset: [+wxSuns+]</p>
                  <img src="[+wxIcon+]" alt="miami weather"/><br />
                </div>


                  • 14050
                  • 788 Posts
                  Quote from: miamisurf at Apr 30, 2008, 07:06 PM

                  I’m using this chunk on my template

                  [[WeatherX]]



                  This is actually a default snippet call.  If you want to use a chunk called WeatherX, you need to use {{WeatherX}}.  That chunk should contain this modified call (assuming you named your snippet "weather"):

                  [!weather? &zipcode=`33126` &provider=`weather.com`!]
                  <div>
                    <p>Temp: [+wxTemp+]</p>
                    <p>Wind: [+wxWindDir+] @ [+wxWindSpeed+]</p>
                    <p>Conditions: [+wxConditions+]</p>
                    <p>Pressure: [+wxPressure+]</p>
                    <p>Humidity: [+wxHumidity+]</p>
                    <p>Sunrise: [+wxSunr+]</p>
                    <p>Sunset: [+wxSuns+]</p>
                    <img src="[+wxIcon+]" alt="miami weather"/><br />
                  </div>



                  That should do the trick.  If not, please either post a link to your page here or PM me it so I can look at the source.  If I can’t figure it out from there, you will have to PM me login details for your site to look around and see what is causing the problems.

                    Jesse R.
                    Consider trying something new and extraordinary.
                    Illinois Wine

                    Have you considered donating to MODx lately?
                    Donate now. Every contribution helps.
                    • 19257
                    • 141 Posts
                    You’re right, it worked. I had a mix-up with the names of the chunk, the snippet and using [[ ]] instead of {{ }}.

                    My site now validates.

                    Thanks alot! laugh