coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: geewee on November 22, 2003, 12:39:17 PM

Title: Hiding left block
Post by: geewee on November 22, 2003, 12:39:17 PM
Hi everybody,

I am trying to hide the left block when calling coppermine,
but since it is not located within PN, but in /gallery instead,
the following won't work:

if ($name != "gallery") {
  blocks(left);
}


Is there any other variable that I can read within themes.php,
or how would I best go about determining that cpg is called?

geewee
Title: Hiding left block
Post by: casNuy on November 22, 2003, 06:53:25 PM
check out forums.postnuke.com :
http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=18002&highlight=hide+left+block

Cas
Title: Hiding left block
Post by: geewee on November 22, 2003, 10:40:27 PM
Thanks Cas,

so it would be like this, right?


if (pnModGetName() != "pnCPG") {
  blocks(left);
}


I can't make much out of the CEID stuff, which seems to be specific to ContentExpress, which I don't use. Anyway, will try it out when I'm back home.

geewee
Title: Hiding left block
Post by: casNuy on November 23, 2003, 01:05:59 PM
Have not tried it myself but that is how i understand it. There is also a posting on my home-forum on www,nuy.info around that.
http://www.nuy.info/726/index.php?name=PNphpBB2&file=viewtopic&t=253

Cas