• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[8wayRun.Com] XenPorta (Portal)

Status
Not open for further replies.
weather.webp
Here is mine from Yahoo! http://weather.yahoo.com/badge/config/#getcode

Code:
<?xml version="1.0" encoding="utf-8"?>
<module>
  <module_name>PortalWeather</module_name>
  <module_cache>now</module_cache>
  <module_settings/>
  <module_template><![CDATA[<div class="messageText ugc baseHtml">
        <div class="secondaryContent">
            <center>
        </div></center>
        <div><h3></h3><center>

<!-- Yahoo! Weather Badge -->

<iframe
    allowtransparency="true"
    marginwidth="0"
    marginheight="0"
    hspace="0"
    vspace="0"
    frameborder="0"
    scrolling="no"
    src="http://weather.yahoo.com/badge/?id=12784280&u=f&t=default&l=vertical"
    height="255px"
    width="186px">
</iframe>

<noscript>
    <a href="http://weather.yahoo.com/united-states/illinois/60626-12784280/">60626 Weather</a> from <a href="http://weather.yahoo.com">Yahoo! Weather</a>
</noscript>

<!-- Yahoo! Weather Badge -->

        <BR><BR></center></div>
        </div>
    ]]></module_template>
</module>
 
HELP! My oh my oh my, I did a boo boo somewhere but can't figure it out. :(

Trying doing it like this


Yes
this is what I did for all my html blocks

HTML:
<?xml version="1.0" encoding="utf-8"?>
<module>
  <module_name>blahblah</module_name>
  <module_cache>+7 day</module_cache>
  <module_settings/>
  <module_template><![CDATA[<xen:include template="Templatename" />]]></module_template>
</module>

Than just make the blank template and add your code
 
Trying doing it like this
Ok couple of questions, maybe more. :p
  1. What is the +7 day for in this line - <module_cache>+7 day</module_cache>
  2. Does the name of the template go in this line? <module_name>blahblah</module_name>
  3. Will the module name be on it? Like Recent News or Facebook, etc?
 
Oh yours looks nicer. I think I'll go over there.
Thanks

Ok so.... did you create a module and a template like Vodkaholic did?

I just imported the XML as a module addon. It gets converted to a template when you import it.
 
earlier post I provided example of Portal Weather addon... save it as XML. your specific weather badge code goes where indicated
 
XML file altered to show where to place your unique weather badge code

Code:
<?xml version="1.0" encoding="utf-8"?>
<module>
  <module_name>PortalWeather</module_name>
  <module_cache>now</module_cache>
  <module_settings/>
  <module_template><![CDATA[<div class="messageText ugc baseHtml">
        <div class="secondaryContent">
            <center>
        </div></center>
        <div><h3></h3><center>

<!-- Yahoo! Weather Badge -->

YOUR WEATHER BADGE CODE GOES HERE

<!-- Yahoo! Weather Badge -->

        <BR><BR></center></div>
        </div>
    ]]></module_template>
</module>
 
earlier post I provided example of Portal Weather addon... save it as XML. your specific weather badge code goes where indicated
ahha! I didn't realize that was to go into a xml.
Then I just replace your code with mine.... in the xml? or in the template that it generates?
 
in the XML, I provided another sample showing where to put it
I just saw it. Thanks so much!

I'm sorry, I know I sound really dumb, but this coding stuff is completely over my head.
I'm getting old. :(

Thank you too, Vodkaholic.
 
Status
Not open for further replies.
Back
Top Bottom