diff --git a/docs/upgrades/upgrade_5.1.2-5.2.0.sql b/docs/upgrades/upgrade_5.1.2-5.2.0.sql index bca6d941e..7b0cc425a 100644 --- a/docs/upgrades/upgrade_5.1.2-5.2.0.sql +++ b/docs/upgrades/upgrade_5.1.2-5.2.0.sql @@ -2400,7 +2400,7 @@ insert into international (internationalId,languageId,namespace,message,lastUpda delete from international where languageId=8 and namespace='WebGUI' and internationalId=884; insert into international (internationalId,languageId,namespace,message,lastUpdated) values (884,8,'WebGUI','Pop Up', 1045777629); delete from international where languageId=8 and namespace='WebGUI' and internationalId=887; -insert into international (internationalId,languageId,namespace,message,lastUpdated) values (887,8,'WebGUI','Midas (IE 6+ or Mozilla 1.3+)', 1045777616); +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (887,8,'WebGUI','Midas (Mozilla 1.3+)', 1045777616); delete from international where languageId=8 and namespace='WebGUI' and internationalId=883; insert into international (internationalId,languageId,namespace,message,lastUpdated) values (883,8,'WebGUI','Integrato (se supportato)', 1045777585); delete from international where languageId=8 and namespace='WebGUI' and internationalId=885; @@ -3110,6 +3110,235 @@ alter table SyndicatedContent drop column lastFetched; alter table SyndicatedContent add column templateId int not null default 1; INSERT INTO template VALUES (1,'Default Syndicated Content','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n

\r\n\r\n \" target=\"_blank\"> \r\n\r\n \r\n\r\n

\r\n\r\n\r\n

\r\n\r\n\r\n\r\n\r\n

  • \r\n \r\n \" target=\"_blank\"> \r\n \r\n \r\n \r\n \r\n - \r\n \r\n
    \r\n\r\n','SyndicatedContent'); alter table collateral change thumbnailsize thumbnailSize int not null default 50; +delete from help where helpId=20 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (20, 'WebGUI', 670, 625, '49,WebGUI;'); +delete from help where helpId=1 and namespace='FileManager'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'FileManager', 61, 71, '3,FileManager;2,FileManager;21,WebGUI;'); +delete from help where helpId=28 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (28, 'WebGUI', 678, 633, '1,WebGUI;3,WebGUI;'); +delete from help where helpId=31 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (31, 'WebGUI', 681, 636, '30,WebGUI;1,WebGUI;3,WebGUI;'); +delete from help where helpId=30 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (30, 'WebGUI', 680, 635, '31,WebGUI;'); +delete from help where helpId=25 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (25, 'WebGUI', 675, 630, '60,WebGUI;'); +delete from help where helpId=1 and namespace='Item'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'Item', 61, 71, '2,Item;21,WebGUI;'); +delete from help where helpId=6 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (6, 'WebGUI', 656, 611, '12,WebGUI;'); +delete from help where helpId=46 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (46, 'WebGUI', 696, 651, NULL); +delete from help where helpId=22 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (22, 'WebGUI', 672, 627, '12,WebGUI;'); +delete from help where helpId=1 and namespace='USS'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'USS', 61, 71, '3,USS;2,USS;21,WebGUI;'); +delete from help where helpId=24 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (24, 'WebGUI', 674, 629, '12,WebGUI;'); +delete from help where helpId=1 and namespace='FAQ'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'FAQ', 61, 71, '3,FAQ;2,FAQ;21,WebGUI;'); +delete from help where helpId=13 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (13, 'WebGUI', 663, 618, '12,WebGUI;'); +delete from help where helpId=1 and namespace='SyndicatedContent'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'SyndicatedContent', 61, 71, '2,SyndicatedContent;21,WebGUI;'); +delete from help where helpId=1 and namespace='EventsCalendar'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'EventsCalendar', 61, 71, '2,EventsCalendar;3,EventsCalendar;21,WebGUI;'); +delete from help where helpId=1 and namespace='MessageBoard'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'MessageBoard', 61, 71, '2,MessageBoard;21,WebGUI;'); +delete from help where helpId=1 and namespace='LinkList'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'LinkList', 61, 71, '3,LinkList;2,LinkList;21,WebGUI;'); +delete from help where helpId=21 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (21, 'WebGUI', 671, 626, '19,WebGUI;18,WebGUI;27,WebGUI;14,WebGUI;'); +delete from help where helpId=1 and namespace='Article'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'Article', 61, 71, '21,WebGUI;'); +delete from help where helpId=1 and namespace='ExtraColumn'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'ExtraColumn', 61, 71, '21,WebGUI;'); +delete from help where helpId=27 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (27, 'WebGUI', 677, 632, '1,Article;1,EventsCalendar;1,ExtraColumn;1,FAQ;1,FileManager;1,HttpProxy;1,Item;1,LinkList;1,MailForm;1,MessageBoard;1,Poll;1,Product;1,SiteMap;1,SQLReport;1,Survey;1,SyndicatedContent;1,USS;1,WobjectProxy;21,WebGUI;'); +delete from help where helpId=1 and namespace='Poll'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'Poll', 61, 71, '21,WebGUI;'); +delete from help where helpId=1 and namespace='SiteMap'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'SiteMap', 61, 71, '2,SiteMap;21,WebGUI;'); +delete from help where helpId=1 and namespace='SQLReport'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'SQLReport', 61, 71, '21,WebGUI;'); +delete from help where helpId=18 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (18, 'WebGUI', 668, 623, NULL); +delete from help where helpId=17 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (17, 'WebGUI', 667, 622, '10,WebGUI;'); +delete from help where helpId=2 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'WebGUI', 652, 607, '12,WebGUI;'); +delete from help where helpId=15 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (15, 'WebGUI', 665, 620, '10,WebGUI;'); +delete from help where helpId=16 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (16, 'WebGUI', 666, 621, '60,WebGUI;9,WebGUI;'); +delete from help where helpId=14 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (14, 'WebGUI', 664, 619, '21,WebGUI;'); +delete from help where helpId=12 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (12, 'WebGUI', 662, 617, '6,WebGUI;29,WebGUI;13,WebGUI;24,WebGUI;22,WebGUI;2,WebGUI;'); +delete from help where helpId=10 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (10, 'WebGUI', 660, 615, '17,WebGUI;15,WebGUI;8,WebGUI;'); +delete from help where helpId=8 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (8, 'WebGUI', 658, 613, '10,WebGUI;32,WebGUI;5,WebGUI;7,WebGUI;'); +delete from help where helpId=9 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (9, 'WebGUI', 659, 614, '19,WebGUI;18,WebGUI;16,WebGUI;4,WebGUI;'); +delete from help where helpId=7 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (7, 'WebGUI', 657, 612, '8,WebGUI;'); +delete from help where helpId=32 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (32, 'WebGUI', 682, 637, '8,WebGUI;'); +delete from help where helpId=5 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (5, 'WebGUI', 655, 610, '8,WebGUI;'); +delete from help where helpId=3 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (3, 'WebGUI', 653, 608, '1,WebGUI;'); +delete from help where helpId=4 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (4, 'WebGUI', 654, 609, '9,WebGUI;'); +delete from help where helpId=1 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'WebGUI', 642, 606, '52,WebGUI;3,WebGUI;'); +delete from help where helpId=29 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (29, 'WebGUI', 679, 634, '12,WebGUI;'); +delete from help where helpId=33 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (33, 'WebGUI', 683, 638, '34,WebGUI;35,WebGUI;50,WebGUI;'); +delete from help where helpId=34 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (34, 'WebGUI', 684, 639, '33,WebGUI;'); +delete from help where helpId=35 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (35, 'WebGUI', 685, 640, '33,WebGUI;'); +delete from help where helpId=19 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (19, 'WebGUI', 669, 624, '53,WebGUI;58,WebGUI;57,WebGUI;60,WebGUI;59,WebGUI;'); +delete from help where helpId=1 and namespace='MailForm'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'MailForm', 61, 71, '21,WebGUI;'); +delete from help where helpId=2 and namespace='MailForm'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'MailForm', 62, 72, '1,MailForm;'); +delete from help where helpId=2 and namespace='FileManager'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'FileManager', 72, 73, '1,FileManager;'); +delete from help where helpId=2 and namespace='EventsCalendar'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'EventsCalendar', 72, 73, '4,EventsCalendar;1,EventsCalendar;'); +delete from help where helpId=2 and namespace='FAQ'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'FAQ', 72, 73, '1,FAQ;'); +delete from help where helpId=2 and namespace='LinkList'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'LinkList', 72, 73, '1,LinkList;'); +delete from help where helpId=47 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (47, 'WebGUI', 697, 698, '1,Article;17,WebGUI;1,MessageBoard;1,Poll;2,WebGUI;1,USS;'); +delete from help where helpId=1 and namespace='WobjectProxy'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'WobjectProxy', 5, 6, '21,WebGUI;'); +delete from help where helpId=1 and namespace='Product'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'Product', 38, 39, '5,Product;4,Product;6,Product;2,Product;3,Product;7,Product;21,WebGUI;'); +delete from help where helpId=2 and namespace='Product'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'Product', 40, 41, '6,Product;1,Product;'); +delete from help where helpId=3 and namespace='Product'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (3, 'Product', 42, 43, '1,Product;'); +delete from help where helpId=4 and namespace='Product'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (4, 'Product', 44, 45, '1,Product;'); +delete from help where helpId=5 and namespace='Product'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (5, 'Product', 46, 47, '1,Product;'); +delete from help where helpId=6 and namespace='Product'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (6, 'Product', 49, 50, '2,Product;1,Product;'); +delete from help where helpId=7 and namespace='Product'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (7, 'Product', 62, 63, '1,Product;51,WebGUI;'); +delete from help where helpId=1 and namespace='Survey'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'Survey', 3, 4, '21,WebGUI;'); +delete from help where helpId=49 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (49, 'WebGUI', 785, 786, '53,WebGUI;54,WebGUI;56,WebGUI;20,WebGUI;55,WebGUI;'); +delete from help where helpId=50 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (50, 'WebGUI', 825, 826, '33,WebGUI;'); +delete from help where helpId=2 and namespace='Article'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'Article', 72, 73, '1,Article;51,WebGUI;'); +delete from help where helpId=51 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (51, 'WebGUI', 827, 828, '2,Article;3,EventsCalendar;3,FAQ;3,FileManager;2,Item;3,LinkList;2,MessageBoard;7,Product;2,SiteMap;2,SyndicatedContent;33,WebGUI;2,USS;'); +delete from help where helpId=3 and namespace='EventsCalendar'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (3, 'EventsCalendar', 94, 95, '1,EventsCalendar;51,WebGUI;'); +delete from help where helpId=3 and namespace='FAQ'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (3, 'FAQ', 76, 77, '1,FAQ;51,WebGUI;'); +delete from help where helpId=3 and namespace='FileManager'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (3, 'FileManager', 75, 76, '1,FileManager;51,WebGUI;'); +delete from help where helpId=4 and namespace='EventsCalendar'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (4, 'EventsCalendar', 96, 97, '2,EventsCalendar;51,WebGUI;'); +delete from help where helpId=2 and namespace='Item'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'Item', 73, 74, '1,Item;51,WebGUI;'); +delete from help where helpId=3 and namespace='LinkList'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (3, 'LinkList', 75, 76, '1,LinkList;51,WebGUI;'); +delete from help where helpId=2 and namespace='MessageBoard'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'MessageBoard', 73, 74, '1,MessageBoard;51,WebGUI;'); +delete from help where helpId=2 and namespace='SiteMap'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'SiteMap', 72, 73, '1,SiteMap;51,WebGUI;'); +delete from help where helpId=2 and namespace='USS'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'USS', 74, 75, '1,USS;51,WebGUI;'); +delete from help where helpId=3 and namespace='USS'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (3, 'USS', 76, 77, '1,USS;51,WebGUI;'); +delete from help where helpId=52 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (52, 'WebGUI', 829, 830, '1,WebGUI;33,WebGUI;'); +delete from help where helpId=53 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (53, 'WebGUI', 831, 832, '49,WebGUI;19,WebGUI;'); +delete from help where helpId=54 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (54, 'WebGUI', 833, 834, '49,WebGUI;'); +delete from help where helpId=55 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (55, 'WebGUI', 835, 836, '49,WebGUI;'); +delete from help where helpId=56 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (56, 'WebGUI', 837, 838, '49,WebGUI;'); +delete from help where helpId=57 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (57, 'WebGUI', 839, 840, '19,WebGUI;'); +delete from help where helpId=58 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (58, 'WebGUI', 841, 842, '19,WebGUI;'); +delete from help where helpId=59 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (59, 'WebGUI', 843, 844, '19,WebGUI;'); +delete from help where helpId=60 and namespace='WebGUI'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (60, 'WebGUI', 845, 846, '19,WebGUI;16,WebGUI;'); +delete from help where helpId=2 and namespace='SyndicatedContent'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (2, 'SyndicatedContent', 72, 73, '1,SyndicatedContent;'); +delete from help where helpId=1 and namespace='HttpProxy'; +insert into help (helpId,namespace,titleId,bodyId,seeAlso) values (1, 'HttpProxy', 10, 11, '21,WebGUI;'); +delete from international where languageId=1 and namespace='USS' and internationalId=61; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (61,1,'USS','User Submission System, Add/Edit', 1047859664); +delete from international where languageId=1 and namespace='USS' and internationalId=71; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (71,1,'USS','User Submission Systems are a great way to add a sense of community to any site as well as get free content from your users.\r\n

    \r\n\r\nMain Template
    \r\nChoose a layout for this USS.\r\n

    \r\n\r\n\r\nFilter Content
    \r\nSelect the level of content filtering you wish to perform on all submitted content.\r\n

    \r\n\r\nSubmission Template
    \r\nChoose a layout for the individual submissions.\r\n

    \r\n\r\nWho can approve?
    \r\nWhat group is allowed to approve and deny content?\r\n

    \r\n\r\nWho can contribute?
    \r\nWhat group is allowed to contribute content?\r\n

    \r\n\r\nSubmissions Per Page
    \r\nHow many submissions should be listed per page in the submissions index?\r\n

    \r\n\r\nDefault Status
    \r\nShould submissions be set to Approved, Pending, or Denied by default?\r\n

    \r\nNote: If you set the default status to Pending, then be prepared to monitor your message log for new submissions.\r\n

    \r\n\r\nKarma Per Submission
    \r\nHow much karma should be given to a user when they contribute to this user submission system?\r\n

    \r\n\r\n\r\nDisplay thumbnails?
    \r\nIf there is an image present in the submission, the thumbnail will be displayed in the Layout (see above).\r\n

    \r\n\r\nAllow discussion?
    \r\nChecking this box will enable responses to your article much like Articles on Slashdot.org.\r\n

    \r\n\r\n\r\nFilter Post
    \r\nSelect the level of content filtering you wish to perform on all discussion posts.\r\n

    \r\n\r\nWho can post?
    \r\nSelect the group that is allowed to post to this discussion.\r\n

    \r\n\r\nEdit Timeout
    \r\nHow long should a user be able to edit their post before editing is locked to them?\r\n

    \r\nNOTE: Don\'t set this limit too high. One of the great things about discussions is that they are an accurate record of who said what. If you allow editing for a long time, then a user has a chance to go back and change his/her mind a long time after the original statement was made.\r\n

    \r\n\r\nKarma Per Post
    \r\nHow much karma should be given to a user when they post to this discussion?\r\n

    \r\n\r\nWho can moderate?
    \r\nSelect the group that is allowed to moderate this discussion.\r\n

    \r\n\r\nModeration Type?
    \r\nYou can select what type of moderation you\'d like for your users. After-the-fact means that when a user posts a message it is displayed publically right away. Pre-emptive means that a moderator must preview and approve users posts before allowing them to be publically visible. Alerts for new posts will automatically show up in the moderator\'s WebGUI Inbox.\r\n

    \r\nNOTE: In both types of moderation the moderator can always edit or delete the messages posted by your users.\r\n

    \r\n\r\nAdd edit stamp to posts?
    \r\nDo you wish to "stamp" all edits so that you can track who edited a post and when?\r\n

    \r\n', 1047859664); +delete from international where languageId=1 and namespace='WebGUI' and internationalId=632; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (632,1,'WebGUI','You can add wobjects by selecting from the Add Content pulldown menu. You can edit them by clicking on the "Edit" button that appears directly above an instance of a particular wobject.\r\n

    \r\n\r\nAlmost all wobjects share some properties. Those properties are:\r\n

    \r\n\r\nWobject ID
    \r\nThis is the unique identifier WebGUI uses to keep track of this wobject instance. Normal users should never need to be concerned with the Wobject ID, but some advanced users may need to know it for things like SQL Reports.\r\n

    \r\n\r\n\r\nTitle\r\nThe title of the wobject. This is typically displayed at the top of each wobject.\r\n

    \r\n\r\nNote: You should always specify a title even if you are going to turn it off (with the next property). This is because the title shows up in the trash and clipboard and you\'ll want to be able to distinguish which wobject is which.\r\n

    \r\n\r\n\r\nDisplay title?
    \r\nDo you wish to display the title you specified? On some sites, displaying the title is not necessary.\r\n

    \r\n\r\n\r\nProcess macros?
    \r\nDo you wish to process macros in the content of this wobject? Sometimes you\'ll want to do this, but more often than not you\'ll want to say "no" to this question. By disabling the processing of macros on the wobjects that don\'t use them, you\'ll speed up your web server slightly.\r\n

    \r\n\r\n\r\nTemplate Position
    \r\nTemplate positions range from 0 (zero) to any number. How many are available depends upon the Template associated with this page. The default template has only one template position, others may have more. By selecting a template position, you\'re specifying where this wobject should be placed within the template.\r\n

    \r\n\r\n\r\nStart Date
    \r\nOn what date should this wobject become visible? Before this date, the wobject will only be displayed to Content Managers.\r\n

    \r\n\r\n\r\nEnd Date
    \r\nOn what date should this wobject become invisible? After this date, the wobject will only be displayed to Content Managers.\r\n

    \r\n\r\n\r\nDescription
    \r\nA content area in which you can place as much content as you wish. For instance, even before an FAQ there is usually a paragraph describing what is contained in the FAQ.\r\n

    \r\n\r\n', 1047858650); +delete from international where languageId=1 and namespace='WebGUI' and internationalId=677; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (677,1,'WebGUI','Wobject, Add/Edit', 1047858650); +delete from international where languageId=1 and namespace='WebGUI' and internationalId=626; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (626,1,'WebGUI','Wobjects (fomerly known as Widgets) are the true power of WebGUI. Wobjects are tiny pluggable applications built to run under WebGUI. Message boards and polls are examples of wobjects.\r\n

    \r\n\r\nTo add a wobject to a page, first go to that page, then select Add Content... from the upper left corner of your screen. Each wobject has it\'s own help so be sure to read the help if you\'re not sure how to use it.\r\n

    \r\n\r\n\r\nStyle Sheets: All wobjects have a style-sheet class and id attached to them. \r\n

    \r\n\r\nThe style-sheet class is the word "wobject" plus the type of wobject it is. So for a poll the class would be "wobjectPoll". The class pertains to all wobjects of that type in the system. \r\n

    \r\n\r\nThe style-sheet id is the word "wobjectId" plus the Wobject Id for that wobject instance. So if you had an Article with a Wobject Id of 94, then the id would be "wobjectId94".\r\n

    \r\n\r\n', 1047858549); +delete from international where languageId=1 and namespace='WebGUI' and internationalId=671; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (671,1,'WebGUI','Wobjects, Using', 1047858549); +delete from international where languageId=1 and namespace='HttpProxy' and internationalId=10; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (10,1,'HttpProxy','HTTP Proxy, Add/Edit', 1047858432); +delete from international where languageId=1 and namespace='HttpProxy' and internationalId=11; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (11,1,'HttpProxy','The HTTP Proxy wobject is a very powerful tool. It enables you to embed external sites and applications into your site. For example, if you have a web mail system that you wish your staff could access through the intranet, then you could use the HTTP Proxy to accomplish that.\r\n\r\n

    \r\n\r\nURL
    \r\nThe starting URL for the proxy.\r\n

    \r\n\r\nFollow redirects?
    \r\nSometimes the URL to a page, is actually a redirection to another page. Do you wish to follow those redirections when they occur?\r\n

    \r\n\r\nTimeout
    \r\nThe amount of time (in seconds) that WebGUI should wait for a connection before giving up on an external page.\r\n

    \r\n\r\nCookie Jar
    \r\nA directory path of where to store cookies that an external application produces. This folder needs to be somewhere that the web server has privileges to write. If the cookies are not stored, the proxied application may not function properly.\r\n

    \r\n\r\nRemove style?
    \r\nDo you wish to remove the stylesheet from the proxied content in favor of the stylesheet from your site?\r\n

    \r\n\r\nFilter Content
    \r\nChoose the level of HTML filtering you wish to apply to the proxied content.\r\n

    \r\n\r\n\r\nAllow proxying of other domains?
    \r\nIf you proxy a site like Yahoo! that links to other domains, do you wish to allow the user to follow the links to those other domains, or should the proxy stop them as they try to leave the original site you specified?\r\n

    \r\n', 1047858432); +delete from international where languageId=1 and namespace='WebGUI' and internationalId=839; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (839,1,'WebGUI','Programmer Macros', 1047856488); +delete from international where languageId=1 and namespace='WebGUI' and internationalId=840; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (840,1,'WebGUI','These macros are designed to provide programming-like functionality. They are powerful when used appropriately, and dangerous when used carelessly. Take care when using these macros.\r\n\r\n

    \r\n\r\n^D; or ^D(); - Date
    \r\nThe current date and time.\r\n

    \r\n\r\nYou can configure the date by using date formatting symbols. For instance, if you created a macro like this ^D("%c %D, %y"); it would output September 26, 2001. The following are the available date formatting symbols:\r\n

    \r\n\r\n
    %%%
    %y4 digit year
    %Y2 digit year
    %m2 digit month
    %Mvariable digit month
    %cmonth name
    %d2 digit day of month
    %Dvariable digit day of month
    %wday of week name
    %h2 digit base 12 hour
    %Hvariable digit base 12 hour
    %j2 digit base 24 hour
    %Jvariable digit base 24 hour
    %plower case am/pm
    %Pupper case AM/PM
    %zuser preference date format
    %Zuser preference time format
    \r\n

    \r\n\r\n^Env()
    \r\nCan be used to display a web server environment variable on a page. The environment variables available on each server are different, but you can find out which ones your web server has by going to: http://www.yourwebguisite.com/env.pl\r\n

    \r\n\r\nThe macro should be specified like this ^Env("REMOTE_ADDR");\r\n

    \r\n\r\n^Execute();
    \r\nAllows a content manager or administrator to execute an external program. Takes the format of ^Execute("/this/file.sh");.\r\n

    \r\n\r\n\r\n^FormParam();
    \r\nThis macro is mainly used in generating dynamic queries in SQL Reports. Using this macro you can pull the value of any form field simply by specifing the name of the form field, like this: ^FormParam("phoneNumber");\r\n

    \r\n\r\n^Include();
    \r\nAllows a content manager or administrator to include a file from the local filesystem. \r\n

    \r\nExample: ^Include("/this/file.html");\r\n

    \r\n\r\n^International();
    \r\nPull a translated message from the internationalization system.\r\n

    \r\nExample: ^International(45,"Article");\r\n

    \r\n\r\n\r\n^Quote();
    \r\nUse this to escape a string before using it in a database query.\r\n

    \r\n\r\n\r\n^Page();
    \r\nThis can be used to retrieve information about the current page. For instance it could be used to get the page URL like this ^Page("urlizedTitle"); or to get the menu title like this ^Page("menuTitle");.\r\n

    \r\n\r\n^SQL();
    \r\nA one line SQL report. Sometimes you just need to pull something back from the database quickly. This macro is also useful in extending the SQL Report wobject. It uses the numeric macros (^0; ^1; ^2; etc) to position data and can also use the ^rownum; macro just like the SQL Report wobject. Examples:

    \r\n ^SQL("select count(*) from users","There are ^0; users on this system.");\r\n

    \r\n^SQL("select userId,username from users order by username","<a href=\'^/;?op=viewProfile&uid=^0;\'>^1;</a><br>");\r\n

    \r\n^URLEncode();
    \r\nThis macro is mainly useful in SQL reports, but it could be useful elsewhere as well. It takes the input of a string and URL Encodes it so that the string can be passed through a URL. It\'s syntax looks like this: ^URLEncode("Is this my string?");\r\n

    \r\n\r\n\r\n^User();
    \r\nThis macro will allow you to display any information from a user\'s account or profile. For instance, if you wanted to display a user\'s email address you\'d create this macro: ^User("email");\r\n

    \r\n\r\n^*; or ^*(); - Random Number
    \r\nA randomly generated number. This is often used on images (such as banner ads) that you want to ensure do not cache. In addition, you may configure this macro like this ^*(100); to create a random number between 0 and 100.\r\n

    \r\n\r\n^-;,^0;,^1;,^2;,^3;, etc.
    \r\nThese macros are reserved for system/wobject-specific functions as in the SQL Report wobject and the Body in the Style Manager.\r\n

    \r\n', 1047856488); +delete from international where languageId=1 and namespace='SyndicatedContent' and internationalId=61; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (61,1,'SyndicatedContent','Syndicated Content, Add/Edit', 1047855741); +delete from international where languageId=1 and namespace='SyndicatedContent' and internationalId=71; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (71,1,'SyndicatedContent','Syndicated content is content that is pulled from another site using the RDF/RSS specification. This technology is often used to pull headlines from various news sites like CNN and Slashdot. It can, of course, be used for other things like sports scores, stock market info, etc.\r\n

    \r\n\r\nURL to RSS file
    \r\nProvide the exact URL (starting with http://) to the syndicated content\'s RDF or RSS file. The syndicated content will be downloaded from this URL hourly.\r\n

    \r\nYou can find syndicated content at the following locations:\r\n

    \r\n\r\n

    \r\n\r\nTemplate
    \r\nSelect a template for this content.\r\n

    ', 1047855741); +delete from international where languageId=1 and namespace='WebGUI' and internationalId=827; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (827,1,'WebGUI','Wobject Template', 1047855553); +delete from international where languageId=1 and namespace='WebGUI' and internationalId=828; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (828,1,'WebGUI','Most wobjects have templates that allow you to change the layout of the wobject\'s user interface. Those wobjects that do have templates all have a common set of template variables that you can use for layout, as well as their own custom variables. The following is a list of the common template variables shared among all wobjects.\r\n

    \r\ntitle
    \r\nThe title for this wobject.\r\n

    \r\n\r\ndisplayTitle
    \r\nA conditional variable for whether or not the title should be displayed.\r\n

    \r\n\r\ndescription
    \r\nThe description of this wobject.\r\n

    \r\n\r\nwobjectId
    \r\nThe unique identifier that WebGUI uses to control this wobject.\r\n

    \r\n', 1047855553); +delete from international where languageId=1 and namespace='SyndicatedContent' and internationalId=72; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (72,1,'SyndicatedContent','Syndicated Content Template', 1047855526); +delete from international where languageId=1 and namespace='SyndicatedContent' and internationalId=73; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (73,1,'SyndicatedContent','The following are the template variables available to the Syndicated Content template.\r\n\r\n

    \r\n\r\nchannel.title
    \r\nThe title of this piece of syndicated content.\r\n

    \r\n\r\nchannel.description
    \r\nA description of the content available through this channel.\r\n

    \r\n\r\nchannel.link
    \r\nA URL back to the originating site of this channel.\r\n

    \r\n\r\nitem_loop
    \r\nA loop containing the data from this channel.\r\n\r\n

    \r\n\r\ntitle
    \r\nThe title of a piece of content.\r\n

    \r\n\r\ndescription
    \r\nThe description of the content.\r\n

    \r\n\r\nlink\r\nA URL directly to the original content.\r\n\r\n

    ', 1047855526); +delete from international where languageId=1 and namespace='SiteMap' and internationalId=72; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (72,1,'SiteMap','Site Map Template', 1047855100); +delete from international where languageId=1 and namespace='SiteMap' and internationalId=73; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (73,1,'SiteMap','This is the list of template variables available for site map templates.\r\n

    \r\n\r\npage_loop
    \r\nThis loop contains all of the pages in the site map.\r\n

    \r\n\r\npage.indent
    \r\nThe indent spacer for this page indicating the depth of the page in the tree.\r\n

    \r\n\r\npage.url
    \r\nThe URL to the page.\r\n

    \r\n\r\npage.id
    \r\nThe unique identifier for this page that WebGUI uses internally.\r\n

    \r\n\r\npage.title
    \r\nThe title of this page.\r\n

    \r\n\r\npage.menutitle
    \r\nThe title of this page that appears in navigation.\r\n

    \r\n\r\npage.synopsis
    \r\nThe description of the contents of this page (if any).\r\n

    \r\n\r\npage.isRoot
    \r\nA condition indicating whether or not this page is a root.\r\n

    \r\n\r\npage.isTop
    \r\nA condition indicating whether or not this page is at the top of the navigation tree.\r\n

    \r\n\r\n\r\n

    \r\n

    ', 1047855100); +delete from international where languageId=1 and namespace='MessageBoard' and internationalId=61; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (61,1,'MessageBoard','Message Board, Add/Edit', 1047854637); +delete from international where languageId=1 and namespace='MessageBoard' and internationalId=71; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (71,1,'MessageBoard','Message boards, also called Forums and/or Discussions, are a great way to add community to any site or intranet. Many companies use message boards internally to collaborate on projects.\r\n

    \r\n\r\nMessages Per Page
    \r\nWhen a visitor first comes to a message board s/he will be presented with a listing of all the topics (a.k.a. threads) of the Message Board. If a board is popular, it will quickly have many topics. The Messages Per Page attribute allows you to specify how many topics should be shown on one page.\r\n

    \r\n\r\nMain Template
    \r\nSelect a layout for the main listing of this message board.\r\n

    \r\n\r\n\r\n\r\nFilter Post
    \r\nSelect the level of content filtering you wish to perform on all discussion posts.\r\n

    \r\n\r\nWho can post?
    \r\nSelect the group that is allowed to post to this discussion.\r\n

    \r\n\r\nEdit Timeout
    \r\nHow long should a user be able to edit their post before editing is locked to them?\r\n

    \r\nNOTE: Don\'t set this limit too high. One of the great things about discussions is that they are an accurate record of who said what. If you allow editing for a long time, then a user has a chance to go back and change his/her mind a long time after the original statement was made.\r\n

    \r\n\r\nKarma Per Post
    \r\nHow much karma should be given to a user when they post to this discussion?\r\n

    \r\n\r\nWho can moderate?
    \r\nSelect the group that is allowed to moderate this discussion.\r\n

    \r\n\r\nModeration Type?
    \r\nYou can select what type of moderation you\'d like for your users. After-the-fact means that when a user posts a message it is displayed publically right away. Pre-emptive means that a moderator must preview and approve users posts before allowing them to be publically visible. Alerts for new posts will automatically show up in the moderator\'s WebGUI Inbox.\r\n

    \r\nNOTE: In both types of moderation the moderator can always edit or delete the messages posted by your users.\r\n

    \r\n\r\nAdd edit stamp to posts?
    \r\nDo you wish to "stamp" all edits so that you can track who edited a post and when?\r\n

    \r\n', 1047854637); +delete from international where languageId=1 and namespace='Article' and internationalId=61; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (61,1,'Article','Article, Add/Edit', 1047854369); +delete from international where languageId=1 and namespace='Article' and internationalId=71; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (71,1,'Article','Articles are the Swiss Army knife of WebGUI. Most pieces of static content can be added via the Article.\r\n

    \r\n\r\nTemplate
    \r\nSelect a template to layout your article.\r\n

    \r\n\r\nImage
    \r\nChoose an image (.jpg, .gif, .png) file from your hard drive. This file will be uploaded to the server and displayed in your article.\r\n

    \r\n\r\n\r\nAttachment
    \r\nIf you wish to attach a word processor file, a zip file, or any other file for download by your users, then choose it from your hard drive.\r\n

    \r\n\r\nLink Title
    \r\nIf you wish to add a link to your article, enter the title of the link in this field. \r\n

    \r\nExample: Google\r\n

    \r\n\r\nLink URL
    \r\nIf you added a link title, now add the URL (uniform resource locator) here. \r\n

    \r\nExample: http://www.google.com\r\n\r\n

    \r\n\r\nConvert carriage returns?
    \r\nIf you\'re publishing HTML there\'s generally no need to check this option, but if you aren\'t using HTML and you want a carriage return every place you hit your "Enter" key, then check this option.\r\n

    \r\n\r\nAllow discussion?
    \r\nChecking this box will enable responses to your article much like Articles on Slashdot.org.\r\n

    \r\n\r\n\r\nFilter Post
    \r\nSelect the level of content filtering you wish to perform on all discussion posts.\r\n

    \r\n\r\nWho can post?
    \r\nSelect the group that is allowed to post to this discussion.\r\n

    \r\n\r\nEdit Timeout
    \r\nHow long should a user be able to edit their post before editing is locked to them?\r\n

    \r\nNOTE: Don\'t set this limit too high. One of the great things about discussions is that they are an accurate record of who said what. If you allow editing for a long time, then a user has a chance to go back and change his/her mind a long time after the original statement was made.\r\n

    \r\n\r\nKarma Per Post
    \r\nHow much karma should be given to a user when they post to this discussion?\r\n

    \r\n\r\nWho can moderate?
    \r\nSelect the group that is allowed to moderate this discussion.\r\n

    \r\n\r\nModeration Type?
    \r\nYou can select what type of moderation you\'d like for your users. After-the-fact means that when a user posts a message it is displayed publically right away. Pre-emptive means that a moderator must preview and approve users posts before allowing them to be publically visible. Alerts for new posts will automatically show up in the moderator\'s WebGUI Inbox.\r\n

    \r\nNOTE: In both types of moderation the moderator can always edit or delete the messages posted by your users.\r\n

    \r\n\r\nAdd edit stamp to posts?
    \r\nDo you wish to "stamp" all edits so that you can track who edited a post and when?\r\n

    ', 1047854369); +delete from international where languageId=1 and namespace='HttpProxy' and internationalId=4; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (4,1,'HttpProxy','Timeout', 1047837283); +delete from international where languageId=1 and namespace='HttpProxy' and internationalId=8; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (8,1,'HttpProxy','Follow redirects?', 1047837255); +delete from international where languageId=1 and namespace='HttpProxy' and internationalId=6; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (6,1,'HttpProxy','Remove style?', 1047837230); +delete from international where languageId=1 and namespace='HttpProxy' and internationalId=9; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (9,1,'HttpProxy','Cookie Jar', 1047835842); +delete from international where languageId=1 and namespace='HttpProxy' and internationalId=5; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (5,1,'HttpProxy','Allow proxying of other domains?', 1047835817); + diff --git a/lib/WebGUI/Operation/Help.pm b/lib/WebGUI/Operation/Help.pm index 8c0840dd2..e61653fc4 100644 --- a/lib/WebGUI/Operation/Help.pm +++ b/lib/WebGUI/Operation/Help.pm @@ -60,7 +60,7 @@ sub _submenu { } if (($session{form}{op} eq "editHelp" && $session{form}{hid} ne "new") || $session{form}{op} eq "deleteHelp") { $menu{WebGUI::URL::page('op=editHelpIndex&hid='.$session{form}{hid})} = "Edit this help."; - $menu{WebGUI::URL::page('op=deleteHelpIndex&hid='.$session{form}{hid})} = "Delete this help."; + $menu{WebGUI::URL::page('op=deleteHelp&hid='.$session{form}{hid}.'&namespace='.$session{form}{namespace})} = "Delete this help."; } $menu{WebGUI::URL::page('op=viewHelpIndex')} = WebGUI::International::get(13); return menuWrapper($_[0],\%menu); @@ -98,8 +98,8 @@ sub www_editHelp { if ($session{form}{hid} ne "new") { %help = WebGUI::SQL->quickHash("select * from help where helpId=$session{form}{hid} and namespace=".quote($session{form}{namespace})); - $help{title} = WebGUI::International::get($help{titleId},$help{namespace}); - $help{body} = WebGUI::International::get($help{bodyId},$help{namespace}); + ($help{title}) = WebGUI::SQL->quickArray("select message from international where internationalId=$help{titleId} and namespace=".quote($help{namespace})." and languageId=$session{user}{language}"); + ($help{body}) = WebGUI::SQL->quickArray("select message from international where internationalId=$help{bodyId} and namespace=".quote($help{namespace})." and languageId=$session{user}{language}"); $help{seeAlso} =~ s/\n//g; $help{seeAlso} =~ s/\r//g; $help{seeAlso} =~ s/ //g;