collaboration system pretty much working
This commit is contained in:
parent
e6c38c85ad
commit
924139ba30
4 changed files with 52 additions and 63 deletions
|
|
@ -695,26 +695,10 @@ while (my ($id, $template, $namespace) = $sth->array) {
|
|||
$template =~ s/\<tmpl_var\s+callback\.label\>//ixsg;
|
||||
$template =~ s/\<tmpl_var\s+forum\.description\>//ixsg;
|
||||
$template =~ s/\<tmpl_var\s+forum\.title\>//ixsg;
|
||||
$template =~ s/forum\.search\./search./ixsg;
|
||||
$template =~ s/forum\.subscribe\./subscribe./ixsg;
|
||||
$template =~ s/forum\.unsubscribe\./unsubscribe./ixsg;
|
||||
$template =~ s/forum\.//ixsg;
|
||||
$template =~ s/thread\.list\.url/collaboration.url/ixsg;
|
||||
$template =~ s/thread\.new\.url/add.url/ixsg;
|
||||
$template =~ s/thread\.new\.label/add.label/ixsg;
|
||||
$template =~ s/thread\.sortby\./sortby./ixsg;
|
||||
$template =~ s/thread\.date\./date./ixsg;
|
||||
$template =~ s/thread\.user\./user./ixsg;
|
||||
$template =~ s/thread\.views\./views./ixsg;
|
||||
$template =~ s/thread\.replies./replies./ixsg;
|
||||
$template =~ s/thread\.rating\./rating./ixsg;
|
||||
$template =~ s/thread\.last\./lastReply./ixsg;
|
||||
$template =~ s/thread\.sorted\./sorted./ixsg;
|
||||
$template =~ s/thread\.sortedBy\./sortedBy./ixsg;
|
||||
$template =~ s/thread\.views/views/ixsg;
|
||||
$template =~ s/thread\.replies/replies/ixsg;
|
||||
$template =~ s/thread\.rating/rating/ixsg;
|
||||
$template =~ s/thread\.rating_loop/rating_loop/ixsg;
|
||||
$template =~ s/thread\.isSticky/isSticky/ixsg;
|
||||
$template =~ s/thread\.isLocked/isLocked/ixsg;
|
||||
$template =~ s/thread\.root\.subject/title/ixsg;
|
||||
$template =~ s/thread\.root\.url/url/ixsg;
|
||||
$template =~ s/thread\.root\.epoch/dateSubmitted/ixsg;
|
||||
|
|
@ -726,35 +710,35 @@ while (my ($id, $template, $namespace) = $sth->array) {
|
|||
$template =~ s/thread\.root\.user\.name/username/ixsg;
|
||||
$template =~ s/thread\.root\.user\.id/ownerUserId/ixsg;
|
||||
$template =~ s/thread\.root\.user\.isVisitor/user.isVisitor/ixsg;
|
||||
$template =~ s/thread\.root\.user\.status/status/ixsg;
|
||||
$template =~ s/thread\.last\.url/last.url/ixsg;
|
||||
$template =~ s/thread\.last\.subject/last.title/ixsg;
|
||||
$template =~ s/thread\.last\.epoch/last.dateSubmitted/ixsg;
|
||||
$template =~ s/thread\.last\.date/last.dateSubmitted.human/ixsg;
|
||||
$template =~ s/thread\.last\.time/last.timeSubmitted.human/ixsg;
|
||||
$template =~ s/thread\.last\.user.profile/last.userProfile.url/ixsg;
|
||||
$template =~ s/thread\.last\.user.name/last.username/ixsg;
|
||||
$template =~ s/thread\.last\.user.id/last.ownerUserId/ixsg;
|
||||
$template =~ s/thread\.last\.user.isVisitor/last.user.isVisitor/ixsg;
|
||||
$template =~ s/thread\.last\.status/last.status/ixsg;
|
||||
$template =~ s/post\.subject\.label/subject.label/ixsg;
|
||||
$template =~ s/thread\.root\..status/status/ixsg;
|
||||
$template =~ s/thread\.last\.subject/lastReply.title/ixsg;
|
||||
$template =~ s/thread\.last\.epoch/lastReply.dateSubmitted/ixsg;
|
||||
$template =~ s/thread\.last\.date/lastReply.dateSubmitted.human/ixsg;
|
||||
$template =~ s/thread\.last\.time/lastReply.timeSubmitted.human/ixsg;
|
||||
$template =~ s/thread\.last\.user.profile/lastReply.userProfile.url/ixsg;
|
||||
$template =~ s/thread\.last\.user.name/lastReply.username/ixsg;
|
||||
$template =~ s/thread\.last\.user.id/lastReply.ownerUserId/ixsg;
|
||||
$template =~ s/thread\.last\./lastReply./ixsg;
|
||||
$template =~ s/thread\.//ixsg;
|
||||
$template =~ s/post\.subject/title/ixsg;
|
||||
$template =~ s/post\.message/content/ixsg;
|
||||
$template =~ s/post\.time\.value/timeSubmitted.human/ixsg;
|
||||
$template =~ s/post\.date\.value/dateSubmitted.human/ixsg;
|
||||
$template =~ s/post\.date\.epoch/dateSubmitted/ixsg;
|
||||
$template =~ s/post\.date\.label/date.label/ixsg;
|
||||
$template =~ s/post\.rating\.label/rating.label/ixsg;
|
||||
$template =~ s/post\.rating\.value/rating/ixsg;
|
||||
$template =~ s/post\.canEdit/user.canEdit/ixsg;
|
||||
$template =~ s/post\.user\.name/username/ixsg;
|
||||
$template =~ s/post\.user\.alias/username/ixsg;
|
||||
$template =~ s/post\.id/assetId/ixsg;
|
||||
$template =~ s/post\.user\.id/ownerUserId/ixsg;
|
||||
$template =~ s/post\.user\.profile/userProfile.url/ixsg;
|
||||
$template =~ s/post\.//ixsg;
|
||||
$template =~ s/form\.begin/form.header/ixsg;
|
||||
$template =~ s/form\.end/form.footer/ixsg;
|
||||
$template =~ s/message\.form/content.form/ixsg;
|
||||
$template =~ s/subject\.form/title.form/ixsg;
|
||||
$template =~ s/newpost\.header/newpost.header.label/ixsg;
|
||||
$template =~ s/newpost\.isReply/isReply/ixsg;
|
||||
$template =~ s/newpost\.isEdit/isEdit/ixsg;
|
||||
$template =~ s/newpost\.isNewThread/isNewThread/ixsg;
|
||||
$template =~ s/newpost\.isNewMessage/isNewPost/ixsg;
|
||||
$template =~ s/newpost\.header/newpost.header.label/ixsg;
|
||||
$template =~ s/newpost\.//ixsg;
|
||||
$template =~ s/firstPage/pagination.firstPage/ixsg;
|
||||
$template =~ s/lastPage/pagination.lastPage/ixsg;
|
||||
$template =~ s/nextPage/pagination.nextPage/ixsg;
|
||||
|
|
@ -764,7 +748,8 @@ while (my ($id, $template, $namespace) = $sth->array) {
|
|||
$template =~ s/numberOfPages/pagination.pageCount/ixsg;
|
||||
$template =~ s/pageNumber/pagination.pageNumber/ixsg;
|
||||
$template =~ s/thread_loop/post_loop/ixsg;
|
||||
$template =~ s/\<div align="center"\>\s+\<a href=""\>-=:\s+:=-\<\/a\>\s+\<\/div\>//ixsg;
|
||||
$template =~ s/back\.url/collaboration.url/ixsg;
|
||||
$template =~ s/-=:\s+:=-//ixsg;
|
||||
WebGUI::SQL->write("update template set template=".quote($template).", namespace=".quote($namespace)." where assetId=".quote($id));
|
||||
}
|
||||
$sth->finish;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue