urls as resources - part 1
This commit is contained in:
parent
378e8d6160
commit
23cb5bd41c
9 changed files with 141 additions and 113 deletions
|
|
@ -64,6 +64,9 @@
|
|||
- RFE [ 747859 ] RSS Encoding (Len Kranendonk) NB: Needs perl 5.8.0 or up.
|
||||
- RFE [ 906852 ] Extended forum sorting (Leendert Bottelberghs).
|
||||
- Bugfix [ 998588 ] (Leendert Bottelberghs).
|
||||
- Changed page system to support multiple types of pages and to make URLs
|
||||
resources in WebGUI rather than tied specifically to content pages.
|
||||
|
||||
|
||||
6.1.1
|
||||
- bugfix [ 991313 ] Manage Translations doesn't work
|
||||
|
|
|
|||
|
|
@ -259,17 +259,20 @@ delete from incrementer where incrementerId in ("messageLogId","profileCategoryI
|
|||
alter table forum change postsPerPage threadsPerPage int(11) default 30;
|
||||
alter table forum add postsPerPage int(11) default 10 after threadsPerPage;
|
||||
update page set title='Nameless Root',menuTitle='Nameless Root',urlizedTitle='nameless_root', redirectUrl='/' where pageId=0;
|
||||
create table urls (
|
||||
urlId char(22) not null primary key,
|
||||
url varchar(255) not null unique key,
|
||||
subroutine varchar(255) not null,
|
||||
params text
|
||||
);
|
||||
|
||||
update template set templateId=-1 where templateId=1 and namespace='style';
|
||||
update template set templateId=1 where templateId=2 and namespace='style';
|
||||
update template set templateId=2 where templateId=-1 and namespace='style';
|
||||
update page set styleId=-1 where styleId=1;
|
||||
update page set styleId=1 where styleId=2;
|
||||
update page set styleId=2 where styleId=-1;
|
||||
alter table page drop column id;
|
||||
alter table page add subroutine varchar(255) not null default 'generate';
|
||||
alter table page add subroutinePackage varchar(255) not null default 'WebGUI::Page';
|
||||
alter table page add subroutineParams text;
|
||||
alter table forum add postPreviewTemplateId varchar(22) NULL after postformTemplateId;
|
||||
alter table forum add usePreview int(11) NOT NULL default 1;
|
||||
INSERT INTO template VALUES (1,'Default Post Preview','<h2><tmpl_var newpost.header></h2>\n\n<h1><tmpl_var post.subject></h1>\n\n<table width=\"100%\">\n<tr>\n<td class=\"content\" valign=\"top\">\n<tmpl_var post.message>\n</td>\n</tr>\n</table>\n\n<tmpl_var form.begin>\n<input type=\"button\" value=\"cancel\" onclick=\"window.history.go(-1)\"><tmpl_var form.submit>\n<tmpl_var form.end>\n','Forum/PostPreview',1,1);
|
||||
UPDATE userProfileField SET dataValues = '{\r\n6=>WebGUI::International::get(\'HTMLArea 3\'),\r\n1=>WebGUI::International::get(495), #htmlArea\r\n#2=>WebGUI::International::get(494), #editOnPro2\r\n3=>WebGUI::International::get(887), #midas\r\n4=>WebGUI::International::get(879), #classic\r\n5=>WebGUI::International::get(880),\r\nnone=>WebGUI::International::get(881)\r\n}' WHERE fieldName = 'richEditor';
|
||||
INSERT INTO template VALUES ('6','HTMLArea 3 (Mozilla / IE)','<script language=\"JavaScript\"> \r\nfunction fixChars(element) { \r\nelement.value = element.value.replace(/-/mg,\"-\"); \r\n} \r\n</script> \r\n\r\n<tmpl_if htmlArea3.supported> \r\n\r\n<script type=\"text/javascript\"> \r\n_editor_url = \"<tmpl_var session.config.extrasURL>/htmlArea3/\"; \r\n_editor_lang = \"en\"; \r\n</script> \r\n<script type=\"text/javascript\" src=\"<tmpl_var session.config.extrasURL>/htmlArea3/htmlarea.js\"></script> \r\n<script language=\"JavaScript\"> \r\nHTMLArea.loadPlugin(\"TableOperations\"); \r\nHTMLArea.loadPlugin(\"FullPage\"); \r\nfunction initEditor() { \r\n// create an editor for the textbox \r\neditor = new HTMLArea(\"<tmpl_var form.name>\"); \r\n\r\n// register the FullPage plugin \r\neditor.registerPlugin(FullPage); \r\n\r\n// register the SpellChecker plugin \r\neditor.registerPlugin(TableOperations); \r\n\r\nsetTimeout(function() { \r\neditor.generate(); \r\n}, 500); \r\nreturn false; \r\n} \r\nwindow.setTimeout(\"initEditor()\", 250); \r\n</script> \r\n</tmpl_if> \r\n\r\n<tmpl_var textarea> ','richEditor',1,1);
|
||||
alter table page add encryptPage int(11) default 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue