Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Drop down topic select in themes
  • Posted: 16.10.2002, 08:55
     
    cultureJam
    rank:
    Freshman Freshman
    registered:
     July 2002
    Status:
    offline
    last visit:
    12.06.03
    Posts:
    11
    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

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula