. .
pragmaMx Support Forum 25 Mai 2012, 19:47:29 *
Willkommen Gast. Bitte einloggen oder registrieren.


Einloggen mit Benutzername und Passwort
News:
Brauchen Sie Hilfe? Bitte nutzen Sie unsere Suchfunktion bevor Sie Beiträge oder Fragen ins Board schreiben! Viele Fragen wurden bereits gestellt und beantwortet. Danke!
 
Übersicht Hilfe Forenregeln / Boardrules
 
Suche
Seiten: [1]   Nach unten
Drucken
Autor Thema: [Solved] How detect the admin pages  (Gelesen 2608 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
le Chaland
neu hier
*
Offline Offline

Geschlecht: Männlich
Beiträge: 7


WWW
« am: 15 Dezember 2008, 00:57:32 »

Hi

I used a javascript that i placed as a function in the functions.php of my theme, after called in the theme html.

But this javascrit reveal an incompatibility with the admin pages, so i need a string to detect when the admin page is loaded to desactivate the javascript at theses times.

I know how do it with any module, as this:

Code: [Select]  
if (!(defined('MX_MODULE') && MX_MODULE == "Downloads")) {

But it's do not work with any admin page...   puzzled

Is anyone know how to do this please.

Thanks.
« Letzte Änderung: 16 Dezember 2008, 19:41:47 von JoergK » Gespeichert
JoergK
Inventar
*******
Offline Offline

Geschlecht: Männlich
Beiträge: 2.204

JoergK


« Antworten #1 am: 15 Dezember 2008, 01:55:15 »

Hoi Wink

Pls have a look into admin.php in the main directory, there you'll find in line 25

Code: [Select]  
define('MX_MODULE', 'admin');

In your example exchange "Download" with "admin" and you get, what you need. Wink
Gespeichert

Gruß,
Jörg

Nobody is perfect ... so don't call me Nobody

Hier noch was zum Lesen und Lernen
HTML, JavaScript & CSS: SelfHTML
PHP: SelfPHP und PHP-Handbuch
MySQL: MySQL 5.1 Handbuch
le Chaland
neu hier
*
Offline Offline

Geschlecht: Männlich
Beiträge: 7


WWW
« Antworten #2 am: 16 Dezember 2008, 19:04:15 »

Thank you JoergK, work fine  Wink

I made the mistake to try "admin.php" or "administration"  gruebel
I was near the solution, but too stupid to find it ...  puzzled
Thanks again

If you want to know for what i posted here, look here at the top of the page, go on these lights with your mouse ....
Good no ?

PragmaMx is a really good CMS, i hope his life very long  thumbup

Le Ch@land.
Gespeichert
Seiten: [1]   Nach oben
Drucken
 
Gehe zu:  

Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
design by hENNE, layout based on YAML