From Anjankumar.Panda@csscorp.com Tue Mar 22 05:46:05 2011 From: Anjankumar.Panda@csscorp.com To: xwiki-users@xwiki.org Subject: [xwiki-users] Comment Moderation , Right approach Date: Tue, 22 Mar 2011 10:15:43 +0530 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7055939033994857818==" --===============7055939033994857818== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello XwikiUsers, Greetings for the day. Need to know the best approach form your experience in Xwiki to implement comment moderation .I could not find any topic in forum related to this . The appoach i've taken is this Initiating a new boolean property isApproved in XwikiComments Class Modifying inlinecomments.vm to have an approve link in similar way to delete I'm getting stuck in the second point being not sure what would be the URL to update that property . Thanks in advance Regards, Anjankumar Panda E-mail Disclaimer: http://www.csscorp.com/common/email-disclaimer.php --===============7055939033994857818==-- From anjankumar.panda@csscorp.com Tue Mar 22 07:21:42 2011 From: akp To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] Comment Moderation , Right approach Date: Mon, 21 Mar 2011 23:21:28 -0700 Message-ID: <1300774888864-6195131.post@n2.nabble.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1509940138206833748==" --===============1509940138206833748== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Update 1: For the time being on click of approve link i am redirecting to the object editor where a moderator can change isApproved Property to true and save. Though it is a workaround ,this is not user friendly . Probably a panel showing all un-moderated comment and with a trigger to approve or reject may be the correct way. -- View this message in context: http://xwiki.475771.n2.nabble.com/Comment-Moder= ation-Right-approach-tp6195006p6195131.html Sent from the XWiki- Users mailing list archive at Nabble.com. --===============1509940138206833748==-- From mariusdumitru.florea@xwiki.com Tue Mar 22 08:42:15 2011 From: Marius Dumitru Florea To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] Comment Moderation , Right approach Date: Tue, 22 Mar 2011 09:42:11 +0200 Message-ID: <4D8852D3.40209@xwiki.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4640614016251225914==" --===============4640614016251225914== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On 03/22/2011 06:45 AM, Anjankumar.Panda(a)csscorp.com wrote: > Hello XwikiUsers, > > Greetings for the day. > > Need to know the best approach form your experience in Xwiki to > implement comment moderation .I could not find any topic in forum related > to this . > > The appoach i've taken is this > > Initiating a new boolean property isApproved in XwikiComments Class > > Modifying inlinecomments.vm to have an approve link in similar way to > delete > > I'm getting stuck in the second point being not sure what would be the URL > to update that property . You can use: #set($commentIndex =3D 0) Approve If JavaScript is enabled you can prevent the link from triggering and=20 send and AJAX request instead to the same URL, displaying a loading=20 animation while the request is processed. Hope this helps, Marius > > > Thanks in advance > > Regards, > Anjankumar Panda > > > > E-mail Disclaimer: http://www.csscorp.com/common/email-disclaimer.php > > _______________________________________________ > users mailing list > users(a)xwiki.org > http://lists.xwiki.org/mailman/listinfo/users --===============4640614016251225914==-- From anjankumar.panda@csscorp.com Sun Apr 3 15:44:29 2011 From: akp To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] Comment Moderation , Right approach Date: Sun, 03 Apr 2011 06:44:08 -0700 Message-ID: <1301838247460-6234877.post@n2.nabble.com> In-Reply-To: <4D8852D3.40209@xwiki.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7859697162488551288==" --===============7859697162488551288== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Marius Thanks . That worked nicely . -- View this message in context: http://xwiki.475771.n2.nabble.com/Comment-Moder= ation-Right-approach-tp6195006p6234877.html Sent from the XWiki- Users mailing list archive at Nabble.com. --===============7859697162488551288==-- From anjankumar.panda@csscorp.com Thu Apr 21 13:27:00 2011 From: akp To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] Comment Moderation , Right approach Date: Thu, 21 Apr 2011 04:26:55 -0700 Message-ID: <1303385215910-6293805.post@n2.nabble.com> In-Reply-To: <1301838247460-6234877.post@n2.nabble.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1542606535971568174==" --===============1542606535971568174== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Marius,=20 please let me know how do i implement this ajax based , like delete , showing a modal yes, no box and progresses messages in the bottom. -- View this message in context: http://xwiki.475771.n2.nabble.com/Comment-Moder= ation-Right-approach-tp6195006p6293805.html Sent from the XWiki- Users mailing list archive at Nabble.com. --===============1542606535971568174==-- From mariusdumitru.florea@xwiki.com Thu Apr 21 14:48:23 2011 From: Marius Dumitru Florea To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] Comment Moderation , Right approach Date: Thu, 21 Apr 2011 15:48:14 +0300 Message-ID: <4DB0278E.4080408@xwiki.com> In-Reply-To: <1303385215910-6293805.post@n2.nabble.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5449036779502485957==" --===============5449036779502485957== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On 04/21/2011 02:26 PM, akp wrote: > Hi Marius, > > please let me know how do i implement this ajax based , like delete , > showing a modal yes, no box and progresses messages in the bottom. You can check for instance how comments are removed from a page. You can=20 see the detailed code in=20 https://github.com/xwiki/xwiki-platform/raw/master/xwiki-platform-core/xwiki-= platform-web/src/main/webapp/resources/uicomponents/viewers/comments.js=20 . Basically, you use XWiki.widgets.ConfirmedAjaxRequest widget. Hope this helps, Marius > > -- > View this message in context: http://xwiki.475771.n2.nabble.com/Comment-Mod= eration-Right-approach-tp6195006p6293805.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users(a)xwiki.org > http://lists.xwiki.org/mailman/listinfo/users --===============5449036779502485957==-- From anjankumar.panda@csscorp.com Fri Apr 22 14:00:02 2011 From: akp To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] Comment Moderation , Right approach Date: Fri, 22 Apr 2011 04:59:46 -0700 Message-ID: <1303473586206-6296895.post@n2.nabble.com> In-Reply-To: <4DB0278E.4080408@xwiki.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4585146155333334475==" --===============4585146155333334475== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Marius Dumitru Florea wrote: >=20 > Basically, you use XWiki.widgets.ConfirmedAjaxRequest widget. >=20 > Hope this helps, >=20 Yes this did help Marius .Thanks . One more Question in this context .=20 Will u kindly help me in knowing where are the texts like core.viewers.comments.commentDeleted are defined and accessed as $msg.get('core.viewers.comments.commentDeleted') ? Now for approval part i have hard coded them in comments.js file which i assume is not the best approach and may have issue in localization and=20 maintenance . -- View this message in context: http://xwiki.475771.n2.nabble.com/Comment-Moder= ation-Right-approach-tp6195006p6296895.html Sent from the XWiki- Users mailing list archive at Nabble.com. --===============4585146155333334475==-- From mariusdumitru.florea@xwiki.com Fri Apr 22 15:47:14 2011 From: Marius Dumitru Florea To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] Comment Moderation , Right approach Date: Fri, 22 Apr 2011 16:47:12 +0300 Message-ID: <4DB186E0.2060802@xwiki.com> In-Reply-To: <1303473586206-6296895.post@n2.nabble.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6884737986299196095==" --===============6884737986299196095== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On 04/22/2011 02:59 PM, akp wrote: > > Marius Dumitru Florea wrote: >> >> Basically, you use XWiki.widgets.ConfirmedAjaxRequest widget. >> >> Hope this helps, >> > > Yes this did help Marius .Thanks . > > One more Question in this context . > > Will u kindly help me in knowing where are the texts like > core.viewers.comments.commentDeleted are defined and accessed as > $msg.get('core.viewers.comments.commentDeleted') ? This should help=20 http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplicati= ons Marius > > Now for approval part i have hard coded them in comments.js file which i > assume is not the best approach and may have issue in localization and > maintenance . > > -- > View this message in context: http://xwiki.475771.n2.nabble.com/Comment-Mod= eration-Right-approach-tp6195006p6296895.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users(a)xwiki.org > http://lists.xwiki.org/mailman/listinfo/users --===============6884737986299196095==--