This topic has 7 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #158314
     derya
    Participant

    Hi,

    Love this theme. But creating new post/article for registered users can only be done in members profile section and in articles sub-section. This is extremely difficult to find even for advanced users, and this is not user friendly at all. Front end posting is dependent on a plugin called “Social Articles” and the plugin author does not respond many similar questions that have already been asked months ago. Bought this theme couple of days ago but got stuck with this fallback.

    What I (and many others as I see) need is to create a shortcut/link/button called “New Article” (or whatever) and we should put it in any desired location so that any registered user can easily post.

    Can you help with this please?

    A community means “contribution” and in order to contribute for users, theme has to have an easy to use front-end posting functions and Kleo’s front-end posting is the only down-side of such a great theme.

    I hope to get a solid support for this.

    Regards

    #158376
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #158543
     derya
    Participant

    Hi,
    Sad to see that it is 48 hours and I did not recieve any support on this…
    Almost a week since I bought the theme, and it is my first question for support.
    With my little knowlegde, I think it might be possible to use buttons included with the theme, but there is no clear documentation for them either.

    Awaiting for your response & support, as you already promised.
    Derya

    #158622
     derya
    Participant

    4 days and no response… So You call this a support?

    #158794
     derya
    Participant

    6 days and no response.. is there anybody out there for support?

    #158965
     Radu
    Moderator

    Hi,

    Sorry for the late reply, that’s because the easter holiday

    Use this function, it will generate a link with add new article text

    COPY CODE
    //Shortcode for generating new article url social article
    
    add_shortcode( 'add_new_article_link', 'add_new_article_link_handler' );
    function add_new_article_link_handler(){
        $link = home_url('/members/' .bp_core_get_username( get_current_user_id() ) . '/articles/new/' );
        return "<a href='".$link ."'> ".__('New Article', 'social-articles')."</a>";
    }

    OR

    [kleo_button title="Profile" href="##profile_link##profile/edit/" style="custom" type="app" title_alt="Update Your Profile" icon="pencil-1" uppercase="yes" letter_spacing="" custom_text="#ffffff" custom_border="#3b9b9b" custom_background="#bbbbbb"]‘

    This will generate the logged in profile link URL /edit

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #159028
     derya
    Participant

    Hi Radu,
    Thanks for the code. But I think it will appear in both cases that the user is logged in or not, right? In that case (not logged) then this button/function would return 404 as there will be no user_id I suppose?
    Can we make it visible only to logged members?
    Thanks
    Derya

    #159271
     Radu
    Moderator

    Hi,

    Yes this it’s available only for logged in members otherwise the users cannot write articles..

    Here it’s the code , now the shortcode will be displayed only for logged in users

    COPY CODE
    
    //Shortcode for generating new article url social article
    
    add_shortcode( 'add_new_article_link', 'add_new_article_link_handler' );
    function add_new_article_link_handler(){
        if(is_user_logged_in()) {
            $link = home_url('/members/' . bp_core_get_username(get_current_user_id()) . '/articles/new/');
            return "<a href='" . $link . "'> " . __('New Article', 'social-articles') . "</a>";
        }
    }
    

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?