-
Author
-
April 12, 2017 at 16:41 #158314deryaParticipant
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
April 13, 2017 at 02:37 #158376LauraModeratorHello, 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 solutionLaura 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 🙂
April 14, 2017 at 17:34 #158543deryaParticipantHi,
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.
DeryaApril 16, 2017 at 22:05 #158622deryaParticipant4 days and no response… So You call this a support?
April 18, 2017 at 16:42 #158794deryaParticipant6 days and no response.. is there anybody out there for support?
April 19, 2017 at 20:15 #158965RaduModeratorHi,
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 solutionApril 20, 2017 at 03:42 #159028deryaParticipantHi 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
DeryaApril 21, 2017 at 18:32 #159271RaduModeratorHi,
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 -
AuthorPosts
The forum ‘Plugins questions’ is closed to new topics and replies.