So, in the deviantNuke theme for
PN .64, there's a drop down menu of topics. This would be very, very useful on my site, but the code doesn't seem to work in
PN .721. There was a link to a code snippet/tutorial that would fix it a few months ago, but that site has gone offline. Ah well-- at least that proves it can be done!
Here's what the code looks like now:
echo "<form action="\"search.php\"" method="\"get\"">\n"
."<font class="\"formtexts\"">topics: \n";
/** $toplist = mysql_query("select topicid, topictext from $prefix"._TOPICS." order by topictext");**/
echo "<select class="\"formtexts\"" name="\"topic\"onChange='submit()'">\n"
."<option value="\"\"">"._ALLTOPICS."</option>\n";
/** while(list($topicid, $topics) = mysql_fetch_row($toplist)) {
if ($topicid==$topic) { $sel = "selected "; }
echo "<option value="\"$topicid\"">$topics</option>\n";
$sel = "";
}**/
echo "</select></form>\n"
What needs to change to make it functional now? Will I need to include stuff in the header section? How about adding a "submit" button so Opera users (like me!) can use it?
Thanks,
Matthew