[xwiki-users] Deleting users and groups
Hi After attaching XWiki to ldap, I'd like to completely wipe out my old users and groups. There are not many of them, so I can do that manually. The question is: Is it enough to go to each user page and delete the page, then go to each group page (except allusers and admins, I have those mapped to ldap groups), and delete the page? Thanks ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Displaying Panel items
Vitantonio Messa wrote: Hi, it is possible. Instead of checking if the current user has administrator rights, you can check if he is in the group you want. There was a discussion about that some days ago on the mailing list. Look for it, if I remember right there was also the code you need. Vito V. Harikrishnan Nair wrote: Hi. It is seen that Panel items can be hidden from users other than the Admins using this statement - #if ($xwiki.hasAdminRights()), right ? Is it possible to be able to display certain Panel items to certain user groups ? If so, how ? Harikrishnan Just to ease the task. To show/hide a panel for the current user: #set ($user = $xwiki.getUser()) #if($user.isUserInGroup(XWiki.YourGroup)) ... #end HTH, -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Deleting users and groups
[EMAIL PROTECTED] wrote: Hi After attaching XWiki to ldap, I'd like to completely wipe out my old users and groups. There are not many of them, so I can do that manually. The question is: Is it enough to go to each user page and delete the page, then go to each group page (except allusers and admins, I have those mapped to ldap groups), and delete the page? Thanks Hi, Yes, that would be enough. However, you might still have some old usernames in the access rights, and document authors/creator names, but they won't affect the wiki in any way. Sergiu ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Programming rights
Vitantonio Messa wrote: Hi all, I have give to myself programming right on my xwiki (from the global rights section), but still, when I write $doc.hasProgrammingRights() or $context.hasProgrammingRights() I got false as response instead of true. Does anyone know where is my mistake? Thanks! Hi, Vitantonio I'd not tried this until you have posted this message, but I've been seeing some Groovy (at least) related issues while working with 1.2-milestone-1.5235 (some scripts didn't work at all, some syntaxes didn't work). I'm now using 1.2-SNAPSHOT.5607 and it looks like this was already solved. So, I've no answer to your question, but it is like this problem was solved in the path to the coming 1.2 release. Let's see what others say! Cheers, Ricardo -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Porblem Installing w/Oracle
Sorry for the slow response. We downloaded 1.1.1 of the war file (latest stable version). We followed all the directions regarding the configuration files that was up on the site. One point that might be in question is if our user actually has all the permissions necessary for the database. Currently the account can create/drop tables, insert/delete, etc. Also, the oracle HBM file is referenced in the hibernate config file. Any other thoughts? Craig On 11/2/07, Vincent Massol [EMAIL PROTECTED] wrote: Hi Craig, Have you followed the instructions on http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationOracle and especially the part about the oracle HBM file? Also what version of xwiki are you installing? Thanks -Vincent On Nov 2, 2007, at 12:59 AM, Fye Kan wrote: Hello, We're investingating a few wiki options and were trying to use Xwiki with Tomcat 6 and Oracle 10g using the war installation process. We've modified all of the config files per the instructions on the site but are getting the following errors when trying to access the default page: 17:25:31,106 [http-129.147.132.30-80-1] ERROR store.XWikiHibernateBaseStore - Failed updating schema: 2 17:25:31,213 [http-129.147.132.30-80-1] ERROR store.XWikiHibernateBaseStore - While executing query: update xwikidoc set xwd_translation=0 where xwd_translati on is null 17:25:31,213 [http-129.147.132.30-80-1] ERROR store.XWikiHibernateBaseStore - Failed updating schema: ORA-00942: table or view does not exist followed by a lot more errors. This is a brand new install so no tables exist yet. The user account we have for the DB has access to create/modify/remove tables so we're at a bit of a loss as to what the problem is. Does anyone out there have any suggestions as to what the problem could be? Do we need to create the tables a head of time? Is there a script to do so? Any help would be appreciated, thanks! Craig ___ 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
Re: [xwiki-users] Cannot translate page in xwiki-1.1.1
Mathieu Dupuis wrote: What I changed is the language hidden field in the edit page. http://localhost:8080/xwiki/bin/edit/Main/WebHome?editor=wysiwyglanguage=fr input type=hidden name=template value= / input type=hidden name=xcontinue value=/xwiki/bin/edit/Main/WebHome?editor=wysiwyg/ input type=hidden name=xredirect value= / input type=hidden name=language value=en / I change the value=en to wathever new translation I want. (fr for my test) Mathieu Thanks, Mathieu, 1.2-SNAPSHOT.5607 seems to work fine, have you tried it? (please, see my previous post in this thread). Let's see what Vicent and others think about how the default language is used. Cheers, Ricardo -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Cannot translate page in xwiki-1.1.1
Vincent Massol wrote: I think what's missing is what I'm working on: a new xwiki.org that clearly separates the Platform from the products (XE, XEM, Watch, etc) and that explains what each does. This new xwiki.org should be up within 1 month. This XWiki stuff is doing me to enjoy computing for the first time in years! It will be great to see a new xwiki.org thing in a month time! Coming back ASAP with news on the translation issue. Cool Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users As for the translation issue. Please, consider this behaviour: Once created a new document in a multilingual installation, the translation seems to work fine. What I've not clear is what language must be used as default. If you are reading an English document and create a new one, it will be created in English. But if you are reading its Spanish release and create a new one, it will be created in Spanish whatever the Default Language is set to. I don't know if this is the expected behaviour, but perhaps I would prefer the create new document button always creates documents in the default language. This way we can warn users: this is XWiki site using English as default language, please, use the Translations menu if you intend to create a page in a different language Does it make sense for you? Is it worth to move this to a JIRA Issue? Thanks! By the way, I've only play a bit with the new release, but I've gone to the XWiki/XWikiPreferences page and find this content: To edit preferences, please use the edit preferences item from the More Actions menu. Please, where is the More Actions menu? The previous 1.2M1 reads: To edit preferences, please use the Administration page Thanks again! Cheers, -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] CAPTCHA for comments and registration
Hi, can someone help me with setting up CAPTCHA with the albatross skin for registration and comments? Is there some example code I could look at? Or if someone has this working could they give some guidence? I have the captcha plugin enabled but I'm kinda stuck on what to do next. Thanks in advance. -Marlon ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Displaying Panel items
Thanks for the help, Ricardo. Here's the code - --- #panelheader('Quick Links') * [HomeAmrita IIS.WebHome] * [PMT DiscussionsAmrita IIS.PMT_Discussions] * [Class EditorXWiki.XWikiClasses] * [PMTPMT.PMTemplateTestClass] * [PMT Test formAmrita IIS.Form_PMT_Test] #if ($xwiki.hasAdminRights()) For Admins: * [Admin CenterXWiki.WebHome] * [What's NewMain.Dashboard] $xwiki.getURL( $xwiki.getSkinFile('icons/black-rss-mini3.png') #end #set($user = $xwiki.getUser()) #if($user.isUserInGroup(XWiki.Editors)) Editor Group * [Editor's pageAmrita IIS.Editor] #end p style=font-size:0.75em;padding-left:8px; $xwiki.getDocument( (Edit this panel) /p #end #panelfooter() --- Ricardo Rodríguez wrote: V. Harikrishnan Nair wrote: hi Vito, hi Ricardo, I implemented the code as : #set($user = $xwiki.getUser()) #if($user.isUserInGroup('XWiki.Editors')) Editor Group * [Editor's pageAmrita IIS.Editor] #end But I got a really weird error - Error number 4001 in 4: Error while parsing velocity page Panels.QuickLinks Wrapped Exception: Encountered #endrn at line 26, column 1 of Panels.QuickLinks Was expecting one of: EOF ( … RPAREN … ESCAPE_DIRECTIVE … SET_DIRECTIVE … ## … \#34; … … TEXT … # … # … STRING_LITERAL … IF_DIRECTIVE … STOP_DIRECTIVE … INTEGER_LITERAL … FLOATING_POINT_LITERAL … WORD … BRACKETED_WORD … IDENTIFIER … DOT … { … } ... I checked everything but it simply would not work... - Harikrishnan Hi Harikrishnan, I've tried your code here and it works without a glitch. The error you get is at line 26, so it is not possible for us to know if one of the five code lines included in your message is the offending one. Please, could you post here your whole Panels.QuickLinks to see if it is possible for us to reproduce the error? Best, -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://www.nabble.com/Displaying-Panel-items-tf4749669.html#a13600550 Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Error when creating Classes
Hi, Has anyone experienced this problem or does anyone know what could be wrong when creating classes? I need to create 2 classes 1 for a virtual instance and 1 for a second blog in my xwiki. I'm getting this error which I am posting at the bottom. Thank you in advance, Tim winmail.dat___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Error when creating Classes
I forgot to paste the error. Error number 4001 in 4: Error while parsing velocity page XWiki.BlogArticle Wrapped Exception: Invocation of method 'substring' in class java.lang.String threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 @ XWiki.BlogArticle4,26? https://wmail.wssu.edu/xwiki/bin/edit/XWiki/4%2C26?parent=XWiki.BlogArticleeditor=wysiwyg com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page XWiki.BlogArticle Wrapped Exception: Invocation of method 'substring' in class java.lang.String threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 @ XWiki.BlogArticle4,26? https://wmail.wssu.edu/xwiki/bin/edit/XWiki/4%2C26?parent=XWiki.BlogArticleeditor=wysiwyg at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:148) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:91) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:222) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:154) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:125) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:117) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:401) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:347) at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:552) at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:240) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:143) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1275) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1244) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at
Re: [xwiki-users] CAPTCHA for comments and registration
On Mon, Nov 05, 2007 at 03:52:16PM -0800, marlon hendred wrote: Hi, can someone help me with setting up CAPTCHA with the albatross skin for registration and comments? Is there some example code I could look at? Or if someone has this working could they give some guidence? I have the captcha plugin enabled but I'm kinda stuck on what to do next. Thanks in advance. Look in the dodo skin files. Particularly: captcha.vm comments.vm edit.vm wysiwyg.vm Paul -- End dual-measurement, let's finish going metric! http://gometric.us/ http://www.metric.org/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panels off
Hi... I usually never like to 'reopen cases' but this is also what I am looking for... I've tried to hide the panel for the starting page by using #set($showLeftPanels = 0) and then again bringing it back to #set($showLeftPanels = 1) wherever I wanted it (I agree, it was a stupid idea). I was wondering, can I make a new xwiki variable, $showPageLeftPanels, and use it in the .vm files ? Harikrishnan vmassol wrote: Hi Gunter, On May 21, 2007, at 7:14 PM, Gunter Leeb wrote: Hi, Is there a simple way to turn the panels off for a particular page? I know this is possible, by creating the page in a new space and configuring the new space not to show the panels. Is there another way? No, this feature doesn't exist AFAIK. We could have imagine that passing showColumns=0 in the url would have done the trick but it's not there. So there are several hacks possible: 1) modify startpage.vm so that it look in the url if you pass some parameter to hide columns 2) use css/javascript in the page that you wish to hide so that it hides the panel(s) -Vincent -- You receive this message as a subscriber of the [EMAIL PROTECTED] mailing list. To unsubscribe: mailto:[EMAIL PROTECTED] For general help: mailto:[EMAIL PROTECTED] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- View this message in context: http://www.nabble.com/Panels-off-tf3794648.html#a13601453 Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Displaying Panel items
That's perfect ! Thanks, Vito, I should've noticed that... Vitantonio Messa wrote: V. Harikrishnan Nair wrote: Thanks for the help, Ricardo. Here's the code - --- #panelheader('Quick Links') * [HomeAmrita IIS.WebHome] * [PMT DiscussionsAmrita IIS.PMT_Discussions] * [Class EditorXWiki.XWikiClasses] * [PMTPMT.PMTemplateTestClass] * [PMT Test formAmrita IIS.Form_PMT_Test] #if ($xwiki.hasAdminRights()) For Admins: * [Admin CenterXWiki.WebHome] * [What's NewMain.Dashboard] $xwiki.getURL( $xwiki.getSkinFile('icons/black-rss-mini3.png') #end #set($user = $xwiki.getUser()) #if($user.isUserInGroup(XWiki.Editors)) Editor Group * [Editor's pageAmrita IIS.Editor] #end p style=font-size:0.75em;padding-left:8px; $xwiki.getDocument( (Edit this panel) /p #end #panelfooter() --- Ricardo Rodríguez wrote: V. Harikrishnan Nair wrote: hi Vito, hi Ricardo, I implemented the code as : #set($user = $xwiki.getUser()) #if($user.isUserInGroup('XWiki.Editors')) Editor Group * [Editor's pageAmrita IIS.Editor] #end But I got a really weird error - Error number 4001 in 4: Error while parsing velocity page Panels.QuickLinks Wrapped Exception: Encountered #endrn at line 26, column 1 of Panels.QuickLinks Was expecting one of: EOF ( … RPAREN … ESCAPE_DIRECTIVE … SET_DIRECTIVE … ## … \#34; … … TEXT … # … # … STRING_LITERAL … IF_DIRECTIVE … STOP_DIRECTIVE … INTEGER_LITERAL … FLOATING_POINT_LITERAL … WORD … BRACKETED_WORD … IDENTIFIER … DOT … { … } ... I checked everything but it simply would not work... - Harikrishnan Hi Harikrishnan, I've tried your code here and it works without a glitch. The error you get is at line 26, so it is not possible for us to know if one of the five code lines included in your message is the offending one. Please, could you post here your whole Panels.QuickLinks to see if it is possible for us to reproduce the error? Best, -- Ricardo Rodríguez Your XEN ICT Team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Hi Harikrishnan, the problem is in the last #end: there no #if related to it. Try to delete it and the panel should work fine. Vito -- Vitantonio Messa +358 46 889 48 49 - [EMAIL PROTECTED] COSS - The Finnish Centre for Open Source Solutions @ Technology Centre Hermia Ltd. Hermiankatu 1, FIN-33720 Tampere, FINLAND ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://www.nabble.com/Displaying-Panel-items-tf4749669.html#a13601636 Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Printing section?
Hi all, I would like to have the possibility to print only one section of a page. I've seen that it is possible to edit one section (passing the parameter section=sectionNumber in the URL). I tried to do the same with the printing (editing the top menu bar), but it seems to me that the print is not recognizing the section parameter. Is it possible to print just a section or not? Thanks! -- Vitantonio Messa +358 46 889 48 49 - [EMAIL PROTECTED] COSS - The Finnish Centre for Open Source Solutions @ Technology Centre Hermia Ltd. Hermiankatu 1, FIN-33720 Tampere, FINLAND ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users