Ajax login system shortcode

Posted in: Newspaper
Post count: 19

Hi!

I’ve been searching for hours if there is a way to always keep the logged in users the in front-end with the Newspaper theme.

For example, I’d like that the different users have a profile page in the front-end where they can edit their informations.

Another thing I’d like to do is making the “you must be logged in to comment” link call the ajax login system. Is there a shortcode to do this?

For example, with bbPress, if I am not wrong, you can do something like this :

if (!is_user_logged_in()){
    echo do_shortcode( '[bbp-login]'  );
}

Is this possible to do something like this with the Newspaper theme (maybe with a widget)? I really like the ajax login system and I don’t want users go to the WordPress’s admin panel.

Thank you very much!

Post count: 3343

You can make something like that https://forum.tagdiv.com/topic/how-to-insert-registerlogin-link-on-bbpress/#post-9000 if is ok for you.

Thanks!

Post count: 19

Thank you for your answer!
I managed this by modifying the file comments.php like this :

  • This reply was modified 12 years by lancelot.
Post count: 19
$defaults['comment_notes_before'] = '';
    $defaults['comment_notes_after'] = '';
    $defaults['title_reply'] = __td('Leave a Reply');
    $defaults['label_submit'] = __td('Post Comment');
    $defaults['cancel_reply_link'] = __td('Cancel reply');
    $defaults['must_log_in'] = '<p class="must-log-in">' .  sprintf( __( 'You must be <a class="popup-with-form menu-item" href="%s">logged in</a> to post a comment.', 'Newspaper' ), '#login-form' ) . '</p>';
Post count: 3343

Hi,
Great, I’m glad that you have managed the issue!

Have a nice day!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.