diff --git a/docs/upgrades/upgrade_6.2.11-6.3.0.pl b/docs/upgrades/upgrade_6.2.11-6.3.0.pl index 0de3ca4ed..0ce585921 100644 --- a/docs/upgrades/upgrade_6.2.11-6.3.0.pl +++ b/docs/upgrades/upgrade_6.2.11-6.3.0.pl @@ -199,6 +199,7 @@ WebGUI::SQL->write("alter table WobjectProxy change proxyByCriteria shortcutByCr WebGUI::SQL->write("alter table WobjectProxy change proxyCriteria shortcutCriteria text not null"); WebGUI::SQL->write("alter table WobjectProxy rename Shortcut"); WebGUI::SQL->write("update asset set className='WebGUI::Asset::Shortcut' where className='WebGUI::Asset::Wobject::WobjectProxy'"); +WebGUI::SQL->write("delete from wobject where assetId is null or assetId = ''"); # protect ourselves from crap WebGUI::SQL->write("alter table wobject drop column wobjectId"); WebGUI::SQL->write("alter table wobject add primary key (assetId)"); WebGUI::SQL->write("alter table wobject drop column templateId"); @@ -247,7 +248,7 @@ WebGUI::SQL->write("alter table Product_related drop column wobjectId"); WebGUI::SQL->write("alter table Product_specification drop column wobjectId"); WebGUI::SQL->write("alter table Product_related drop column RelatedWobjectId"); WebGUI::SQL->write("alter table Product_accessory drop column AccessoryWobjectId"); -# I sure hope all the events got a unique assetId, because if they didn't....... +WebGUI::SQL->write("delete from EventsCalendar_event where assetId is null or assetId = ''"); # protect ourselves from crap WebGUI::SQL->write("alter table EventsCalendar_event add primary key (assetId)"); WebGUI::SQL->write("alter table EventsCalendar_event drop column name"); WebGUI::SQL->write("alter table EventsCalendar_event drop column wobjectId"); @@ -457,6 +458,7 @@ my %folderNameCache; my $collateralRankCounter = 1; my $sth = WebGUI::SQL->read("select * from collateralFolder where collateralFolderId <> '0'"); while (my $data = $sth->hashRef) { + print "\t\tConverting folder ".$data->{collateralFolderId}."\n" unless ($quiet); my $url = fixUrl('doesntexist',$data->{name}); $folderNameCache{$data->{name}} = $url; my $folderId = WebGUI::SQL->setRow("asset","assetId",{ @@ -494,6 +496,7 @@ my $lastCollateralFolderId = 'nolastid'; my ($parentId, $baseLineage, $rank); my $sth = WebGUI::SQL->read("select * from collateral order by collateralFolderId"); while (my $data = $sth->hashRef) { + print "\t\tConverting collateral item ".$data->{collateralId}." for folder ".$data->{collateralFolderId}."\n" unless ($quiet); unless ($lastCollateralFolderId eq $data->{collateralFolderId}) { $rank = 1; my $id = $data->{collateralFolderId}; @@ -1068,6 +1071,7 @@ $sth->finish; WebGUI::SQL->write("alter table template drop primary key"); WebGUI::SQL->write("alter table template drop column templateId"); WebGUI::SQL->write("alter table template drop column name"); +WebGUI::SQL->write("delete from where assetId is null or assetId = ''"); # protect ourselves from crap WebGUI::SQL->write("alter table template add primary key (assetId)"); my @wobjectTypes = qw(Article Poll Survey WSClient DataForm Layout EventsCalendar Navigation HttpProxy IndexedSearch MessageBoard Product SQLReport SyndicatedContent Shortcut); my @allWobjectTypes = (@wobjectTypes,@otherWobjects); diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index e661ce4b9..f576d8268 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -1408,8 +1408,8 @@ Optional specified lineage. sub getRank { my $self = shift; my $lineage = shift || $self->get("lineage"); - my ($rank) = $lineage =~ m/(.{6})$/; - my $rank = $rank - 0; # gets rid of preceeding 0s. + my $rank = $lineage =~ m/(.{6})$/; + $rank = $rank - 0; # gets rid of preceeding 0s. return $rank; } diff --git a/lib/WebGUI/Asset/Wobject.pm b/lib/WebGUI/Asset/Wobject.pm index 60cdb4098..10b88a813 100644 --- a/lib/WebGUI/Asset/Wobject.pm +++ b/lib/WebGUI/Asset/Wobject.pm @@ -501,7 +501,7 @@ sub setCollateral { my $useAssetId = shift; my $setName = shift || "assetId"; my $setValue = shift || $self->get($setName); - my ($key, $sql, $seq, $dbkeys, $dbvalues, $counter); + my ($key, $seq, $dbkeys, $dbvalues); my $counter = 0; my $sql; if ($properties->{$keyName} eq "new" || $properties->{$keyName} eq "") { diff --git a/lib/WebGUI/Help/Collaboration.pm b/lib/WebGUI/Help/Collaboration.pm new file mode 100644 index 000000000..5925fa0e1 --- /dev/null +++ b/lib/WebGUI/Help/Collaboration.pm @@ -0,0 +1,7 @@ +package WebGUI::Help::Collaboration; + +our $HELP = { + +}; + +1; diff --git a/lib/WebGUI/Help/USS.pm b/lib/WebGUI/Help/USS.pm deleted file mode 100644 index e75896b14..000000000 --- a/lib/WebGUI/Help/USS.pm +++ /dev/null @@ -1,74 +0,0 @@ -package WebGUI::Help::USS; - -our $HELP = { - 'user submission system add/edit' => { - title => '61', - body => '71', - related => [ - { - tag => 'forum discussion properties', - namespace => 'WebGUI' - }, - { - tag => 'submission form template', - namespace => 'USS' - }, - { - tag => 'submission template', - namespace => 'USS' - }, - { - tag => 'user submission system template', - namespace => 'USS' - }, - { - tag => 'wobjects using', - namespace => 'WebGUI' - } - ] - }, - 'submission form template' => { - title => '93', - body => '94', - related => [ - { - tag => 'user submission system add/edit', - namespace => 'USS' - } - ] - }, - 'user submission system template' => { - title => '74', - body => '75', - related => [ - { - tag => 'pagination template variables', - namespace => 'WebGUI' - }, - { - tag => 'user submission system add/edit', - namespace => 'USS' - }, - { - tag => 'wobject template', - namespace => 'WebGUI' - } - ] - }, - 'submission template' => { - title => '76', - body => '77', - related => [ - { - tag => 'user submission system add/edit', - namespace => 'USS' - }, - { - tag => 'wobject template', - namespace => 'WebGUI' - } - ] - }, -}; - -1; diff --git a/lib/WebGUI/Help/WebGUI.pm b/lib/WebGUI/Help/WebGUI.pm index 49ac70e12..2450b8258 100644 --- a/lib/WebGUI/Help/WebGUI.pm +++ b/lib/WebGUI/Help/WebGUI.pm @@ -711,156 +711,6 @@ our $HELP = { } ] }, - 'forum discussion properties' => { - title => '1054', - body => '1055', - related => [ - { - tag => 'forum notification template', - namespace => 'WebGUI' - }, - { - tag => 'forum post form template', - namespace => 'WebGUI' - }, - { - tag => 'forum post template', - namespace => 'WebGUI' - }, - { - tag => 'forum search template', - namespace => 'WebGUI' - }, - { - tag => 'forum template', - namespace => 'WebGUI' - }, - { - tag => 'forum thread template', - namespace => 'WebGUI' - } - ] - }, - 'forum template' => { - title => '1056', - body => '1057', - related => [ - { - tag => 'forum discussion properties', - namespace => 'WebGUI' - }, - { - tag => 'template language', - namespace => 'WebGUI' - }, - { - tag => 'templates manage', - namespace => 'WebGUI' - } - ] - }, - 'forum post template' => { - title => '1058', - body => '1059', - related => [ - { - tag => 'forum discussion properties', - namespace => 'WebGUI' - }, - { - tag => 'template language', - namespace => 'WebGUI' - }, - { - tag => 'templates manage', - namespace => 'WebGUI' - } - ] - }, - 'forum thread template' => { - title => '1060', - body => '1061', - related => [ - { - tag => 'forum discussion properties', - namespace => 'WebGUI' - }, - { - tag => 'forum post template', - namespace => 'WebGUI' - }, - { - tag => 'template language', - namespace => 'WebGUI' - }, - { - tag => 'templates manage', - namespace => 'WebGUI' - } - ] - }, - 'forum notification template' => { - title => '1062', - body => '1063', - related => [ - { - tag => 'forum discussion properties', - namespace => 'WebGUI' - }, - { - tag => 'forum post template', - namespace => 'WebGUI' - }, - { - tag => 'template language', - namespace => 'WebGUI' - }, - { - tag => 'templates manage', - namespace => 'WebGUI' - } - ] - }, - 'forum post form template' => { - title => '1065', - body => '1066', - related => [ - { - tag => 'forum discussion properties', - namespace => 'WebGUI' - }, - { - tag => 'forum post template', - namespace => 'WebGUI' - }, - { - tag => 'template language', - namespace => 'WebGUI' - }, - { - tag => 'templates manage', - namespace => 'WebGUI' - } - ] - }, - 'forum search template' => { - title => '1067', - body => '1068', - related => [ - { - tag => 'forum discussion properties', - namespace => 'WebGUI' - }, - { - tag => 'template language', - namespace => 'WebGUI' - }, - { - tag => 'templates manage', - namespace => 'WebGUI' - } - ] - }, 'pagination template variables' => { title => '1085', body => '1086', @@ -876,28 +726,6 @@ our $HELP = { body => 'Page, Export body', related => [ ], - }, - 'forum post preview template' => { - title => 'Forum, Post Preview Template Title', - body => 'Forum, Post Preview Template Body', - related => [ - { - tag => 'forum post template', - namespace => 'WebGUI' - }, - { - tag => 'forum discussion properties', - namespace => 'WebGUI' - }, - { - tag => 'template language', - namespace => 'WebGUI' - }, - { - tag => 'templates manage', - namespace => 'WebGUI' - } - ], } }; diff --git a/lib/WebGUI/Wobject.pm b/lib/WebGUI/Wobject.pm deleted file mode 100644 index b88585d47..000000000 --- a/lib/WebGUI/Wobject.pm +++ /dev/null @@ -1,1599 +0,0 @@ -package WebGUI::Wobject; - -=head1 LEGAL - - ------------------------------------------------------------------- - WebGUI is Copyright 2001-2005 Plain Black Corporation. - ------------------------------------------------------------------- - Please read the legal notices (docs/legal.txt) and the license - (docs/license.txt) that came with this distribution before using - this software. - ------------------------------------------------------------------- - http://www.plainblack.com info@plainblack.com - ------------------------------------------------------------------- - -=cut - -use CGI::Util qw(rearrange); -use DBI; -use strict qw(subs vars); -use Tie::IxHash; -use WebGUI::AdminConsole; -use WebGUI::DateTime; -use WebGUI::FormProcessor; -use WebGUI::Grouping; -use WebGUI::HTML; -use WebGUI::HTMLForm; -use WebGUI::Icon; -use WebGUI::Id; -use WebGUI::International; -use WebGUI::Macro; -use WebGUI::Node; -use WebGUI::Page; -use WebGUI::Privilege; -use WebGUI::Session; -use WebGUI::SQL; -use WebGUI::TabForm; -use WebGUI::Template; -use WebGUI::URL; -use WebGUI::Utility; -use WebGUI::MetaData; -use WebGUI::Wobject::WobjectProxy; - -=head1 NAME - -Package WebGUI::Wobject - -=head1 DESCRIPTION - -An abstract class for all other wobjects to extend. - -=head1 SYNOPSIS - - use WebGUI::Wobject; - our @ISA = qw(WebGUI::Wobject); - -See the subclasses in lib/WebGUI/Wobjects for details. - -=head1 METHODS - -These methods are available from this class: - -=cut - -#------------------------------------------------------------------- -sub _reorderWobjects { - my ($sth, $i, $wid); - $sth = WebGUI::SQL->read("select wobjectId from wobject where pageId=".quote($_[0])." order by templatePosition,sequenceNumber"); - while (($wid) = $sth->array) { - $i++; - WebGUI::SQL->write("update wobject set sequenceNumber='$i' where wobjectId=".quote($wid)); - } - $sth->finish; -} - - -#------------------------------------------------------------------- -sub _getNextSequenceNumber { - my ($sequenceNumber); - ($sequenceNumber) = WebGUI::SQL->quickArray("select max(sequenceNumber) from wobject where pageId=".quote($_[0])); - return ($sequenceNumber+1); -} - -#------------------------------------------------------------------- - -sub adminConsole { - my $self = shift; - my $content = shift; - my $title = shift; - my $helpId = shift; - my $namespace = shift || $self->namespace; - $title = WebGUI::International::get($title,$namespace) if ($title); - my $ac = WebGUI::AdminConsole->new("assets"); - $ac->setHelp($helpId,$namespace); - $ac->render($content,$title); -} - -#------------------------------------------------------------------- - -=head2 canEdit ( ) - -Returns a boolean (0|1) value signifying that the user has the required privileges. - -=cut - -sub canEdit { - my $self = shift; - return WebGUI::Page::canEdit() if ($session{page}{wobjectPrivileges} != 1 || $self->get("wobjectId") eq "new"); - if ($session{user}{userId} eq $self->get("ownerId")) { - return 1; - } else { - return WebGUI::Grouping::isInGroup($self->get("groupIdEdit")); - } -} - -#------------------------------------------------------------------- - -=head2 canView ( ) - -Returns a boolean (0|1) value signifying that the user has the required privileges. Returns true for users that have the rights to edit this wobject. - -=cut - -sub canView { - my $self = shift; - return WebGUI::Page::canView() unless ($session{page}{wobjectPrivileges} == 1); - if ($session{user}{userId} eq $self->get("ownerId")) { - return 1; - } elsif ($self->get("startDate") < WebGUI::DateTime::time() && $self->get("endDate") > WebGUI::DateTime::time() && WebGUI::Grouping::isInGroup($self->get("groupIdView"))) { - return 1; - } else { - return $self->canEdit; - } -} - - -#------------------------------------------------------------------- - -=head2 confirm ( message, yesURL, [ , noURL, vitalComparison ] ) - -=head3 message - -A string containing the message to prompt the user for this action. - -=head3 yesURL - -A URL to the web method to execute if the user confirms the action. - -=head3 noURL - -A URL to the web method to execute if the user denies the action. Defaults back to the current page. - -=head3 vitalComparison - -A comparison expression to be used when checking whether the action should be allowed to continue. Typically this is used when the action is a delete of some sort. - -=cut - -sub confirm { - return WebGUI::Privilege::vitalComponent() if ($_[4]); - my $noURL = $_[3] || WebGUI::URL::page(); - my $output = '
'; - $output .= '
'; - } -} - -#------------------------------------------------------------------- - -=head2 displayTitle ( ) - -Returns this instance's title if displayTitle is set to yes. - -=cut - -sub displayTitle { - if ($_[0]->get("displayTitle")) { - return "
'. - WebGUI::International::get('Add new field','MetaData'). - '
' - ); - } - return $self->adminConsole($f->print,$headingId,$helpId); -} - -#------------------------------------------------------------------- - -=head2 www_editSave ( [ hashRef ] ) - -Saves the default properties of any/all wobjects. - -B
-Submission Template
-Choose a layout for the individual submissions.
-
-
-
-Submissions Per Page
-How many submissions should be listed per page in the submissions index?
-
-
-
-Filter Content
-Select the level of content filtering you wish to perform on all submitted content.
-
-
-Sort By
-The field to sort the submission list by.
-
-
-Sort Order
-The direction to sort the submission list by.
-
-
-
-
-
-Who can approve?
-What group is allowed to approve and deny content?
-
-
-Who can contribute?
-What group is allowed to contribute content?
-
-
-
-Default Status
-Should submissions be set to Approved, Pending, or Denied by default?
-
-Note: If you set the default status to Pending, then be prepared to monitor your message log for new submissions.
-
-
-Karma Per Submission
-How much karma should be given to a user when they contribute to this user submission system?
-
-
-
-Allow discussion?
-Checking this box will enable responses to your article much like Articles on Slashdot.org.
-
- - -|, - lastUpdated => 1070199700 - }, - - '80' => { - message => q|Sort Order|, - lastUpdated => 1066636329 - }, - - '17' => { - message => q|Are you certain you wish to delete this submission?|, - lastUpdated => 1031514049 - }, - - '2' => { - message => q|Who can contribute?|, - lastUpdated => 1031514049 - }, - - '1' => { - message => q|Who can approve?|, - lastUpdated => 1031514049 - }, - - '88' => { - message => q|Sequence|, - lastUpdated => 1070027660 - }, - - '18' => { - message => q|Edit User Submission System|, - lastUpdated => 1031514049 - }, - - '30' => { - message => q|Karma Per Submission|, - lastUpdated => 1031514049 - }, - - '16' => { - message => q|Untitled|, - lastUpdated => 1031514049 - }, - - '82' => { - message => q|Descending|, - lastUpdated => 1066636432 - }, - - '74' => { - message => q|User Submission System Template|, - lastUpdated => 1038865585 - }, - - '27' => { - message => q|Edit|, - lastUpdated => 1031514049 - }, - - '84' => { - message => q|Edit Question|, - lastUpdated => 1031514049 - }, - - '28' => { - message => q|Return To Submissions List|, - lastUpdated => 1031514049 - }, - - '75' => { - message => q|This is the listing of template variables available in user submission system templates. -
- -readmore.label
-
-addlink.label
-A translated label that prompts the user to add a link to the USS.
-
-
-search.label
-A translated label for the search link.
-
-
-canModerate
-A condition indicating whether the current user has the rights to moderate posts in this USS.
-
-
-title.label
-A translated label for the title column.
-
-
-submissions_loop
-A loop containing each submission.
-
- -submission.inDateRange -A boolean value indicating whether or not the submission is within the specified date range. - - -submission.id- - -|, - lastUpdated => 1082367203 - }, - - '57' => { - message => q|Responses|, - lastUpdated => 1031514049 - }, - - '83' => { - message => q|Add a new question.|, - lastUpdated => 1031514049 - }, - - '61' => { - message => q|User Submission System, Add/Edit|, - lastUpdated => 1047859664 - }, - - '20' => { - message => q|Post New Submission|, - lastUpdated => 1031514049 - }, - - '14' => { - message => q|Status|, - lastUpdated => 1031514049 - }, - - '59' => { - message => q|Next Submission|, - lastUpdated => 1031514049 - }, - - '92' => { - message => q|Open in new window?|, - lastUpdated => 1031514049 - }, - - '89' => { - message => q|Add a new link.|, - lastUpdated => 1031514049 - }, - - '31' => { - message => q|Content|, - lastUpdated => 1031514049 - }, - - '35' => { - message => q|Title|, - lastUpdated => 1031514049 - }, - - '53' => { - message => q|Layout|, - lastUpdated => 1031514049 - }, - - '91' => { - message => q|URL|, - lastUpdated => 1031514049 - }, - - '78' => { - message => q|Date Updated|, - lastUpdated => 1066636183 - }, - - '79' => { - message => q|Sort By|, - lastUpdated => 1066636255 - }, - - '48' => { - message => q|Allow discussion?|, - lastUpdated => 1031514049 - }, - - '87' => { - message => q|Submission Form Template|, - lastUpdated => 1070027660 - }, - - '93' => { - message => q|Submission Form Template|, - lastUpdated => 1070199365 - }, - - '77' => { - message => q|The following are the template variables used in a submission template. Submission templates are used to display the individual submissions in a user submission system. - - -title
-A unique identifier for this submission. - - -submission.url
-The URL to view this submission. - - -submission.content
-The abbreviated text content of this submission. - - -submission.content.full
-The full text content of this submission. - - - -submission.responses
-The number of responses to this submission. - - -submission.title
-The title for this submission. - - -submission.userDefined1 - submission.userDefined5
-A series of user defined fields to add custom functionality to the USS. -- -submission.userId
- -submission.username
-The user id of the user that posted this submission. -
-The username of the person that posted this submission. - - -submission.status
-The status of this submission (approved, pending, denied). - - -submission.thumbnail
-The thumbnail of the image uploaded with this submission (if any). - - -submission.image
-The URL of the image attached to this submission. -- - -submission.date
- -submission.date.updated
-The that this submission was posted. -
-A human readable date that displays the date and time this submission was last edited. - - -submission.currentUser
-A condition indicating whether the current user is the same as the user that posted this submission. - - -submission.userProfile
-The URL to the profile of the user that posted this submission. - - -submission.edit.url
-The URL to edit this submission. -- - -submission.secondColumn
- -submission.thirdColumn
-A condition indicating whether or not this submission would belong in the second column, in a multi-column layout. -
-A condition indicating whether or not this submission would belong in the third column, in a multi-column layout. - - -submission.fourthColumn
-A condition indicating whether or not this submission would belong in the fourth column, in a multi-column layout. - - -submission.fifthColumn
-A condition indicating whether or not this submission would belong in the fifth column, in a multi-column layout. - - -submission.controls
-The administrative toolbar for each submission. -- -
-
-image.url
-The URL to the attached image.
-
-
-image.thumbnail
-The URL to the attached image's thumbnail.
-
-
-attachment.box
-A standard WebGUI attachment box which displays the icon for the file, and the filename, along with an attachment icon and all are linked to the file.
-
-
-attachment.url
-The URL to the attached file.
-
-
-attachment.icon
-The icon that represents the attached file's type.
-
-
-attachment.name
-The filename of the attached file.
-
- - -|, - lastUpdated => 1070197000 - }, - - '46' => { - message => q|Read more...|, - lastUpdated => 1031514049 - }, - - '13' => { - message => q|Date Submitted|, - lastUpdated => 1031514049 - }, - - '29' => { - message => q|User Submission System|, - lastUpdated => 1031514049 - }, - - '6' => { - message => q|Submissions Per Page|, - lastUpdated => 1031514049 - }, - - '39' => { - message => q|Post a Reply|, - lastUpdated => 1031514049 - }, - - '85' => { - message => q|Question|, - lastUpdated => 1031514049 - }, - - '3' => { - message => q|You have a new user submission to approve.|, - lastUpdated => 1031514049 - }, - - '94' => { - message => q|The following template variables are available to you when building your submission form templates. -
-
-submission.isNew
-A condition indicating whether this is a new submission being contributed.
-
-
-link.header.label
-A header telling the user they are editing a link.
-
-
-question.header.label
-A header telling the user they are editing a question.
-
-
-submission.header.label
-A header telling the user they are editing a submission.
-
-
-user.isVisitor
-A condition indicating whether the current user is a visitor.
-
-
-visitorName.label
-A label for the visitorName.form variable.
-
-
-visitorName.form
-A text box that allows a visitor (non-logged in user) to enter their own name instead of submitting completely anonymously.
-
-
-form.header
-All the information necessary to route the form contents back to WebGUI.
-
-
-url.label
-A generic label for a URL field.
-
-
-newWindow.label
-A generic label for a field asking the user whether they would like links to pop up new windows.
-
-
-userDefined1.form - userDefined5.form
-A series of generic text fields that can be used to extend the functionality of the USS.
-
-
-userDefined1.form.yesNo - userDefined5.form.yesNo
-Yes / No versions of the user defined fields.
-
-
-userDefined1.form.textarea - userDefined5.form.textarea
-Textarea versions of the user defined fields.
-
-
-userDefined1.value - userDefined5.value
-The raw values of the user defined fields.
-
-
-question.label
-A label prompting the user to enter a question.
-
-
-title.label
-A label prompting the user to enter a title.
-
-
-title.form
-A text field for titles or headers for each submission.
-
-
-title.form.textarea
-A textarea version of the title.form field.
-
-
-title.value
-The raw value of the title field.
-
-
-body.label
-A label for the body.form variable.
-
-
-answer.label
-Another label for the body.form variable.
-
-
-description.label
-Another label for the body.form variable.
-
-
-body.form
-An HTML Area field allowing the user to enter descriptive content of this submission.
-
-
-body.value
-The raw content of the body.form field.
-
-
-body.form.textarea
-A textarea version of body.form.
-
-
-image.label
-A label for the image.form variable.
-
-
-image.form
-A field allowing the user to pick an image from his/her hard drive.
-
-
-attachment.label
-A label for the attachment.form variable.
-
-
-attachment.form
-A field allowing the user to pick a file from his/her hard drive to attach to this submission.
-
-
-contentType.label
-A label for the contentType.form variable.
-
-
-contentType.form
-A field allowing the user to select the type of content contained in the form.body field.
-
-
-startDate.label
-A label for the startDate.form variable.
-
-
-startDate.form
-A field allowing the user to select the first date the submission should be visible on the USS list.
-
-
-endDate.label
-A label for the endDate.form variable.
-
-
-endDate.form
-A field allowing the user to select the last date the submission should be visible on the USS list.
-
-
-form.submit
-A submit button.
-
-
-form.footer
-The bottom of the form.
-
-|, - lastUpdated => 1070199365 - }, - - '51' => { - message => q|Display thumbnails?|, - lastUpdated => 1031514049 - }, - - '41' => { - message => q|Date|, - lastUpdated => 1031514049 - }, - - '58' => { - message => q|Previous Submission|, - lastUpdated => 1031514049 - }, - - '12' => { - message => q|(Uncheck if you're writing an HTML submission.)|, - lastUpdated => 1031514049 - }, - - '47' => { - message => q|Post a Response|, - lastUpdated => 1031514049 - }, - - '15' => { - message => q|Edit/Delete|, - lastUpdated => 1031514049 - }, - - '81' => { - message => q|Ascending|, - lastUpdated => 1066636389 - }, - - '52' => { - message => q|Thumbnail|, - lastUpdated => 1031514049 - }, - - '4' => { - message => q|Your submission has been approved.|, - lastUpdated => 1031514049 - }, - - '73' => { - message => q|Submission Template|, - lastUpdated => 1036277524 - }, - - '37' => { - message => q|Delete|, - lastUpdated => 1031514049 - }, - - '76' => { - message => q|Submission Template|, - lastUpdated => 1038867009 - }, - - '86' => { - message => q|Answer|, - lastUpdated => 1031514049 - }, - - '19' => { - message => q|Edit Submission|, - lastUpdated => 1031514049 - }, - - '5' => { - message => q|Your submission has been denied.|, - lastUpdated => 1031514049 - }, - -}; - -1; diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index fd9a51348..826cad791 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -46,11 +46,6 @@ our $I18N = { lastUpdated => 1044705246 }, - '1065' => { - message => q|Forum Post Form Template|, - lastUpdated => 1066581759 - }, - '358' => { message => q|Left Column|, lastUpdated => 1031514049 @@ -76,31 +71,11 @@ our $I18N = { lastUpdated => 1031514049 }, - '580' => { - message => q|Your message has been denied.|, - lastUpdated => 1031514049 - }, - - '1031' => { - message => q|Forum Template|, - lastUpdated => 1066034528 - }, - - '1020' => { - message => q|Rating|, - lastUpdated => 1065280882 - }, - '84' => { message => q|Group Name|, lastUpdated => 1031514049 }, - '512' => { - message => q|Go to next thread|, - lastUpdated => 1065280309 - }, - '437' => { message => q|Statistics|, lastUpdated => 1031514049, @@ -583,176 +558,6 @@ The URL of the web site for this theme's designer. If you are in the business of lastUpdated => 1031514049 }, - '1068' => { - message => q|The following variables are available in the search template. -
-
-callback.url
-The url that links back to the calling object such as an Article or User Submission System.
-
-
-callback.label
-The default label for callback.url.
-
-
-form.begin
-The search form header.
-
-
-search.label
-The default label for the search page.
-
-
-all.label
-The default label for all.form.
-
-
-all.form
-The form element for searching based on all words.
-
-
-exactphrase.label
-The default label for exactphrase.form.
-
-
-exactphrase.form
-The form element for searching based on an exact phrase.
-
-
-without.label
-The default label for without.form.
-
-
-without.form
-The form element for searching based on words that cannot be found in the text.
-
-
-atleastone.label
-The default label for atleastone.form.
-
-
-atleastone.form
-The form element for searching where at least one of the words must exist in the text.
-
-
-results.label
-The default label for results.form.
-
-
-results.form
-The form element for selecting how many results per page should be returned.
-
-
-form.search
-The search button.
-
-
-form.end
-The form footer.
-
-
-thread.list.url
-A url that goes back to the thread list (aka forum).
-
-
-thread.list.label
-The default label for thread.list.url.
-
-
-post.subject.label
-The default label for the subject column.
-
-
-post.date.label
-The default label for the date column.
-
-
-post.user.label
-The default label for the author column.
-
-
-post_loop
-A loop containing all of the search results.
-
- -
- -post.subject- -
-The post subject. -- -post.url
-The url to view the post. -- -post.epoch
-The epoch date of the post. -- -post.date
-The human readable date of the post. -- -post.time
-The human readable time of the post. -- -post.user.id
-The userId of the poster. -- -post.user.name
-The username of the poster. -- -post.user.alias
-The current alias of the poster. -- -post.user.profile
-The url of the poster's profile. -- -
-
-firstpage
-A link to the first page in a multi-page listing.
-
-
-lastpage
-A link to the last page in a multi-page listing.
-
-
-nextpage
-A link to the next page in a multi-page listing.
-
-
-pagelist
-A series of links to every page in a multi-page listing.
-
-
-previouspage
-A link to the previous page in a multi-page listing.
-
-
-multiplepages
-A conditional indicating whether there are multiple pages or not.
-
-
-numberOfPages
-The number of pages in a multiple page listing.
-
-
-pageNumber
-The number of the current page in a multi-page listing.
-
- -|, - lastUpdated => 1099614588 - }, - '950' => { message => q|Empty clipboard.|, lastUpdated => 1052850265 @@ -763,11 +568,6 @@ The number of the current page in a multi-page listing. lastUpdated => 1031514049 }, - '1025' => { - message => q|Add edit stamp to posts?|, - lastUpdated => 1031514049 - }, - '509' => { message => q|Discussion Layout|, lastUpdated => 1031514049 @@ -817,210 +617,6 @@ Be aware that any database links you create here will be available to all conten lastUpdated => 1031514049 }, - '1061' => { - message => q|These are the template variables for the thread template. -
-
-callback.url
-The url to the calling object such as an article or a user submission.
-
-
-callback.label
-The default label for callback.url
-
-
-user.canpost
-A conditional indicating whether the current user can post a new message.
-
-
-user.isVisitor
-A conditional indicating whether the current user is a visitor.
-
-
-user.isModerator
-A conditional indicating whether the current user is a moderator.
-
-
-user.isSubscribed
-A conditional indicating whether the current user is subscribed to this thread.
-
-
-thread.layout.nested.label
-The default label for thread.layout.nested.url.
-
-
-thread.layout.nested.url
-A url that will change the layout of the thread to nested.
-
-
-thread.layout.flat.url
-A url that will change the layout of the thread to flat.
-
-
-thread.layout.flat.label
-The default label for thread.layout.flat.url.
-
-
-thread.layout.threaded.label
-The default label for thread.layout.threaded.url.
-
-
-thread.layout.threaded.url
-A url that will change the layout of the thread to threaded.
-
-
-thread.layout.isThreaded
-A conditional indicating whether the thread layout is threaded.
-
-
-thread.layout.isNested
-A conditional indicating whether the thread layout is nested.
-
-
-thread.layout.isFlat
-A conditional indicating whether the thread layout is flat.
-
-
-thread.subscribe.url
-A url that will subscribe the current user to this thread.
-
-
-thread.subscribe.label
-The default label for thread.subscribe.url.
-
-
-thread.unsubscribe.url
-A url that will unsubscribe the current user from this thread.
-
-
-thread.unsubscribe.label
-The default label for thread.unsubscribe.url.
-
-
-thread.isSticky
-A conditional indicating whether the thread is sticky.
-
-
-thread.stick.url
-A url that will make this thread sticky.
-
-
-thread.stick.label
-The default label for thread.stick.url.
-
-
-thread.unstick.url
-A url that will make a sticky thread unstick.
-
-
-thread.unstick.label
-The default label for thread.unstick.url.
-
-
-thread.isLocked
-A conditional indicating whether this thread is locked.
-
-
-thread.lock.url
-A url that will lock this thread.
-
-
-thread.lock.label
-The default label for thread.lock.url.
-
-
-thread.unlock.url
-A url that will unlock this thread.
-
-
-thread.unlock.label
-The default label for thread.unlock.url.
-
-
-post_loop
-A loop containing all the posts in this thread.
-
- -
- -post.indent_loop- -
-A loop to be used for indenting. --
-depth-
-An integer indicating the depth. Not really useful, just hear to fill out the loop. -- -post.indent.depth
-An integer indicating how many levels deep this post is. -- -post.isCurrent
-A conditional indicating whether this post is the one selected for viewing by the user. -- -NOTE: All of the variables from the post template are also available here. - -
-
-thread.subject.label
-The default label for subjects.
-
-
-thread.date.label
-The default label for dates.
-
-
-thread.user.label
-The default label for authors.
-
-
-thread.new.url
-A url to create a new url.
-
-
-thread.new.label
-The default label for thread.new.url.
-
-
-thread.previous.url
-A url that will display the previous thread.
-
-
-thread.previous.label
-The default label for thread.previous.url.
-
-
-thread.next.url
-A url that will display the next thread.
-
-
-thread.next.label
-The default label for thread.next.url.
-
- -thread.list.url -A url to take the user back to the thread list (aka the forum). -
-
-thread.list.label
-The default label for thread.list.url.
-
-
-forum.title
-The title of this forum as passed by the calling object.
-
-
-forum.description
-The description of this forum as passed by the calling object.
-
- -|, - lastUpdated => 1099613369 - }, '485' => { message => q|Boolean (Checkbox)|, @@ -1178,11 +774,6 @@ How should this user be notified when they get a new WebGUI message? lastUpdated => 1031514049 }, - '1040' => { - message => q|Lock|, - lastUpdated => 1066073923 - }, - '999' => { message => q|Database Link, Delete|, lastUpdated => 1056151382 @@ -1198,11 +789,6 @@ How should this user be notified when they get a new WebGUI message? lastUpdated => 1031514049 }, - '1012' => { - message => q|Lock this thread?|, - lastUpdated => 1060433963 - }, - '430' => { message => q|Last Page View|, lastUpdated => 1031514049 @@ -1218,11 +804,6 @@ How should this user be notified when they get a new WebGUI message? lastUpdated => 1031514049 }, - '1032' => { - message => q|Thread Template|, - lastUpdated => 1066034586 - }, - '901' => { message => q|Add a new theme.|, lastUpdated => 1050190107 @@ -1273,11 +854,6 @@ How should this user be notified when they get a new WebGUI message? lastUpdated => 1031514049 }, - '1056' => { - message => q|Forum Template|, - lastUpdated => 1066576831 - }, - '535' => { message => q|Group To Alert On New User|, lastUpdated => 1031514049 @@ -1288,11 +864,6 @@ How should this user be notified when they get a new WebGUI message? lastUpdated => 1031514049 }, - '1022' => { - message => q|Subscribe to discussion|, - lastUpdated => 1065875027 - }, - '77' => { message => q|That account name is already in use by another member of this site. Please try a different username. The following are some suggestions:|, lastUpdated => 1031514049 @@ -1308,11 +879,6 @@ How should this user be notified when they get a new WebGUI message? lastUpdated => 1031514049 }, - '541' => { - message => q|Karma Per Post|, - lastUpdated => 1031514049 - }, - '39' => { message => q|You do not have sufficient privileges to access this page.|, lastUpdated => 1031514049 @@ -1396,11 +962,6 @@ As with any delete operation, you are prompted to be sure you wish to proceed wi lastUpdated => 1033836678 }, - '875' => { - message => q|A new message has been posted to one of your subscriptions.|, - lastUpdated => 1065874019 - }, - '1' => { message => q|Add content...|, lastUpdated => 1031514049 @@ -1511,16 +1072,6 @@ As with any delete operation, you are prompted to be sure you wish to proceed wi lastUpdated => 1031514049 }, - '874' => { - message => q|Unsubscribe from thread|, - lastUpdated => 1065876868 - }, - - '1062' => { - message => q|Forum Notification Template|, - lastUpdated => 1066580520 - }, - '975' => { message => q|Users can remove themselves?|, lastUpdated => 1053778962 @@ -1536,11 +1087,6 @@ As with any delete operation, you are prompted to be sure you wish to proceed wi lastUpdated => 1031514049 }, - '1033' => { - message => q|Post Template|, - lastUpdated => 1066034603 - }, - '445' => { message => q|Preferences|, lastUpdated => 1031514049 @@ -1795,11 +1341,6 @@ The user id of the currently logged in user. lastUpdated => 1031514049 }, - '1019' => { - message => q|Back to thread list|, - lastUpdated => 1065280160 - }, - '700' => { message => q|Day(s)|, lastUpdated => 1031514049 @@ -1847,11 +1388,6 @@ The user id of the currently logged in user. lastUpdated => 1056151382 }, - '515' => { - message => q|Add edit stamp to posts?|, - lastUpdated => 1031514049 - }, - '138' => { message => q|Yes|, lastUpdated => 1031514049 @@ -1984,11 +1520,6 @@ If you leave this on the default setting you'll be redirected to the new page af lastUpdated => 1031879593 }, - '1067' => { - message => q|Forum Search Template|, - lastUpdated => 1066582842 - }, - '432' => { message => q|Expires|, lastUpdated => 1031514049 @@ -2039,20 +1570,6 @@ That particular example will help you get good ranking on search engines. lastUpdated => 1050232236 }, - '1063' => { - message => q|These are the variables available in the forum notification template. - -
-notify.subscription.message
-A message stating that the user is receiving the message because they subscribed to the forum or thread.
-
- -NOTE: The notification template also includes all the variables from the post template. -
-|, - lastUpdated => 1066580520 - }, - '17' => { message => q|March|, lastUpdated => 1031514049 @@ -2128,11 +1645,6 @@ A message stating that the user is receiving the message because they subscribed lastUpdated => 1031514049 }, - '1034' => { - message => q|Post Form Template|, - lastUpdated => 1066034620 - }, - '426' => { message => q|Login History|, lastUpdated => 1031514049, @@ -2488,11 +2000,6 @@ The Connect DN is the cn (or common name) of a given user in your LDAP da lastUpdated => 1044138790 }, - '513' => { - message => q|Go to previous thread|, - lastUpdated => 1065280287 - }, - 'groups default body' => { message => q|There are several groups built into WebGUI:
@@ -2686,11 +2193,6 @@ One package that many people create is a Page/Article package. It is often the c lastUpdated => 1031514049 }, - '1038' => { - message => q|Unstick|, - lastUpdated => 1066065454 - }, - '53' => { message => q|Make Page Printable|, lastUpdated => 1031514049 @@ -2702,7 +2204,7 @@ One package that many people create is a Page/Article package. It is often the c }, '626' => { - message => q|Wobjects (formerly known as Widgets) are the true power of WebGUI. Wobjects are tiny pluggable applications built to run under WebGUI. Articles, message boards and polls are examples of wobjects. + message => q|Wobjects are the true power of WebGUI. Wobjects are tiny pluggable applications built to run under WebGUI. Articles, message boards and polls are examples of wobjects.
To 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. @@ -2847,11 +2349,6 @@ Loops come with special condition variables of their own. They are __FIRST__, __ lastUpdated => 1031514049 }, - '1064' => { - message => q|Post a Message|, - lastUpdated => 1066580782 - }, - '951' => { message => q|Are you certain that you wish to empty the clipboard to the trash?|, lastUpdated => 1052850265 @@ -3000,16 +2497,6 @@ You also cannot import a theme from a version of WebGUI that is newer than the o lastUpdated => 1066641432 }, - '1013' => { - message => q|Make sticky?|, - lastUpdated => 1060434033 - }, - - '233' => { - message => q|(eom)|, - lastUpdated => 1031514049 - }, - '57' => { message => q|This is only necessary if you wish to use features that require Email.|, lastUpdated => 1031514049 @@ -3188,11 +2675,6 @@ The translated label for the link to the home page or the text that you supply t lastUpdated => 1031514049 }, - '1028' => { - message => q|Moderate posts?|, - lastUpdated => 1065966284 - }, - '812' => { message => q|Your message has been sent.|, lastUpdated => 1037580328 @@ -3203,203 +2685,6 @@ The translated label for the link to the home page or the text that you supply t lastUpdated => 1036971944 }, - '1059' => { - message => q|The following are the template variables available in the post template. -
-
-callback.url
-The url back to the calling object such as an article or user submission.
-
-
-callback.label
-The default label for callback.url.
-
-
-post.subject
-The subject of this post.
-
-
-post.subject.label
-The default label for post.subject
-
-
-post.message
-The message of this post.
-
-
-user.canPost
-A conditional indicating whether the current user can post a new message.
-
-
-post.date.value
-A human readable date for this post.
-
-
-post.date.epoch
-The epoch date for this post.
-
-
-post.time.value
-The human readable time for this post.
-
-
-post.date.label
-The default label for post.date.value.
-
-
-post.rating.value
-The average rating of this post.
-
-
-post.rating.label
-The default label for post.date.value.
-
-
-post.views.value
-The number of views for this post.
-
-
-post.views.label
-The default label for post.views.value.
-
-
-post.status.value
-the status of this post.
-
-
-post.status.label
-The default label for post.status.value.
-
-
-post.isLocked
-A conditional indicating whether the thread this post is in is locked.
-
-
-post.isModerator
-A conditional indicating whether the current user is a moderator.
-
-
-post.canEdit
-A conditional indicating whether the current user can edit this post.
-
-
-post.user.isVisitor
-A conditional indicating whether the poster was a visitor.
-
-
-post.user.id
-The userId of the poster.
-
-
-post.user.name
-The poster's username.
-
-
-post.user.alias
-The poster's current alias.
-
-
-post.user.profile
-The url to the poster's profile.
-
-
-post.url
-The url to display this post.
-
-
-post.id
-The unique id of this post.
-
-
-post.rate.label
-The default label for post.rate.url.1.
-
-
-post.rate.url.1
-The url to give this post a rating of 1.
-
-
-post.rate.url.2
-The url to give this post a rating of 2.
-
-
-
-post.rate.url.3
-The url to give this post a rating of 3.
-
-
-
-post.rate.url.4
-The url to give this post a rating of 4.
-
-
-
-post.rate.url.5
-The url to give this post a rating of 5.
-
-
-post.hasRated
-A conditional indicating whether the current user has already rated this post.
-
-
-post.reply.label
-The default label for post.reply.url.
-
-
-post.reply.url
-The url to reply to this post.
-
-
-post.reply.withquote.url
-The url to reply to this post and quote this post in doing so.
-
-
-post.edit.label
-The default label for post.edit.url.
-
-
-post.edit.url
-The url to edit this post.
-
-
-post.delete.url
-The url to delete this post.
-
-
-post.delete.label
-The default label for post.delete.url.
-
-
-post.approve.label
-The default label for post.approve.url.
-
-
-post.approve.url
-The url to approve this post.
-
-
-post.deny.url
-The url to deny this post.
-
-
-post.deny.label
-The default label for post.deny.url.
-
-
-post.full
-The full post rendered using the post template. This would never be used in the post template directly, but is often used in other templates that embed the post template's variables.
-
-
-forum.title
-The title of this forum as passed by the calling object.
-
-
-forum.description
-The description of this forum as passed by the calling object.
-
This template uses the same template variables as the Forum Post Template.
- - -|, - lastUpdated =>1099614353, - context => q|help body forum post preview template| - }, 'cancel' => { message => q|cancel|, lastUpdated =>1092930637, diff --git a/sbin/preload.perl b/sbin/preload.perl index dce186c95..6149ccc94 100644 --- a/sbin/preload.perl +++ b/sbin/preload.perl @@ -95,7 +95,6 @@ use WebGUI::SQL (); use WebGUI::Storage (); use WebGUI::Style (); use WebGUI::TabForm (); -use WebGUI::Template (); use WebGUI::URL (); use WebGUI::User (); use WebGUI::Utility (); @@ -104,7 +103,6 @@ use WebGUI::Utility (); #use WebGUI::Help::Article (); #use WebGUI::Help::Asset (); #use WebGUI::Help::AuthLDAP (); -#use WebGUI::Help::AuthSMB (); #use WebGUI::Help::AuthWebGUI (); #use WebGUI::Help::DataForm (); #use WebGUI::Help::EventsCalendar (); @@ -116,34 +114,21 @@ use WebGUI::Utility (); #use WebGUI::Help::SQLReport (); #use WebGUI::Help::Survey (); #use WebGUI::Help::SyndicatedContent (); -#use WebGUI::Help::USS (); +#use WebGUI::Help::Collaboration (); #use WebGUI::Help::WebGUI (); -#use WebGUI::Help::WobjectProxy (); +#use WebGUI::Help::Shortcut (); #use WebGUI::Help::WSClient (); # i18n use WebGUI::i18n::English (); use WebGUI::i18n::English::Article (); +use WebGUI::i18n::English::Collaboration (); use WebGUI::i18n::English::Asset (); #use WebGUI::i18n::English::AuthLDAP (); -#use WebGUI::i18n::English::AuthSMB (); use WebGUI::i18n::English::AuthWebGUI (); -use WebGUI::i18n::English::DataForm (); -use WebGUI::i18n::English::EventsCalendar (); -use WebGUI::i18n::English::HttpProxy (); -use WebGUI::i18n::English::IndexedSearch (); -use WebGUI::i18n::English::MessageBoard (); use WebGUI::i18n::English::Navigation (); -use WebGUI::i18n::English::Poll (); -use WebGUI::i18n::English::Product (); -use WebGUI::i18n::English::SQLReport (); -use WebGUI::i18n::English::Survey (); -use WebGUI::i18n::English::SyndicatedContent (); -use WebGUI::i18n::English::USS (); use WebGUI::i18n::English::WebGUI (); use WebGUI::i18n::English::WebGUIProfile (); -use WebGUI::i18n::English::WobjectProxy (); -use WebGUI::i18n::English::WSClient (); # you can significantly reduce your memory usage by preloading the plugins used on your sites, only the most commonly used ones are preloaded by default @@ -156,7 +141,7 @@ use WebGUI::Asset::Wobject (); use WebGUI::Asset::Wobject::Article (); use WebGUI::Asset::Wobject::Layout (); use WebGUI::Asset::Wobject::Navigation (); -#use WebGUI::Asset::Wobject::USS (); +use WebGUI::Asset::Wobject::Collaboration (); # auth methods use WebGUI::Auth::WebGUI (); @@ -164,9 +149,6 @@ use WebGUI::Auth::WebGUI (); #use Net::LDAP (); # used by ldap authentication use WebGUI::Auth::LDAP (); -#use Authen::Smb (); #uncomment when using this type of authentication. -#use WebGUI::Auth::SMB (); - # macros use WebGUI::Macro::AdminBar (); use WebGUI::Macro::AssetProxy ();