Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: How do I enable login form for users while commenting?
Pages: [1]   Go Down
  Print  
Author Topic: How do I enable login form for users while commenting?  (Read 1405 times)
0 Members and 1 Guest are viewing this topic.
kjaggu
Newbie
*

Karma: 0
Offline Offline

Posts: 2


Email
« on: March 06, 2010, 11:30:23 »

Hi,

I tried searching for a solution, but could not find it as of now.

I want to display a login form or the default username and email field while an unregistered/not logged in visitor to my site wants to comment. How do I enable that?

A sample screenshot (from reddit) is attached.

Please do let me know how I can sort this.

Thanks.


* Commentlogin.png (46.24 KB, 756x394 - viewed 270 times.)
Logged
BBC
Full Member
***

Karma: 4
Offline Offline

Posts: 212



« Reply #1 on: March 07, 2010, 17:13:11 »

Spent whole last evening searching answer for this, at Joomla forum and Google. Not so much only because of this, but for my needs with future websites, and other extensions.

And...it is not easy man. I could template and show login module whereever i want besides (inside) Jcomments form, but i cannot get rid of javascript "void null" error in all browsers.
Login function is not working, to put it simple.

I tried everything they suggest at Joomla forum.
Styling and templating is not problem. But person who knows what to put in Jcomments PHP files is definitely developer of Jcomments.

Without his help it would be very, very difficult.
« Last Edit: March 07, 2010, 17:29:54 by bbc » Logged
BBC
Full Member
***

Karma: 4
Offline Offline

Posts: 212



« Reply #2 on: March 07, 2010, 17:25:28 »

Good temporary fix would be to put login module in front (or behind) Jcomments form as every ordinary module. If you don´t have one good module position for this just make one in template index.php.

You could put login module at the end of article with "loadmodule". (second alternative) I tested it and it is working OK.
It is refreshing and redirecting to the same page with logged in user and ready to post comments.

How to put module in two columns together with Jcomments i don´t know.
« Last Edit: March 07, 2010, 17:27:03 by bbc » Logged
BBC
Full Member
***

Karma: 4
Offline Offline

Posts: 212



« Reply #3 on: March 07, 2010, 17:51:49 »

There is another small problem with this. When you activate that visitors needs to be logged to post comments (in Jcomments admin) Jcomments shows absolutely nothing at website.
So you would need to put some sentences in login module template so that people would know that they need to login to post comments.

In other words you cannot use that login module at other parts of website anymore. (it would be ugly with notice for comments in position "left" or "top" for instance.

There is workaround for this anyway. Make copy of login module and rename it, make nonexisting position, etc.....
Logged
BBC
Full Member
***

Karma: 4
Offline Offline

Posts: 212



« Reply #4 on: March 07, 2010, 18:02:45 »

OK, i just tested. Last one goes to fix simple with message in Jcomments-->Settings--->Messages.
Logged
kjaggu
Newbie
*

Karma: 0
Offline Offline

Posts: 2


Email
« Reply #5 on: March 08, 2010, 08:46:38 »

Hey,

Thanks a lot for the taking time out to help and the suggestions. I will try to effect these changes today, and let you know the results soon. Also, I am researching on a couple of variations. Let me see whether it will remotely work or not.

Jaggu



Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: How do I enable login form for users while commenting?
 
Jump to: