Disable and hide comments

11 messages Options Options
Embed this Post
Permalink
Marie Sauvage [EBM WebSourcing]

Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi all !

I'm trying to disable comments from all users (guests and logged users) and then to hide the useless comments zone at bottom of pages.
I've seen there is some options in the wiki.cfg file but I'm not the server admin. Is there a way to do that without having to modify the config file and reboot xwiki ? I don't find anything in the administration space.
I've thought to change the layout and remove this zone but I don't find it's a "clean" way to do, and maybe later we'll want to reactivate comments...

thanks for your help,
Marie.

_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
Sergiu Dumitriu

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
Marie Sauvage [EBM WebSourcing] wrote:

> Hi all !
>
> I'm trying to disable comments from all users (guests and logged
> users) and then to hide the useless comments zone at bottom of pages.
> I've seen there is some options in the wiki.cfg file but I'm not the
> server admin. Is there a way to do that without having to modify the
> config file and reboot xwiki ? I don't find anything in the
> administration space.
> I've thought to change the layout and remove this zone but I don't
> find it's a "clean" way to do, and maybe later we'll want to
> reactivate comments...
>
> thanks for your help,
> Marie.

Hi Marie,

You need to change the XWiki.XWikiPreferences class like this:

1. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
2. Add a new property called showcomments of type String Class
3. Go to
<server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences
and write no in the showcomments field

That's it, the comments are gone. If you want to re-enable comments,
replace the "no" value with "yes"
If you want to disable attaachments, too, do the same with a property
named showattachments.

Sergiu
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
Marie Sauvage [EBM WebSourcing]

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
it worked perfectly, I disabled the attachments too, as they are only for included images.
thank you very much !
Marie.

Sergiu Dumitriu a écrit :
Marie Sauvage [EBM WebSourcing] wrote:
  
Hi all !

I'm trying to disable comments from all users (guests and logged 
users) and then to hide the useless comments zone at bottom of pages.
I've seen there is some options in the wiki.cfg file but I'm not the 
server admin. Is there a way to do that without having to modify the 
config file and reboot xwiki ? I don't find anything in the 
administration space.
I've thought to change the layout and remove this zone but I don't 
find it's a "clean" way to do, and maybe later we'll want to 
reactivate comments...

thanks for your help,
Marie.
    

Hi Marie,

You need to change the XWiki.XWikiPreferences class like this:

1. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
2. Add a new property called showcomments of type String Class
3. Go to 
<server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences 
and write no in the showcomments field

That's it, the comments are gone. If you want to re-enable comments, 
replace the "no" value with "yes"
If you want to disable attaachments, too, do the same with a property 
named showattachments.

Sergiu
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Scanned with Copfilter Version 0.83beta3a (P3Scan 2.2.1)
AntiSpam:  SpamAssassin 3.1.4
by Markus Madlener @ http://www.copfilter.org

  

_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
V. Harikrishnan Nair

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Sergiu Dumitriu
Just for your information ->

After following Sergiu's steps, you can show comments on selected pages using #set ($showcomments=1) in the wiki editor of that page...

Harikrishnan



Sergiu Dumitriu wrote:
Marie Sauvage [EBM WebSourcing] wrote:
> Hi all !
>
> I'm trying to disable comments from all users (guests and logged
> users) and then to hide the useless comments zone at bottom of pages.
> I've seen there is some options in the wiki.cfg file but I'm not the
> server admin. Is there a way to do that without having to modify the
> config file and reboot xwiki ? I don't find anything in the
> administration space.
> I've thought to change the layout and remove this zone but I don't
> find it's a "clean" way to do, and maybe later we'll want to
> reactivate comments...
>
> thanks for your help,
> Marie.

Hi Marie,

You need to change the XWiki.XWikiPreferences class like this:

1. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
2. Add a new property called showcomments of type String Class
3. Go to
<server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences
and write no in the showcomments field

That's it, the comments are gone. If you want to re-enable comments,
replace the "no" value with "yes"
If you want to disable attaachments, too, do the same with a property
named showattachments.

Sergiu
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
vmassol

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
Would be great if you guys could summarize all this on xwiki.org.

I'd put it in the existing configuration guide (in the Admin space).

WDYT?

Any volunteer?

Thanks
-Vincent

On Nov 6, 2007, at 11:37 AM, V. Harikrishnan Nair wrote:

>
> Just for your information ->
>
> After following Sergiu's steps, you can show comments on selected  
> pages
> using #set ($showcomments=1) in the wiki editor of that page...
>
> Harikrishnan
>
>
>
>
> Sergiu Dumitriu wrote:
>>
>> Marie Sauvage [EBM WebSourcing] wrote:
>>> Hi all !
>>>
>>> I'm trying to disable comments from all users (guests and logged
>>> users) and then to hide the useless comments zone at bottom of  
>>> pages.
>>> I've seen there is some options in the wiki.cfg file but I'm not the
>>> server admin. Is there a way to do that without having to modify the
>>> config file and reboot xwiki ? I don't find anything in the
>>> administration space.
>>> I've thought to change the layout and remove this zone but I don't
>>> find it's a "clean" way to do, and maybe later we'll want to
>>> reactivate comments...
>>>
>>> thanks for your help,
>>> Marie.
>>
>> Hi Marie,
>>
>> You need to change the XWiki.XWikiPreferences class like this:
>>
>> 1. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
>> 2. Add a new property called showcomments of type String Class
>> 3. Go to
>> <server>/xwiki/bin/edit/XWiki/XWikiPreferences?
>> editor=object&classname=XWiki.XWikiPreferences
>> and write no in the showcomments field
>>
>> That's it, the comments are gone. If you want to re-enable comments,
>> replace the "no" value with "yes"
>> If you want to disable attaachments, too, do the same with a property
>> named showattachments.
>>
>> Sergiu
>> _______________________________________________
>> users mailing list
>> users@...
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Disable-and-hide-comments-tf4750825.html#a13604113
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
> _______________________________________________
> users mailing list
> users@...
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
V. Harikrishnan Nair

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
I'm already working on the groovy and velocity tutorial (connecting to a database). Let's see how it works out...


vmassol wrote:
Would be great if you guys could summarize all this on xwiki.org.

I'd put it in the existing configuration guide (in the Admin space).

WDYT?

Any volunteer?

Thanks
-Vincent

On Nov 6, 2007, at 11:37 AM, V. Harikrishnan Nair wrote:

>
> Just for your information ->
>
> After following Sergiu's steps, you can show comments on selected  
> pages
> using #set ($showcomments=1) in the wiki editor of that page...
>
> Harikrishnan
>
>
>
>
> Sergiu Dumitriu wrote:
>>
>> Marie Sauvage [EBM WebSourcing] wrote:
>>> Hi all !
>>>
>>> I'm trying to disable comments from all users (guests and logged
>>> users) and then to hide the useless comments zone at bottom of  
>>> pages.
>>> I've seen there is some options in the wiki.cfg file but I'm not the
>>> server admin. Is there a way to do that without having to modify the
>>> config file and reboot xwiki ? I don't find anything in the
>>> administration space.
>>> I've thought to change the layout and remove this zone but I don't
>>> find it's a "clean" way to do, and maybe later we'll want to
>>> reactivate comments...
>>>
>>> thanks for your help,
>>> Marie.
>>
>> Hi Marie,
>>
>> You need to change the XWiki.XWikiPreferences class like this:
>>
>> 1. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
>> 2. Add a new property called showcomments of type String Class
>> 3. Go to
>> <server>/xwiki/bin/edit/XWiki/XWikiPreferences?
>> editor=object&classname=XWiki.XWikiPreferences
>> and write no in the showcomments field
>>
>> That's it, the comments are gone. If you want to re-enable comments,
>> replace the "no" value with "yes"
>> If you want to disable attaachments, too, do the same with a property
>> named showattachments.
>>
>> Sergiu
>> _______________________________________________
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Disable-and-hide-comments-tf4750825.html#a13604113
> Sent from the XWiki- Users mailing list archive at Nabble.com.
>
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Marie Sauvage [EBM WebSourcing]

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Marie Sauvage [EBM WebSourcing]
Some javascript/style in this post has been disabled (why?)
Hi again !

unfortunately, there is still a detail : the top menu "Show" still gives access to a comment page with this url : <my wiki>/bin/view/Main/?viewer=comments&
Can it be hidden with parameter or only by modifying menu ?
thanks,
Marie.

Marie Sauvage [EBM WebSourcing] a écrit :
it worked perfectly, I disabled the attachments too, as they are only for included images.
thank you very much !
Marie.

Sergiu Dumitriu a écrit :
Marie Sauvage [EBM WebSourcing] wrote:
  
Hi all !

I'm trying to disable comments from all users (guests and logged 
users) and then to hide the useless comments zone at bottom of pages.
I've seen there is some options in the wiki.cfg file but I'm not the 
server admin. Is there a way to do that without having to modify the 
config file and reboot xwiki ? I don't find anything in the 
administration space.
I've thought to change the layout and remove this zone but I don't 
find it's a "clean" way to do, and maybe later we'll want to 
reactivate comments...

thanks for your help,
Marie.
    

Hi Marie,

You need to change the XWiki.XWikiPreferences class like this:

1. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
2. Add a new property called showcomments of type String Class
3. Go to 
<server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences 
and write no in the showcomments field

That's it, the comments are gone. If you want to re-enable comments, 
replace the "no" value with "yes"
If you want to disable attaachments, too, do the same with a property 
named showattachments.

Sergiu
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Scanned with Copfilter Version 0.83beta3a (P3Scan 2.2.1)
AntiSpam:  SpamAssassin 3.1.4
by Markus Madlener @ http://www.copfilter.org

  


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Scanned with Copfilter Version 0.83beta3a (P3Scan 2.2.1)
AntiSpam: SpamAssassin 3.1.4
by Markus Madlener @ http://www.copfilter.org


_______________________________________________ users mailing list users@... http://lists.xwiki.org/mailman/listinfo/users =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.83beta3a (P3Scan 2.2.1) AntiSpam: SpamAssassin 3.1.4 by Markus Madlener @ http://www.copfilter.org

_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
V. Harikrishnan Nair

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Sergiu Dumitriu
The same steps can be applied for hiding the left panels and displaying them at will on specific pages but there is problem with the display.

Try turning off the 'display the left column' in <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences and then placing #set($showLeftPanels=1).

Or even the other way round by turning it on and placing #set($showLeftPanels=1).

A little fine tuning might help a lot... Any suggestions ?

Harikrishnan


Sergiu Dumitriu wrote:
Marie Sauvage [EBM WebSourcing] wrote:
> Hi all !
>
> I'm trying to disable comments from all users (guests and logged
> users) and then to hide the useless comments zone at bottom of pages.
> I've seen there is some options in the wiki.cfg file but I'm not the
> server admin. Is there a way to do that without having to modify the
> config file and reboot xwiki ? I don't find anything in the
> administration space.
> I've thought to change the layout and remove this zone but I don't
> find it's a "clean" way to do, and maybe later we'll want to
> reactivate comments...
>
> thanks for your help,
> Marie.

Hi Marie,

You need to change the XWiki.XWikiPreferences class like this:

1. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
2. Add a new property called showcomments of type String Class
3. Go to
<server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences
and write no in the showcomments field

That's it, the comments are gone. If you want to re-enable comments,
replace the "no" value with "yes"
If you want to disable attaachments, too, do the same with a property
named showattachments.

Sergiu
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Vitantonio Messa

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Marie Sauvage [EBM WebSourcing]
Marie Sauvage [EBM WebSourcing] wrote:
> Hi again !
>
> unfortunately, there is still a detail : the top menu "Show" still gives
> access to a comment page with this url : <my
> wiki>/bin/view/Main/*?viewer=comments&*
> Can it be hidden with parameter or only by modifying menu ?
> thanks,

Hi Marie,

I think the only way to do it is to modify the menu.


--
Vitantonio Messa
+358 46 889 48 49 - vitantonio.messa@...
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
V. Harikrishnan Nair

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by V. Harikrishnan Nair
After turning off the panel for one page, there appears a blank column in the panel's place. It wouldn't have appeared if the panel was turned off for the entire wiki. I tried changing the css file but it wouldn't even budge. Will it be a good idea to create a css file exclusively for a page or is there an easier way out ?

Harikrishnan

V. Harikrishnan Nair wrote:
The same steps can be applied for hiding the left panels and displaying them at will on specific pages but there is problem with the display.

Try turning off the 'display the left column' in <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences and then placing #set($showLeftPanels=1).

Or even the other way round by turning it on and placing #set($showLeftPanels=1).

A little fine tuning might help a lot... Any suggestions ?

Harikrishnan


Sergiu Dumitriu wrote:
Marie Sauvage [EBM WebSourcing] wrote:
> Hi all !
>
> I'm trying to disable comments from all users (guests and logged
> users) and then to hide the useless comments zone at bottom of pages.
> I've seen there is some options in the wiki.cfg file but I'm not the
> server admin. Is there a way to do that without having to modify the
> config file and reboot xwiki ? I don't find anything in the
> administration space.
> I've thought to change the layout and remove this zone but I don't
> find it's a "clean" way to do, and maybe later we'll want to
> reactivate comments...
>
> thanks for your help,
> Marie.

Hi Marie,

You need to change the XWiki.XWikiPreferences class like this:

1. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
2. Add a new property called showcomments of type String Class
3. Go to
<server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences
and write no in the showcomments field

That's it, the comments are gone. If you want to re-enable comments,
replace the "no" value with "yes"
If you want to disable attaachments, too, do the same with a property
named showattachments.

Sergiu
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Marie Sauvage [EBM WebSourcing]

Re: Disable and hide comments

Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Vitantonio Messa
Some javascript/style in this post has been disabled (why?)
ok, thank you, I did it by commenting the right part in the menuview.vm. So it won't be difficult to go back.

Regards,
Marie.

Vitantonio Messa a écrit :
Marie Sauvage [EBM WebSourcing] wrote:
  
Hi again !

unfortunately, there is still a detail : the top menu "Show" still gives 
access to a comment page with this url : <my 
wiki>/bin/view/Main/*?viewer=comments&*
Can it be hidden with parameter or only by modifying menu ?
thanks,
    

Hi Marie,

I think the only way to do it is to modify the menu.


  

_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users