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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

dynamic menu in theme.php

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

Previous topic - Next topic

0 Members and 1 Guest 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