Advanced search  

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]

Pages: [1]   Go Down

Author Topic: dynamic menu in theme.php  (Read 3114 times)

0 Members and 1 Guest are viewing this topic.

oliver

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
dynamic menu in theme.php
« 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)

Code: [Select]

$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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
dynamic menu in theme.php
« Reply #1 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
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 14 queries.