22-Dec-2013, 09:19 AM
I have installed commentics on some custom pages in my forum. I am very happy with commentics - Thanks - but I am not happy that it doesn't have a login for the name of the commenter.
I would like it to join with the login of my entire site but only if someone actually wants to comment (reading is free)
I have the code that will not let you enter the page without logging in but that is not what I want.
I want the comment section to display the name of the logged in user or send them to login
Here is the code that forced login for the page (which I don't want) - I want guests to be able to see all including comments but to need to register/login to comment
I think this is all that is needed.
Here is the page that has this set up on it http://childchat.org/strollers.php (If you choose that page you are sent to login)
anything else will allow you to view without login
I would like it to join with the login of my entire site but only if someone actually wants to comment (reading is free)
I have the code that will not let you enter the page without logging in but that is not what I want.
I want the comment section to display the name of the logged in user or send them to login
Here is the code that forced login for the page (which I don't want) - I want guests to be able to see all including comments but to need to register/login to comment
Quote:// ----- Start mod - Force Login ------ //
if ($config['allow_force_login'])
{
if ($config['allow_force_login_bots'])
{
if ($config['allow_force_login_custom'] && $user->data['user_id'] == ANONYMOUS || $user->data['is_bot'])
{
login_box();
}
}
else if ($config['allow_force_login_custom'] && $user->data['user_id'] == ANONYMOUS)
{
login_box();
}
}
// ----- End mod - Force Login -------- //
I think this is all that is needed.
Here is the page that has this set up on it http://childchat.org/strollers.php (If you choose that page you are sent to login)
anything else will allow you to view without login