Nevermind - I found the problem. Thank you anyway. -Josh
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Miller Sent: Monday, September 10, 2007 8:08 PM To: pmwiki-users@pmichaud.com Subject: [pmwiki-users] Reading text from a wiki page Hello! I used the code below to pull a listing of categories off of a page named Site.Categories that I was using to put a list of available categories into a dropdown box. Somewhere in my upgrade from 2.1 to 2.2. this code stopped working. Anyone have any idea why this is not working...? I'm stumped... --------------------------------------------- SDV($CatFile, "Site.Categories"); SDV($CatLineDelimiter, "**"); SDV($CatRemoveItemize, false); function f_insertcategories($opts) { global $CatFile; global $CatLineDelimiter; global $CatRemoveItemize; $defaults = array( 'page'=>'' ); $args = array_merge($defaults, ParseArgs($opts)); $page = $args['page']; if ($page == '') { $page = $CatFile; } $contents = ReadPage($page); $arrCats = $contents[text]; $arrCats = str_replace($CatLineDelimiter, "<br />", $arrCats); if ($CatRemoveItemize) { $arrCats = explode("*", $arrCats); $arrCats[0] = substr($arrCats[0], 1, strlen($arrCats[0])-1); } else { $arrCats = explode("\n", $arrCats); } if (isset($arrCats)) { $optionstring=""; foreach($arrCats as $val){ $optionstring=$optionstring."<option value=$val> $val</option>"; } return $optionstring; } else { return ""; } } --------------------------------------------- Thanks for your time. Josh Miller Gouverneur _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users