TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 02:01:00 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 190
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 172
  • Total: 172

Moon Phase Block

Started by WSA, December 07, 2005, 06:31:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WSA

Here is a pretty cool moon phase display.  This is pretty important in the fishing world as the moon has quite a big effect on when the fish will bite.

It's an RSS feed so it's easy to do with minimal knowledge.

Just copy and paste this into your RSS box.

http://www.almanac.com/rss/moon.php

I believe this is the XML code also.

<rdf:RDF>
-
<channel rdf:about="http://www.almanac.com/">
<description>Current Moon Phase</description>
<link>http://www.almanac.com/astronomy/moon/</link>
<title>Current Moon Phase from The Old Farmer's Almanac</title>
<dc:date>2005-12-07T12:00:04Z</dc:date>
-
<items>
-
<rdf:Seq>
<rdf:li rdf:resource="http://www.almanac.com/astronomy/moon/"/>
</rdf:Seq>
</items>
</channel>
-
<item rdf:about="http://www.almanac.com/astronomy/moon/">
-
<description>
<img src="http://www.almanac.com/rss/moon/20051207.jpg" alt="Current Moon Phase for Wednesday, December  7, 2005"><P>From <a href="http://www.almanac.com/">The Old Farmer's Almanac</a>.</P>
</description>
<link>http://www.almanac.com/astronomy/moon/</link>
<title>Moon Phase for Wednesday, December  7, 2005</title>
<dc:date>2005-12-07T12:00:04Z</dc:date>
</item>
</rdf:RDF>

Porky


sno wolf

Me and my RSS troubles.  I'd love to have this but...  when i make an RSS box with TP  there is no where to put xml code or anything...  it won't hold it all...  only so many characters.  Any ideas what I'm doing wrong?

all i get is a feild for the title...  TITLE NAME
then a field for RSS feed:    -no content-   <~  trying to enter any code in there doesn't work because it doesn't all fit...  just a first few characters.

and i get a

minutes to keep cached content...   which is blank but i don't know what to put in there anyway .   

any ideas how to get that RSS to work?


PowerPyx

O_o

as WSA said... just copy this : http://www.almanac.com/rss/moon.php

in the rss field... nothin' else to do.. ;)


Nokonium


sno wolf

Im such a goob.. I was tryin to enter that whole block of code!  Oh, well I tried it with other RSS feeds too cause they really don't have a working link like that you can just put in.  So what RSS boxes I do have are all java /script boxes ...  with all that xml stuff in there...  sort of its been converted to java script with a rss builder posted on this site somewhere.   Thanks a bunch

technodragon73

you can get the same effect with a javascript/html block and insert this code into it:


<!-- // Begin Current Moon Phase HTML (c) CalculatorCat.com // --><script language="JavaScript" type="text/javascript"> var ccm_cfg = { n:'1', pof:'1', dt:'1', tc:'#ffffff', pth:'' } </script><table width="140" bgcolor="#000000"  style="background-color:bgcolor="#000000" " cellpadding="0" cellspacing="3" border="0"><tr><td align="center" style="border: 1px solid #AFB2D8;color:#ffffff;padding-top:5px;padding-bottom:5px;" bgcolor="#000000"><font face="arial,verdana,sans-serif" size="1" color="#ffffff"><span style="font-size:10px;font-family:arial,verdana,sans-serif;color:#ffffff"><img src="http://www.moonmodule.com/cs/i/t_current_moon_s.gif" width="105" height="21" border="0" /><br /><script language="JavaScript" type="text/javascript" src="http://www.moonmodule.com/cs/ccm_b.js"></script><script language="JavaScript" type="text/javascript" src="http://www.moonmodule.com/cs/ccm_v.js"></script><span style="display:block;padding-top:5px"><a href="http://www.calculatorcat.com/moon_phases/moon_phases.phtml" target="cc_moon_ph" style="font-size:10px;font-family:arial,verdana,sans-serif;color:#777777;text-decoration:underline;background:#000000;border:none;">lunar phases</a></span></span></font></td></tr></table><!-- // end moon phase HTML // -->

Gourgi

it really works!
just selext titles only inside the RSS block
thanks for sharing

vanguard


Shadow

This code is awesome all that but One thing I don't like about it....It's take up the whole side..lol