Hello,
I still trying to get my old dynamic category menu to work.
A working demo you can see here:
http://www.webgemaelde.de/kunst/category/2
The problem is, that know I don't like this form of mod_rewrite, because I have a lot of problems with my relativ paths because of the new sub-directory.
I tried a lot, but I can't change this mod to get it work with normal indexu, perhaps a php-profi will see the error faster
At the bottom you find the php-code of dmenu. It will form with an own template, that will call the va <%category%>
.
Hope you can help
Greetings
Frank
<?php
function ShowDMenu() {
$catimg = 'N';
$cat_table_width = "50"; // table width
$cat_cellspacing = "0"; // table cellspacing
$cat_font_face = "Arial"; // category font face
$cat_font_size = "2"; // category font color
$cat_link_style = "font-size: 11px; color: #0033cc;"; // category link style
$subcat_font_face = "Arial"; // sub category font face
$subcat_font_size = "1"; // sub category font color
$subcat_link_style = "font-size: 10px; color: #0033cc;"; // sub category link style
$cat_columns = 1;
$max_sub_cat = 20;
$SPACER = ' · ';
$cat_default_image = "images/folder.gif";
$indexudir = "http://localhost/indexu/";
// vars global configuration
global $conn, $dbServer, $dbHostname, $dbUsername, $dbPassword, $dbName,
$theme_path, $cache_time,$use_cache_status,$theme_name,
$cat_description_format, $COOKIE_USERNAME;
// vars template
global $category;
// show categories
$category_obj = new clsCategory;
$category_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassw ord,$dbName);
$category_obj->table_name = "idx_category";
$category_obj->link_table_name = "idx_link";
$category_obj->number_of_columns = $cat_columns;
$category_obj->number_of_subcats = $max_sub_cat;
$category_obj->default_image = $cat_default_image;
$category_obj->image_path = "themes/".$theme_name."/images/";
$category_obj->show_subcat = true;
$category_obj->parent = 0;
$category = $category_obj->DisplayDM($indexudir, $SPACER, $catimg, $max_sub_cat, $cat_table_width, $cat_cellspacing, $cat_font_face, $cat_font_size, $cat_link_style, $subcat_font_face, $subcat_font_size);
DisplayTemplate($theme_path."dmenu.html","\$catego ry");
}
// ---------------
// main program
// ---------------
$conn = ConnectDB();
$title = $titles["1101"];
$theme_name = GetTheme($COOKIE_USERNAME);
if(empty($theme_name)) $theme_name = "default";
$theme_path = $theme_path.$theme_name."/";
ShowDMenu();
?>



