You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(120) |
Jun
(74) |
Jul
(97) |
Aug
(35) |
Sep
(35) |
Oct
(34) |
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(18) |
Feb
(8) |
Mar
(7) |
Apr
(23) |
May
(28) |
Jun
(31) |
Jul
(27) |
Aug
(34) |
Sep
(48) |
Oct
(511) |
Nov
(197) |
Dec
(333) |
2005 |
Jan
(212) |
Feb
(33) |
Mar
(94) |
Apr
(51) |
May
(16) |
Jun
|
Jul
(200) |
Aug
(43) |
Sep
(88) |
Oct
(60) |
Nov
(62) |
Dec
(41) |
2006 |
Jan
(94) |
Feb
(49) |
Mar
(54) |
Apr
|
May
(39) |
Jun
(39) |
Jul
(61) |
Aug
(36) |
Sep
(23) |
Oct
(76) |
Nov
(73) |
Dec
(32) |
2007 |
Jan
|
Feb
(87) |
Mar
|
Apr
(8) |
May
(36) |
Jun
(49) |
Jul
(54) |
Aug
(8) |
Sep
(50) |
Oct
(36) |
Nov
|
Dec
(3) |
2008 |
Jan
(133) |
Feb
(54) |
Mar
(39) |
Apr
(2) |
May
(6) |
Jun
(74) |
Jul
(97) |
Aug
(70) |
Sep
(12) |
Oct
(20) |
Nov
(64) |
Dec
(24) |
2009 |
Jan
(25) |
Feb
(49) |
Mar
(18) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(10) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(7) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ada...@us...> - 2003-08-11 15:57:02
|
Update of /cvsroot/phpwebsite-comm/modules/article/boost In directory sc8-pr-cvs1:/tmp/cvs-serv21796/boost Modified Files: install.sql Log Message: Changed template names in the demo articles Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/boost/install.sql,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** install.sql 6 Aug 2003 02:26:29 -0000 1.4 --- install.sql 11 Aug 2003 15:52:16 -0000 1.5 *************** *** 45,49 **** image_link varchar(255) NOT NULL, image_caption varchar(255) NOT NULL, ! template varchar(255) NOT NULL DEFAULT 'Centered Image', new_page smallint NOT NULL DEFAULT '0', article_id int NOT NULL DEFAULT '0', --- 45,49 ---- image_link varchar(255) NOT NULL, image_caption varchar(255) NOT NULL, ! template varchar(255) NOT NULL DEFAULT 'Centered_Image', new_page smallint NOT NULL DEFAULT '0', article_id int NOT NULL DEFAULT '0', *************** *** 53,68 **** ! INSERT INTO mod_article_sections VALUES ('Article Manager Demo Section', 'Welcome to Article Manager!\r\n\r\nThis article was automatically generated when you installed Article Manager.\r\n\r\nIf you want to see an overview of the features of this module, check out "<a href="index.php?module=article&view=2">Introduction to Article Manager</a>".\r\n\r\nTo get started using Article Manager, proceed to the <a href="index.php?module=article&disp=main_menu">administrative menu</a> or go the the <a href="index.php?module=article&disp=news">"News"</a> page that lists all articles on your site.\r\n\r\nAnd most importantly, have fun with it!\r\n<strong><font color="#FF0000">eloi</font></strong>', '', '', 0, 0, '', '', '', 'Centered Image', 0, 1); ! INSERT INTO mod_article_sections VALUES ('Features', '<b>NOTE:</b> <i>This introduction is for demo purposes only and is current as of the first release of Article Manager. For the most up-to-date version, look under the docs directory.</i>\r\n\r\nCustom articles - each section can look completely different\r\nDefine your own article and section templates\r\nAdmins can allow/deny ability to display external pages in an embedded frame\r\nUsers can add comments to your article\r\nUsers can view a list of the articles that they have created\r\nArticles keep track of how many times they\'ve been viewed\r\nArticles can be set to start showing at a future date\r\nArticles can expire on specified dates\r\nArticles can be viewed in summary format with a link to the full article\r\nMULTI-ARTICLE STORIES with automatic navigation controls!\r\nOptimization: Images are stored in multiple directories for faster access\r\nA library of approved images can be easily maintained\r\nImages can be clickable links with alternate text and photo captions\r\nExpired articles can be accessed from a list and re-activated\r\nModule settings are easily changeable\r\nUser-submitted articles can require approval before activation\r\n"Also on this site.." Block\r\n"Previous n Articles" Block\r\n"Most Popular Articles" Block\r\nArticles can be set to not show up in the homepage summary listings\r\nArticles can be assigned to topic categories\r\nArticles can be viewed only by certain groups\r\nAll of your old Announcements & PageMaster Module content can be imported\r\nAutomatic rerouting of old mod.php, Announcements & PageMaster links\r\nDisplay a printable version\r\nNothing is saved to disk until you hit "Save Page"\r\n"Edit Locking" - Only 1 user can edit a page at a time\r\nA "News" page that displays all articles', '', '', 0, 0, '', '', '', 'Centered Image', 0, 5); ! INSERT INTO mod_article_sections VALUES ('The Main Menu', 'The main menu is the nerve center of the entire module. It allows you to do four basic tasks -- list articles, create a new article, change Article Manager configuration settings and manage the Image Library.', '', '', 0, 0, '', '', '', 'Centered Image', 1, 3); ! INSERT INTO mod_article_sections VALUES ('List Articles:', 'Here you can choose to view all approved articles on the site or just your articles ordered by Title or by the date of creation, publication, expiration, or the last update. This list can be viewed in ascending or descending order.\r\n\r\nEach article in the listing is accompanied by buttons allowing you to set it as the homepage, edit it, delete it, or immediately publish or expire it. Of course buttons or options can only be seen if you are authorized to use them.', '', '', 0, 0, '', '', '', 'Centered Image', 0, 2); ! INSERT INTO mod_article_sections VALUES ('Image Library Management', 'Instead of taking the security risk of allowing users to upload images to the server, admin-approved images can be stored in and selected from the Image Library.\r\n\r\nAfter an image is uploaded to the library using the "Image Library Management" interface, it will appear on the list underneath that also gives you the opportunity to delete existing pictures.', '', '', 0, 0, '', '', '', 'Centered Image', 0, 3); ! INSERT INTO mod_article_sections VALUES ('Create a new article:', 'See the next section "CREATING & EDITING ARTICLES".', '', '', 0, 0, '', '', '', 'Centered Image', 0, 2); ! INSERT INTO mod_article_sections VALUES ('Change configuration settings:', 'We\'ve made module customization easier for you by allowing you to change the following default settings:\r\n\r\n The default page template\r\n The default section template\r\n The # of summaries that show up on the Home Page\r\n The # of summaries that show up on article summary listings\r\n The # of article listings that show up under the main menu\r\n Whether articles need approval before publication\r\n Whether articles can expire on a predefined date\r\n Default expiration date offsets (years, months, days)\r\n How many years in advance publication dates can be set\r\n Uploaded image size limits (filesize, height, width)\r\n\r\nAdministrators can also decide whether users can:\r\n\r\n upload images\r\n include images in articles\r\n add comments to articles\r\n post comments without registering (Anonymous)\r\n create new articles\r\n edit/delete any, all, or just their own articles\r\n choose when their articles expire\r\n publish articles without admin approval\r\n change the module configuration ', '', '', 0, 0, '', '', '', 'Centered Image', 0, 3); ! INSERT INTO mod_article_sections VALUES ('Creating & Editing Articles', 'Articles are basically made up of a title, article summary, and sections. Other information found on the article can include information on the author and the date created or edited. \r\n\r\nTITLE:\r\nAll articles need titles! Enter one here.\r\n\r\n\r\nSUMMARY:\r\nType in a SHORT description of the article here. When a list of articles is shown on the site, this will be displayed as a teaser to get the user to read more.\r\n\r\n\r\nSECTIONS:\r\nThis is the meat of the article. A article can contain as few or as many sections as you like. When you create or start editing a article, all currently save sections are displayed as finished. After each section you will see buttons to edit that section or to move the section above or below its neighbors.\r\n\r\nNear the bottom of the article a new blank section is created for you with its own "Save" button. See "Editing Sections" for a description of how they work.\r\n\r\nCONFIGURATION OPTIONS: \r\nCategory: \r\nThe topic categories that this article falls under.\r\n\r\nAllow Comments: \r\nWhether users can add discussion or comments to this article\r\n\r\nAllow Anonymous Comments: \r\nWhether unregistered user can add comments (NOT RECOMMENDED!)\r\n\r\nPublication Date: \r\nA story can only be viewable on the site after it is published. You don\'t need to change this value. It is automatically set to the date this story was created. If you want this story to be invisible until a future date, then you can set it here.\r\n\r\nExpiration Date:\r\nA story can only remain on the site until it expires. You don\'t need to change this value. The site administrator has set a default period before stories expire. If you want this story to be deleted before or after this date, then you can set it here.\r\n\r\n\r\nWHAT DO I NEED CATEGORIES FOR?\r\nIf this article is assigned to a category, ArticleManager can then work with other phpWebsite modules to group related articles together and give interested users suggestions on other articles to surf.\r\n\r\nARTICLE INFORMATION:\r\nNOTE -- These items are not editable. \r\nCreated By: Who created the article\r\nUpdated By: the last person to edit the article\r\nCreated On: When the article was created\r\nUpdated On: When the article was last edited\r\n\r\nSave Article:\r\nClick this button when you\'re finished editing. If all information was entered in correctly, you\'ll be taken back to the main menu.', '', '', 0, 0, '', '', '', 'Centered Image', 1, 2); ! INSERT INTO mod_article_sections VALUES ('Creating & Editing Sections', 'Each section consists of a title and text (and sometimes an image). You can think of the title of a section as a subtitle of the article. Whenever you start editing a article or save a section, a new one is created for you.\r\n\r\nSTART ON NEW PAGE:\r\nThis option enables multi-article stories. When enabled, this section will be the first of a new page.\r\n\r\nTITLE:\r\nNot necessary, but recommended. Enter the section title here.\r\n\r\nTEXT:\r\nType in the section\'s text here. I\'m not sure if there is a limit to how much text you can put here, but if you hit it, you\'ll know. Above this entry box is a text formatting bar that you can use to add html formatting to your text. You\'ll at least need to use the "new line" button to create line breaks.\r\n\r\nIMAGE:\r\nIf you already added an image to this section, it\'s displayed here. If you are authorized, you will be given the options of uploading an image or selecting an existing image to display.\r\n\r\nUPLOAD A NEW IMAGE:\r\nThis lets you upload an image that will be associated with this section. If you choose to use an image, you must also add a Short Image Description.\r\n\r\nSELECT AN IMAGE FROM THE LIBRARY:\r\nThis site maintains a library of pre-approved images to use as an alternative to making, optimizing and uploading custom images. Just select the image you want to be associated with this section. If you choose to use an image, you must also add a Short Image Description.\r\n\r\nALTERNATE TEXT (Short Image Description): \r\nREQUIRED! Enter a short description of the image that will display if a browser can\'t or won\'t show the image. \r\n\r\nLINK:\r\nPutting a link URL in here will turn the image into a clickable link.\r\n\r\nLINK (PHOTO) CAPTION:\r\nSometimes you might want some text to appear above or below the image (eq: Photo Credits). Enter that text here.\r\n\r\nCONFIGURATION OPTIONS: \r\nStart on New Article: Whether this section starts a new article. See "MAKING MULTIPLE-ARTICLE STORIES".\r\nTemplate : Choose a display format for this section.\r\n\r\nSAVE SECTION:\r\nClick this button when you\'re finished editing. If all information was entered in correctly, the article will re-display with the section in its proper place.\r\n\r\n\r\nWHAT ARE TEMPLATES?\r\nEach section can be displayed in a different way -- with an image on the left, right, above the text, with a different-colored title, or even with all the text centered on the article! This is all controlled by templates that the administrator creates. All you have to do is select which display format you want to use for this section. If you want to read about creating or changing templates, see TEMPLATES.TXT.', '', '', 0, 0, '', '', '', 'No Images', 1, 3); ! INSERT INTO mod_article_sections VALUES ('Making Multiple-Article Stories', 'Although webarticle content should always be as short and concise as possible, sometimes your article needs to be spread across more that one article. Usually when this happens we create several similarly-titled articles with links to related content:\r\n\r\nHow to Plan a Party: Getting Started\r\nHow to Plan a Party: Choosing the Place\r\nHow to Plan a Party: Picking the Music\r\nHow to Plan a Party: Get the Word Out\r\nHow to Plan a Party: Collect the Cash!\r\nLease Negotiation Tactics\r\nHow to get a DJ\r\nAdvertisement Media Effectiveness Statistics\r\n\r\nProblem is, for each one of the "Planning the Party" articles, we have to create links to 4 other articles! What happens if we add a article? We have to add & change links in 6 articles!', '', '', 0, 0, '', '', '', 'Centered Image', 1, 2); ! INSERT INTO mod_article_sections VALUES ('Enter ArticleManager!', 'Whenever you want a section to start on a new page, just check the "Start on new page" box. ArticleManager will automagically divide your story into pages when it\'s displayed on your site. Each page\'s title will be the title of the first section on that page. So now your list of pages looks like this:\r\n\r\nHow to Plan a Party\r\nLease Negotiation Tactics\r\nHow to get a DJ\r\nAdvertisement Media Effectiveness Statistics\r\n\r\nand when you click on "How to Plan a Party", the bottom of the pages will look like this:\r\n\r\n\r\n<center><u>Previous Page</u>          <u>Next Page</u>\r\n\r\n <u>Page 1: Getting Started</u>\r\n <u>Page 2: Choosing the Place</u>\r\n <u>Page 3: Picking the Music</u>\r\n <u>Page 4: Get the Word Out</u>\r\n <u>Page 5: Collect the Cash!</u></center>\r\n\r\nSince this is all basically one article, they will all have the same link (example:www.yoursite.com/index.php ?module=article &view=2). However, if you want to link directly to page 4 just add"&page_num=4" to the end of the url so it looks like this: www.yoursite.com/index.php ?module=article &view=2&page_num=4\r\n\r\nIf you click the Print Icon, the ENTIRE story will print out. Not just the current page.', '', '', 0, 0, '', '', '', 'Centered Image', 0, 2); ! INSERT INTO mod_article_sections VALUES ('Cool Tip!', 'If you want to see the entire article on one webpage, change the url to &page_num=all', '', '', 0, 0, '', '', '', 'Centered Image', 0, 2); --- 53,68 ---- ! INSERT INTO mod_article_sections VALUES ('Article Manager Demo Section', 'Welcome to Article Manager!\r\n\r\nThis article was automatically generated when you installed Article Manager.\r\n\r\nIf you want to see an overview of the features of this module, check out "<a href="index.php?module=article&view=2">Introduction to Article Manager</a>".\r\n\r\nTo get started using Article Manager, proceed to the <a href="index.php?module=article&disp=main_menu">administrative menu</a> or go the the <a href="index.php?module=article&disp=news">"News"</a> page that lists all articles on your site.\r\n\r\nAnd most importantly, have fun with it!\r\n<strong><font color="#FF0000">eloi</font></strong>', '', '', 0, 0, '', '', '', 'Centered_Image', 0, 1); ! INSERT INTO mod_article_sections VALUES ('Features', '<b>NOTE:</b> <i>This introduction is for demo purposes only and is current as of the first release of Article Manager. For the most up-to-date version, look under the docs directory.</i>\r\n\r\nCustom articles - each section can look completely different\r\nDefine your own article and section templates\r\nAdmins can allow/deny ability to display external pages in an embedded frame\r\nUsers can add comments to your article\r\nUsers can view a list of the articles that they have created\r\nArticles keep track of how many times they\'ve been viewed\r\nArticles can be set to start showing at a future date\r\nArticles can expire on specified dates\r\nArticles can be viewed in summary format with a link to the full article\r\nMULTI-ARTICLE STORIES with automatic navigation controls!\r\nOptimization: Images are stored in multiple directories for faster access\r\nA library of approved images can be easily maintained\r\nImages can be clickable links with alternate text and photo captions\r\nExpired articles can be accessed from a list and re-activated\r\nModule settings are easily changeable\r\nUser-submitted articles can require approval before activation\r\n"Also on this site.." Block\r\n"Previous n Articles" Block\r\n"Most Popular Articles" Block\r\nArticles can be set to not show up in the homepage summary listings\r\nArticles can be assigned to topic categories\r\nArticles can be viewed only by certain groups\r\nAll of your old Announcements & PageMaster Module content can be imported\r\nAutomatic rerouting of old mod.php, Announcements & PageMaster links\r\nDisplay a printable version\r\nNothing is saved to disk until you hit "Save Page"\r\n"Edit Locking" - Only 1 user can edit a page at a time\r\nA "News" page that displays all articles', '', '', 0, 0, '', '', '', 'Centered_Image', 0, 5); ! INSERT INTO mod_article_sections VALUES ('The Main Menu', 'The main menu is the nerve center of the entire module. It allows you to do four basic tasks -- list articles, create a new article, change Article Manager configuration settings and manage the Image Library.', '', '', 0, 0, '', '', '', 'Centered_Image', 1, 3); ! INSERT INTO mod_article_sections VALUES ('List Articles:', 'Here you can choose to view all approved articles on the site or just your articles ordered by Title or by the date of creation, publication, expiration, or the last update. This list can be viewed in ascending or descending order.\r\n\r\nEach article in the listing is accompanied by buttons allowing you to set it as the homepage, edit it, delete it, or immediately publish or expire it. Of course buttons or options can only be seen if you are authorized to use them.', '', '', 0, 0, '', '', '', 'Centered_Image', 0, 2); ! INSERT INTO mod_article_sections VALUES ('Image Library Management', 'Instead of taking the security risk of allowing users to upload images to the server, admin-approved images can be stored in and selected from the Image Library.\r\n\r\nAfter an image is uploaded to the library using the "Image Library Management" interface, it will appear on the list underneath that also gives you the opportunity to delete existing pictures.', '', '', 0, 0, '', '', '', 'Centered_Image', 0, 3); ! INSERT INTO mod_article_sections VALUES ('Create a new article:', 'See the next section "CREATING & EDITING ARTICLES".', '', '', 0, 0, '', '', '', 'Centered_Image', 0, 2); ! INSERT INTO mod_article_sections VALUES ('Change configuration settings:', 'We\'ve made module customization easier for you by allowing you to change the following default settings:\r\n\r\n The default page template\r\n The default section template\r\n The # of summaries that show up on the Home Page\r\n The # of summaries that show up on article summary listings\r\n The # of article listings that show up under the main menu\r\n Whether articles need approval before publication\r\n Whether articles can expire on a predefined date\r\n Default expiration date offsets (years, months, days)\r\n How many years in advance publication dates can be set\r\n Uploaded image size limits (filesize, height, width)\r\n\r\nAdministrators can also decide whether users can:\r\n\r\n upload images\r\n include images in articles\r\n add comments to articles\r\n post comments without registering (Anonymous)\r\n create new articles\r\n edit/delete any, all, or just their own articles\r\n choose when their articles expire\r\n publish articles without admin approval\r\n change the module configuration ', '', '', 0, 0, '', '', '', 'Centered_Image', 0, 3); ! INSERT INTO mod_article_sections VALUES ('Creating & Editing Articles', 'Articles are basically made up of a title, article summary, and sections. Other information found on the article can include information on the author and the date created or edited. \r\n\r\nTITLE:\r\nAll articles need titles! Enter one here.\r\n\r\n\r\nSUMMARY:\r\nType in a SHORT description of the article here. When a list of articles is shown on the site, this will be displayed as a teaser to get the user to read more.\r\n\r\n\r\nSECTIONS:\r\nThis is the meat of the article. A article can contain as few or as many sections as you like. When you create or start editing a article, all currently save sections are displayed as finished. After each section you will see buttons to edit that section or to move the section above or below its neighbors.\r\n\r\nNear the bottom of the article a new blank section is created for you with its own "Save" button. See "Editing Sections" for a description of how they work.\r\n\r\nCONFIGURATION OPTIONS: \r\nCategory: \r\nThe topic categories that this article falls under.\r\n\r\nAllow Comments: \r\nWhether users can add discussion or comments to this article\r\n\r\nAllow Anonymous Comments: \r\nWhether unregistered user can add comments (NOT RECOMMENDED!)\r\n\r\nPublication Date: \r\nA story can only be viewable on the site after it is published. You don\'t need to change this value. It is automatically set to the date this story was created. If you want this story to be invisible until a future date, then you can set it here.\r\n\r\nExpiration Date:\r\nA story can only remain on the site until it expires. You don\'t need to change this value. The site administrator has set a default period before stories expire. If you want this story to be deleted before or after this date, then you can set it here.\r\n\r\n\r\nWHAT DO I NEED CATEGORIES FOR?\r\nIf this article is assigned to a category, ArticleManager can then work with other phpWebsite modules to group related articles together and give interested users suggestions on other articles to surf.\r\n\r\nARTICLE INFORMATION:\r\nNOTE -- These items are not editable. \r\nCreated By: Who created the article\r\nUpdated By: the last person to edit the article\r\nCreated On: When the article was created\r\nUpdated On: When the article was last edited\r\n\r\nSave Article:\r\nClick this button when you\'re finished editing. If all information was entered in correctly, you\'ll be taken back to the main menu.', '', '', 0, 0, '', '', '', 'Centered_Image', 1, 2); ! INSERT INTO mod_article_sections VALUES ('Creating & Editing Sections', 'Each section consists of a title and text (and sometimes an image). You can think of the title of a section as a subtitle of the article. Whenever you start editing a article or save a section, a new one is created for you.\r\n\r\nSTART ON NEW PAGE:\r\nThis option enables multi-article stories. When enabled, this section will be the first of a new page.\r\n\r\nTITLE:\r\nNot necessary, but recommended. Enter the section title here.\r\n\r\nTEXT:\r\nType in the section\'s text here. I\'m not sure if there is a limit to how much text you can put here, but if you hit it, you\'ll know. Above this entry box is a text formatting bar that you can use to add html formatting to your text. You\'ll at least need to use the "new line" button to create line breaks.\r\n\r\nIMAGE:\r\nIf you already added an image to this section, it\'s displayed here. If you are authorized, you will be given the options of uploading an image or selecting an existing image to display.\r\n\r\nUPLOAD A NEW IMAGE:\r\nThis lets you upload an image that will be associated with this section. If you choose to use an image, you must also add a Short Image Description.\r\n\r\nSELECT AN IMAGE FROM THE LIBRARY:\r\nThis site maintains a library of pre-approved images to use as an alternative to making, optimizing and uploading custom images. Just select the image you want to be associated with this section. If you choose to use an image, you must also add a Short Image Description.\r\n\r\nALTERNATE TEXT (Short Image Description): \r\nREQUIRED! Enter a short description of the image that will display if a browser can\'t or won\'t show the image. \r\n\r\nLINK:\r\nPutting a link URL in here will turn the image into a clickable link.\r\n\r\nLINK (PHOTO) CAPTION:\r\nSometimes you might want some text to appear above or below the image (eq: Photo Credits). Enter that text here.\r\n\r\nCONFIGURATION OPTIONS: \r\nStart on New Article: Whether this section starts a new article. See "MAKING MULTIPLE-ARTICLE STORIES".\r\nTemplate : Choose a display format for this section.\r\n\r\nSAVE SECTION:\r\nClick this button when you\'re finished editing. If all information was entered in correctly, the article will re-display with the section in its proper place.\r\n\r\n\r\nWHAT ARE TEMPLATES?\r\nEach section can be displayed in a different way -- with an image on the left, right, above the text, with a different-colored title, or even with all the text centered on the article! This is all controlled by templates that the administrator creates. All you have to do is select which display format you want to use for this section. If you want to read about creating or changing templates, see TEMPLATES.TXT.', '', '', 0, 0, '', '', '', 'No_Images', 1, 3); ! INSERT INTO mod_article_sections VALUES ('Making Multiple-Article Stories', 'Although webarticle content should always be as short and concise as possible, sometimes your article needs to be spread across more that one article. Usually when this happens we create several similarly-titled articles with links to related content:\r\n\r\nHow to Plan a Party: Getting Started\r\nHow to Plan a Party: Choosing the Place\r\nHow to Plan a Party: Picking the Music\r\nHow to Plan a Party: Get the Word Out\r\nHow to Plan a Party: Collect the Cash!\r\nLease Negotiation Tactics\r\nHow to get a DJ\r\nAdvertisement Media Effectiveness Statistics\r\n\r\nProblem is, for each one of the "Planning the Party" articles, we have to create links to 4 other articles! What happens if we add a article? We have to add & change links in 6 articles!', '', '', 0, 0, '', '', '', 'Centered_Image', 1, 2); ! INSERT INTO mod_article_sections VALUES ('Enter ArticleManager!', 'Whenever you want a section to start on a new page, just check the "Start on new page" box. ArticleManager will automagically divide your story into pages when it\'s displayed on your site. Each page\'s title will be the title of the first section on that page. So now your list of pages looks like this:\r\n\r\nHow to Plan a Party\r\nLease Negotiation Tactics\r\nHow to get a DJ\r\nAdvertisement Media Effectiveness Statistics\r\n\r\nand when you click on "How to Plan a Party", the bottom of the pages will look like this:\r\n\r\n\r\n<center><u>Previous Page</u>          <u>Next Page</u>\r\n\r\n <u>Page 1: Getting Started</u>\r\n <u>Page 2: Choosing the Place</u>\r\n <u>Page 3: Picking the Music</u>\r\n <u>Page 4: Get the Word Out</u>\r\n <u>Page 5: Collect the Cash!</u></center>\r\n\r\nSince this is all basically one article, they will all have the same link (example:www.yoursite.com/index.php ?module=article &view=2). However, if you want to link directly to page 4 just add"&page_num=4" to the end of the url so it looks like this: www.yoursite.com/index.php ?module=article &view=2&page_num=4\r\n\r\nIf you click the Print Icon, the ENTIRE story will print out. Not just the current page.', '', '', 0, 0, '', '', '', 'Centered_Image', 0, 2); ! INSERT INTO mod_article_sections VALUES ('Cool Tip!', 'If you want to see the entire article on one webpage, change the url to &page_num=all', '', '', 0, 0, '', '', '', 'Centered_Image', 0, 2); |
From: <ada...@us...> - 2003-08-06 02:55:05
|
Update of /cvsroot/phpwebsite-comm/modules/article/docs In directory sc8-pr-cvs1:/tmp/cvs-serv24705/docs Added Files: Changes.txt Log Message: Added Versioning Summary --- NEW FILE: Changes.txt --- ====================== Changes in version 1.4 ====================== -Due to popular demand, the Print Icon is now at the top of the page -Added title tag to print icon for compatibility w/ Mozilla. -Print Icon now will not show if the article is set as the main one. -Restricted Viewing isn't available right now, so I took out the configuration option -Section templates now have no spaces in the file name. The new files are copied in and the old files are deleted with the update. IMPORTANT: Before updating, make sure that access permissions for the /article/templates/section directory is set to 777. Otherwise, you'll have to delete the old template files manually! ====================== Changes in version 1.3 ====================== popboxes removed - now compatible with ver0.93 More bugs caught & fixed Updated INTRODUCTION.txt - Added a "Most-Used URL Extensions" section Interface Adjusted - Deleting articles & sections (without javascript enabled) now takes you to a separate confirmation screen. |
From: <ada...@us...> - 2003-08-06 02:35:09
|
Update of /cvsroot/phpwebsite-comm/modules/article/boost In directory sc8-pr-cvs1:/tmp/cvs-serv21580/boost Modified Files: install.php Log Message: Added check for proper version of phpWS Index: install.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/boost/install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** install.php 9 Jul 2003 20:24:22 -0000 1.1 --- install.php 6 Aug 2003 02:35:02 -0000 1.2 *************** *** 13,16 **** --- 13,22 ---- } + if($GLOBALS["core"]->version < "0.9.2-1") + { + $content .= "This module requires a phpWebSite core version of 0.9.2-1 or greater to install.<br />"; + $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; + } else { + /* Don't overwrite the tables for this module if they're already there */ if ($GLOBALS['core']->sqlTableExists("mod_article", true) *************** *** 86,88 **** --- 92,95 ---- else $content .= 'There was a problem writing to the database.<br />'; + } ?> |
From: <ada...@us...> - 2003-08-06 02:27:05
|
Update of /cvsroot/phpwebsite-comm/modules/article/boost In directory sc8-pr-cvs1:/tmp/cvs-serv18667/boost Modified Files: install.sql update.php Log Message: Section templates now have no spaces in the file name. The new files are copied in and the old files are deleted with the update. Before updating, users must make sure that they have access permissions for the /article/templates/section set to 777. The import script is also updated to relfect the new filenames. Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/boost/install.sql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** install.sql 19 Jul 2003 18:05:11 -0000 1.3 --- install.sql 6 Aug 2003 02:26:29 -0000 1.4 *************** *** 69,73 **** CREATE TABLE mod_article_config ( default_article_template varchar(255) NOT NULL DEFAULT "Blank", ! default_section_template varchar(255) NOT NULL DEFAULT "Centered Image", popular_articles smallint NOT NULL DEFAULT '5', summaries_on_homepage smallint NOT NULL DEFAULT '5', --- 69,73 ---- CREATE TABLE mod_article_config ( default_article_template varchar(255) NOT NULL DEFAULT "Blank", ! default_section_template varchar(255) NOT NULL DEFAULT "Centered_Image", popular_articles smallint NOT NULL DEFAULT '5', summaries_on_homepage smallint NOT NULL DEFAULT '5', *************** *** 99,103 **** ); ! INSERT INTO mod_article_config VALUES ('Blank', 'Centered Image', 5, 5, 5, 20, 1, 1, 0, 0, 3, 0, 0, 10, 26, 400, 400, 0, 0, 0, 0, 0, 0, 0, 0, 3600, 0, 0, '\r\n\r\n'); --- 99,103 ---- ); ! INSERT INTO mod_article_config VALUES ('Blank', 'Centered_Image', 5, 5, 5, 20, 1, 1, 0, 0, 3, 0, 0, 10, 26, 400, 400, 0, 0, 0, 0, 0, 0, 0, 0, 3600, 0, 0, '\r\n\r\n'); Index: update.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/boost/update.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** update.php 19 Jul 2003 18:05:12 -0000 1.1 --- update.php 6 Aug 2003 02:26:29 -0000 1.2 *************** *** 26,28 **** --- 26,125 ---- } } + if($currentVersion < 1.4) + { + $content .= 'Updating Article Manager to version 1.4<br />' + . 'Converting Spaces to Underscores in all template names.<br />'; + /* Retrieve all articles to update */ + $sql = 'SELECT id,template FROM mod_article'; + if(!$result = $GLOBALS['core']->query($sql, true)) + $content .= '<br />'.$_SESSION['translate']->it('ERROR: No [var1] were found!','articles').'<br />'; + else + while($row=$result->fetchrow(DB_FETCHMODE_ASSOC)) + $GLOBALS['core']->query('UPDATE mod_article SET template="'.str_replace(' ','_',$row['template']) + . '" WHERE id='.$row['id'], true); + $row = array(); + $result = null; + /* Retrieve all sections to update */ + $sql = 'SELECT id,template FROM mod_article_sections'; + if(!$result = $GLOBALS['core']->query($sql, true)) + $content .= '<br />'.$_SESSION['translate']->it('ERROR: No [var1] were found!','sections').'<br />'; + else + while($row=$result->fetchrow(DB_FETCHMODE_ASSOC)) + $GLOBALS['core']->query('UPDATE mod_article_sections SET template="'.str_replace(' ','_',$row['template']) + . '" WHERE id='.$row['id'], true); + $row = array(); + $result = null; + /* Retrieve configuration row for updating */ + $sql = 'SELECT default_article_template,default_section_template FROM mod_article_config'; + if(!$result = $GLOBALS['core']->query($sql, true)) + $content .= '<br />'.$_SESSION['translate']->it('ERROR: No [var1] were found!','configuration datum').'<br />'; + else + while($row=$result->fetchrow(DB_FETCHMODE_ASSOC)) + $GLOBALS['core']->query('UPDATE mod_article_config SET ' + . 'default_article_template="'.str_replace(' ','_',$row['default_article_template']) + . '",default_section_template="'.str_replace(' ','_',$row['default_section_template']) + . '"', true); + $row = array(); + $result = null; + + /* Delete the old template files */ + if ( ! function_exists('delfile') ) + { + function delfile ($dir, $file) + { + if (unlink(PHPWS_SOURCE_DIR . $dir . $file)) + return $file.' Deleted.<br />'; + else + return 'ERROR: '.$file.' could not be deleted. Please delete it manually.<br />'; + } + $content .= 'Deleting old template files (the ones with spaces in the names)<br />'; + $content .= delfile('mod/article/templates/section/','Centered Image.tpl'); + $content .= delfile('mod/article/templates/section/','Image Block Left.tpl'); + $content .= delfile('mod/article/templates/section/','Image Block Right.tpl'); + $content .= delfile('mod/article/templates/section/','Image Wrap Left.tpl'); + $content .= delfile('mod/article/templates/section/','Image Wrap Right.tpl'); + $content .= delfile('mod/article/templates/section/','No Images.tpl'); + $content .= delfile('mod/article/templates/section/','Text Only.tpl'); + $content .= delfile('mod/article/templates/section/','Page Insertion (Fit Block).tpl'); + $content .= delfile('mod/article/templates/section/','Page Insertion (Fit Page).tpl'); + $content .= delfile('mod/article/templates/section/','Page Insertion (Max Page).tpl'); + $content .= delfile('mod/article/templates/section/','Page Insertion (Title is Size).tpl'); + } + + /* Rename template files inside themes */ + if ( ! function_exists('renameThemeFile') ) + { + function renameThemeFile ($theme, $file) + { + $oldname = "themes/$theme/templates/article/section/".$file; + $newname = "themes/$theme/templates/article/section/".str_replace(' ','_',$file); + if (!file_exists(PHPWS_HOME_DIR . $oldname)) + return; + if (rename(PHPWS_HOME_DIR.$oldname, PHPWS_HOME_DIR.$newname)) + return $file.' was Renamed.<br />'; + else + return 'ERROR: '.$oldname.' could not be renamed. Please rename it as ' + .$newname.' manually.<br />'; + } + } + + $theme_names = $_SESSION['OBJ_layout']->get_themes(); + $content .= 'Renaming old template files in themes<br />'; + foreach($theme_names AS $theme) + { + $content .= 'Checking theme '.$theme.'<br />'; + $content .= renameThemeFile($theme,'Centered Image.tpl'); + $content .= renameThemeFile($theme,'Image Block Left.tpl'); + $content .= renameThemeFile($theme,'Image Block Right.tpl'); + $content .= renameThemeFile($theme,'Image Wrap Left.tpl'); + $content .= renameThemeFile($theme,'Image Wrap Right.tpl'); + $content .= renameThemeFile($theme,'No Images.tpl'); + $content .= renameThemeFile($theme,'Text Only.tpl'); + $content .= renameThemeFile($theme,'Page Insertion (Fit Block).tpl'); + $content .= renameThemeFile($theme,'Page Insertion (Fit Page).tpl'); + $content .= renameThemeFile($theme,'Page Insertion (Max Page).tpl'); + $content .= renameThemeFile($theme,'Page Insertion (Title is Size).tpl'); + } + $content .= 'Update to 1.4 Finished!<br />'; + } ?> |
Update of /cvsroot/phpwebsite-comm/modules/article/templates/section In directory sc8-pr-cvs1:/tmp/cvs-serv18667/templates/section Added Files: Centered_Image.tpl Image_Block_Left.tpl Image_Block_Right.tpl Image_Wrap_Left.tpl Image_Wrap_Right.tpl No_Images.tpl Page_Insertion_(Fit_Block).tpl Page_Insertion_(Fit_Page).tpl Page_Insertion_(Max_Page).tpl Page_Insertion_(Title_is_Size).tpl Text_Only.tpl Removed Files: Centered Image.tpl Image Block Left.tpl Image Block Right.tpl Image Wrap Left.tpl Image Wrap Right.tpl No Images.tpl Page Insertion (Fit Block).tpl Page Insertion (Fit Page).tpl Page Insertion (Max Page).tpl Page Insertion (Title is Size).tpl Text Only.tpl Log Message: Section templates now have no spaces in the file name. The new files are copied in and the old files are deleted with the update. Before updating, users must make sure that they have access permissions for the /article/templates/section set to 777. The import script is also updated to relfect the new filenames. --- NEW FILE: Centered_Image.tpl --- <!-- BEGIN IMAGE --> <div class="smalltext" align="center"> {IMAGE}<br /> {CAPTION} </div> <!-- END IMAGE --> <!-- BEGIN TITLE --> <h3>{TITLE}</h3> <!-- END TITLE --> <!-- BEGIN TEXT --> {TEXT} <!-- END TEXT --> --- NEW FILE: Image_Block_Left.tpl --- <!-- BEGIN TABLE --> <table border="0" width="100%" cellpadding="4" cellspacing="0"> <tr valign="top"> <!-- BEGIN IMAGE --> <td style="text-align : center"> <br />{IMAGE} <div class="smalltext"> {CAPTION} </div> </td> <!-- END IMAGE --> <!-- BEGIN TITLE_TEXT --> <td> <!-- BEGIN TITLE --> <h3>{TITLE}</h3> <!-- END TITLE --> <!-- BEGIN TEXT --> {TEXT} <!-- END TEXT --> </td> <!-- END TITLE_TEXT --> </tr> </table> <!-- END TABLE --> --- NEW FILE: Image_Block_Right.tpl --- <!-- BEGIN TABLE --> <table border="0" width="100%" cellpadding="4" cellspacing="0"> <tr valign="top"> <!-- BEGIN TITLE_TEXT --> <td> <!-- BEGIN TITLE --> <h3>{TITLE}</h3> <!-- END TITLE --> <!-- BEGIN TEXT --> {TEXT} <!-- END TEXT --> </td> <!-- END TITLE_TEXT --> <!-- BEGIN IMAGE --> <td style="text-align : center"> <br />{IMAGE} <div class="smalltext"> {CAPTION} </div> </td> <!-- END IMAGE --> </tr> </table> <!-- END TABLE --> --- NEW FILE: Image_Wrap_Left.tpl --- <!-- BEGIN TITLE --> <h3>{TITLE}</h3> <!-- END TITLE --> <!-- BEGIN IMAGE --> <div style="float : left; margin-bottom : .5em; margin-right : 1em"> {IMAGE} <div class="smalltext" align="center"> {CAPTION} </div> </div> <!-- END IMAGE --> <!-- BEGIN TEXT --> {TEXT} <!-- END TEXT --> --- NEW FILE: Image_Wrap_Right.tpl --- <!-- BEGIN TITLE --> <h3>{TITLE}</h3> <!-- END TITLE --> <!-- BEGIN IMAGE --> <div style="float : right;margin-bottom : .5em; margin-left : 1em"> {IMAGE} <div class="smalltext" align="center"> {CAPTION} </div> </div> <!-- END IMAGE --> <!-- BEGIN TEXT --> {TEXT} <!-- END TEXT --> --- NEW FILE: No_Images.tpl --- <!-- BEGIN TITLE --> <h3>{TITLE}</h3> <!-- END TITLE --> <!-- BEGIN TEXT --> {TEXT} <!-- END TEXT --> --- NEW FILE: Page_Insertion_(Fit_Block).tpl --- <!-- BEGIN PAGE INSERT --> <!-- BEGIN TABLE --> <table class="page" width="100%" cellpadding="4" cellspacing="0"> <tr> <!-- BEGIN IFRAME--> <td valign="top" align="left"> <iframe src="{TEXT}" width="100%"> Sorry! Your browser cannot display the page here." </iframe> </td> <!-- END IFRAME --> </tr> </table> <!-- END TABLE --> <script> function BrowserDetectLite() { var ua = navigator.userAgent.toLowerCase(); // browser name this.isGecko = (ua.indexOf('gecko') != -1); this.isMozilla = (this.isGecko && ua.indexOf("gecko/") + 14 == ua.length); this.isNS = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) ); this.isIE = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) ); this.isOpera = (ua.indexOf("opera") != -1); this.isKonqueror = (ua.indexOf("konqueror") != -1); this.isIcab = (ua.indexOf("icab") != -1); this.isAol = (ua.indexOf("aol") != -1); this.isWebtv = (ua.indexOf("webtv") != -1); // spoofing and compatible browsers this.isIECompatible = ( (ua.indexOf("msie") != -1) && !this.isIE); this.isNSCompatible = ( (ua.indexOf("mozilla") != -1) && !this.isNS && !this.isMozilla); // browser version this.versionMinor = parseFloat(navigator.appVersion); // correct version number for NS6+ if (this.isNS && this.isGecko) { this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('/') + 1 ) ); } // correct version number for IE4+ else if (this.isIE && this.versionMinor >= 4) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) ); } // correct version number for Opera else if (this.isOpera) { if (ua.indexOf('opera/') != -1) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera/') + 6 ) ); } else { this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera ') + 6 ) ); } } // correct version number for Konqueror else if (this.isKonqueror) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 ) ); } // correct version number for iCab else if (this.isIcab) { if (ua.indexOf('icab/') != -1) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab/') + 6 ) ); } else { this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab ') + 6 ) ); } } // correct version number for WebTV else if (this.isWebtv) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('webtv/') + 6 ) ); } this.versionMajor = parseInt(this.versionMinor); this.geckoVersion = ( (this.isGecko) ? ua.substring( (ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14) ) : -1 ); // platform this.isWin = (ua.indexOf('win') != -1); this.isWin32 = (this.isWin && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1) ); this.isMac = (ua.indexOf('mac') != -1); this.isUnix = (ua.indexOf('unix') != -1 || ua.indexOf('linux') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1) // specific browser shortcuts this.isNS4x = (this.isNS && this.versionMajor == 4); this.isNS40x = (this.isNS4x && this.versionMinor < 4.5); this.isNS47x = (this.isNS4x && this.versionMinor >= 4.7); this.isNS4up = (this.isNS && this.versionMinor >= 4); this.isNS6x = (this.isNS && this.versionMajor == 6); this.isNS6up = (this.isNS && this.versionMajor >= 6); this.isIE4x = (this.isIE && this.versionMajor == 4); this.isIE4up = (this.isIE && this.versionMajor >= 4); this.isIE5x = (this.isIE && this.versionMajor == 5); this.isIE55 = (this.isIE && this.versionMinor == 5.5); this.isIE5up = (this.isIE && this.versionMajor >= 5); this.isIE6x = (this.isIE && this.versionMajor == 6); this.isIE6up = (this.isIE && this.versionMajor >= 6); this.isIE4xMac = (this.isIE4x && this.isMac); } var browser = new BrowserDetectLite(); function walkUp(node) { var currNode=node; var nextNode=node.parentNode; var rowHeight=0; var tableHeight=node.offsetHeight; var freeSpace=0; var totalTop=0; while(currNode != null) { if(currNode.nodeType == 1) { switch(currNode.tagName) { case "TR": rowHeight = currNode.offsetHeight; // remember break; case "TABLE": freeSpace += (rowHeight > tableHeight) ? rowHeight - tableHeight : 0; // accumulate tableHeight = currNode.offsetHeight; // remember totalTop += currNode.offsetTop; // accumulate break; case "TD": totalTop += currNode.offsetTop; default:; } // end switch } // end if currNode=currNode.parentNode; // walk up } // end while result = [totalTop,freeSpace]; return result; } function upsize(vsize) { var docIframes=document.getElementsByTagName('IFRAME'); var theIframe=docIframes[0]; switch(vsize) { case 0: // fit in current window result=walkUp(theIframe); if(browser.isIE6up && (document.childNodes.length > 1)) theIframe.height = document.documentElement.clientHeight - result[0] - 5; else if(browser.isIE5up) theIframe.height = document.body.clientHeight - result[0]; else if(browser.isNS6up || browser.isMozilla) theIframe.height = self.innerHeight - theIframe.offsetTop; scrollTo(0,0); break; case 1: // match current document body result=walkUp(theIframe); theIframe.height = theIframe.offsetHeight + result[1]; break; default: theIframe.height = vsize; } // end switch(vsize) // alert(browser.isMozilla); } /* end upsize() */ upsize(1); </script> <!-- END PAGE INSERT --> --- NEW FILE: Page_Insertion_(Fit_Page).tpl --- <!-- BEGIN PAGE INSERT --> <!-- BEGIN TABLE --> <table class="page" width="100%" cellpadding="4" cellspacing="0"> <tr> <!-- BEGIN IFRAME--> <td valign="top" align="left"> <iframe src="{TEXT}" width="100%"> Sorry! Your browser cannot display the page here." </iframe> </td> <!-- END IFRAME --> </tr> </table> <!-- END TABLE --> <script> function BrowserDetectLite() { var ua = navigator.userAgent.toLowerCase(); // browser name this.isGecko = (ua.indexOf('gecko') != -1); this.isMozilla = (this.isGecko && ua.indexOf("gecko/") + 14 == ua.length); this.isNS = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) ); this.isIE = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) ); this.isOpera = (ua.indexOf("opera") != -1); this.isKonqueror = (ua.indexOf("konqueror") != -1); this.isIcab = (ua.indexOf("icab") != -1); this.isAol = (ua.indexOf("aol") != -1); this.isWebtv = (ua.indexOf("webtv") != -1); // spoofing and compatible browsers this.isIECompatible = ( (ua.indexOf("msie") != -1) && !this.isIE); this.isNSCompatible = ( (ua.indexOf("mozilla") != -1) && !this.isNS && !this.isMozilla); // browser version this.versionMinor = parseFloat(navigator.appVersion); // correct version number for NS6+ if (this.isNS && this.isGecko) { this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('/') + 1 ) ); } // correct version number for IE4+ else if (this.isIE && this.versionMinor >= 4) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) ); } // correct version number for Opera else if (this.isOpera) { if (ua.indexOf('opera/') != -1) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera/') + 6 ) ); } else { this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera ') + 6 ) ); } } // correct version number for Konqueror else if (this.isKonqueror) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 ) ); } // correct version number for iCab else if (this.isIcab) { if (ua.indexOf('icab/') != -1) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab/') + 6 ) ); } else { this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab ') + 6 ) ); } } // correct version number for WebTV else if (this.isWebtv) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('webtv/') + 6 ) ); } this.versionMajor = parseInt(this.versionMinor); this.geckoVersion = ( (this.isGecko) ? ua.substring( (ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14) ) : -1 ); // platform this.isWin = (ua.indexOf('win') != -1); this.isWin32 = (this.isWin && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1) ); this.isMac = (ua.indexOf('mac') != -1); this.isUnix = (ua.indexOf('unix') != -1 || ua.indexOf('linux') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1) // specific browser shortcuts this.isNS4x = (this.isNS && this.versionMajor == 4); this.isNS40x = (this.isNS4x && this.versionMinor < 4.5); this.isNS47x = (this.isNS4x && this.versionMinor >= 4.7); this.isNS4up = (this.isNS && this.versionMinor >= 4); this.isNS6x = (this.isNS && this.versionMajor == 6); this.isNS6up = (this.isNS && this.versionMajor >= 6); this.isIE4x = (this.isIE && this.versionMajor == 4); this.isIE4up = (this.isIE && this.versionMajor >= 4); this.isIE5x = (this.isIE && this.versionMajor == 5); this.isIE55 = (this.isIE && this.versionMinor == 5.5); this.isIE5up = (this.isIE && this.versionMajor >= 5); this.isIE6x = (this.isIE && this.versionMajor == 6); this.isIE6up = (this.isIE && this.versionMajor >= 6); this.isIE4xMac = (this.isIE4x && this.isMac); } var browser = new BrowserDetectLite(); function walkUp(node) { var currNode=node; var nextNode=node.parentNode; var rowHeight=0; var tableHeight=node.offsetHeight; var freeSpace=0; var totalTop=0; while(currNode != null) { if(currNode.nodeType == 1) { switch(currNode.tagName) { case "TR": rowHeight = currNode.offsetHeight; // remember break; case "TABLE": freeSpace += (rowHeight > tableHeight) ? rowHeight - tableHeight : 0; // accumulate tableHeight = currNode.offsetHeight; // remember totalTop += currNode.offsetTop; // accumulate break; case "TD": totalTop += currNode.offsetTop; default:; } // end switch } // end if currNode=currNode.parentNode; // walk up } // end while result = [totalTop,freeSpace]; return result; } function upsize(vsize) { var docIframes=document.getElementsByTagName('IFRAME'); var theIframe=docIframes[0]; switch(vsize) { case 0: // fit in current window result=walkUp(theIframe); if(browser.isIE6up && (document.childNodes.length > 1)) theIframe.height = document.documentElement.clientHeight - result[0] - 5; else if(browser.isIE5up) theIframe.height = document.body.clientHeight - result[0]; else if(browser.isNS6up || browser.isMozilla) theIframe.height = self.innerHeight - theIframe.offsetTop; scrollTo(0,0); break; case 1: // match current document body result=walkUp(theIframe); theIframe.height = theIframe.offsetHeight + result[1]; break; default: theIframe.height = vsize; } // end switch(vsize) // alert(browser.isMozilla); } /* end upsize() */ upsize(0); </script> <!-- END PAGE INSERT --> --- NEW FILE: Page_Insertion_(Max_Page).tpl --- <!-- BEGIN PAGE INSERT --> <!-- BEGIN TABLE --> <table class="page" width="100%" cellpadding="4" cellspacing="0"> <tr> <!-- BEGIN IFRAME--> <td valign="top" align="left"> <iframe src="{TEXT}" width="100%"> Sorry! Your browser cannot display the page here." </iframe> </td> <!-- END IFRAME --> </tr> </table> <!-- END TABLE --> <script> function BrowserDetectLite() { var ua = navigator.userAgent.toLowerCase(); // browser name this.isGecko = (ua.indexOf('gecko') != -1); this.isMozilla = (this.isGecko && ua.indexOf("gecko/") + 14 == ua.length); this.isNS = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) ); this.isIE = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) ); this.isOpera = (ua.indexOf("opera") != -1); this.isKonqueror = (ua.indexOf("konqueror") != -1); this.isIcab = (ua.indexOf("icab") != -1); this.isAol = (ua.indexOf("aol") != -1); this.isWebtv = (ua.indexOf("webtv") != -1); // spoofing and compatible browsers this.isIECompatible = ( (ua.indexOf("msie") != -1) && !this.isIE); this.isNSCompatible = ( (ua.indexOf("mozilla") != -1) && !this.isNS && !this.isMozilla); // browser version this.versionMinor = parseFloat(navigator.appVersion); // correct version number for NS6+ if (this.isNS && this.isGecko) { this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('/') + 1 ) ); } // correct version number for IE4+ else if (this.isIE && this.versionMinor >= 4) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) ); } // correct version number for Opera else if (this.isOpera) { if (ua.indexOf('opera/') != -1) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera/') + 6 ) ); } else { this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera ') + 6 ) ); } } // correct version number for Konqueror else if (this.isKonqueror) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 ) ); } // correct version number for iCab else if (this.isIcab) { if (ua.indexOf('icab/') != -1) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab/') + 6 ) ); } else { this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab ') + 6 ) ); } } // correct version number for WebTV else if (this.isWebtv) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('webtv/') + 6 ) ); } this.versionMajor = parseInt(this.versionMinor); this.geckoVersion = ( (this.isGecko) ? ua.substring( (ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14) ) : -1 ); // platform this.isWin = (ua.indexOf('win') != -1); this.isWin32 = (this.isWin && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1) ); this.isMac = (ua.indexOf('mac') != -1); this.isUnix = (ua.indexOf('unix') != -1 || ua.indexOf('linux') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1) // specific browser shortcuts this.isNS4x = (this.isNS && this.versionMajor == 4); this.isNS40x = (this.isNS4x && this.versionMinor < 4.5); this.isNS47x = (this.isNS4x && this.versionMinor >= 4.7); this.isNS4up = (this.isNS && this.versionMinor >= 4); this.isNS6x = (this.isNS && this.versionMajor == 6); this.isNS6up = (this.isNS && this.versionMajor >= 6); this.isIE4x = (this.isIE && this.versionMajor == 4); this.isIE4up = (this.isIE && this.versionMajor >= 4); this.isIE5x = (this.isIE && this.versionMajor == 5); this.isIE55 = (this.isIE && this.versionMinor == 5.5); this.isIE5up = (this.isIE && this.versionMajor >= 5); this.isIE6x = (this.isIE && this.versionMajor == 6); this.isIE6up = (this.isIE && this.versionMajor >= 6); this.isIE4xMac = (this.isIE4x && this.isMac); } var browser = new BrowserDetectLite(); function fullScreen() { window.resizeTo(screen.width-10,screen.height-55); window.moveTo(5,5); } function walkUp(node) { var currNode=node; var nextNode=node.parentNode; var rowHeight=0; var tableHeight=node.offsetHeight; var freeSpace=0; var totalTop=0; while(currNode != null) { if(currNode.nodeType == 1) { switch(currNode.tagName) { case "TR": rowHeight = currNode.offsetHeight; // remember break; case "TABLE": freeSpace += (rowHeight > tableHeight) ? rowHeight - tableHeight : 0; // accumulate tableHeight = currNode.offsetHeight; // remember totalTop += currNode.offsetTop; // accumulate break; case "TD": totalTop += currNode.offsetTop; default:; } // end switch } // end if currNode=currNode.parentNode; // walk up } // end while result = [totalTop,freeSpace]; return result; } function upsize(vsize) { var docIframes=document.getElementsByTagName('IFRAME'); var theIframe=docIframes[0]; switch(vsize) { case 0: // fit in current window result=walkUp(theIframe); if(browser.isIE6up && (document.childNodes.length > 1)) theIframe.height = document.documentElement.clientHeight - result[0] - 5; else if(browser.isIE5up) theIframe.height = document.body.clientHeight - result[0]; else if(browser.isNS6up || browser.isMozilla) theIframe.height = self.innerHeight - theIframe.offsetTop; scrollTo(0,0); break; case 1: // match current document body result=walkUp(theIframe); theIframe.height = theIframe.offsetHeight + result[1]; break; default: theIframe.height = vsize; } // end switch(vsize) // alert(screen.width); } /* end upsize() */ fullScreen(); upsize(0); </script> <!-- END PAGE INSERT --> --- NEW FILE: Page_Insertion_(Title_is_Size).tpl --- <!-- BEGIN PAGE INSERT --> <!-- BEGIN TABLE --> <table class="page" width="100%" cellpadding="4" cellspacing="0"> <tr> <!-- BEGIN IFRAME--> <td valign="top" align="left"> <iframe src="{TEXT}" width="100%"> Sorry! Your browser cannot display the page here." </iframe> </td> <!-- END IFRAME --> </tr> </table> <!-- END TABLE --> <script> function BrowserDetectLite() { var ua = navigator.userAgent.toLowerCase(); // browser name this.isGecko = (ua.indexOf('gecko') != -1); this.isMozilla = (this.isGecko && ua.indexOf("gecko/") + 14 == ua.length); this.isNS = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) ); this.isIE = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) ); this.isOpera = (ua.indexOf("opera") != -1); this.isKonqueror = (ua.indexOf("konqueror") != -1); this.isIcab = (ua.indexOf("icab") != -1); this.isAol = (ua.indexOf("aol") != -1); this.isWebtv = (ua.indexOf("webtv") != -1); // spoofing and compatible browsers this.isIECompatible = ( (ua.indexOf("msie") != -1) && !this.isIE); this.isNSCompatible = ( (ua.indexOf("mozilla") != -1) && !this.isNS && !this.isMozilla); // browser version this.versionMinor = parseFloat(navigator.appVersion); // correct version number for NS6+ if (this.isNS && this.isGecko) { this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('/') + 1 ) ); } // correct version number for IE4+ else if (this.isIE && this.versionMinor >= 4) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) ); } // correct version number for Opera else if (this.isOpera) { if (ua.indexOf('opera/') != -1) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera/') + 6 ) ); } else { this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera ') + 6 ) ); } } // correct version number for Konqueror else if (this.isKonqueror) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 ) ); } // correct version number for iCab else if (this.isIcab) { if (ua.indexOf('icab/') != -1) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab/') + 6 ) ); } else { this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab ') + 6 ) ); } } // correct version number for WebTV else if (this.isWebtv) { this.versionMinor = parseFloat( ua.substring( ua.indexOf('webtv/') + 6 ) ); } this.versionMajor = parseInt(this.versionMinor); this.geckoVersion = ( (this.isGecko) ? ua.substring( (ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14) ) : -1 ); // platform this.isWin = (ua.indexOf('win') != -1); this.isWin32 = (this.isWin && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1) ); this.isMac = (ua.indexOf('mac') != -1); this.isUnix = (ua.indexOf('unix') != -1 || ua.indexOf('linux') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1) // specific browser shortcuts this.isNS4x = (this.isNS && this.versionMajor == 4); this.isNS40x = (this.isNS4x && this.versionMinor < 4.5); this.isNS47x = (this.isNS4x && this.versionMinor >= 4.7); this.isNS4up = (this.isNS && this.versionMinor >= 4); this.isNS6x = (this.isNS && this.versionMajor == 6); this.isNS6up = (this.isNS && this.versionMajor >= 6); this.isIE4x = (this.isIE && this.versionMajor == 4); this.isIE4up = (this.isIE && this.versionMajor >= 4); this.isIE5x = (this.isIE && this.versionMajor == 5); this.isIE55 = (this.isIE && this.versionMinor == 5.5); this.isIE5up = (this.isIE && this.versionMajor >= 5); this.isIE6x = (this.isIE && this.versionMajor == 6); this.isIE6up = (this.isIE && this.versionMajor >= 6); this.isIE4xMac = (this.isIE4x && this.isMac); } var browser = new BrowserDetectLite(); function walkUp(node) { var currNode=node; var nextNode=node.parentNode; var rowHeight=0; var tableHeight=node.offsetHeight; var freeSpace=0; var totalTop=0; while(currNode != null) { if(currNode.nodeType == 1) { switch(currNode.tagName) { case "TR": rowHeight = currNode.offsetHeight; // remember break; case "TABLE": freeSpace += (rowHeight > tableHeight) ? rowHeight - tableHeight : 0; // accumulate tableHeight = currNode.offsetHeight; // remember totalTop += currNode.offsetTop; // accumulate break; case "TD": totalTop += currNode.offsetTop; default:; } // end switch } // end if currNode=currNode.parentNode; // walk up } // end while result = [totalTop,freeSpace]; return result; } function upsize(vsize) { var docIframes=document.getElementsByTagName('IFRAME'); var theIframe=docIframes[0]; switch(vsize) { case 0: // fit in current window result=walkUp(theIframe); if(browser.isIE6up && (document.childNodes.length > 1)) theIframe.height = document.documentElement.clientHeight - result[0] - 5; else if(browser.isIE5up) theIframe.height = document.body.clientHeight - result[0]; else if(browser.isNS6up || browser.isMozilla) theIframe.height = self.innerHeight - theIframe.offsetTop; scrollTo(0,0); break; case 1: // match current document body result=walkUp(theIframe); theIframe.height = theIframe.offsetHeight + result[1]; break; default: theIframe.height = vsize; } // end switch(vsize) // alert(browser.isMozilla); } /* end upsize() */ upsize({TITLE}); </script> <!-- END PAGE INSERT --> --- NEW FILE: Text_Only.tpl --- <!-- BEGIN TITLE --> <h3>{TITLE}</h3> <!-- END TITLE --> <!-- BEGIN IMAGE --> <div style="float : right;margin-bottom : .5em; margin-left : 1em"> {IMAGE} <div class="smalltext" align="center"> {CAPTION} </div> </div> <!-- END IMAGE --> <!-- BEGIN TEXT --> {TEXT} <!-- END TEXT --> --- Centered Image.tpl DELETED --- --- Image Block Left.tpl DELETED --- --- Image Block Right.tpl DELETED --- --- Image Wrap Left.tpl DELETED --- --- Image Wrap Right.tpl DELETED --- --- No Images.tpl DELETED --- --- Page Insertion (Fit Block).tpl DELETED --- --- Page Insertion (Fit Page).tpl DELETED --- --- Page Insertion (Max Page).tpl DELETED --- --- Page Insertion (Title is Size).tpl DELETED --- --- Text Only.tpl DELETED --- |
From: <ada...@us...> - 2003-08-06 02:26:36
|
Update of /cvsroot/phpwebsite-comm/modules/article/inc In directory sc8-pr-cvs1:/tmp/cvs-serv18667/inc Modified Files: importPM.php Log Message: Section templates now have no spaces in the file name. The new files are copied in and the old files are deleted with the update. Before updating, users must make sure that they have access permissions for the /article/templates/section set to 777. The import script is also updated to relfect the new filenames. Index: importPM.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/importPM.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** importPM.php 9 Jul 2003 20:24:26 -0000 1.1 --- importPM.php 6 Aug 2003 02:26:33 -0000 1.2 *************** *** 59,75 **** if ($old_page->sections[$x]->template=='image_center.tpl') ! $current_section->template = 'Centered Image'; elseif ($old_page->sections[$x]->template=='image_left.tpl') ! $current_section->template = 'Image Block Left'; elseif ($old_page->sections[$x]->template=='image_right.tpl') ! $current_section->template = 'Image Block Right'; elseif ($old_page->sections[$x]->template=='subtitle_and_text.tpl') ! $current_section->template = 'No Image'; elseif ($old_page->sections[$x]->template=='text_only.tpl') ! $current_section->template = 'Text Only'; elseif ($old_page->sections[$x]->template=='date_info_and_print.tpl') $_SESSION['SES_ART_article']->template = 'Dated'; elseif ($old_page->sections[$x]->template=='default.tpl') ! $current_section->template = 'Centered Image'; else $current_section->template = str_replace(".tpl", "", $old_page->sections[$x]->template); --- 59,75 ---- if ($old_page->sections[$x]->template=='image_center.tpl') ! $current_section->template = 'Centered_Image'; elseif ($old_page->sections[$x]->template=='image_left.tpl') ! $current_section->template = 'Image_Block_Left'; elseif ($old_page->sections[$x]->template=='image_right.tpl') ! $current_section->template = 'Image_Block_Right'; elseif ($old_page->sections[$x]->template=='subtitle_and_text.tpl') ! $current_section->template = 'No_Images'; elseif ($old_page->sections[$x]->template=='text_only.tpl') ! $current_section->template = 'Text_Only'; elseif ($old_page->sections[$x]->template=='date_info_and_print.tpl') $_SESSION['SES_ART_article']->template = 'Dated'; elseif ($old_page->sections[$x]->template=='default.tpl') ! $current_section->template = 'Centered_Image'; else $current_section->template = str_replace(".tpl", "", $old_page->sections[$x]->template); |
From: <ada...@us...> - 2003-08-06 02:26:36
|
Update of /cvsroot/phpwebsite-comm/modules/article/conf In directory sc8-pr-cvs1:/tmp/cvs-serv18667/conf Modified Files: boost.php Log Message: Section templates now have no spaces in the file name. The new files are copied in and the old files are deleted with the update. Before updating, users must make sure that they have access permissions for the /article/templates/section set to 777. The import script is also updated to relfect the new filenames. Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/conf/boost.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** boost.php 19 Jul 2003 18:05:18 -0000 1.3 --- boost.php 6 Aug 2003 02:26:33 -0000 1.4 *************** *** 18,22 **** $admin_mod = 1; $active = "on"; ! $version = 1.3; $mod_class_files = array("ArticleManager.php", --- 18,22 ---- $admin_mod = 1; $active = "on"; ! $version = 1.4; $mod_class_files = array("ArticleManager.php", |
From: <ada...@us...> - 2003-08-06 02:26:35
|
Update of /cvsroot/phpwebsite-comm/modules/article/class In directory sc8-pr-cvs1:/tmp/cvs-serv18667/class Modified Files: Article.php Section.php Log Message: Section templates now have no spaces in the file name. The new files are copied in and the old files are deleted with the update. Before updating, users must make sure that they have access permissions for the /article/templates/section set to 777. The import script is also updated to relfect the new filenames. Index: Article.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/class/Article.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Article.php 31 Jul 2003 22:33:51 -0000 1.9 --- Article.php 6 Aug 2003 02:26:32 -0000 1.10 *************** *** 575,579 **** /* Load templates to choose from */ $article_tpl_array = $GLOBALS['core']->listTemplates('article',true,'article'); ! if ($article_tpl_array) asort($article_tpl_array); $article_tags['TEMPLATE_LABEL'] = $_SESSION['translate']->it('Page Format').':'; $article_tags['TEMPLATE'] = $GLOBALS['core']->formSelect('ARTICLE_template', $article_tpl_array, $this->template, true, NULL, NULL) --- 575,583 ---- /* Load templates to choose from */ $article_tpl_array = $GLOBALS['core']->listTemplates('article',true,'article'); ! if ($article_tpl_array) ! { ! $article_tpl_array = str_replace('_',' ',$article_tpl_array); ! asort($article_tpl_array); ! } $article_tags['TEMPLATE_LABEL'] = $_SESSION['translate']->it('Page Format').':'; $article_tags['TEMPLATE'] = $GLOBALS['core']->formSelect('ARTICLE_template', $article_tpl_array, $this->template, true, NULL, NULL) *************** *** 678,682 **** $this->expiration_date = NULL; if (isset($_POST['ARTICLE_template'])) ! $this->template = $_POST['ARTICLE_template']; } --- 682,686 ---- $this->expiration_date = NULL; if (isset($_POST['ARTICLE_template'])) ! $this->template = str_replace(' ','_',$_POST['ARTICLE_template']); } Index: Section.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/class/Section.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Section.php 17 Jul 2003 18:07:24 -0000 1.4 --- Section.php 6 Aug 2003 02:26:32 -0000 1.5 *************** *** 303,308 **** unset($sect_tpl_array[$count]); } ! /* Strip the extensions off for readability */ $sect_tpl_array = str_replace('.tpl', NULL, $sect_tpl_array); /* Sort the list */ asort($sect_tpl_array); --- 303,309 ---- unset($sect_tpl_array[$count]); } ! /* Strip the extensions off & convert _ to spaces for readability */ $sect_tpl_array = str_replace('.tpl', NULL, $sect_tpl_array); + $sect_tpl_array = str_replace('_',' ',$sect_tpl_array); /* Sort the list */ asort($sect_tpl_array); *************** *** 370,374 **** $this->image['caption'] = $_POST['SECT_image_caption']; if (isset($_POST['SECT_template'])) ! $this->template = $_POST['SECT_template']; if (isset($_POST['SECT_new_page'])) $this->new_page = 1; --- 371,375 ---- $this->image['caption'] = $_POST['SECT_image_caption']; if (isset($_POST['SECT_template'])) ! $this->template = str_replace(' ','_',$_POST['SECT_template']); if (isset($_POST['SECT_new_page'])) $this->new_page = 1; |
From: <gbr...@us...> - 2003-08-02 00:04:12
|
Update of /cvsroot/phpwebsite-comm/modules/staffman/conf In directory sc8-pr-cvs1:/tmp/cvs-serv12007/conf Modified Files: boost.php Log Message: removing unused variables from conf/boost.php Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/staffman/conf/boost.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** boost.php 1 Aug 2003 00:22:00 -0000 1.3 --- boost.php 2 Aug 2003 00:04:06 -0000 1.4 *************** *** 16,23 **** /* Initial access file for module */ $mod_filename = "index.php"; - /* Opcode for admin entry ? */ - $admin_op = "&STAFF_MAN_op=list"; //& required to avoid XHTML errors - /* Opcode for user entry */ - $user_op = "&STAFF_MAN_op=list"; /* Who can view the list */ $allow_view = "all"; --- 16,19 ---- *************** *** 25,30 **** /* Icon user sees to select module */ $user_icon = "staff.gif"; - /* Icon admin sees to select module -- irrelevant in this case, see below */ - $mod_icon = "staff.gif"; /* This module has an admin interface in the Modules display */ /* If this is set to 1, and there is no conf/users.php file specifying a location, */ --- 21,24 ---- *************** *** 51,54 **** --- 45,59 ---- /* other modules on which this module depends */ $depend = array("menuman", "search"); + + // The following variables are no longer needed; they are superseded by entries + // in the controlpanel.php file. + + //$rights_file + //$mod_rights_tbl + //$mod_icon + //$admin_op + //$user_op + //$update_link + //$uninstall_allow (needed only for core modules) ?> |
From: <gbr...@us...> - 2003-08-02 00:03:37
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/conf In directory sc8-pr-cvs1:/tmp/cvs-serv11633/conf Modified Files: boost.php Log Message: removing unused variables from conf/boost.php Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/conf/boost.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** boost.php 1 Aug 2003 00:53:59 -0000 1.6 --- boost.php 2 Aug 2003 00:03:31 -0000 1.7 *************** *** 16,23 **** /* Initial access file for module */ $mod_filename = "index.php"; - /* Opcode for admin entry ? */ - $admin_op = "&JOB_MAN_op=list"; //& required to avoid XHTML errors - /* Opcode for user entry */ - $user_op = "&JOB_MAN_op=list"; /* Who can view the list */ $allow_view = "all"; --- 16,19 ---- *************** *** 25,30 **** /* Icon user sees to select module */ $user_icon = "jobman.gif"; - /* Icon admin sees to select module -- irrelevant in this case, see below */ - $mod_icon = "jobman.gif"; /* This module has an admin interface in the Modules display */ /* If this is set to 1, and there is no conf/users.php file specifying a location, */ --- 21,24 ---- *************** *** 48,54 **** $version = "1.2"; /* not sure, but likely the location on the web of the current version number */ - /* $update_link = "phpwebsite.appstate.edu/fallout/updates/linkman/VERSION"; */ /* other modules on which this module depends */ $depend = array("menuman", "search"); ?> --- 42,58 ---- $version = "1.2"; /* not sure, but likely the location on the web of the current version number */ /* other modules on which this module depends */ $depend = array("menuman", "search"); + + // The following variables are no longer needed; they are superseded by entries + // in the controlpanel.php file. + + //$rights_file + //$mod_rights_tbl + //$mod_icon + //$admin_op + //$user_op + //$update_link + //$uninstall_allow (needed only for core modules) ?> |
From: <gbr...@us...> - 2003-08-01 00:54:03
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/conf In directory sc8-pr-cvs1:/tmp/cvs-serv26142/conf Modified Files: boost.php Log Message: correcting a few bugs, improving multi-item view Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/conf/boost.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** boost.php 1 Aug 2003 00:20:40 -0000 1.5 --- boost.php 1 Aug 2003 00:53:59 -0000 1.6 *************** *** 24,30 **** $priority = 50; /* Icon user sees to select module */ ! $user_icon = "jobs.gif"; /* Icon admin sees to select module -- irrelevant in this case, see below */ ! $mod_icon = "jobs.gif"; /* This module has an admin interface in the Modules display */ /* If this is set to 1, and there is no conf/users.php file specifying a location, */ --- 24,30 ---- $priority = 50; /* Icon user sees to select module */ ! $user_icon = "jobman.gif"; /* Icon admin sees to select module -- irrelevant in this case, see below */ ! $mod_icon = "jobman.gif"; /* This module has an admin interface in the Modules display */ /* If this is set to 1, and there is no conf/users.php file specifying a location, */ |
From: <gbr...@us...> - 2003-08-01 00:54:02
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/class In directory sc8-pr-cvs1:/tmp/cvs-serv26142/class Modified Files: Job.php JobManager.php Log Message: correcting a few bugs, improving multi-item view Index: Job.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/class/Job.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Job.php 31 Jul 2003 23:56:13 -0000 1.5 --- Job.php 1 Aug 2003 00:53:58 -0000 1.6 *************** *** 252,255 **** --- 252,257 ---- $form->add("JOB_MAN_op", "hidden", "list"); $tags = $form->getTemplate(); + } else { + $tags["CONTINUE_BUTTON"] = "<hr>"; } $tags["POSITION_LABEL"] = $_SESSION['translate']->it("Position"); Index: JobManager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/class/JobManager.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JobManager.php 31 Jul 2003 23:56:13 -0000 1.2 --- JobManager.php 1 Aug 2003 00:53:58 -0000 1.3 *************** *** 118,122 **** /* set display variables */ ! $GLOBALS["CNT_jobman"]["content"] = $this->job->delete(); $GLOBALS["CNT_jobman"]["title"] = $_SESSION['translate']->it("Positions Available"); --- 118,122 ---- /* set display variables */ ! $GLOBALS["CNT_jobman"]["content"] = $content; $GLOBALS["CNT_jobman"]["title"] = $_SESSION['translate']->it("Positions Available"); |
From: <gbr...@us...> - 2003-08-01 00:22:03
|
Update of /cvsroot/phpwebsite-comm/modules/staffman/conf In directory sc8-pr-cvs1:/tmp/cvs-serv19654/conf Modified Files: boost.php Log Message: correct version number to new release Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/staffman/conf/boost.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** boost.php 31 Jul 2003 23:35:24 -0000 1.2 --- boost.php 1 Aug 2003 00:22:00 -0000 1.3 *************** *** 46,50 **** $active = "on"; /* This package's version number */ ! $version = "1.0"; /* not sure, but likely the location on the web of the current version number */ /* $update_link = "phpwebsite.appstate.edu/fallout/updates/linkman/VERSION"; */ --- 46,50 ---- $active = "on"; /* This package's version number */ ! $version = "1.0.1"; /* not sure, but likely the location on the web of the current version number */ /* $update_link = "phpwebsite.appstate.edu/fallout/updates/linkman/VERSION"; */ |
From: <gbr...@us...> - 2003-08-01 00:20:46
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/conf In directory sc8-pr-cvs1:/tmp/cvs-serv19082/conf Modified Files: boost.php Log Message: correct version number to new release Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/conf/boost.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** boost.php 31 Jul 2003 23:56:15 -0000 1.4 --- boost.php 1 Aug 2003 00:20:40 -0000 1.5 *************** *** 46,50 **** $active = "on"; /* This package's version number */ ! $version = "1.1.1"; /* not sure, but likely the location on the web of the current version number */ /* $update_link = "phpwebsite.appstate.edu/fallout/updates/linkman/VERSION"; */ --- 46,50 ---- $active = "on"; /* This package's version number */ ! $version = "1.2"; /* not sure, but likely the location on the web of the current version number */ /* $update_link = "phpwebsite.appstate.edu/fallout/updates/linkman/VERSION"; */ |
From: <gbr...@us...> - 2003-07-31 23:56:19
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/lang In directory sc8-pr-cvs1:/tmp/cvs-serv13519/lang Modified Files: jobman.en.lng Log Message: handle edit, delete and view multiple job list items Index: jobman.en.lng =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/lang/jobman.en.lng,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** jobman.en.lng 24 May 2003 21:16:21 -0000 1.2 --- jobman.en.lng 31 Jul 2003 23:56:15 -0000 1.3 *************** *** 33,34 **** --- 33,36 ---- a:|:Error:|:Error a:|:Category:|:Category + a:|:You may only delete one job listing at a time.:|:You may only delete one job listing at a time. + a:|:You may only edit one job listing at a time.:|:You may only edit one job listing at a time. |
From: <gbr...@us...> - 2003-07-31 23:56:18
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/conf In directory sc8-pr-cvs1:/tmp/cvs-serv13519/conf Modified Files: boost.php Log Message: handle edit, delete and view multiple job list items Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/conf/boost.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** boost.php 27 Jun 2003 17:07:42 -0000 1.3 --- boost.php 31 Jul 2003 23:56:15 -0000 1.4 *************** *** 17,23 **** $mod_filename = "index.php"; /* Opcode for admin entry ? */ ! $admin_op = "&JOB_MAN_op=list"; /* Opcode for user entry */ ! $user_op = "&JOB_MAN_op=list"; /* Who can view the list */ $allow_view = "all"; --- 17,23 ---- $mod_filename = "index.php"; /* Opcode for admin entry ? */ ! $admin_op = "&JOB_MAN_op=list"; //& required to avoid XHTML errors /* Opcode for user entry */ ! $user_op = "&JOB_MAN_op=list"; /* Who can view the list */ $allow_view = "all"; |
From: <gbr...@us...> - 2003-07-31 23:56:18
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/class In directory sc8-pr-cvs1:/tmp/cvs-serv13519/class Modified Files: Job.php JobManager.php Log Message: handle edit, delete and view multiple job list items Index: Job.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/class/Job.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Job.php 26 May 2003 18:19:52 -0000 1.4 --- Job.php 31 Jul 2003 23:56:13 -0000 1.5 *************** *** 240,254 **** * Displays current position listing * * @author George Brackett <gbr...@NO...> */ ! function view() { - $form = new EZform("JOB_VIEW"); - $form->add("CONTINUE_BUTTON", "submit", $_SESSION["translate"]->it("Continue")); - $form->add("module", "hidden", "jobman"); - $form->add("JOB_MAN_op", "hidden", "list"); $tags = array(); ! $tags = $form->getTemplate(); ! $tags["POSITION_LABEL"] = $_SESSION['translate']->it("Position"); $tags["STATUS_LABEL"] = $_SESSION['translate']->it("Status"); --- 240,256 ---- * Displays current position listing * + * @param Boolean $continuebtn = TRUE if continue button is to be shown * @author George Brackett <gbr...@NO...> */ ! function view($continuebtn) { $tags = array(); ! if ($continuebtn) { ! $form = new EZform("JOB_VIEW"); ! $form->add("CONTINUE_BUTTON", "submit", $_SESSION["translate"]->it("Continue")); ! $form->add("module", "hidden", "jobman"); ! $form->add("JOB_MAN_op", "hidden", "list"); ! $tags = $form->getTemplate(); ! } $tags["POSITION_LABEL"] = $_SESSION['translate']->it("Position"); $tags["STATUS_LABEL"] = $_SESSION['translate']->it("Status"); Index: JobManager.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/class/JobManager.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** JobManager.php 21 May 2003 22:29:34 -0000 1.1.1.1 --- JobManager.php 31 Jul 2003 23:56:13 -0000 1.2 *************** *** 83,89 **** */ function _edit() { $this->job = new Job($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->job->edit(); /* set display variables */ --- 83,95 ---- */ function _edit() { + // warn only one edit at a time + if (sizeof($_REQUEST["PHPWS_MAN_ITEMS"]) > 1) { + $content = "<span class=\"errortext\">" . $_SESSION['translate']->it("You may only edit one job listing at a time.") . "</span><br />"; + } else { + $content = ""; + } $this->job = new Job($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content .= $this->job->edit(); /* set display variables */ *************** *** 102,107 **** function _delete() { $this->job = new Job($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->job->delete(); /* set display variables */ --- 108,119 ---- function _delete() { + // warn only one deletion at a time + if (sizeof($_REQUEST["PHPWS_MAN_ITEMS"]) > 1) { + $content = "<span class=\"errortext\">" . $_SESSION['translate']->it("You may only delete one job listing at a time.") . "</span><br />"; + } else { + $content = ""; + } $this->job = new Job($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content .= $this->job->delete(); /* set display variables */ *************** *** 120,128 **** function _view() { ! $this->job = new Job($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the jobid */ ! $content = $this->job->view(); ! ! /* set display variables */ ! $GLOBALS["CNT_jobman"]["content"] = $content; $GLOBALS["CNT_jobman"]["title"] = $_SESSION['translate']->it("Positions Available"); --- 132,145 ---- function _view() { ! /* PHPWS_MAN_ITEMS[0] contains the an array of job ids */ ! $GLOBALS["CNT_staffman"]["content"] = ""; ! // ask for a continue button only for the last id ! $i = 0; ! foreach($_REQUEST["PHPWS_MAN_ITEMS"] as $jobid) { ! $this->job = new Job($jobid); ! $content = $this->job->view($i == (sizeof($_REQUEST["PHPWS_MAN_ITEMS"]) - 1)); ! $GLOBALS["CNT_jobman"]["content"] .= $content; ! $i++; ! } $GLOBALS["CNT_jobman"]["title"] = $_SESSION['translate']->it("Positions Available"); *************** *** 146,150 **** case "sView": /* view an item chosen from search results */ $this->job = new Job($_REQUEST["JOB_id"]); ! $content = $this->job->view(); /* set display variables */ --- 163,167 ---- case "sView": /* view an item chosen from search results */ $this->job = new Job($_REQUEST["JOB_id"]); ! $content = $this->job->view(TRUE); // show continue button /* set display variables */ |
From: <gbr...@us...> - 2003-07-31 23:35:27
|
Update of /cvsroot/phpwebsite-comm/modules/staffman/conf In directory sc8-pr-cvs1:/tmp/cvs-serv9506/conf Modified Files: boost.php Log Message: correcting XHTML bug in conf/boost.php Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/staffman/conf/boost.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** boost.php 2 Jul 2003 23:45:08 -0000 1.1.1.1 --- boost.php 31 Jul 2003 23:35:24 -0000 1.2 *************** *** 17,23 **** $mod_filename = "index.php"; /* Opcode for admin entry ? */ ! $admin_op = "&STAFF_MAN_op=list"; /* Opcode for user entry */ ! $user_op = "&STAFF_MAN_op=list"; /* Who can view the list */ $allow_view = "all"; --- 17,23 ---- $mod_filename = "index.php"; /* Opcode for admin entry ? */ ! $admin_op = "&STAFF_MAN_op=list"; //& required to avoid XHTML errors /* Opcode for user entry */ ! $user_op = "&STAFF_MAN_op=list"; /* Who can view the list */ $allow_view = "all"; |
From: <ada...@us...> - 2003-07-31 22:51:27
|
Update of /cvsroot/phpwebsite-comm/modules/article/templates/article/Blank In directory sc8-pr-cvs1:/tmp/cvs-serv29295/templates/article/Blank Modified Files: content.tpl title.tpl Log Message: Due to popular demand, the Print Icon is now at the top of the page Index: content.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/templates/article/Blank/content.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** content.tpl 14 Jul 2003 20:40:31 -0000 1.2 --- content.tpl 31 Jul 2003 22:35:32 -0000 1.3 *************** *** 24,28 **** <div class="smalltext" style="clear : both;" align="right"> <br /> ! {EDIT} {DELETE} {PRINT_ICON} {EMAIL} </div> <!-- END OPTIONS --> --- 24,28 ---- <div class="smalltext" style="clear : both;" align="right"> <br /> ! {EDIT} {DELETE} </div> <!-- END OPTIONS --> Index: title.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/templates/article/Blank/title.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** title.tpl 9 Jul 2003 20:24:27 -0000 1.1 --- title.tpl 31 Jul 2003 22:35:32 -0000 1.2 *************** *** 1 **** --- 1,4 ---- + <!-- BEGIN OPTIONS --> + <div style="float: right; text-align: right;">{PRINT_ICON} {EMAIL}</div> + <!-- END OPTIONS --> {TITLE} |
From: <ada...@us...> - 2003-07-31 22:48:59
|
Update of /cvsroot/phpwebsite-comm/modules/article/templates/article/Byline In directory sc8-pr-cvs1:/tmp/cvs-serv29295/templates/article/Byline Modified Files: content.tpl title.tpl Log Message: Due to popular demand, the Print Icon is now at the top of the page Index: content.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/templates/article/Byline/content.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** content.tpl 14 Jul 2003 20:40:32 -0000 1.2 --- content.tpl 31 Jul 2003 22:35:33 -0000 1.3 *************** *** 20,24 **** <div class="smalltext" style="clear : both;" align="right"> <br /> ! {EDIT} {DELETE} {PRINT_ICON} {EMAIL} </div> <!-- END OPTIONS --> --- 20,24 ---- <div class="smalltext" style="clear : both;" align="right"> <br /> ! {EDIT} {DELETE} </div> <!-- END OPTIONS --> Index: title.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/templates/article/Byline/title.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** title.tpl 9 Jul 2003 20:24:28 -0000 1.1 --- title.tpl 31 Jul 2003 22:35:33 -0000 1.2 *************** *** 1,2 **** --- 1,5 ---- + <!-- BEGIN OPTIONS --> + <div style="float: right; text-align: right;">{PRINT_ICON} {EMAIL}</div> + <!-- END OPTIONS --> {TITLE} <table class="smalltext" width="100%" border="0"> |
From: <ada...@us...> - 2003-07-31 22:47:51
|
Update of /cvsroot/phpwebsite-comm/modules/article/inc In directory sc8-pr-cvs1:/tmp/cvs-serv27395/inc Modified Files: editconfig.php saveconfig.php Log Message: Restricted Viewing isn't available right now, so I took out the configuration option Index: editconfig.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/editconfig.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** editconfig.php 19 Jul 2003 18:05:19 -0000 1.3 --- editconfig.php 31 Jul 2003 22:30:55 -0000 1.4 *************** *** 171,178 **** /* restricted_viewing */ ! $tags['RESTRICTED_VIEWING'] = $GLOBALS['core']->formCheckBox('CONFIG_restricted_viewing',1 ! ,$this->val['restricted_viewing'],NULL ! ,$_SESSION['translate']->it('Users can only see articles that belong to a group that they are members of')) ! . $_SESSION['OBJ_help']->show_link('configmanager', 'restricted_viewing'); /* lock_expiration_time */ --- 171,178 ---- /* restricted_viewing */ ! //$tags['RESTRICTED_VIEWING'] = $GLOBALS['core']->formCheckBox('CONFIG_restricted_viewing',1 ! // ,$this->val['restricted_viewing'],NULL ! // ,$_SESSION['translate']->it('Users can only see articles that belong to a group that they are members of')) ! // . $_SESSION['OBJ_help']->show_link('configmanager', 'restricted_viewing'); /* lock_expiration_time */ Index: saveconfig.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/saveconfig.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** saveconfig.php 19 Jul 2003 18:05:19 -0000 1.2 --- saveconfig.php 31 Jul 2003 22:30:55 -0000 1.3 *************** *** 40,44 **** ?$_POST['CONFIG_max_image_width'] :$this->val['max_image_width']; ! $query_data['restricted_viewing'] = ($_POST['CONFIG_restricted_viewing'])?1:0; $query_data['lock_expiration_time'] = $_POST['CONFIG_lock_expiration_time']; $query_data['make_metatags'] = ($_POST['CONFIG_make_metatags'])?1:0; --- 40,44 ---- ?$_POST['CONFIG_max_image_width'] :$this->val['max_image_width']; ! //$query_data['restricted_viewing'] = ($_POST['CONFIG_restricted_viewing'])?1:0; $query_data['lock_expiration_time'] = $_POST['CONFIG_lock_expiration_time']; $query_data['make_metatags'] = ($_POST['CONFIG_make_metatags'])?1:0; |
From: <ada...@us...> - 2003-07-31 22:47:51
|
Update of /cvsroot/phpwebsite-comm/modules/article/templates In directory sc8-pr-cvs1:/tmp/cvs-serv27395/templates Modified Files: config.tpl Log Message: Restricted Viewing isn't available right now, so I took out the configuration option Index: config.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/templates/config.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** config.tpl 9 Jul 2003 20:24:29 -0000 1.1 --- config.tpl 31 Jul 2003 22:30:58 -0000 1.2 *************** *** 13,16 **** --- 13,18 ---- {MAKE_METATAGS} <br /> + {BRAND_PRINTABLE} + <br /> {RESTRICTED_VIEWING} <br /> |
From: <ada...@us...> - 2003-07-31 22:47:14
|
Update of /cvsroot/phpwebsite-comm/modules/article/templates/article/Dated In directory sc8-pr-cvs1:/tmp/cvs-serv29295/templates/article/Dated Modified Files: content.tpl title.tpl Log Message: Due to popular demand, the Print Icon is now at the top of the page Index: content.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/templates/article/Dated/content.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** content.tpl 14 Jul 2003 20:40:32 -0000 1.2 --- content.tpl 31 Jul 2003 22:35:33 -0000 1.3 *************** *** 25,29 **** {CREATED_TEXT}<br /> {UPDATED_TEXT}<br /> ! {EDIT} {DELETE} {PRINT_ICON} {EMAIL} </div> <!-- END DATEINFO --> --- 25,29 ---- {CREATED_TEXT}<br /> {UPDATED_TEXT}<br /> ! {EDIT} {DELETE} </div> <!-- END DATEINFO --> Index: title.tpl =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/templates/article/Dated/title.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** title.tpl 9 Jul 2003 20:24:28 -0000 1.1 --- title.tpl 31 Jul 2003 22:35:33 -0000 1.2 *************** *** 1 **** --- 1,4 ---- + <!-- BEGIN OPTIONS --> + <div style="float: right; text-align: right;">{PRINT_ICON} {EMAIL}</div> + <!-- END OPTIONS --> {TITLE} |
From: <ada...@us...> - 2003-07-31 22:35:35
|
Update of /cvsroot/phpwebsite-comm/modules/article/class In directory sc8-pr-cvs1:/tmp/cvs-serv28645/class Modified Files: Article.php Log Message: Added title tag to print icon for compatibility w/ Mozilla. Print Icon now will not show if the article is set as the main one. Index: Article.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/class/Article.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Article.php 31 Jul 2003 21:12:44 -0000 1.8 --- Article.php 31 Jul 2003 22:33:51 -0000 1.9 *************** *** 337,343 **** } } ! $article_tags['PRINT_ICON'] = '<a href="' . $article_link .'&lay_quiet=1" target="_blank"><img src="http://' . PHPWS_SOURCE_HTTP . 'mod/article/img/print.gif" border="0" width="22" height="20" alt="' . $_SESSION['translate']->it("Printable Version") . '"/></a>'; --- 337,345 ---- } } ! if (!$this->mainarticle) ! $article_tags['PRINT_ICON'] = '<a href="' . $article_link .'&lay_quiet=1" target="_blank"><img src="http://' . PHPWS_SOURCE_HTTP . 'mod/article/img/print.gif" border="0" width="22" height="20" alt="' + . $_SESSION['translate']->it("Printable Version") . '" title="' . $_SESSION['translate']->it("Printable Version") . '"/></a>'; |
From: <ada...@us...> - 2003-07-31 22:11:30
|
Update of /cvsroot/phpwebsite-comm/modules/article/class In directory sc8-pr-cvs1:/tmp/cvs-serv8699/class Modified Files: Article.php Log Message: Stuff done while away. Index: Article.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/class/Article.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Article.php 19 Jul 2003 18:08:04 -0000 1.7 --- Article.php 31 Jul 2003 21:12:44 -0000 1.8 *************** *** 243,247 **** if ($Fullpage) /* Full article display */ { ! $printAll = $_REQUEST['page_num']=='all' || isset($_REQUEST['lay_quiet']); /* Keep track of any sub-page titles for the NavBar */ $page_list[] = $this->title; --- 243,247 ---- if ($Fullpage) /* Full article display */ { ! $printAll = (isset($_REQUEST['page_num']) && $_REQUEST['page_num']=='all') || isset($_REQUEST['lay_quiet']); /* Keep track of any sub-page titles for the NavBar */ $page_list[] = $this->title; *************** *** 249,253 **** /* Construct article sections */ $first_section = TRUE; ! $page_wanted = ($_REQUEST['page_num']) ?$_REQUEST['page_num'] :1; --- 249,254 ---- /* Construct article sections */ $first_section = TRUE; ! $article_tags['BODYTEXT'] = ''; ! $page_wanted = (isset($_REQUEST['page_num'])) ?$_REQUEST['page_num'] :1; *************** *** 784,789 **** .' - '. $_SESSION['translate']->it('Article Saved').'!'; $GLOBALS['CNT_article']['content'] = $content .'<br /><br />'. $this->menuLink; - // $title = $_SESSION['translate']->it('Article Saved').'!'; - // $_SESSION['OBJ_layout']->popbox($title, $content, NULL, 'CNT_article'); } --- 785,788 ---- *************** *** 857,862 **** .' - '. $_SESSION['translate']->it('Article Deleted').'!'; $GLOBALS['CNT_article']['content'] = $content .'<br /><br />'. $this->menuLink; - // $title = '<div class="errortext">'.$_SESSION['translate']->it('Article Deleted').'!</div>'; - // $_SESSION['OBJ_layout']->popbox($title, $content, NULL, 'CNT_article'); } else if(isset($_POST['no'])) --- 856,859 ---- *************** *** 867,874 **** , $_SESSION['translate']->it('article'), $this->title, '<b>'.$_SESSION['translate']->it('kept').'</b>!') . '<br /><br />' . $this->menuLink; - // $title = '<div class="errortext">'.$_SESSION['translate']->it('Article Kept').'!</div>'; - // $content = $_SESSION['translate']->it('The [var1] <b>[var2]</b> has successfully been [var3]' - // , $_SESSION['translate']->it('article'), $this->title, '<b>'.$_SESSION['translate']->it('kept').'</b>!'); - // $_SESSION['OBJ_layout']->popbox($title, $content, NULL, 'CNT_article'); } else --- 864,867 ---- *************** *** 886,890 **** , $_SESSION['translate']->it('delete'), $this->title) . $GLOBALS['core']->makeForm("ARTICLE_confirm_delete", "index.php", $myform, "post", 0, 0); - // $_SESSION['OBJ_layout']->popbox($title, $content, NULL, 'CNT_article'); } } --- 879,882 ---- *************** *** 976,980 **** , '<b><u>' .$SECT_id. $this->sections[$SECT_id]->title . '</u></b><br /><br />') . $GLOBALS['core']->makeForm('SECT_confirm_delete', 'index.php', $myform, 'post', 0, 0); - // $_SESSION['OBJ_layout']->popbox($title, $content, NULL, 'CNT_article'); } } --- 968,971 ---- |