1
dizzymarkus
vlweather module question please

Hiya all

I am trying to get the links to appear with a target value of _blank or _parent, as it stands I click the links for detailed forcasts and radar etc it directs me away from my site to the weather pages. I want them to open on top of my XOOPS site instead and Im not understanding the proper code to do it. here is the code that gens the links in vlweather/index.php

-------------------------<code>--------------------------

$forecasturl = $bweather->get_forecast_url();
echo "<p><a href=\"" . $forecasturl . "\">Forecast for your location</a></p>";
echo "<p><a href=\"http://weather.noaa.gov/weather/current/" . $icao . ".html\">Detailed conditions for your location</a></p>";
echo "<p><a href=\"http://www.nws.noaa.gov/sat_tab.html\">US current satellite image</a></p>";
echo "<p><a href=\"http://www.nws.noaa.gov/radar_tab.html\">US current radar image</a></p>";
echo "<p><a href=\"http://www.nws.noaa.gov/\">US warnings and watches</a></p>";
echo "<p><a href=\"http://www.hpc.ncep.noaa.gov\">Various US weather maps</a></p>";

--------------------------END CODE-------------------------


Thanks greatly to anyone that may or can help. I'm sure I am missing something silly.

Markus

2
chippyash
Re: vlweather module question please
  • 2006/12/28 17:28

  • chippyash

  • Friend of XOOPS

  • Posts: 501

  • Since: 2004/1/29


<a href = "http://yourtargetsite.com" target="_blank">Your words</a>

3
dizzymarkus
Re: vlweather module question please

Thank you for the speedy response. I am aware of the html code for links and believe the problem is it interacts with the php. Here I will try to give a clearer example of what I am trying to do. Thank you----

The extra slash before and after are where I think I am messing it up, also the " . $icao . ".html " part. ------




red = extra slashs

blue= string in question




$forecasturl $bweather->get_forecast_url();
    echo 
"<p><a href=[b][color=CC0000][/color][/b]""[b][color=0000FF] . $forecasturl . [/color][/b]"[b][color=CC0000][/color][/b]">"[b][color=0000FF]. _VL_MN_FFYL . [/color][/b]"</a></p>";
    echo 
"<p><a href="http://weather.noaa.gov/weather/current/" . $icao . ".html">" . _VL_MN_DCFYL . "</a></p>";
    
echo "<p><a href="http://www.nws.noaa.gov/sat_tab.html">" . _VL_MN_USSAT . "</a></p>";
    
echo "<p><a href="http://www.nws.noaa.gov/radar_tab.html">" . _VL_MN_CUSRI . "</a></p>";
    
echo "<p><a href="http://www.nws.noaa.gov/">" . _VL_MN_CUSWW . "</a></p>";
    
echo "<p><a href="http://www.hpc.ncep.noaa.gov">" . _VL_MN_VUSWM . "</a></p>";

    
if (!empty($metar)) {

        echo 
"<p>" _VL_MN_RAWM " <code>"$bweather->get_metar() . "</code></p>n";

    }
    echo 
"<p><a href="http://tgftp.nws.noaa.gov/pub/data/observations/metar/decoded/" . $icao . ".TXT">" . _VL_MN_DECM . "</a></p>";
}

Can I just remove those lines and replace with a simple html link without screwing up the php code for the other links? if so could you give an example please ? thank you. ----->

<ahref="http://www.erh.noaa.gov/forecast/MapClick.php?CityName=Fulton&state=NY&site=BUF" target="_blank">"Your Local Forecast"</a>


even tho it says BUF at the end the -----CityName=Fulton&state=NY&site ------string pulls the right city up.

Now if I paste that link directly it gives me an error try it lol
It seems I have to go to buffalo then to fulton -- why?

Can I just get ride of all those links etc and just use all my own html links wthout messing the code up?


Thank you greatly for your time,
Markus

Login

Who's Online

244 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 244


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits