1
Zirafka
Admin menu mishmash
  • 2009/5/23 8:24

  • Zirafka

  • Just popping in

  • Posts: 70

  • Since: 2008/8/9 1


Hi all,

I write simple module for showing declaration of website. Module working correctly, but administration menu is wrong.

Image:http://www.zirafoviny.cz/hicsuntleones/menu.jpg

Administration menu of modules Prohlaseni (my module) and Extgallery is mismash and I do not know why.

My module is here:http://www.zirafoviny.cz/hicsuntleones/prohlaseni.rar

(prohlaseni = declaration on Czech)

I tested this module on production webserver and on my test server but the result is the same

Configuration of production webserver:

Verze XOOPS - XOOPS 2.3.3
Verze PHP - 5.1.2
Verze MySQL - 5.0.22-Debian_0ubuntu6.06.11-log
Verze Server API - apache2handler
Verze OS - Linux

safe_mode - On
register_globals - Off
magic_quotes_gpc - On
allow_url_fopen - Off
fsockopen - On
allow_call_time_pass_reference - Off
post_max_size - 10M
max_input_time - 60
output_buffering -
max_execution_time - 60
memory_limit - 20M
file_uploads - On
upload_max_filesize - 10M

PHP extensions:

xmlwriter,libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, soap, SPL, shmop, session, Reflection, posix, mime_magic, mbstring, iconv, hash, gettext, ftp, filepro, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, xsl, mysql, mysqli, imap, mcrypt, pspell, snmp, eAccelerator

and mi test server:

Verze XOOPS - XOOPS 2.3.3
Verze PHP - 5.2.8
Verze MySQL - 5.1.30-community
Verze Server API - apache2handler
Verze OS - WINNT

safe_mode - On
register_globals - Off
magic_quotes_gpc - Off
allow_url_fopen - Off
fsockopen - On
allow_call_time_pass_reference - Off
post_max_size - 10M
max_input_time - 960
output_buffering - 4096
max_execution_time - 960
memory_limit - 128M
file_uploads - On
upload_max_filesize - 10M

PHP extensions:

bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, apache2handler, bz2, gd, mbstring, mcrypt, mhash, mime_magic, mysql, exif

Very much thanks for your help
Have nice day, Zirafka

2
trabis
Re: Admin menu mishmash
  • 2009/5/23 13:40

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


admin/menu.php

<?php
// You should not use global $adminmenu
// If other modules also use $adminmenu as global then there will be conflicts
// global $adminmenu;

$adminmenu[0]['title'] = _PROH_ADMIN_PREHLED_M;
$adminmenu[0]['link'] = "admin/index.php";
$adminmenu[1]['title'] = _PROH_ADMIN_NASTAV_M;
$adminmenu[1]['link'] = "admin/index.php?co=nastav";
$adminmenu[2]['title'] = _PROH_ADMIN_POMOC_M;
$adminmenu[2]['link'] = "admin/index.php?co=napoveda";
?>

3
Zirafka
Re: Admin menu mishmash
  • 2009/5/23 19:00

  • Zirafka

  • Just popping in

  • Posts: 70

  • Since: 2008/8/9 1


Thank you very much Module working correctly
Have nice day, Zirafka

Login

Who's Online

159 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 159


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits