Coppermine

Begonnen von masterdesaster, 26 September 2005, 21:28:45

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

masterdesaster

Hallo an alle
Ich möchte gern dass Main Menü von Coppermine unter das pragmamx menü verschieben (bzw. nur einen Teil der Links)...weiß jemand wie das geht....

Energy-drink

ich weiß zwar ungefähr was du meinst aber kannst du ein wenig genauer beschreiben welche Links du genau meinst von Coppermine??

ich denke das es wohl am einfachsten mit dem Block block-Menu_editable.php zu realisieren wäre
Ich bin alt aber bezahlt.... ;-)
Ich würde ja gerne die Welt verändern,
aber Gott gibt mir den Quellcode nicht!

masterdesaster

Aber sicher doch kann ich das...also ich möchte die Links:
Alben Übersicht
Meine Gallerie
Benutzer Modus und
Datei hochladen

unter dem Hauptmenü von pragmamx einfügen..
der Rest wäre schön wenn der erscheint wenn man auf einen der Links oder auf Gallery geklickt hat.
und was muss ich mit der Datei machen??

Energy-drink

okay wenn du dir mal die datei genau ansiehst gibt es in der datei folgenden Code

/* Menu Section 1 */
                                                       $sec1["Home"] = "<a href=\"./\">"._HOME."";
if (mxModuleAllowed("Topics"))          $sec1["Topics"] = "<a href=\"modules.php?name=Topics\">Themen";
if (mxModuleAllowed("Stories_Archive")) $sec1["Stories_Archive"] = "<a href=\"modules.php?name=Stories_Archive&sa=show_all\">Artikel";
if (mxModuleAllowed("Downloads"))       $sec1["Downloads"] = "<a href=\"modules.php?name=Downloads\">Downloads";
if (mxModuleAllowed("Web_Links"))       $sec1["Web_Links"] = "<a href=\"modules.php?name=Web_Links\">Links";
if (mxModuleAllowed("My_eGallery"))     $sec1["My_eGallery"] = "<a href=\"modules.php?name=My_eGallery\">Bildergallerie";
if (mxModuleAllowed("Siteupdate"))      $sec1["Siteupdate"] = "<a href=\"modules.php?name=Siteupdate\">Siteupdates";
if (mxModuleAllowed("Impressum"))       $sec1["Impressum"] = "<a href=\"modules.php?name=Impressum\">Impressum";

/* Menu Section 2 */
if (mxModuleAllowed("Your_Account")) $sec2["Your_Account"] = "<a href=\"modules.php?name=Your_Account\">"._YACCOUNT."";
if (mxModuleAllowed("Members_List")) $sec2["Members_List"] = "<a href=\"modules.php?name=Members_List\">Memberliste";
#if (mxModuleAllowed("eBoard"))       $sec2["eBoard"] = "<a href=\"modules.php?name=eBoard\">Forum";
if (mxModuleAllowed("Forum"))        $sec2["Forum"] = "<a href=\"modules.php?name=Forum\">Forum";
if (mxModuleAllowed("Submit_News"))  $sec2["Submit_News"] = "<a href=\"modules.php?name=Submit_News\">Artikel schreiben";
if (mxModuleAllowed("maaXStat2"))    $sec2["maaXStat2"] = "<a href=\"modules.php?name=maaXStat2\">Statistiken";
if (mxModuleAllowed("Kalender"))     $sec2["Kalender"] = "<a href=\"modules.php?name=Kalender\">Kalender";

/* Menu Section 3 */
if (mxModuleAllowed("LinkMe"))     $sec3["LinkMe"] = "<a href=\"modules.php?name=LinkMe\">Link Me";
#if (mxModuleAllowed("LogoEditor")) $sec3["LogoEditor"] = "<a href=\"modules.php?name=LogoEditor\">Logo-Editor";
if (mxModuleAllowed("FAQ")) $sec3["LogoEditor"] = "<a href=\"modules.php?name=FAQ\">FAQ";
#if (mxModuleAllowed("Dict"))       $sec3["Dict"] = "<a href=\"modules.php?name=Dict\">W&ouml;rterbuch";
if (MX_IS_ADMIN)                                  $sec3["Administration"] = "<a href=\"admin.php\">"._ADMINMENUEBL."";




dort kannst du sagen wir mal Menu 2 und 3 löschen und Menu 1 schreibst du nach deinen Bedürfnissen an deine Coppermine links um und dann sollte es gehen.. ich habe es jetzt zwar nicht selber ausprobiert aber theoretisch müsste es ohne probleme gehen.
Ich bin alt aber bezahlt.... ;-)
Ich würde ja gerne die Welt verändern,
aber Gott gibt mir den Quellcode nicht!

Energy-drink

hmm ich sehe gerade das hier vom mxModulen geredet wird.. jetzt weiß ich nicht ob es jetzt in dem Menu nur auf Module ausgebaut ist oder ob man dort auch normale Links verwenden kann....aber vielleicht kann ja einer der es besser weiß ja mal was dazu sagen.
Ich bin alt aber bezahlt.... ;-)
Ich würde ja gerne die Welt verändern,
aber Gott gibt mir den Quellcode nicht!

masterdesaster

also hab mal das so ausprobiert.....und da tut sich gar nix im Menü......aber auch alles andere ist geblieben wie es war.....sry aber das kann es anscheind nicht sein..

Energy-drink

wie meinst du das da tut sich gar nix im Menü?? hast du den block aktiviert??
Ich bin alt aber bezahlt.... ;-)
Ich würde ja gerne die Welt verändern,
aber Gott gibt mir den Quellcode nicht!

masterdesaster

mmh...also ich habe erstmal den Link an das Hauptmenü angehängt....da muss ich doch nix aktivieren oder?....
Achja vielleicht sollte ich sagen dass ich nicht wirklich so der Profi in php etc.

Energy-drink

ich verstehe jetzt nicht wo du den link angehängt hast.. hast du den Block hergenommen den ich dir oben gesagt habe??

diesen musst du dann wenn du ihn bearbeitet hast über die Blocksteuerung im Adminmenu aktivieren. dann kannst du den link testen ob es funktioniert.

Kein Problem das du kein Profi bist.. kein Meister ist vom Himmel gefallen.
Ich bin alt aber bezahlt.... ;-)
Ich würde ja gerne die Welt verändern,
aber Gott gibt mir den Quellcode nicht!

masterdesaster

also ich weiß nicht warum ich den Block aktivieren soll wenn er doch schon aktiviert ist.....

Zitat
/* Menu Section 1 */
                                                       $sec1["Home"] = "<a href=\"./\">"._HOME."";
if (mxModuleAllowed("Topics"))          $sec1["Topics"] = "<a href=\"modules.php?name=Topics\">Themen";
if (mxModuleAllowed("Stories_Archive")) $sec1["Stories_Archive"] = "<a href=\"modules.php?name=Stories_Archive&sa=show_all\">Artikel";
if (mxModuleAllowed("Downloads"))       $sec1["Downloads"] = "<a href=\"modules.php?name=Downloads\">Downloads";
if (mxModuleAllowed("Web_Links"))       $sec1["Web_Links"] = "<a href=\"modules.php?name=Web_Links\">Links";
if (mxModuleAllowed("My_eGallery"))     $sec1["My_eGallery"] = "<a href=\"modules.php?name=My_eGallery\">Bildergallerie";
if (mxModuleAllowed("Siteupdate"))      $sec1["Siteupdate"] = "<a href=\"modules.php?name=Siteupdate\">Siteupdates";
if (mxModuleAllowed("Impressum"))       $sec1["Impressum"] = "<a href=\"modules.php?name=Impressum\">Impressum";
if (mxModuleAllowed("Gallery"))       $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery\">Gallery";

Ich habe einfach die Letzte Zeile eingefügt dann brauch ich doch eigentlich nicht den Block neu aktivieren....oder versteh ich da was falsch..?? aber es tut sich halt nix....

Energy-drink

gib mal bitte den Link zu der seite wo der Block läuft..
Ich bin alt aber bezahlt.... ;-)
Ich würde ja gerne die Welt verändern,
aber Gott gibt mir den Quellcode nicht!


Energy-drink

also so wie deiner seite aussieht hast du nicht den Block block-Menu_editable.php aktiviert daher ist auch nicht dein link zu sehen!!! deine Navigation die du online hast ist die standartnavi
Ich bin alt aber bezahlt.... ;-)
Ich würde ja gerne die Welt verändern,
aber Gott gibt mir den Quellcode nicht!

masterdesaster

Also gut ich habe jetzt den Block aktiviert und habe folgenden Code:

&lt;?php
/************************************
pragmaMx  Content Management System
Copyright (c) 2005 pragmaMx Dev Team - http://pragmaMx.org
***********************************
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
***********************************
$Source: /cvsroot/pragmamx/stable/blocks/block-Menu_editable.php,v $
$Revision: 1.4 $
$Author: tora60 $
$Date: 2005/06/25 20:19:21 $
***********************************
this file based on:
php-nuke Web Portal System - http://phpnuke.org/
Thatware - http://thatware.org/
************************************/
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");

$mxblockcache = FALSE;

global $prefix, $name, $home, $bgcolor1, $bgcolor2, $bgcolor3;

//-------------MODIFY HERE TO CUSTOMIZE THE MENU------&gt;
$mouseOver = $bgcolor1;        /* Sets mouseover color */
$mouseOver = "#e8e8e8";        /* Sets mouseover color */
$image1 = "images/menu/rarrow.gif";  /* image path relative to public root*/
$image2 = "images/menu/barrow.gif";  /* image path relative to public root*/
$image3 = "images/menu/oarrow.gif";  /* image path relative to public root*/

$viewSearch      = 1; /* 0 = no search        -- 1 = yes search */

$viewmoduleslist = 1; /* 0 = no List/dropdown -- 1 = yes List/dropdown */
$row2show        = 1; /* "NUMBER YOU SELECT (default is 1)" = numbers of rows visible when block style */
$maxwordlen      = 16; /* max. Number of charakters in Moduleslist */
$listheigth      = 80; /* Heigth of the scrolling Layer for Moduleslist */

if(!defined("_MEN_SECTION1")) define ("_MEN_SECTION1","Gallery");       /* title Menu Section 1 */
//--------END-----------END----------END------------&gt;

$mouseOut = "transparent"; /* Sets mouseout color - leave blank for background*/
$actionMenu = "style=\"background: transparent;\" onMouseOver=\"this.style.background='$mouseOver'\"

onMouseOut=\"this.style.background='$mouseOut'\"";
$main_module = mxGetMainModuleName();

/* Now we make the Modules block with the correspondent links */
/* Menu Section 1 */
$content  = "<div class=\"boxcontent\">";

/* Menu Section 1 */
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery\">Alben-Übersicht";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a

href=\"modules.php?name=Gallery&file=thumbnails&album=lastup&cat=0\">neueste Uploads";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a

href=\"modules.php?name=Gallery&file=thumbnails&album=lastcom&cat=0\">neueste Kommentare";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery&file=thumbnails&album=topn&cat=0\">am

meisten angesehen";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery&file=thumbnails&album=toprated&cat=0\">am

besten bewertet";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery&file=search\">Suche";


?&gt;

Warum zeigt er jetzt aber nur den Titel der Blocks an? und nicht die Links...müssten doch richtig sein oder nicht?
Achja und warum sind in Pragmamx Communty, Admin Menü und Internes eingerückt bzw. zentriert und Hauptmenü nicht??

ruajoerg

Moin,

an deinem Code fehlt aber einiges. Überprüfe dies nochmal mit der Originaldatei. Wenn du was änderst, dann nur die betreffenden Zeilen und den Rest nicht einfach rauslöschen.
Gruß Jörg

masterdesaster

Also gut ich habe den Code jetzt so belassen wie er ursprünglich war und habe nur die Links und Namen geändert.....jetzt wird aber nur der link "Suchen richtig angezeigt.....


&lt;?php
/************************************
pragmaMx  Content Management System
Copyright (c) 2005 pragmaMx Dev Team - http://pragmaMx.org
***********************************
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
***********************************
$Source: /cvsroot/pragmamx/stable/blocks/block-Menu_editable.php,v $
$Revision: 1.4 $
$Author: tora60 $
$Date: 2005/06/25 20:19:21 $
***********************************
this file based on:
php-nuke Web Portal System - http://phpnuke.org/
Thatware - http://thatware.org/
************************************/
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");

$mxblockcache = FALSE;

global $prefix, $name, $home, $bgcolor1, $bgcolor2, $bgcolor3;

//-------------MODIFY HERE TO CUSTOMIZE THE MENU------&gt;
$mouseOver = $bgcolor1;        /* Sets mouseover color */
$mouseOver = "#e8e8e8";        /* Sets mouseover color */
$image1 = "images/menu/rarrow.gif";  /* image path relative to public root*/
$image2 = "images/menu/barrow.gif";  /* image path relative to public root*/
$image3 = "images/menu/oarrow.gif";  /* image path relative to public root*/

$viewSearch      = 1; /* 0 = no search        -- 1 = yes search */

$viewmoduleslist = 1; /* 0 = no List/dropdown -- 1 = yes List/dropdown */
$dropDown        = 1;  /* 0 = dropdown style   -- 1 = scrolling Layer style */
$row2show        = 1; /* "NUMBER YOU SELECT (default is 1)" = numbers of rows visible when block style */
$maxwordlen      = 16; /* max. Number of charakters in Moduleslist */
$listheigth      = 80; /* Heigth of the scrolling Layer for Moduleslist */

if(!defined("_MEN_SECTION1")) define ("_MEN_SECTION1","Main");       /* title Menu Section 1 */
if(!defined("_MEN_SECTION2")) define ("_MEN_SECTION2","Community");         /* title Menu Section 2 */
if(!defined("_MEN_SECTION3")) define ("_MEN_SECTION3","Stuff");         /* title Menu Section 3 */
if(!defined("_MEN_SECTIONx")) define ("_MEN_SECTIONx","Gesamtauswahl"); /* title Dropdown */
//--------END-----------END----------END------------&gt;

$mouseOut = "transparent"; /* Sets mouseout color - leave blank for background*/
$actionMenu = "style=\"background: transparent;\" onMouseOver=\"this.style.background='$mouseOver'\" onMouseOut=\"this.style.background='$mouseOut'\"";
$main_module = mxGetMainModuleName();

/* Now we make the Modules block with the correspondent links */
/* Menu Section 1 */
$content  = "<div class=\"boxcontent\">";

/* Menu Section 1 */
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery\">Alben-Übersicht";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery&file=thumbnails&album=lastup&cat=0\">neueste Uploads";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery&file=thumbnails&album=lastcom&cat=0\">neueste Kommentare";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery&file=thumbnails&album=topn&cat=0\">am meisten angesehen";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery&file=thumbnails&album=toprated&cat=0\">am besten bewertet";
if (mxModuleAllowed("Gallery"))          $sec1["Gallery"] = "<a href=\"modules.php?name=Gallery&file=search\">Suche";

/* Menu Section 2 */
if (mxModuleAllowed("Your_Account")) $sec2["Your_Account"] = "<a href=\"modules.php?name=Your_Account\">"._YACCOUNT."";
if (mxModuleAllowed("Members_List")) $sec2["Members_List"] = "<a href=\"modules.php?name=Members_List\">Memberliste";
#if (mxModuleAllowed("eBoard"))       $sec2["eBoard"] = "<a href=\"modules.php?name=eBoard\">Forum";
if (mxModuleAllowed("Forum"))        $sec2["Forum"] = "<a href=\"modules.php?name=Forum\">Forum";
if (mxModuleAllowed("Submit_News"))  $sec2["Submit_News"] = "<a href=\"modules.php?name=Submit_News\">Artikel schreiben";
if (mxModuleAllowed("maaXStat2"))    $sec2["maaXStat2"] = "<a href=\"modules.php?name=maaXStat2\">Statistiken";
if (mxModuleAllowed("Kalender"))     $sec2["Kalender"] = "<a href=\"modules.php?name=Kalender\">Kalender";

/* Menu Section 3 */
if (mxModuleAllowed("LinkMe"))     $sec3["LinkMe"] = "<a href=\"modules.php?name=LinkMe\">Link Me";
#if (mxModuleAllowed("LogoEditor")) $sec3["LogoEditor"] = "<a href=\"modules.php?name=LogoEditor\">Logo-Editor";
if (mxModuleAllowed("FAQ")) $sec3["LogoEditor"] = "<a href=\"modules.php?name=FAQ\">FAQ";
#if (mxModuleAllowed("Dict"))       $sec3["Dict"] = "<a href=\"modules.php?name=Dict\">W&ouml;rterbuch";
if (MX_IS_ADMIN)                                  $sec3["Administration"] = "<a href=\"admin.php\">"._ADMINMENUEBL."";


if (isset($sec1)) {
$size1 = @getimagesize($image1);
$size1 = (empty($size1[3])) ? "" : $size1[3];
$img1 = "<img src=\"".$image1."\" border=\"0\" ".$size1.">";
$content .= "<b>"._MEN_SECTION1."</b><br>\n";
$content .= "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"100%\">\n";
foreach($sec1 as $valname =&gt; $value) {
$m_title2 = strip_tags($value);
$content .= "<tr $actionMenu\"><td title=\"".$m_title2."\"><span class=\"boxcontent\">".$img1." ".$value."</a></span></td></tr>\n";
$manvalues[$valname] = 1;
}
$content .= "</table><br>\n";
}

if (isset($sec2)) {
$size2 = @getimagesize($image2);
$size2 = (empty($size2[3])) ? "" : $size2[3];
$img2 = "<img src=\"".$image2."\" border=\"0\" ".$size2.">";
$content .= "<b>"._MEN_SECTION2."</b><br>\n";
$content .= "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"100%\">\n";
foreach($sec2 as $valname =&gt; $value) {
$m_title2 = strip_tags($value);
$content .= "<tr $actionMenu\"><td title=\"".$m_title2."\"><span class=\"boxcontent\">".$img2." ".$value."</a></span></td></tr>\n";
$manvalues[$valname] = 1;
}
$content .= "</table><br>\n";
}

if (isset($sec3)) {
$size3 = @getimagesize($image3);
$size3 = (empty($size3[3])) ? "" : $size3[3];
$img3 = "<img src=\"".$image3."\" border=\"0\" ".$size3.">";
$content .= "<b>"._MEN_SECTION3."</b><br>\n";
$content .= "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"100%\">\n";
foreach($sec3 as $valname =&gt; $value) {
$m_title2 = strip_tags($value);
$content .= "<tr $actionMenu\"><td title=\"".$m_title2."\"><span class=\"boxcontent\">".$img3." ".$value."</a></span></td></tr>\n";
$manvalues[$valname] = 1;
}
$content .= "</table><br>\n";
}

$checkmodule = (mxSessionGetVar("checkmodule") &lt;= time() - 600) ? 1 : 0; // Module nur alle 10 Minuten checken
/* Make dropdown or block style full selection menu - NOTE: inactive modules only viewable by Admin */
if ($viewmoduleslist == 1) {
if (!isset($img1) && !$dropDown) {
$size1 = @getimagesize($image1);
$size1 = (empty($size1[3])) ? "" : $size1[3];
$img1 = "<img src=\"".$image1."\" border=\"0\" ".$size1.">";
}
if (!isset($img2) && MX_IS_ADMIN && !$dropDown) {
$size2 = @getimagesize($image2);
$size2 = (empty($size2[3])) ? "" : $size2[3];
$img2 = "<img src=\"".$image2."\" border=\"0\" ".$size2.">";
}
$name = (empty($name)) ? $main_module : $name;
$where = (MX_IS_ADMIN) ? "" : "WHERE  active='1'";
$result = sql_query("select mid, title, custom_title, active from ${prefix}_modules $where");
while(list($mid, $m_title, $custom_title, $active) = sql_fetch_row($result)) {
if (MX_IS_ADMIN && $checkmodule) {
$dbmodlist[strtolower($m_title)] = 1;
/* If the module doesn't exist, it will be removed from the database automaticaly */
if (!@file_exists("modules/$m_title/")) {
sql_query("delete from ${prefix}_groups_modules where module_id=$mid");
sql_query("UPDATE ${prefix}_modules SET active=0 where mid=$mid");
continue;
}
}
$m_title2 = (empty($custom_title)) ? str_replace("_", " ", $m_title) : str_replace("_", " ", $custom_title);
$m_title3 = mxCutString($m_title2, $maxwordlen, "..", "");
$sel = ($m_title == $name) ? " selected" : "";
if ($active) {
if ((mxModuleAllowed($m_title)) && !isset($manvalues[$m_title])) {
if ($dropDown) $opt_u[strtolower($m_title2)] = "&lt;option value='$m_title' $sel title='$m_title2'&gt;$m_title3&lt;/option&gt;";
else           $opt_u[strtolower($m_title2)] = "<tr $actionMenu\"><td title=\"".$m_title2."\"><span class=\"boxcontent\">".$img1." <a href=\"modules.php?name=".urlencode($m_title)."\">".$m_title3."</a></span></td></tr>\n";
}
}
else {
/* If you're Admin you and only you can see Inactive modules and test it */
if (MX_IS_ADMIN && !isset($manvalues[$m_title])) {
if ($dropDown) $opt_a[strtolower($m_title2)] = "&lt;option value='$m_title' $sel title='$m_title2'&gt;$m_title3&lt;/option&gt;";
else           $opt_a[strtolower($m_title2)] = "<tr $actionMenu\"><td title=\"".$m_title2."\"><span class=\"boxcontent\">".$img2." <a href=\"modules.php?name=".urlencode($m_title)."\">".$m_title3."</a></span></td></tr>\n";
}
}
}

$options = "";
if ($dropDown) {
if (isset($opt_u)) {
ksort($opt_u, SORT_STRING);
#$options .= "&lt;option value='$main_module' disabled&gt;"._MEN_SECTIONx."&lt;/option&gt;";
#$options .= "&lt;option value='$main_module' disabled&gt;".str_repeat("&macr;",$maxwordlen)."&lt;/option&gt;";
$options .= implode("",$opt_u);
}
if (isset($opt_a)) {
ksort($opt_a, SORT_STRING);
$options .= "&lt;option value='$main_module' disabled&gt;".str_repeat("_",$maxwordlen)."&lt;/option&gt;";
$options .= "&lt;option value='$main_module' disabled&gt;"._NOACTIVEMODULES."&lt;/option&gt;";
$options .= "&lt;option value='$main_module' disabled&gt;".str_repeat("&macr;",$maxwordlen)."&lt;/option&gt;";
$options .= implode("",$opt_a);
}

if ($options) {
$size = ($row2show &gt; 1) ? "size=\\\"$row2show\\\"" : "";
$content .= "&lt;script language=\"JavaScript\" type=\"text/javascript\"&gt;\n&lt;!--\ndocument.write(\"";
$content .= "&lt;form method=\\\"post\\\" action=\\\"modules.php\\\"&gt;";
$content .= "<b>"._MEN_SECTIONx."</b><br>";
$content .= "&lt;select name=\\\"name\\\" onChange=\\\"top.location.href='modules.php?name='+this.options[this.selectedIndex].value\\\" ".$size."&gt;".$options."&lt;/select&gt;";
$content .= "&lt;/form&gt;";
$content .= "\")\n//--&gt;\n&lt;/script&gt;\n";
}
}
else {
if (isset($opt_u)) {
ksort($opt_u, SORT_STRING);
$options .= implode("",$opt_u);
}
if (isset($opt_a)) {
ksort($opt_a, SORT_STRING);
$options .= "<tr><td><b>"._NOACTIVEMODULES."</b></td></tr>";
$options .= implode("",$opt_a);
}
if ($options) {
$content .= "<b>"._MEN_SECTIONx."</b><br>";
$content .= "<div uuups=\"height: ".$listheigth."px; overflow : auto;\">";
$content .= "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"100%\">";
$content .= $options;
$content .= "</table></div><br>\n";
}
}
}

/* Search feature */
if ($viewSearch == 1){
$content .= "&lt;form action=\"modules.php?name=Search\" method=\"post\"&gt;";
$content .= "<b>"._SEARCH."</b><br>";
$content .= "&lt;input type=\"text\" onfocus=\"value=''\" value=\""._SEARCH."\" name=\"query\" size=\"20\"&gt;";
$content .= "&lt;/form&gt;";
}
$content .= "</div>";

/* If you copied a new module is the /modules/ directory, it will be added to the database */
if (MX_IS_ADMIN && isset($dbmodlist) && $checkmodule) {
#print "<h1>checkmodule</h1>";
mxSessionSetVar("checkmodule", time());
$handle=opendir('modules');
while ($file = readdir($handle)) {
if (!ereg("[.]",$file) && empty($dbmodlist[strtolower($file)])) {
$ctitle = str_replace("_", " ", $file);
$qry = "insert into ${prefix}_modules (title,custom_title,active,view) values ('".$file."', '".$ctitle."', 0, 0)";
sql_query($qry);
}
}
closedir($handle);
}

?&gt;


http://superbietmaster.su.funpic.de/pragmamx/html/modules.php?name=Your_Account

Achja und warum sind in Pragmamx Communty, Admin Menü und Internes eingerückt bzw. zentriert und Hauptmenü nicht??

ruajoerg

Hallo,

jetzt machst du noch in der /* Menu Section 1 */ folgendes, daß $sec1["Gallery"] änderste du in $sec1["Gallery1"] bis $sec1["Gallery6"]. Dann werden auch deine Links angezeigt.
Die Darstellung wird dann ab Zeile 91 gemacht. Einfach mal ansehen.

ZitatAchja und warum sind in Pragmamx Communty, Admin Menü und Internes eingerückt bzw. zentriert und Hauptmenü nicht??
verstehe ich nicht. Da ist doch nix zentriert??
Gruß Jörg

masterdesaster

Naja damit mein ich Community und Internes ist im Gegensatz zu Hauptmenü in der Mitte und Hauptmenü ist linksbündig...hat jemand einen Plan warum das so ist....falls das aus meiner Erklärung nicht klar wird einfach mal auf meine Seite schauen...
http://superbietmaster.su.funpic.de/pragmamx/html/

So hab das jetzt auch alles wunderbar hinbekommen.....jetzt sollen Bilder hochladen etc. nur erscheinen wenn man eingeloggt ist geht das?

Energy-drink

Also ich habe jetzt mal einen Screenshot gemacht von deiner seite da ich nicht wirklich sehe was bei dir zentriert ist und was linksbündig.. wir reden schon von der navigation oder??

Ich bin alt aber bezahlt.... ;-)
Ich würde ja gerne die Welt verändern,
aber Gott gibt mir den Quellcode nicht!

masterdesaster

Komisch da seh ich was anderes...

http://superbietmaster.su.funpic.de/Menu.jpg
Naja gut wenn alle das richtig sehen dass ist ja gut...
Aber kommen wir wieder zum Menü....was muss ich noch machen damit Bilder hochladen etc. nur von angemeldeten Besuchern gesehen wird..