Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:08

php_sitemap help


Poster: k6dyc
Dated: Tuesday September 8 2009 - 18:52:05 BST

I have tried to implement php_sitemap on my site which is entirely based on php. When I execute
Code:
http://deltaweathercam.com/extras/php_sitemap/index.php

I get the text output from the file but it does not generate any site map information. I have also tried moving the mm_dataminer.php file to my site root directory where my other Milonic files are located, and changed the calling file to sitemap.php, with edited location for the menu_data.js file. The same thing happens when I execute
Code:
http://deltaweathercam.com/sitemap.php

Any suggestions?

Re: php_sitemap help


Poster: Andy
Dated: Monday September 21 2009 - 16:42:34 BST

Have you checked for PHP errors - looks like they might be switched off and so you cannot see them

See if you can switch PHP errors on - that way we'll be able to see where the problem is.

Is the location to the menu_data.js file correct?

Re: php_sitemap help


Poster: k6dyc
Dated: Tuesday October 20 2009 - 17:40:59 BST

I turned on php error logging. Then, to make sure it is finding menu_data.js I intentionally misspelled it in sitemap.php. This generated a php error that function.fopen failed to open menuX_data.js, no such file in mm_dataminer.php on line 539. When I change it to the correct spelling it does not generate that error, suggesting it is indeed finding the menu_data.js file. However, nothing is generated, it just displays the text of the php file. No php errors are generated.

I am testing using sitemap.php from my web root, which is the location of mm_dataminer.php and menu_data.js. Sitemap.php is:

Code:
<html>   
<body>
This file needs to be executed under PHP from a webserver and will take the <br>
contents of any Milonic menu data file and output the results as either a <br>
NoScript menu or as a Sitemap
<?
//$menuDataFile[]="http://www.milonic.com/menu_data.php"; // Can execute a WWW File
$menuDataFile[]="C:/xampp/htdocs/deltaweathercam/menu_data.js"; // Or can execute a local file
//$menuDataFile[]="/main_menu_data.php"; // You can also add more than one file
//$menuDataFile[]="/menu_data.php";      // For main and sub menus if you need to

$useMenuStyles=false;
include("mm_dataminer.php");
echo "<PRE>".outputAsSiteMap($menuDataFile)."</PRE>"; // Can output as a Sitemap
//echo "<PRE>".outputAsNoScript($menuDataFile)."</PRE>"; // Or output as a NoScript Sitemap
?>
</body>
</html>


Any additional suggestions? Perhaps there is something in my menu_data.js file that is causing an issue?

Re: php_sitemap help


Poster: Andy
Dated: Tuesday October 20 2009 - 17:44:37 BST

Lets have a look at your data then.

You can either post it here or email it to me - my email addy is my forum name at milonic.com

Cheers,
Andy

Re: php_sitemap help


Poster: k6dyc
Dated: Tuesday October 20 2009 - 18:36:40 BST

I really appreciate your help and prompt response. No reason not to post it here that I can think of, here it is:

Code:
fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=350;
_menuOpenDelay=150;
_subOffsetTop=5;
_subOffsetLeft=-5;
buildAfterLoad=true;

with(ajaxStyle=new mm_style()){
borderwidth=0;
onborder="1px solid #000080";
align="left";
imagepadding=2;
fontfamily="Verdana, Tahoma, Arial";
fontsize="65%";
fontstyle="normal";
fontweight="normal";
offbgcolor="transparent";
oncolor="#ff0000";
offcolor="#336699";
padding=5;
separatorcolor='#000099';
separatorsize=1;
subimagepadding=5;
onsubimage="onrightboxed.gif";
subimage="rightboxed.gif";
pagebgcolor="#ffffee";
pagecolor="#009933";
pageborder='2px dashed #6699cc';}



with(subStyle=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
align="left";
image="xpblank.gif";
imagepadding=2;
fontsize="65%";
fontstyle="normal";
headerbgcolor="#c0c0c0";
headercolor="#000000";
offbgcolor="#E4F1FF";
offcolor="#000000";
onbgcolor="#ffffcc";
oncolor="#000000";
onborder="1px solid #000080";
offborder="1px solid #000080";
padding=5;
pagebgcolor="#ffffee";
pagecolor="#009933";
pageborder='2px dashed #6699cc';
pagesubimage="plusorange.gif";
separatorpadding=0;
separatorcolor="#2D729D";
separatorsize=0;
subimage="plus.gif";
subimagepadding=5;
onsubimage="plusorange.gif";
margin=5;
overfilter="Fade(duration=0.1);Alpha(opacity=100); Shadow(color=#7777777', Direction=135, Strength=3)";
}

with(imageStyle=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=3;
align="left";
fontfamily="Verdana, Tahoma, Arial";
fontsize="100%";
fontstyle="bold";
offbgcolor="#f3f7fc";
offcolor="#000000";
onbgcolor="#ffffcc";
oncolor="#000000";
offborder="1px solid #000080";
imagepadding=6;
}


   with(milonic=new menuname("mainmenu")){
   style=subStyle;
   aI("tooltip=DeltaWeatherCam main page. Thanks for Visiting!;image=home.gif;text=Home;url=index.php;");
   aI("image=video16a.gif;showmenu=Cam;text=Weather Cams;url=cam.php;pagematch=cam,wb11a,last3hours,wuvids,yesterday,c50;");
   aI("image=question16.gif;showmenu=forecasts;text=Weather Forecasts;pagematch=wxsim,nwsforecast,fcdisc;");
    aI("image=graph16.gif;showmenu=Weather;text=Weather Data;url=wdl.php;pagematch=wdl,wu-hist,rain,mml,warning,noaa1,searchhistory;");
   aI("image=radar16.gif;showmenu=Radar;text=Radar Images;url=localradar.php;pagematch=localradar,regionalradar,radarfaq;");
   aI("image=sat16.gif;showmenu=Sats;text=Satellite Images;url=regionalsat.php;pagematch=goes,regionalsat,nationalsat;");
   aI("image=graph16.gif;showmenu=Graphs;text=Weather Graphs;url=graphs;pagematch=graphs,wu-hist;");
   aI("image=map16.gif;showmenu=Maps;text=Weather Maps;url=nationaltemps.php;pagematch=nationaltemps,regionalfronts,nationalhumidity,nationalfronts,regionalsnow,jetstream,flightrules;");
   aI("image=bolt16.gif;showmenu=lightning;text=Lightning Detection;url=lightningpic.php;pagematch=lightning,strikestar;");
   aI("image=img16.gif;text=Image of the Day;url=noaaiod.php;");
   aI("image=book16.gif;showmenu=dwcinfo;text=DWC Information;pagematch=where,makehome,guestbook,contact,about,stats,credits;");
   aI("image=exclamation16.gif;showmenu=dwcstuff;text=DWC Freebies;pagematch=sidebar,weathermail,stickers,rss;");
   aI("image=book16.gif;showmenu=reference;text=Reference Materials;pagematch=uvsolar,calc,beaufort,comfort,hurricane;");
   aI("image=links16.gif;showmenu=Links;text=Links;");
   }

with(milonic=new menuname("cam")){
style=subStyle;
aI("tooltip=Main cam page with small views from both weather cams and links to other pages;image=video16a.gif;url=cam.php;text=Cam Main Page;");
aI("image=video16a.gif;url=c50main.php;text=Canon PTZ Cam Image & Links;showmenu=c50;");
aI("image=video16a.gif;url=wb11a.php;text=Toshiba Cam Image & Links;showmenu=campic;");
aI("tooltip=Time-lapse video is updated hourly at 45 minutes past the hour, and shows the last 3 hours of images from the Toshiba weather cam;image=video16a.gif;url=last3hours.php;text=Last 3 hrs Time-lapse;");
aI("tooltip=The all-day yeaterday time-lapse video is updated daily at about 1am and shows 24 hours of images from the Toshiba weather cam;image=video16a.gif;url=yesterday.php;text=Yesterday Time-lapse;");
aI("tooltip=Time-lapst video is available for any date after November 18, 2007;image=video16a.gif;url=wuvids1.php;text=Time-lapse historical;");
}

with(milonic=new menuname("c50")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=&nbsp;NEW! Full pan, tilt and zoom!&nbsp;<br />Page Preview;imagepadding=10;imagewidth=320;imageheight=240;image=toshibafixed/c50thumb.jpg;url=c50main.php;");
}

with(milonic=new menuname("campic")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=320;imageheight=240;image=toshibafixed/toshibathumb.jpg;url=wb11a.php;");
}




with(milonic=new menuname("forecasts")){
style=subStyle;
aI("tooltip=Forecast issued by the National Weather Service;image=question16.gif;url=nwsforecast.php;text=NWS Forecast ;");
aI("tooltip=Detailed forecast discussion issued by the National Weather Service;image=question16.gif;url=fcdisc.php;text=NWS Discussion ;");
aI("tooltip=A video display of the local current conditions, short-term outlook and 7 day forecast for Delta, CO from HamWeather, launches in a pop-up window;image=video16.gif;url=javascript:void(window.open('hamvidlocal.htm', 'hwvid', 'width=540,height=460, location=yes, menubar=no, status=no,toolbar=yes, scrollbars=yes, resizable=yes'));text=Video Forecast;");
}



with(milonic=new menuname("weather")){
style=subStyle;
aI("tooltip=A near real time display of the data as it is received from the weather sensor suite;image=mml16.gif;url=wdl.php;text=Interactive Live Display;");
aI("tooltip=Tabular data and graphs for all data sent to Weather Underground;image=map16.gif;url=wu-hist.php;text=Hstorical Data Page;");
aI("image=shower16.gif;url=rain.php;text=Local Rain Data;showmenu=rain;");
aI("image=mml16.gif;url=mml.php;text=Regional City Data;showmenu=mesonet;");
aI("tooltip=Weather warnings are issued by NOAA whenever hazardous weather conditions exist;image=exclamation16.gif;url=warning.php;text=Weather Alerts;");
aI("tooltip=A daily tabular history grouped by month showing high, low, mean and time of day for temp, wind, rain, pressure and humidity;image=book16.gif;url=noaa1.php;text=Tabular History;");
aI("tooltip=Search the history of all database records and display daily, monthly or yearly tabular or graphed data;image=finder16.gif;url=history.php;text=Search Historical Data;");
}


with(milonic=new menuname("graphs")){
style=subStyle;
aI("image=graph16.gif;url=graphs.php;text=24-96 Hour Graphs;showmenu=96");
aI("tooltip=Tabular data and graphs for all data sent to Weather Underground;image=graph16.gif;url=wu-hist.php;text=Hstorical Data Graphs;");
aI("image=graph16.gif;url=moregraphs.php;text=More advanced graphs;showmenu=moregraphs");
}



with(milonic=new menuname("rain")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;imagepadding=10;imagealign=center;imagewidth=100;imageheight=165;image=vws1740.jpg;url=rain.php;text=Partial Page Preview;itemwidth=130;");
}

with(milonic=new menuname("96")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;imagepadding=10;imagewidth=353;imageheight=151;image=vws742.jpg;url=graphs.php;text=Partial Page Preview;");
}

with(milonic=new menuname("moregraphs")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;imagepadding=10;imagewidth=265;imageheight=140;image=/wd/percentdir.gif;url=moregraphs.php;text=Partial Page Preview;");
}

with(milonic=new menuname("mesonet")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;imagepadding=10;imagewidth=246;imageheight=251;image=mesonet.jpg;url=mml.php;text=Partial Page Preview;");
}


with(milonic=new menuname("radar")){
style=subStyle;
aI("image=radar16.gif;url=localradar.php;text=Local Radar;showmenu=localradar;");
aI("image=radar16.gif;url=regionalradar.php;text=Regional Radar;showmenu=regionalradar;");
aI("image=radar16.gif;url=radarfaq.php;text=General Radar FAQ;");
}


with(milonic=new menuname("sats")){
style=subStyle;
aI("image=sat16.gif;url=goes.php;text=GOES Interactive Satellite;showmenu=goes;");
aI("image=sat16.gif;url=regionalsat.php;text=Regional Satellite;showmenu=regionalsat;");
aI("image=sat16.gif;url=nationalsat.php;text=National Satellite;showmenu=nationalsat;");
}


with(milonic=new menuname("localradar")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=`http://radblast-aa.wunderground.com/cgi-bin/radar/WUNIDS_map?station=GJX&brand=wui&num=6&delay=15&type=N0R&frame=0&scale=0.257&noclutter=0&t=1195341290&lat=0&lon=0&label=you&showstorms=0&map.x=400&map.y=240&centerx=345&centery=91&transx=-55&transy=-149&showlabels=1&severe=0&rainsnow=0&lightning=0`;url=localradar.php;");
}

with(milonic=new menuname("regionalradar")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=`http://icons.wunderground.com/data/640x480/radarb2_anim.gif`;url=regionalradar.php;");
}

with(milonic=new menuname("goes")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=`http://weather.gov/satellite_images/national.jpg`;url=goes.php;");
}

with(milonic=new menuname("regionalsat")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=http://maps.wunderground.com/data/640x480/sw_ir_anim.gif;url=regionalsat.php;");
}


with(milonic=new menuname("nationalsat")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=http://maps.wunderground.com/data/640x480/us_ir_anim.gif;url=nationalsat.php;");
}


with(milonic=new menuname("maps")){
style=subStyle;
openstyle="left";
aI("image=temp16.gif;url=nationaltemps.php;text=National Temperatures;showmenu=nationaltemps;");
aI("image=front16.gif;url=regionalfronts.php;text=Regional Fronts;showmenu=regionalfronts;");
aI("image=front16.gif;url=nationalfronts.php;text=National Fronts;showmenu=nationalfronts;");
aI("image=hum16.gif;url=nationalhumidity.php;text=National Humidity;showmenu=nationalhumidity;");
aI("image=snow16.gif;url=regionalsnow.php;text=Regional Snow Depth;showmenu=regionalsnow;");
aI("image=jet16.gif;url=jetstream.php;text=Jetstream;showmenu=jetstream;");
aI("image=flight16.gif;url=flightrules.php;text=Flight Rules;showmenu=flightrules;");
}


with(milonic=new menuname("regionalfronts")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=http://maps.wunderground.com/data/images/sw_sf.gif;url=regionalfronts.php;");
}


with(milonic=new menuname("nationalfronts")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=http://maps.wunderground.com/data/images/us_sf.gif;url=nationalfronts.php;");
}


with(milonic=new menuname("nationaltemps")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=`http://maps.wunderground.com/data/images/us_st.gif`;url=nationaltemps.php;");
}

with(milonic=new menuname("nationalhumidity")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=`http://maps.wunderground.com/data/images/us_rh.gif`;url=nationalhumidity.php;");
}

with(milonic=new menuname("regionalsnow")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=`http://maps.wunderground.com/data/images/sw_snow.gif`;url=regionalsno.phpw;");
}

with(milonic=new menuname("jetstream")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=`http://maps.wunderground.com/data/images/us_jt.gif`;url=jetstream.php;");
}

with(milonic=new menuname("flightrules")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=240;imageheight=180;image=`http://maps.wunderground.com/data/images/us_flight.gif`;url=flightrules.php;");
}


with(milonic=new menuname("lightning")){
style=subStyle;
aI("tooltip=Displays a an image of local (within 30 miles) strike data, updated every minute;image=bolt16.gif;url=lightningpic.php;text=30 mi. Image Strike Map;");
aI("tooltip=Watch 60 second time mapping of lightning strikes in a 180 or 375 mile range, watch as storm cells move into the area;image=bolt16.gif;url=lightning.php;text=180/375 mi. Image Strike Map;");
aI("tooltip=Watch a time-lapse lightning strike display of the last 60 minutes activity, tracking storms as they develop in intensity;image=bolt16.gif;url=lightningloop.php;text=Time Lapse Loop;");
aI("tooltip=TRAC report is a text presentation of detailed information about each storm cell that the software is currently tracking;image=bolt16.gif;url=lightningtrac.php;text=Current Storms Report;");
}


with(milonic=new menuname("dwcinfo")){
style=subStyle;
aI("image=question16.gif;url=where.php;text=Where is DeltaWeatherCam?;");
aI("image=home.gif;url=makehome.php;text=Make DWC Your Home Page ;");
aI("image=mml16.gif;url=guestbook.php;text=Sign the Guestbook;");
aI("image=envelope16.gif;url=contact.php;text=Contact Us at DWC;");
aI("image=lightbulb16.gif;url=about.php;text=About This Site;");
aI("image=graph16.gif;url=stats.php;text=Web Site Stats;showmenu=stats;");
aI("tooltip=Many parts of this website would not exist if it were not for the assistance, scripts, ideas and support from a number of companies and individuals;image=mml16.gif;url=credits.php;text=Credits;");
}


with(milonic=new menuname("dwcstuff")){
style=subStyle;
aI("tooltip=If you run Windows Vista you can add a Windows Sidebar applet to your desktop that displays the DeltaWeatherCam current conditions;image=mml16.gif;url=sidebar.php;text=DWC Vista Sidebar;");
aI("tooltip=Get a daily email of our forecast, conditions or weather cam snapshots;image=envelope16.gif;url=weathermail.php;text=Subscribe To WeatherMail;");
aI("image=temp16.gif;url=stickers.php;text=Website Weather Stickers;showmenu=sticker;");
aI("image=feed-icon-16x16.gif;text=RSS Information;showmenu=rss;");
aI("image=babelfish.gif;text=Translate Current Page;showmenu=babelfish;");
aI("image=lightbulb16.gif;url=up.php;text=ɹoʇɐɹǝuǝƃ ʇxǝʇ uʍop ǝpısdn;");
}


with(milonic=new menuname("reference")){
style=subStyle;
aI("tooltip=Be Sun Safe!  Learn the relationship between the UV Index and sunburn;image=book16.gif;url=uvsolar.php;text=UV Index Info;");
aI("tooltip=This handy page not only provides temp, moisture, pressure and wind conversions, but it also contains formulas for weather calculations and explains how they are related;image=calc16.gif;url=calc.php;text=Weather Calculator;");
aI("tooltip=Ever wonder what the reference to Bft. means on our pages? Get a full explanation of the Beaufort wind speed scale;image=book16.gif;url=beaufort.php;text=Beaufort Wind Scale;");
aI("tooltip=What exactly does it mean to be 'Uncomfortably Cold' or 'Warm'? Find out!;image=book16.gif;url=comfort.php;text=Comfort Scale;");
aI("tooltip=Some general hurricane information and links, including the NWS alert published for Hurricane Katrina in August 2005;image=storm16.gif;url=hurricane.php;text=Hurricane Info;");
}



with(milonic=new menuname("links")){
style=subStyle;
aI("image=road16.gif;url=javascript:void(window.open('http://www.cotrip.org/atis/web.Travel_ConditionsMarshal?mode=html&Travel_Conditions=0', 'roads', 'width=800,height=800, location=yes, menubar=no, status=no,toolbar=no, scrollbars=yes, resizable=yes'));text=Colorado Road Conditions;");
aI("image=video16.gif;url=hamvideo.php;text=Video Weather Reports;");
aI("image=finder16.gif;url=http://usaweatherfinder.com;target=_blank;text=USA Weather Station Finder;");
}



var URL = location.href;
with(milonic=new menuname("babelfish")){
style=imageStyle;
top="offset=-10px";
left="offset=-5px";
aI("text=`<Map name=translate_eng ><AREA COORDS=100,130,125,146 SHAPE=rect href='http://babelfish.altavista.com/babelfish/tr?doit=done&url="+URL+"&lp=en_es' title='Chinese (trad)' target=translate><AREA COORDS=70,130,93,146 SHAPE=rect href='http://babelfish.altavista.com/babelfish/tr?doit=done&url="+URL+"&lp=en_pt' title='Portuguese' target=translate><AREA COORDS=39,130,65,146 SHAPE=rect href='http://babelfish.altavista.com/babelfish/tr?doit=done&url="+URL+"&lp=en_it' title='Italian' target=translate><AREA COORDS=8,130,31,146 SHAPE=rect href='http://babelfish.altavista.com/babelfish/tr?doit=done&url="+URL+"&lp=en_fr' title='French' target=translate><AREA COORDS=99,110,123,126 SHAPE=rect href='http://babelfish.altavista.com/babelfish/tr?doit=done&url="+URL+"&lp=en_ko' title='Korean' target=translate><AREA COORDS=70,110,95,126 SHAPE=rect href='http://babelfish.altavista.com/babelfish/tr?doit=done&url="+URL+"&lp=en_ja' title='Japanese' target=translate><AREA COORDS=38,110,65,126 SHAPE=rect href='http://babelfish.altavista.com/babelfish/tr?doit=done&url="+URL+"&lp=en_de' title='German' target=translate><AREA COORDS=5,110,32,126 SHAPE=rect href='http://babelfish.altavista.com/babelfish/tr?doit=done&url="+URL+"&lp=en_es' title='Spanish' target=translate></Map><img src=trans_en.gif width=131 height=156 usemap=#translate_eng border=0>`;type=html");
}




with(milonic=new menuname("sticker")){
style=imageStyle;
aI("fontweight=bold;align=center;imageposition=bottom;text=Page Preview;imagepadding=10;imagewidth=252;imageheight=92;image=livesticker.jpg;url=stickers.php;");
}


with(milonic=new menuname("rss")){
style=subStyle;
aI("url=rss.php;text=What is RSS;");
aI("url=rss2html1.php;text=RSS Live Data Sample;");
aI("url=wwnet.xml;text=RSS Feed;target=_blank;");
}

with(milonic=new menuname("stats")){
style=subStyle;
aI("image=graph16.gif;url=stats.php;text=2009 Web Site Stats;");
aI("image=graph16.gif;url=stats2008.php;text=2008 Web Site Stats;");
aI("image=graph16.gif;url=stats2007.php;text=2007 Web Site Stats;");
}

Re: php_sitemap help


Poster: Andy
Dated: Tuesday October 20 2009 - 22:06:32 BST

There doesn't appear to be a main menu (one with alwaysvisible=1;) in your data file.

How does the menu operate on the website?

In essence, the PHP Sitemap will generate HTML but it needs a main menu to get started.

Re: php_sitemap help


Poster: k6dyc
Dated: Tuesday October 20 2009 - 22:13:26 BST

My page template for every page has:


Code:
<!-- Milonic menu --><br />
  <script type="text/javascript">
   with(milonic=new menuname("blockmenu")){
   alwaysvisible=1;
   position="relative";
   orientation="vertical";
   style=ajaxStyle;
aI("tooltip=DeltaWeatherCam main page. Thanks for Visiting!;image=../home.gif;text=home/…ô…Øo…•;url=index.php;");
aI("image=../video16a.gif;showmenu=cam;text=Weather Cams;url=cam.php;pagematch=cam,wb11a,last3hours,wuvids,yesterday,c50;");
aI("image=../question16.gif;showmenu=forecasts;text=Weather Forecasts;pagematch=wxsim,nwsforecast,fcdisc;");
aI("image=../graph16.gif;showmenu=weather;text=Weather Data;url=wdl.php;pagematch=wdl,wu-hist,rain,mml,warning,noaa1,searchhistory;");
aI("image=../radar16.gif;showmenu=radar;text=Radar Images;url=localradar.php;pagematch=localradar,regionalradar,radarfaq;");
aI("image=../sat16.gif;showmenu=sats;text=Satellite Images;url=regionalsat.php;pagematch=goes,regionalsat,nationalsat;");
aI("image=../graph16.gif;showmenu=graphs;text=Weather Graphs;url=graphs.php;pagematch=graphs,wu-hist;");
aI("image=../map16.gif;showmenu=maps;text=Weather Maps;url=nationaltemps.php;pagematch=nationaltemps,regionalfronts,nationalhumidity,nationalfronts,regionalsnow,jetstream,flightrules;");
aI("image=../bolt16.gif;showmenu=lightning;text=Lightning Detection;url=lightningpic.php;pagematch=lightning,strikestar;");
aI("image=../img16.jpg;text=Image of the Day;url=noaaiod.php;");
aI("image=../sun16.png;text=Sun Clock & more!;url=sunclock.php;");
aI("image=../book16.gif;showmenu=dwcinfo;text=DWC Information;pagematch=where,makehome,guestbook,contact,about,stats,credits;");
aI("image=../exclamation16.gif;showmenu=dwcstuff;text=DWC Freebies;pagematch=sidebar,weathermail,stickers,rss;");
aI("image=../book16.gif;showmenu=reference;text=Reference Materials;pagematch=uvsolar,calc,beaufort,comfort,hurricane;");
aI("image=../links16.gif;showmenu=links;text=Links;");
}
drawMenus();
</script> 


I guess I need to add this to my main file eh?

Re: php_sitemap help


Poster: Andy
Dated: Tuesday October 20 2009 - 22:16:38 BST

In order to get sitemap.php to work I think you do need to add a main menu.

Are you looking at getting SEO friendly links working?

Version 6 of the menu is nearing release and is fully SEO friendly based around unordered lists.

Re: php_sitemap help


Poster: k6dyc
Dated: Wednesday October 21 2009 - 1:01:44 BST

SEO friendly is one of two goals, the other is having a sitemap page.

Re: php_sitemap help


Poster: k6dyc
Dated: Wednesday October 21 2009 - 4:17:58 BST

After moving my main menu from my index.php page to my menudata.js file and setting it as alwaysvisible it worked fine. I had previously located it on each page for compatibility with a CMS system which I have since removed.

Thanks for the help. :D