coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: oliver on April 01, 2004, 02:14:26 PM

Title: dynamic menu in theme.php
Post by: oliver on April 01, 2004, 02:14:26 PM
I'd like to add a simple dynamic menu under $template_main_menu

i've created simple array code and it's works but I can not seem to position it in to the menu area (it alway's displays at the top of the page)


$db = mysql_connect("localhost", "root");                
          mysql_select_db("database",$db);
          $result = mysql_query("SELECT * FROM test",$db);
          $myrow = mysql_fetch_array($result) {
                do {
                    printf("<a href=\"home.php?cod=%s\">%s \n", $myrow
["cod"], $myrow["address"]);
                     } while ($myrow = mysql_fetch_array($result));


have searched this forum and haven't found anything directed at this!

I run three different sites with cpg. definately the best gallery arround!

thanks in advance,

Olly
Title: dynamic menu in theme.php
Post by: Joachim Müller on April 02, 2004, 07:22:48 AM
this is not exactly coppermine stuff, since popsitioning of elements on a page is an html issue. Usually, you'll want to work with layers (position:relative recomended). Take a look at the themes that come with coppermine and have a hidden/on mouse over menu, like igames.

GauGau