
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Ok Shalini,
by reading the code, it looks like blojsom was not designed to support authenticated comments, even writing a plugin to do that would give me troubles. I mean that would be necessary an intervention on Bloojsom classes (like BlojsomServlet you mention), this kind of strategy could cause me troubles with future blojsom updates. But do not have authneticated comments is understandable, since for public (Internet) blog tools the default is to have anonymous comments, however it become a requisite for some corporative usage.
I am trying to do this change with the minimun blojsom code change.
thanks,
Igor Regis
----- Mensagem original ----
De: Shalini <
shaliny.i@...>
Para:
blojsom-developers@...Enviadas: Quarta-feira, 17 de Setembro de 2008 18:39:05
Assunto: Re: [Blojsom-developers] Res: Res: authenticated comments
Ya i've faced this issue...
There is more than one place you need to check in the BlojsomServlet.java so that it redirects you back to the same page where u wanna comment though... i'm sorry i've forgotten.. :) But look like a hawk at the BlojsomServlet file...
On Wed, Sep 17, 2008 at 2:59 PM, Igor Regis
<igor_ti@...> wrote:
Yes,
I am using a LDAP to authenticate
I made this change on asual-entry.vm:
#if ($BLOJSOM_USER_AUTHENTICATED)
.... perform comment FORM assembly
#else
<div class="label">Please <a href="#BlogAdminURL()/?action=page&flavor=admin">login</a> first.</div>
#end
BUT :-)
This send me to the login page and after that I am redirected to admin console.
Enviadas: Quarta-feira, 17 de Setembro de 2008 14:34:33
Assunto: Re: [Blojsom-developers] Res: authenticated comments
Hi Igor,
Yes that is the correct variable. You will need to edit the .vm files like ocean-entry.vm and asual-entry.vm where all the blog posts and comment boxes appear (there is a loop that iterates over the array of entries i think).
The authenticated user will not be able the post. I think the default setting (david please correct me if im wrong) is that only the owner of the blog can post entries.
What are you authenticating against? I was using LDAP. If you're using Database there might be a problem - Say person A has written a blog and person B wants to comment. Person B needs to be present in the DBUser table of the database even though he is JUST a reader and not a blog owner!! In LDAP you obviously don't face this issue because the person reading will definitely figure somewhere in the tree just by being a part of the organization or entity that uses the LDAP server...
Cheers,
Shalini
On Wed, Sep 17, 2008 at 1:23 PM, Igor Regis
<igor_ti@...> wrote:
Hi Shalini
thank for your quick answer!
I found this variable BLOJSOM_USER_AUTHENTICATED, I will try to use it.
By edit the templates you mean edit the .vm files for each theme?
On more question: the users that need to authenticate to comment should not be able to make a blog post, and are not supposed to be a blogger, they will be just authenticated visitors, by editing these vm files thing will work like that?
Thanks again!
Igor Regis
----- Mensagem original ----
De: Shalini <
shaliny.i@...>
Para:
blojsom-developers@...
Enviadas:
Terça-feira, 16 de Setembro de 2008 14:53:45
Assunto: Re: [Blojsom-developers] authenticated comments
Hi Igor,
I had done something similar but unfortunately I don't have the code now. Its very simple.
Just edit the templates so that the comment form is only shown if the person is logged in and not otherwise. You can figure out if a person is logged in by a context variable.. you'll get it from the variable name..i have forgotten.. sorry haven't worked on blojsom in ages!! But look up BlojsomServlet.java and you will see it there just after the authentication is done...
You can actually even put a login form in the templates that directs to BlojsomServlet and then redirect it back to the same page... that way your reader can login and comment....
Cheers,
Shalini
On Tue, Sep 16, 2008 at 8:02 AM, Igor Regis
<igor_ti@...> wrote:
Hi,
I need to force users to get authenticated before make a comment to any post of my blogs, I searched for blojsom plugins that could force authentications for each comment operation, but I haven't found anything.
I read the CommentAPIServlet source code and figured out that it fire comment events, but only after the database operation.
Are there any clue of how can I get it working? How strategy can I use to build my plugin to do that?
Any helps will be welcome!
Regards,
Igor Regis
Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Blojsom-developers mailing list
Blojsom-developers@...
https://lists.sourceforge.net/lists/listinfo/blojsom-developers
--
http://crazy-quill.blogspot.com/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Blojsom-developers mailing list
Blojsom-developers@...
https://lists.sourceforge.net/lists/listinfo/blojsom-developers
--
http://crazy-quill.blogspot.com/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Blojsom-developers mailing list
Blojsom-developers@...
https://lists.sourceforge.net/lists/listinfo/blojsom-developers
--
http://crazy-quill.blogspot.com/
Novos endereços, o Yahoo! que você conhece.
Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Blojsom-developers mailing list
Blojsom-developers@...
https://lists.sourceforge.net/lists/listinfo/blojsom-developers