Hide on $_GET['value'] - Joomla! Forum - community, help and support


first of all, hi!  :)

anyways, want hide modules in left position ("left modules") when member clicks on "submit article" link. needs done because box submitting articles wide main body unless left modules disabled (my site not have right modules). realize go through modules section of admin section, have assign each module individually , if add new link 1 of menus, believe have re-update assignments, work me (i lazy :p)

so wanted revert php in template. tried couple different codes without success, more or less based on line:

code: select all

<?php if ($_get['task'] !== "new" && $_get['task'] !== "edit") { mosloadmodules('left',-2); } ?>


forgive me if coding sloppy, been 4 5 years since have done php coding. had reference w3schools couple of times.

should if statement written in positive?

code: select all

<?php if ($_get['task'] == "new" && $_get['task'] == "edit") { } else { mosloadmodules('left',-2); } ?>


the "edit" value inserted in case admin or editor tries edit article front end, hide left modules.

hopefully isn't confusing (and in right forum  :-[). in advance help!






Comments

Popular posts from this blog

Static ip - Raspberry Pi Forums

arduino bug sur secteur, batterie, mais pas en usb?

invalid use of void expresion in FlexiTimer2 library