another german update and added sorting to uss
This commit is contained in:
parent
ecb707b7c6
commit
c8d10a9d09
3 changed files with 2894 additions and 2634 deletions
|
|
@ -1,30 +1,31 @@
|
||||||
5.5.0
|
5.5.0
|
||||||
- Rewrote the discussion system and added many new features in the process.
|
- Rewrote the discussion system and added many new features in the process.
|
||||||
- Made the username field in the database unique;
|
- Made the username field in the database unique.
|
||||||
- Fixed a display bug in the Data Form. (Thanks to Christian Kocourek.)
|
- Added sorting options to USS.
|
||||||
- Added external database group privileges. (Thanks to Andy Grundman.)
|
- Added external database group privileges. (Thanks to Andy Grundman.)
|
||||||
- Added support for encryptLogin user setting. (Thanks to Hal Roberts.)
|
- Added support for encryptLogin user setting. (Thanks to Hal Roberts.)
|
||||||
- Added anonymous response option to Survey. (Thanks to Andy Grundman.)
|
- Added anonymous response option to Survey. (Thanks to Andy Grundman.)
|
||||||
- Added the alphabetic? option to the SiteMap wobject. (Thanks to Hal Roberts.)
|
- Added the alphabetic? option to the SiteMap wobject. (Thanks to Hal Roberts.)
|
||||||
- Changed the page hideFromNavigation option to hide the given page from site maps as well as from navigation menus. (Thanks to Hal Roberts.)
|
- Changed the page hideFromNavigation option to hide the given page from site maps as well as from navigation menus. (Thanks to Hal Roberts.)
|
||||||
- Revamped SyndicatedContent to support aggregate feeds. (Thanks to Hal Roberts.)
|
- Revamped SyndicatedContent to support aggregate feeds. (Thanks to Hal Roberts.)
|
||||||
- Fixed a relative hyperlink bug in htmlArea (Thanks to Andreas Graf.)
|
|
||||||
- Ordered the username list in the manageUsersInGroup operation (Thanks to
|
- Ordered the username list in the manageUsersInGroup operation (Thanks to
|
||||||
Andreas Graf.)
|
Andreas Graf.)
|
||||||
- Added support for record deletion in DataForm (Thanks to Hal Roberts.)
|
- Added support for record deletion in DataForm (Thanks to Hal Roberts.)
|
||||||
- Templatized the HttpProxy wobject. (Thanks to Len Kranendonk.)
|
- Templatized the HttpProxy wobject. (Thanks to Len Kranendonk.)
|
||||||
- Added a "Search for" and "Stop at" option to HttpProxy. (Thanks to Len Kranendonk.)
|
- Added a "Search for" and "Stop at" option to HttpProxy. (Thanks to Len Kranendonk.)
|
||||||
- Enhanced HTMLArea editor to include table editing. (Thanks to Irving Carrion.)
|
- Enhanced HTMLArea editor to include table editing. (Thanks to Irving Carrion.)
|
||||||
- Fixed a bug where reinvoking www_createAccountSave could produce duplicate
|
|
||||||
usernames in the database. (Thanks to Martin Kamerbeek.)
|
|
||||||
- Fixed a bug in the 5.4.3-5.4.4 upgrade script that some users experienced
|
|
||||||
with null values in their DataForm.
|
|
||||||
- If the Cache Timeout on a given page is set to 10 seconds or less, that
|
- If the Cache Timeout on a given page is set to 10 seconds or less, that
|
||||||
page will not be cached.
|
page will not be cached.
|
||||||
- Added master events calendar switch.
|
- Added master events calendar switch.
|
||||||
- Updated the Dutch translation. (Thanks to ProcoliX.)
|
- Updated the Dutch translation. (Thanks to ProcoliX.)
|
||||||
- Updated the Spanish translation. (Thanks to GIT Consultors.)
|
- Updated the Spanish translation. (Thanks to GIT Consultors.)
|
||||||
- Updated the German translation. (Thanks to Andreas Graf.)
|
- Updated the German translation. (Thanks to Andreas Graf.)
|
||||||
|
- Updated the Norwegian translation. (Thanks to Nils-Magne Kvammen.)
|
||||||
|
- Fixed a bug in the 5.4.3-5.4.4 upgrade script that some users experienced
|
||||||
|
with null values in their DataForm.
|
||||||
|
- Fixed a relative hyperlink bug in htmlArea (Thanks to Andreas Graf.)
|
||||||
|
- Fixed a bug where reinvoking www_createAccountSave could produce duplicate
|
||||||
|
usernames in the database. (Thanks to Martin Kamerbeek.)
|
||||||
- Fixed a bug in SQL macro where it required a leading space in queries.
|
- Fixed a bug in SQL macro where it required a leading space in queries.
|
||||||
- Fixed a case-sensitivity bug in email verfication. (Thanks to Steve Simms.)
|
- Fixed a case-sensitivity bug in email verfication. (Thanks to Steve Simms.)
|
||||||
- Fixed a bug where the user was returned to the wrong page after deleting an
|
- Fixed a bug where the user was returned to the wrong page after deleting an
|
||||||
|
|
@ -33,6 +34,7 @@
|
||||||
regardless of the sendWelcomeMessage setting. (Thanks to Steve Simms.)
|
regardless of the sendWelcomeMessage setting. (Thanks to Steve Simms.)
|
||||||
- Fixed a bug where templates would not render properly in the mini view on
|
- Fixed a bug where templates would not render properly in the mini view on
|
||||||
the page if they contained macros.
|
the page if they contained macros.
|
||||||
|
- Fixed a display bug in the Data Form. (Thanks to Christian Kocourek.)
|
||||||
- Fixed a bug in the date method of the forms package where the noDate option
|
- Fixed a bug in the date method of the forms package where the noDate option
|
||||||
did the opposite of what was expected. (Thanks to Ed Van Duinen.)
|
did the opposite of what was expected. (Thanks to Ed Van Duinen.)
|
||||||
- Fixed a bug that could hang the macro parser while processing incorrect
|
- Fixed a bug that could hang the macro parser while processing incorrect
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -110,6 +110,12 @@ sub new {
|
||||||
},
|
},
|
||||||
filterContent=>{
|
filterContent=>{
|
||||||
defaultValue=>"javascript"
|
defaultValue=>"javascript"
|
||||||
|
},
|
||||||
|
sortBy=>{
|
||||||
|
defaultValue=>"dateUpdated"
|
||||||
|
},
|
||||||
|
sortOrder=>{
|
||||||
|
defaultValue=>"desc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-useTemplate=>1
|
-useTemplate=>1
|
||||||
|
|
@ -267,6 +273,25 @@ sub www_edit {
|
||||||
$layout->filterContent(
|
$layout->filterContent(
|
||||||
-value=>$_[0]->getValue("filterContent")
|
-value=>$_[0]->getValue("filterContent")
|
||||||
);
|
);
|
||||||
|
$layout->selectList(
|
||||||
|
-name=>"sortBy",
|
||||||
|
-value=>[$_[0]->getValue("sortBy")],
|
||||||
|
-options=>{
|
||||||
|
dateUpdated=>WebGUI::International::get(78,$_[0]->get("namespace")),
|
||||||
|
dateSubmitted=>WebGUI::International::get(13,$_[0]->get("namespace")),
|
||||||
|
title=>WebGUI::International::get(35,$_[0]->get("namespace"))
|
||||||
|
},
|
||||||
|
-label=>WebGUI::International::get(79,$_[0]->get("namespace"))
|
||||||
|
);
|
||||||
|
$layout->selectList(
|
||||||
|
-name=>"sortOrder",
|
||||||
|
-value=>[$_[0]->getValue("sortOrder")],
|
||||||
|
-options=>{
|
||||||
|
asc=>WebGUI::International::get(81,$_[0]->get("namespace")),
|
||||||
|
desc=>WebGUI::International::get(82,$_[0]->get("namespace"))
|
||||||
|
},
|
||||||
|
-label=>WebGUI::International::get(80,$_[0]->get("namespace"))
|
||||||
|
);
|
||||||
return $_[0]->SUPER::www_edit(
|
return $_[0]->SUPER::www_edit(
|
||||||
-layout=>$layout->printRowsOnly,
|
-layout=>$layout->printRowsOnly,
|
||||||
-privileges=>$privileges->printRowsOnly,
|
-privileges=>$privileges->printRowsOnly,
|
||||||
|
|
@ -335,6 +360,7 @@ sub www_editSubmissionSave {
|
||||||
$hash{forumId} = $forum->get("forumId");
|
$hash{forumId} = $forum->get("forumId");
|
||||||
$hash{username} = $session{form}{visitorName} || $session{user}{alias};
|
$hash{username} = $session{form}{visitorName} || $session{user}{alias};
|
||||||
$hash{userId} = $session{user}{userId};
|
$hash{userId} = $session{user}{userId};
|
||||||
|
$hash{dateSubmitted} = WebGUI::DateTime::time();
|
||||||
$hash{USS_submissionId} = "new";
|
$hash{USS_submissionId} = "new";
|
||||||
if ($session{setting}{useKarma}) {
|
if ($session{setting}{useKarma}) {
|
||||||
$u = WebGUI::User->new($session{user}{userId});
|
$u = WebGUI::User->new($session{user}{userId});
|
||||||
|
|
@ -346,7 +372,7 @@ sub www_editSubmissionSave {
|
||||||
}
|
}
|
||||||
$hash{title} = WebGUI::HTML::filter($session{form}{title},'all') || WebGUI::International::get(16,$_[0]->get("namespace"));
|
$hash{title} = WebGUI::HTML::filter($session{form}{title},'all') || WebGUI::International::get(16,$_[0]->get("namespace"));
|
||||||
$hash{USS_submissionId} = $session{form}{sid};
|
$hash{USS_submissionId} = $session{form}{sid};
|
||||||
$hash{dateSubmitted} = time();
|
$hash{dateUpdated} = WebGUI::DateTime::time();
|
||||||
$hash{content} = $session{form}{body};
|
$hash{content} = $session{form}{body};
|
||||||
$hash{convertCarriageReturns} = $session{form}{convertCarriageReturns};
|
$hash{convertCarriageReturns} = $session{form}{convertCarriageReturns};
|
||||||
$file = WebGUI::Attachment->new("",$session{form}{wid},$session{form}{sid});
|
$file = WebGUI::Attachment->new("",$session{form}{wid},$session{form}{sid});
|
||||||
|
|
@ -399,10 +425,11 @@ sub www_view {
|
||||||
$var{"title.label"} = WebGUI::International::get(99);
|
$var{"title.label"} = WebGUI::International::get(99);
|
||||||
$var{"thumbnail.label"} = WebGUI::International::get(52,$_[0]->get("namespace"));
|
$var{"thumbnail.label"} = WebGUI::International::get(52,$_[0]->get("namespace"));
|
||||||
$var{"date.label"} = WebGUI::International::get(13,$_[0]->get("namespace"));
|
$var{"date.label"} = WebGUI::International::get(13,$_[0]->get("namespace"));
|
||||||
|
$var{"date.updated.label"} = WebGUI::International::get(78,$_[0]->get("namespace"));
|
||||||
$var{"by.label"} = WebGUI::International::get(21,$_[0]->get("namespace"));
|
$var{"by.label"} = WebGUI::International::get(21,$_[0]->get("namespace"));
|
||||||
$p = WebGUI::Paginator->new(WebGUI::URL::page('func=view&wid='.$_[0]->get("wobjectId")),[],$numResults);
|
$p = WebGUI::Paginator->new(WebGUI::URL::page('func=view&wid='.$_[0]->get("wobjectId")),[],$numResults);
|
||||||
$p->setDataByQuery("select USS_submissionId, content, title, userId, status, image, dateSubmitted, username, forumId
|
$p->setDataByQuery("select USS_submissionId, content, title, userId, status, image, dateSubmitted, username, forumId from USS_submission
|
||||||
from USS_submission where wobjectId=".$_[0]->get("wobjectId")." and $constraints order by dateSubmitted desc");
|
where wobjectId=".$_[0]->get("wobjectId")." and $constraints order by ".$_[0]->getValue("sortBy")." ".$_[0]->getValue("sortOrder"));
|
||||||
$page = $p->getPageData;
|
$page = $p->getPageData;
|
||||||
$i = 0;
|
$i = 0;
|
||||||
my $imageURL;
|
my $imageURL;
|
||||||
|
|
@ -431,6 +458,7 @@ sub www_view {
|
||||||
"submission.thumbnail"=>$thumbnail,
|
"submission.thumbnail"=>$thumbnail,
|
||||||
"submission.image"=>$imageURL,
|
"submission.image"=>$imageURL,
|
||||||
"submission.date"=>epochToHuman($page->[$i]->{dateSubmitted}),
|
"submission.date"=>epochToHuman($page->[$i]->{dateSubmitted}),
|
||||||
|
"submission.date.updated"=>epochToHuman($page->[$i]->{dateUpdated}),
|
||||||
"submission.currentUser"=>($session{user}{userId} == $page->[$i]->{userId}),
|
"submission.currentUser"=>($session{user}{userId} == $page->[$i]->{userId}),
|
||||||
"submission.username"=>$page->[$i]->{username},
|
"submission.username"=>$page->[$i]->{username},
|
||||||
"submission.userProfile"=>WebGUI::URL::page('op=viewProfile&uid='.$page->[$i]->{userId}),
|
"submission.userProfile"=>WebGUI::URL::page('op=viewProfile&uid='.$page->[$i]->{userId}),
|
||||||
|
|
@ -474,7 +502,7 @@ sub www_viewRSS {
|
||||||
("select USS_submissionId, content, title, " .
|
("select USS_submissionId, content, title, " .
|
||||||
"dateSubmitted, username from USS_submission " .
|
"dateSubmitted, username from USS_submission " .
|
||||||
"where wobjectId = " .$session{dbh}->quote($wid) . " " .
|
"where wobjectId = " .$session{dbh}->quote($wid) . " " .
|
||||||
"order by dateSubmitted desc limit " . $numResults);
|
"order by ".$_[0]->getValue("sortBy")." ".$_[0]->getValue("sortOrder")." limit " . $numResults);
|
||||||
|
|
||||||
while (my $row = $res->{_sth}->fetchrow_arrayref()) {
|
while (my $row = $res->{_sth}->fetchrow_arrayref()) {
|
||||||
my ($sid, $content, $title, $dateSubmitted, $username) =
|
my ($sid, $content, $title, $dateSubmitted, $username) =
|
||||||
|
|
@ -531,6 +559,9 @@ sub www_viewSubmission {
|
||||||
$var{"date.label"} = WebGUI::International::get(13,$_[0]->get("namespace"));
|
$var{"date.label"} = WebGUI::International::get(13,$_[0]->get("namespace"));
|
||||||
$var{"date.epoch"} = $submission->{dateSubmitted};
|
$var{"date.epoch"} = $submission->{dateSubmitted};
|
||||||
$var{"date.human"} = epochToHuman($submission->{dateSubmitted});
|
$var{"date.human"} = epochToHuman($submission->{dateSubmitted});
|
||||||
|
$var{"date.updated.label"} = WebGUI::International::get(78,$_[0]->get("namespace"));
|
||||||
|
$var{"date.updated.human"} = epochToHuman($submission->{dateUpdated});
|
||||||
|
$var{"date.updated.epoch"} = $submission->{dateUpdated};
|
||||||
$var{"status.label"} = WebGUI::International::get(14,$_[0]->get("namespace"));
|
$var{"status.label"} = WebGUI::International::get(14,$_[0]->get("namespace"));
|
||||||
$var{"status.status"} = status($submission->{status});
|
$var{"status.status"} = status($submission->{status});
|
||||||
$var{"views.label"} = WebGUI::International::get(514);
|
$var{"views.label"} = WebGUI::International::get(514);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue