dynamic menu in theme.php dynamic menu in theme.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

dynamic menu in theme.php

Started by oliver, April 01, 2004, 02:14:26 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

oliver

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

Joachim Müller

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