Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 23

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 30.09.2004, 01:22   #1 (permalink)
Mamber
 
na!tsabes's Avatar
 
Join Date: Apr 2004
Location: Herford
Posts: 104
na!tsabes is on a distinguished road
Send a message via ICQ to na!tsabes
Question php-Frage: mosLoadModules

Anstatt ein Modul direkt zu laden und über das Backend zu steuern

PHP Code:
<?php mosLoadModules "bottom" ); ?>
wollte ich folgendes machen

PHP Code:
<?php if ($page "shop.flypage" OR $option "com_phpshop") {mosLoadModules 'right' ); }?>
Funzt aber net ... irgendwie sehe ich den Fehler nicht. Kann mir jemand auf die Sprünge helfen Irgendwie muss es absolut trivial sein oder ich bin einfach zu doof heute ...

Gruss Sebastian
__________________
All that we see or seem is but a dream within a dream
www.my-eplace.de
na!tsabes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 30.09.2004, 01:25   #2 (permalink)
Mamber
 
na!tsabes's Avatar
 
Join Date: Apr 2004
Location: Herford
Posts: 104
na!tsabes is on a distinguished road
Send a message via ICQ to na!tsabes
Default Re: php-Frage: mosLoadModules

AUA .... kaum geposted schon hab ich den Fehler selber gesehen ...

PHP Code:
<?php if ($page == "shop.flypage" OR $option == "com_phpshop") {mosLoadModules 'right' ); }?>
= weist einen Wert zu
== vergleicht einen Wert

Sorry ... bitte diesen Threat löschen

Gruss Sebastian
__________________
All that we see or seem is but a dream within a dream
www.my-eplace.de
na!tsabes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 30.09.2004, 02:41   #3 (permalink)
Administrator
 
Join Date: Mar 2004
Posts: 807
Admin will become famous soon enough
Default Re: php-Frage: mosLoadModules

Ja ja... = is eben nicht gleich ==

Aber vielleicht noch eine Anmerkung dazu. Es ist nicht sehr sinnvoll die $option Variable direkt abzufragen. Dies hat man ganz früher mal gemacht als Mambo entsprechende Funktionen noch nicht selber zur Verfügung gestellt hat. So ist dein Template dann sehr starr und kann nur schwer auf anderen Seiten eingesetzt werden.

Obwohl du geschrieben hast, dass du das nicht über das Backend machen möchtest, trotzdem noch mal schnell für alle die korrekte Notation für automatisch ausgeblendete Module:

PHP Code:
 <?php 
  
if ( mosCountModules'bottom' ) ) {
    
mosLoadModules 'bottom' );
  }
?>
__________________
Regards,
Arthur Konze
Webmaster @ Mamboportal.com - Mambers.com
Admin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 30.09.2004, 09:29   #4 (permalink)
Mamber
 
na!tsabes's Avatar
 
Join Date: Apr 2004
Location: Herford
Posts: 104
na!tsabes is on a distinguished road
Send a message via ICQ to na!tsabes
Default Re: php-Frage: mosLoadModules

Danke nochmal für den Tipp

Normalerweise mache ich das nur über das Backend. Nur dann habe ich ein Problem mit dem mod_phpshop. Mein mod_phpshop was soll nur unter dem Navipunkt Shop angezeigt werden. So weit so gut. Nur so sobal Du in den Produkt-Details bist, wird das Modul nicht mehr angezeigt. Es ist aber wichtig das es angezigt wird wegen der Anzeige des Warenkorbs, der Produktnavigation. Es kann auch an meinem Design liegen, das sollte halt mein workaournd sein.

Sollte jemand tatsächlich das Template irgendwann mal haben wollen mache ich das gerne Rückgängig. aber dieses Template will bestimmt KEINER haben


Greetz Sebastian
__________________
All that we see or seem is but a dream within a dream
www.my-eplace.de
na!tsabes is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Useful Links -> Embeding php scripts into mambo content afru Mambo 4.5 'How Do I' Questions 36 20.07.2006 22:44
ALL-INKL änder PHP Einstellungen -peter- Smalltalk 2 16.09.2004 18:53
Internal 500 Error / PHP Access Violation blay Mambo 4.5 Bugs 1 13.09.2004 03:05
Cannot see Admin Page srealthang Mambo 4.5 Installation and Upgrades 2 04.07.2004 16:06
Something for the PHP gurus here? SvenErik Community Smalltalk 2 14.04.2004 08:48


All times are GMT +2. The time now is 17:40.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.