diff --git a/docs/upgrades/upgrade_4.9.0-4.9.1.sql b/docs/upgrades/upgrade_4.9.0-4.9.1.sql index d0c7cbf1e..e79b1c557 100644 --- a/docs/upgrades/upgrade_4.9.0-4.9.1.sql +++ b/docs/upgrades/upgrade_4.9.0-4.9.1.sql @@ -6,7 +6,15 @@ INSERT INTO template VALUES (2,'Unordered List','\r\n < INSERT INTO template VALUES (3,'Ordered List','\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
  1. \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
  2. \r\n
    \r\n
','LinkList'); INSERT INTO template VALUES (4,'Descriptive','\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
\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','LinkList'); INSERT INTO template VALUES (1,'Default Message Board','\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 \">\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 \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 \r\n \">\r\n @ \r\n by \">\r\n \r\n
\r\n\r\n\r\n\r\n

\r\n · · \r\n
\r\n
\r\n\r\n','MessageBoard'); - +delete from international where languageId=1 and namespace='USS' and internationalId=77; +insert into international (internationalId,languageId,namespace,message,lastUpdated) values (77,1,'USS','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.\r\n

\r\n\r\ntitle
\r\nThe title of this submission.\r\n

\r\n\r\ncontent
\r\nThe full text content of this submission.\r\n

\r\n\r\nuser.label
\r\nThe translated label indicating what user posted this submission.\r\n

\r\n\r\nuser.profile
\r\nThe URL to the profile of the user that posted this submission.\r\n

\r\n\r\nuser.username
\r\nThe username of the user that posted this submission.\r\n

\r\n\r\nuser.id
\r\nThe unique identifier for the user that posted this submission.\r\n

\r\n\r\ndate.label
\r\nThe translated label indicating what date this submission was posted.\r\n

\r\n\r\ndate.epoch
\r\nThe number of seconds since January 1, 1970 that this submission was posted.\r\n

\r\n\r\ndate.human
\r\nA human readable date that displays the date and time this submission was posted.\r\n

\r\n\r\nstatus.label
\r\nA translated label indicating the status of this submission.\r\n

\r\n\r\nstatus.status
\r\nThe actual status of this submission (pending, approved, denied).\r\n

\r\n\r\nviews.label
\r\nA translated label indicating how many times this submission has been viewed.\r\n

\r\n\r\nviews.count
\r\nThe number of times this submission has been viewed.\r\n

\r\n\r\ncanPost
\r\nAn condition indicating whether or not this user can post a new submission.\r\n

\r\n\r\npost.url
\r\nThe URL to post a new submission.\r\n

\r\n\r\npost.label
\r\nA translated label for the post link.\r\n

\r\n\r\nprevious.more
\r\nAn condition indicating whether there are any posts prior to this one available for viewing.\r\n

\r\n\r\nprevious.url
\r\nA URL to the post that came before this one.\r\n

\r\n\r\nprevious.label
\r\nA translated label for the previous link.\r\n

\r\n\r\nnext.more
\r\nA condition indicating whether there are any posts after this one available for viewing.\r\n

\r\n\r\nnext.url
\r\nThe URL to the post that came after this one.\r\n

\r\n\r\nnext.label
\r\nA translated label for the next link.\r\n

\r\n\r\ncanEdit
\r\nA condition indicating whether the current user cane edit or delete this post.\r\n

\r\n\r\nedit.url
\r\nThe URL to edit this post.\r\n

\r\n\r\nedit.label
\r\nA translated label for the edit link.\r\n

\r\n\r\ndelete.url
\r\nThe URL to delete this post.\r\n

\r\n\r\ndelete.label
\r\nA translated label for the delete link.\r\n

\r\n\r\ncanChangeStatus
\r\nA condition indicating whether the current user has the privileges to change the status of this post.\r\n

\r\n\r\napprove.url
\r\nThe URL to approve this post.\r\n

\r\n\r\napprove.label
\r\nA translated label for the approve link.\r\n

\r\n\r\ndeny.url
\r\nThe URL to deny this post.\r\n

\r\n\r\ndeny.label
\r\nA translated label for the deny link.\r\n

\r\n\r\nleave.url
\r\nThe URL to leave this post in it\'s current state.\r\n

\r\n\r\nleave.label
\r\nA translated label for the leave link.\r\n

\r\n\r\ncanReply
\r\nA condition indicating whether the current user can reply to this post.\r\n

\r\n\r\nreply.url
\r\nThe URL to reply to this post.\r\n

\r\n\r\nreply.label
\r\nA translated label for the reply link.\r\n

\r\n\r\nsearch.url
\r\nThe URL to toggle on the WebGUI power search form.\r\n

\r\n\r\nsearch.label
\r\nA translated label for the search link.\r\n

\r\n\r\nback.url
\r\nThe URL to return the user to the main listing.\r\n

\r\n\r\nback.label
\r\nA translated label for the back link.\r\n

\r\n\r\nreplies
\r\nA complete listing of all replies to this post.\r\n

\r\n', 1039019783); +delete from template where namespace='USS/Submission' and templateId=1; +INSERT INTO template VALUES (1,'Default Submission','

\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 \">»
\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\r\n \">
\r\n
\r\n\">
\r\n\">
\r\n\r\n
\r\n\r\n \" border=\"0\">

\r\n\r\n

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

\r\n\r\n','USS/Submission'); +alter table discussion add index MessageBoard1 (wobjectId,pid,status,userId); +alter table discussion add index MessageBoard2 (wobjectId,rid,status); +alter table USS_submission change userId userId int not null default 1; +alter table USS_submission change status status varchar(30) not null default 'Approved'; +alter table USS_submission add index test (wobjectId,status,userId); diff --git a/lib/WebGUI/Wobject/USS.pm b/lib/WebGUI/Wobject/USS.pm index ee307f81e..eda4de536 100644 --- a/lib/WebGUI/Wobject/USS.pm +++ b/lib/WebGUI/Wobject/USS.pm @@ -424,7 +424,7 @@ sub www_viewSubmission { $var{"leave.label"} = WebGUI::International::get(573); $var{"deny.url"} = WebGUI::URL::page('func=denySubmission&wid='.$session{form}{wid}.'&sid='.$session{form}{sid}.'&mlog='.$session{form}{mlog}); $var{"deny.label"} = WebGUI::International::get(574); - $var{"canDiscuss"} = ($_[0]->get("allowDiscussion")); + $var{"canReply"} = ($_[0]->get("allowDiscussion")); $var{"reply.url"} = WebGUI::URL::page('func=post&mid=new&wid='.$_[0]->get("wobjectId").'&sid='.$session{form}{sid}); $var{"reply.label"} = WebGUI::International::get(47,$namespace); $var{"search.url"} = WebGUI::Search::toggleURL(); diff --git a/www/extras/styles/webgui5/spacer.gif b/www/extras/styles/webgui5/spacer.gif new file mode 100644 index 000000000..a258f7dab Binary files /dev/null and b/www/extras/styles/webgui5/spacer.gif differ