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

---------------------------------------------------

$forecasturl = $bweather->get_forecast_url();
echo "

Forecast for your location

";
echo "

Detailed conditions for your location

";
echo "

US current satellite image

";
echo "

US current radar image

";
echo "

US warnings and watches

";
echo "

Various US weather maps

";

--------------------------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



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 
"

$forecasturl . [/color][/b]"[b][color=CC0000][/color][/b]">"[b][color=0000FF]. _VL_MN_FFYL . [/color][/b]"

"
;
    echo 
"

http://weather.noaa.gov/weather/current/" . $icao . ".html">" . _VL_MN_DCFYL . "

";
    
echo "

http://www.nws.noaa.gov/sat_tab.html">" . _VL_MN_USSAT . "

";
    
echo "

http://www.nws.noaa.gov/radar_tab.html">" . _VL_MN_CUSRI . "

";
    
echo "

http://www.nws.noaa.gov/">" . _VL_MN_CUSWW . "

";
    
echo "

http://www.hpc.ncep.noaa.gov">" . _VL_MN_VUSWM . "

";

    
if (!empty($metar)) {

        echo 
"

_VL_MN_RAWM "$bweather->get_metar() . "

n"
;

    }
    echo 
"

http://tgftp.nws.noaa.gov/pub/data/observations/metar/decoded/" . $icao . ".TXT">" . _VL_MN_DECM . "

";
}

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. ----->

"Your Local Forecast"


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

364 user(s) are online (279 user(s) are browsing Support Forums)


Members: 0


Guests: 364


more...

Donat-O-Meter

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

Latest GitHub Commits