Thread: [Phpslash-trackers] [ phpslash-Patches-500521 ] Auto selection of 1,2 or 3 col templates
Brought to you by:
joestewart,
nhruby
From: <no...@so...> - 2002-01-07 19:20:52
|
Patches item #500521, was opened at 2002-01-07 11:20 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=310566&aid=500521&group_id=10566 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Peter Cruickshank (krabu) Assigned to: Nobody/Anonymous (nobody) Summary: Auto selection of 1,2 or 3 col templates Initial Comment: Changes to index.php3 and articles.php3 to allow them to automatically choose between four templates depending on which columns are present: Columns Template used center index1col.tpl center, left index2colleft.tpl center, right index2colright.tpl center, left, right index3cols.tpl block.class and block_i.class are changed to default to width = 100% rather than 210 so that blocks work in the center column. All files are in the attached zip: - articles.php3.patch notes 1. I put related links in the center column, but this is easily changed back to putting them in the righ column) 2. article.php3 now uses slashHead() and slashFoot() - index.php3.patch - block.php3.patch (contains block_i patch too). Some of the changes are whitespace fixes or extra debug()s which might need removed before posting. - *.tpl - the new template files The following files are superseded: index.tpl index3col.php3 It might be worth allowing the option of positioning at center_top and center_bottom (ie above and below the article). Also blockAdmin.php3 could be changed to give a drop-down list of possible column positions. Comments welcome! Thanks Peter ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=310566&aid=500521&group_id=10566 |
From: <no...@so...> - 2002-01-15 17:18:33
|
Patches item #500521, was opened at 2002-01-07 11:20 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=310566&aid=500521&group_id=10566 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Peter Cruickshank (krabu) Assigned to: Nobody/Anonymous (nobody) Summary: Auto selection of 1,2 or 3 col templates Initial Comment: Changes to index.php3 and articles.php3 to allow them to automatically choose between four templates depending on which columns are present: Columns Template used center index1col.tpl center, left index2colleft.tpl center, right index2colright.tpl center, left, right index3cols.tpl block.class and block_i.class are changed to default to width = 100% rather than 210 so that blocks work in the center column. All files are in the attached zip: - articles.php3.patch notes 1. I put related links in the center column, but this is easily changed back to putting them in the righ column) 2. article.php3 now uses slashHead() and slashFoot() - index.php3.patch - block.php3.patch (contains block_i patch too). Some of the changes are whitespace fixes or extra debug()s which might need removed before posting. - *.tpl - the new template files The following files are superseded: index.tpl index3col.php3 It might be worth allowing the option of positioning at center_top and center_bottom (ie above and below the article). Also blockAdmin.php3 could be changed to give a drop-down list of possible column positions. Comments welcome! Thanks Peter ---------------------------------------------------------------------- >Comment By: Joe Stewart (joestewart) Date: 2002-01-15 09:18 Message: Logged In: YES user_id=77269 Added changes to cvs. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=310566&aid=500521&group_id=10566 |