Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: formating amd themes: msg#00058

cms.phpwebsite.devel

Subject: RE: formating amd themes

I've made a few hacks for menumanager and blockmaker and in those hacks I
used the following code:
$pagecatids = $_SESSION["OBJ_fatcat"]->getModulesCategories('pagemaster',
$my_currentpage_id);

A page can have more than one category so $pagecatids here is an array.
Maybe this one works?

Ton.

-----Oorspronkelijk bericht-----
Van: phpwebsite-developers-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:phpwebsite-developers-admin@xxxxxxxxxxxxxxxxxxxxx] Namens yawstick
Verzonden: dinsdag 25 januari 2005 15:15
Aan: phpwebsite-developers@xxxxxxxxxxxxxxxxxxxxx
Onderwerp: Re: [Phpwebsite-developers] formating amd themes

The page_id is working and am using it to switch styles in the example below
is there not another method of retrieving the category

> Maybe it has something to do with the line just before it: that the
current
> page_id isn't retrieved correctly. You could also use this one to retrieve
> the current page_id:
> $my_pageid=(int)$_REQUEST['PAGE_id']
>
> Regards,
> Ton Oosterhoff
>
>
> -----Oorspronkelijk bericht-----
> Van: phpwebsite-developers-admin@xxxxxxxxxxxxxxxxxxxxx
> [mailto:phpwebsite-developers-admin@xxxxxxxxxxxxxxxxxxxxx] Namens yawstick
> Verzonden: dinsdag 25 januari 2005 4:04
> Aan: phpwebsite-developers@xxxxxxxxxxxxxxxxxxxxx
> Onderwerp: Re: [Phpwebsite-developers] formating amd themes
>
> I've learned quite a bit about theme.php theme.tpl style sheets and even
> found the function getElementCatId in fatcat. I have been able to change
> style sheets and even the logo image but had to do it using the page id.
> Most of this is derived from the example of Ton Oosterhoff, which included
> the syntax for retrieving the page id and page category. The page category
> one always comes back empty, as I have added $THEME varibles to show the
> results in the web page. So if you could enlighten me as to the proper
calls
> to get the page category for the current page I would greatly appreciate
it.
>
> $THEME["is_user"] = $_SESSION['OBJ_user']->isUser() ;
> $THEME["page_id"] = $_SESSION["SES_PM_page"]->id ;
>
> // get the page id:
> $my_pageid = $_SESSION["SES_PM_page"]->id;
>
> ******* the line below always comes back empty could comment on the
> correctness of the syntax *****
>
> $THEME["page_category"] =
> $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid) ;
>
> // get the category of this page:
> //$my_category = $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid);
>
> $my_category = $_SESSION["SES_PM_page"]->id;
>
> switch ($my_category){
> case "3":
> $my_style = "page1.css";
> break;
> case "6":
> $my_style = "midnight.css";
> break;
> default:
> $my_style = "classic.css";
> }
>
> // output it to the template...
> $THEME["my_style"] = $my_style;
>
> switch ($my_style){
> case "midnight.css":
> $logo = "logo1.jpg";
> break;
> case "modernist.css":
> $logo = "logo2.jpg";
> break;
> case "classic.css":
> $logo = "logo.jpg";
> break;
> }
> $THEME["logo"] =$logo;
>
> ?>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Phpwebsite-developers mailing list
> Phpwebsite-developers@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Phpwebsite-developers mailing list
> Phpwebsite-developers@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Phpwebsite-developers mailing list
Phpwebsite-developers@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation