From: Wendall C. <wen...@to...> - 2005-01-18 17:10:22
|
As I mentioned in the PhpDocumentor thread I just started, I was working on UML output for classes as well...here's a sample: http://phpwebsite-comm.sourceforge.net/coredoc/PHPWS_Item.png I'll submit a UML diagram of some database output as well later. Wendall |
From: yawstick <yaw...@ch...> - 2005-01-19 13:38:24
|
I'm not a programmer or a power user but have phpwebsite running on a freebsd box and trying to customize some features of phpwebsite. If this is the wrong place for this type questions let me know where to go. I think I'm using version 0.9.3-4, at least that whats showing when I go to the boost page. Where would I change the format of the of the pages that are shown in the center on the homepage. These are just pages that I' have added that have pictures and text. The default puts text beside the pictures and I would prefer that the title and text appear below the picture. Also some themes change the title and text alignment, cowboy in particular has the title centered rather than to the left, where is this being done. Lastly is it possible to have a different theme for pages users have created. ie when you go to pages they have created the theme would be one that they have selected or that the admin selects for that users pages. If so where would that be done. Thanks Paul |
From: Shaun M. <sh...@ae...> - 2005-01-19 14:49:20
|
On 19 Jan 2005, at 13:38, yawstick wrote: > > I think I'm using version 0.9.3-4, at least that whats showing when I > go to > the boost page. Where would I change the format of the of the pages > that are > shown in the center on the homepage. These are just pages that I' have > added > that have pictures and text. > It depends on which module you used to edit that text. Probably it's 'announce' or 'pagemaster' which appears as 'Web Pages' in the control panel. You need to copy /mod/announce/templates/* to /themes/<yourtheme>/templates/announce/* or /mod/pagemaster/templates/ etc. The .tpl files in that directory are simple html templates with tags that indicate where the TITLE should be and other info. By editing the copy, you then customize the layout for your uses without the originals getting changed. > > > Also some themes change the title and text alignment, cowboy in > particular > has the title centered rather than to the left, where is this being > done. That is done in the stylesheet for the theme /themes/cowboy/style.css > > Lastly is it possible to have a different theme for pages users have > created. ie when you go to pages they have created the theme would be > one > that they have selected or that the admin selects for that users > pages. If > so where would that be done. > Not currently without a fair chunk of php added to themes theme.php and an understanding of how the module works. Shaun aegis design - http://www.aegisdesign.co.uk |
From: yawstick <yaw...@ch...> - 2005-01-19 17:59:42
|
> The .tpl files in that directory are simple html templates with tags > that indicate where the TITLE should be and other info. By editing the > copy, you then customize the layout for your uses without the originals > getting changed. Thanks a bunch I had selected the wrong template in pagemaster for the page with out knowing what its was doing > > > Not currently without a fair chunk of php added to themes theme.php and > an understanding of how the module works. > I was looking at the w3c theme.php. would a variation of that work where the .css file was selected conditionally depending on which user created it instead of via a link on the page? Could it all be done in the theme.php file? Thanks Again Paul |
From: Ton O. <ton...@he...> - 2005-01-19 19:07:24
|
I have made an example of selecting a style sheet based on the category of the current page. You can find it here: http://www.oosterhoff.nu/pws/index.php?module=documents&JAS_DocumentManager_ op=viewDocument&JAS_Document_id=9 tonynl -----Oorspronkelijk bericht----- Van: php...@li... [mailto:php...@li...] Namens yawstick Verzonden: woensdag 19 januari 2005 19:00 Aan: php...@li... Onderwerp: Re: [Phpwebsite-developers] formating amd themes > The .tpl files in that directory are simple html templates with tags > that indicate where the TITLE should be and other info. By editing the > copy, you then customize the layout for your uses without the originals > getting changed. Thanks a bunch I had selected the wrong template in pagemaster for the page with out knowing what its was doing > > > Not currently without a fair chunk of php added to themes theme.php and > an understanding of how the module works. > I was looking at the w3c theme.php. would a variation of that work where the .css file was selected conditionally depending on which user created it instead of via a link on the page? Could it all be done in the theme.php file? Thanks Again Paul ------------------------------------------------------- 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 Php...@li... https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers |
From: yawstick <yaw...@ch...> - 2005-01-19 22:53:16
|
Thanks for your help I've been playing with your example but have not been able to get it to work. I have the following in the thempe.php from your example. $THEME["EXAMPLE"] = $_SESSION['OBJ_user']->isUser() ; $THEME["user"] = $_SESSION["SES_PM_page"]->id ; $THEME["category"] = $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid) ; // get the page id: $my_pageid = $_SESSION["SES_PM_page"]->id; // get the category of this page: $my_category = $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid); switch ($my_category){ case "3": $my_style = "page1.css"; break; case "4": $my_style = "page2.css"; break; default: $my_style = "style.css"; } // output it to the template... $THEME["my_style"] = $my_style; I added some things trying to trouble shoot it. The category seems to be coming back empty even though I have added several categories and set them in the page. The case "3" and case "4" are from examining the data in the mod_catcat_catgegories table. Where would you find the variables like $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid) Thanks Paul |
From: Ton O. <ton...@he...> - 2005-01-20 20:11:27
|
The example is more like a sort of Proof-of-concept. You have to change a few things to make it work for your situation. Here is what it does. First it gets the id of the current page. Then it gets the category_id (!! so not the category name!!) of the current page by calling the fatcat function getElementCatId. The case"3" and case"4" refer to this category id. So if you created the categories category_1 and category_2 you have to lookup the corresponding id's of these categories in the mod_fatcat_categories. regards, Ton Oosterhoff. -----Oorspronkelijk bericht----- Van: php...@li... [mailto:php...@li...] Namens yawstick Verzonden: woensdag 19 januari 2005 23:53 Aan: php...@li... Onderwerp: Re: [Phpwebsite-developers] formating amd themes Thanks for your help I've been playing with your example but have not been able to get it to work. I have the following in the thempe.php from your example. $THEME["EXAMPLE"] = $_SESSION['OBJ_user']->isUser() ; $THEME["user"] = $_SESSION["SES_PM_page"]->id ; $THEME["category"] = $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid) ; // get the page id: $my_pageid = $_SESSION["SES_PM_page"]->id; // get the category of this page: $my_category = $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid); switch ($my_category){ case "3": $my_style = "page1.css"; break; case "4": $my_style = "page2.css"; break; default: $my_style = "style.css"; } // output it to the template... $THEME["my_style"] = $my_style; I added some things trying to trouble shoot it. The category seems to be coming back empty even though I have added several categories and set them in the page. The case "3" and case "4" are from examining the data in the mod_catcat_catgegories table. Where would you find the variables like $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid) Thanks Paul ------------------------------------------------------- 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 Php...@li... https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers |
From: yawstick <yaw...@ch...> - 2005-01-25 03:03:42
|
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; ?> |
From: Ton O. <ton...@he...> - 2005-01-25 07:29:21
|
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: php...@li... [mailto:php...@li...] Namens yawstick Verzonden: dinsdag 25 januari 2005 4:04 Aan: php...@li... 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 Php...@li... https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers |
From: yawstick <yaw...@ch...> - 2005-01-25 14:14:45
|
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: php...@li... > [mailto:php...@li...] Namens yawstick > Verzonden: dinsdag 25 januari 2005 4:04 > Aan: php...@li... > 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 > Php...@li... > 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 > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers |
From: Ton O. <ton...@he...> - 2005-01-25 19:50:43
|
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: php...@li... [mailto:php...@li...] Namens yawstick Verzonden: dinsdag 25 januari 2005 15:15 Aan: php...@li... 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: php...@li... > [mailto:php...@li...] Namens yawstick > Verzonden: dinsdag 25 januari 2005 4:04 > Aan: php...@li... > 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 > Php...@li... > 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 > Php...@li... > 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 Php...@li... https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers |
From: Tony M. <to...@ht...> - 2005-01-20 04:47:11
|
I apologize if this is a silly question, but it has me stumped. I have recently started using the classes found in List.php for building an on the fly query list, an example of which can be found here: http://thebe.jtan.com/~ircd_/phpwebsite/branches/cigardiary/index.php?module=cigardiary&CD_MAN_OP=query At the bottom is my new list which was modified from the one I found in the new version of Skeleton. The query works ok (trust me, it's in the middle of being built), but what doesn't work is the "ordering buttons" at the top of the list which are supposed to be able to change the ordering of the columns. Can someone give me some troubleshooting hints on why I'm getting a blank screen when I click one of those buttons. The links look wierd with two &&'s together on the URL line, but I have no clue on where to find that link code to correct it (if I am able to correct it at all). Thanks, -Tony -- Hometown Enterprises Internet Services Professional, affordable web design and hosting. http://www.hteis.com/ |