DrHariri
Forum Replies Created
-
Thanks @cyberlord92,
Where can you quote me and would this work with future updates? I am in a rush to implement this.Thanks!
Forum: Plugins
In reply to: [GamiPress - WP Courseware integration] Possible issue with Triggers?My pleasure, thanks for looking into it.
Kind Regards
Forum: Plugins
In reply to: [GamiPress - WP Courseware integration] Possible issue with Triggers?Sure, please take a look at this screenshot:
https://www.dropbox.com/s/m3vv2h51vxphlf9/Screenshot%202019-01-15%2002.03.25.png?dl=0This is basically the dropdown for selecting the trigger/activity step.
Forum: Plugins
In reply to: [BadgeOS] Badge is given on post update, not just publish!Sorry, I just noticed your response Paul.
Can you please explain what I should be looking for?Thanks!
Hi & thanks for your response!
I wasn’t sure if this is a BuddyPress issue or BuddyBoss but now that I do, I will contact your support.
Thanks!
Anyone else having this issue?
I am using the Boss theme but I guess I need to change it to see if the problem still persists.
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] Suggestion: Creating dynamic listsThanks for your response. This is not really a support request so I thought I wouldn’t bother you by submitting it as a support ticket, it’s more of a feature request.
I am glad that you are working on something like this!
Thanks!
Forum: Plugins
In reply to: [HookPress] Hookpress and ZapierInterested in this as well as I am using WP Engine too.
Hi,
I am also interested to know how we could pass certain WordPress fields to make them appear under the fields dropdown menu. I assume there should be a hook somewhere that we can utilize but couldn’t fine any info on this.
Forum: Plugins
In reply to: [Link Library] Missing Submitted Link?No worries and welcome back :).
I didn’t check the database but I tried to check for the link under the links page and couldn’t find it there.
Regarding the duplicate entries, I selected an existing category.
Forum: Plugins
In reply to: [Link Library] Send another e-mail or use a hook after new linkHello, I thought I’d share my final code for others to use if desired. Basically this code awards a BadgeOS badge on approval and send an e-mail to buffer with the links details.
Because I want to encourage users to submit links, I use this code to publish tweets that include their twitter user name. a ‘twitter’ usermeta is used so it needs to be added there. If it’s not there, the url & its title will be published without the name of the submitter.
I hope this helps!
function educadme_links_to_buffer( $linkdata, $linkextradata ) { $buffer_email = "[email protected]"; // General Link Info $get_link_title = $linkdata['link_name']; $get_link = $linkdata['link_url']; // Dynamic Conditions of Submitter // User Login of the submitter $submitter = $linkextradata['link_submitter']; // Get User Object $user = get_user_by( 'login', $submitter ); // Get User ID $user_id = $user->ID; // Award a badge to the user for Link Approval if (function_exists('badgeos_maybe_award_achievement_to_user')) { badgeos_maybe_award_achievement_to_user( '63057', $user_id ); } // Gets User Meta Twitter for Submitter $submitter_user_twitter = get_user_meta($user_id, 'twitter', true); if (isset($submitter_user_twitter)){ $social_title =New Link: $get_link_title by @$submitter_user_twitter"; } else { $social_title =New Link: $get_link_title"; } // Output Buffer Commands $buffer_commands = " @p YourBufferChannel \r\n @link $get_link "; wp_mail( $buffer_email, $social_title, $buffer_commands ); } add_action( 'link_library_approval_email', 'educadme_links_to_buffer', 10, 2 );
Forum: Plugins
In reply to: [Link Library] Send another e-mail or use a hook after new linkAwesome! Thanks Yannick!
Forum: Plugins
In reply to: [Link Library] Send another e-mail or use a hook after new linkTake your time ?? I am just glad I could contribute somehow to the development of the plugin even if just by throwing ideas!
Good luck with your work!
Forum: Plugins
In reply to: [Link Library] Send another e-mail or use a hook after new linkBy the way Yannick,
I noticed something but I wasn’t sure if it is intended. If I require login to submit a link through Link Library, it fetches the username of the submitter but not their e-mail address. Therefore, they can’t be notified and the above action won’t work.
Is that behaviour intended?
Thanks again! donating now!
Forum: Plugins
In reply to: [Link Library] Send another e-mail or use a hook after new linkThanks a lot Yannick.
For other beginners interested, I ended up using this code to publish links to Buffer:
function educadme_links_to_buffer( $linkdata ) { $buffer_email = "[email protected]"; $get_link_title = $linkdata['link_name']; $get_link = $linkdata['link_url'];; $buffer_commands = " @p ArabicResearch \r\n @link $get_link "; wp_mail( $buffer_email, $get_link_title, $buffer_commands ); } add_action( 'link_library_approval_email', 'educadme_links_to_buffer', 10, 2 );
I plan to also extend it to give the user a badge/exp points on link acceptance.