JM
Forum Replies Created
-
Forum: Plugins
In reply to: [BadgeOS Community Add-on] Comment on Specific Post and Submission IssueSo it seems that BadgeOS has completely hijacked my site Comments. When I click to manage my comments in WordPress, the top of the page says: “Comments on “[my achievement type]””. Comments on any post are appearing here, so apparently now all of my comments are somehow linked to BadgeOS. What the heck? Please help me fix this!
Wow! That sounds awesome! I am completely new to AJAX though, so I really have no idea how to do this.
There is no custom post type for the phrases – it’s just a hosted video. I thought about doing the Popup Maker CPT for everything (I still have a ton of words to do as well), but I can’t get the Tags to work (see other thread) and the regular Popup Maker shortcode wouldn’t work well with the ajax page switching either, right?
I don’t mind manual work up front – I just want it to work well and be the best that it can be so I don’t have to do it again later. ??
Do you do custom work, by any chance? ??
Yeah the documentation is tough since I don’t have any AJAX knowledge. I don’t even know where that code goes…
The vocab words are just a list of links. I currently have an iFrame setup where the links in one iFrame open the video on a page in another iFrame.
The videos are self hosted mp4 files.
The words will be associated with the videos in the link text and popup titles.
You can see an example here I’m testing with another plugin: https://www.startasl.com/members/modal-testing/
Oh ok. Is that the same issue with Tags?
Hi Daniel,
Thank you so much for your replies!
I really like the idea of the AJAX Setup (if that’s what you mean by “allow you to set up one popup for potentially hundreds of triggers. Then each trigger can be set to change the content through various methods.”), but there isn’t a whole lot of documentation, so I’m pretty sure I would have no idea how to implement it.
What I am doing is…I am going to have a list of vocabulary words on certain pages in my LMS and I would like each to open in a popup to show a video of the vocabulary word. I have a couple hundred and I plan to have more in the future.
Do you think the AJAX functionality would be good for this use?
Thanks again for your help!
Forum: Plugins
In reply to: [PayPal for WooCommerce] Support for SubscriptionForum: Plugins
In reply to: [PayPal for WooCommerce] Support for SubscriptionI do want to note that I’m looking for compatibility with WooCommerce Subscriptions (https://www.woothemes.com/products/woocommerce-subscriptions/). I hope this is what you’re planning! ??
Forum: Plugins
In reply to: [PayPal for WooCommerce] Support for SubscriptionAwesome! Thanks, angelleye! ??
Forum: Plugins
In reply to: [PayPal for WooCommerce] Support for SubscriptionI am also interested in compatibility with subscriptions! Pretty pretty please! I just sent a donation. That update can’t come soon enough! Thank you for such a great plugin. ??
Forum: Plugins
In reply to: [Arconix FAQ] Shortcode not workingMarking as Resolved.
Forum: Plugins
In reply to: [Arconix FAQ] Shortcode not workingI got it working! I’m not sure how. It seems that my previous FAQ’s were not actually saved, but my new ones are now. Maybe deactivating and reactivating the plugin did it? I’m not sure, but thank you for inspiring another look.
Forum: Plugins
In reply to: [Arconix FAQ] Shortcode not workingThank you for your fast response! Wow!
I have two FAQ’s and I’ve tried [faq] and [faq style=”accordion”]. :-/
Aw, I should have caught that! Sorry.
The code is perfect – it looks GREAT!
The final code:
add_action( 'bp_profile_header_meta', 'display_user_achievements' ); function display_user_achievements() { # Grab their achievement meta data $user_achievements = get_user_meta( bp_displayed_user_id(), '_badgeos_achievements', true ); # Return early if no achievements to work with. if ( '' == $user_achievements ) { return ''; } # Setting here so that we don't needlessly keep assigning in the foreach loop. $desired_achievements = array( 'community-award', 'asl-class-award' ); foreach( $user_achievements as $user_achievement ) { foreach( $user_achievement as $achievement ) { # Check if the post type is one of the two we want. Only output markup if it is. if ( in_array( $achievement->post_type, $desired_achievements ) ) { echo '<a href="' . get_permalink( $achievement->ID ) . '">'; # let's link your users to the achievement echo get_the_post_thumbnail( $achievement->ID, array( 70, 70 ) ); # display the thumbnail. We need to use the get_the_post_thumbnail function so that we can provide the appropriate ID. echo '</a>'; } } } }
And for anyone else, just change community-award and asl-class-award to your achievement types you want to show.
Thank you SO MUCH, Michael! You should totally add this to your article here: https://trexthepirate.com/badgeos/2014/12/show-off-users-achievements-part-one/
Thanks again! ??
-Michelle
Thanks, Michael!
I tried the code and got a blank white screen, though.
function display_user_achievements() { # Grab their achievement meta data $user_achievements = get_user_meta( bp_displayed_user_id(), '_badgeos_achievements', true ); # Return early if no achievements to work with. if ( '' == $user_achievements ) { return ''; } # Setting here so that we don't needlessly keep assigning in the foreach loop. $desired_achievements = array( 'community-award', 'asl-class-award' ); foreach( $user_achievements as $user_achievement ) { foreach( $user_achievement as $achievement ) { # Check if the post type is one of the two we want. Only output markup if it is. if ( in_array( $achievement->post_type, $desired_achievements ) { echo '<a href="' . get_permalink( $achievement->ID ) . '">'; # let's link your users to the achievement echo get_the_post_thumbnail( $achievement->ID, array( 60, 60 ) ); # display the thumbnail. We need to use the get_the_post_thumbnail function so that we can provide the appropriate ID. echo '</a>'; } } } } add_action( 'bp_profile_header_meta', 'display_user_achievements' );
It seems to be an issue with this part:
if ( in_array( $achievement->post_type, $desired_achievements )
Hi Michael! I think I did this right…
Array ( [1] => Array ( [0] => stdClass Object ( [ID] => 1484 [post_type] => step [points] => [date_earned] => 1434741270 ) [1] => stdClass Object ( [ID] => 1687 [post_type] => step [points] => [date_earned] => 1434741270 ) [2] => stdClass Object ( [ID] => 1682 [post_type] => community-badge [points] => 2 [date_earned] => 1434741270 ) [3] => stdClass Object ( [ID] => 1727 [post_type] => step [points] => [date_earned] => 1434745147 ) [4] => stdClass Object ( [ID] => 1725 [post_type] => community-badge [points] => 2 [date_earned] => 1434745147 ) [5] => stdClass Object ( [ID] => 1753 [post_type] => step [points] => [date_earned] => 1434924899 ) [6] => stdClass Object ( [ID] => 1752 [post_type] => community-badge [points] => 5 [date_earned] => 1434924899 ) [7] => stdClass Object ( [ID] => 1820 [post_type] => step [points] => [date_earned] => 1434924899 ) [8] => stdClass Object ( [ID] => 1799 [post_type] => step [points] => [date_earned] => 1434924900 ) [9] => stdClass Object ( [ID] => 1563 [post_type] => step [points] => [date_earned] => 1434926675 ) [10] => stdClass Object ( [ID] => 1562 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1434926675 ) [11] => stdClass Object ( [ID] => 1588 [post_type] => step [points] => [date_earned] => 1434926675 ) [12] => stdClass Object ( [ID] => 1566 [post_type] => step [points] => [date_earned] => 1434926675 ) [13] => stdClass Object ( [ID] => 1565 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1434926675 ) [14] => stdClass Object ( [ID] => 1590 [post_type] => step [points] => [date_earned] => 1434926676 ) [15] => stdClass Object ( [ID] => 1569 [post_type] => step [points] => [date_earned] => 1434926676 ) [16] => stdClass Object ( [ID] => 1568 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1434926676 ) [17] => stdClass Object ( [ID] => 1592 [post_type] => step [points] => [date_earned] => 1434926676 ) [18] => stdClass Object ( [ID] => 1581 [post_type] => step [points] => [date_earned] => 1434926677 ) [19] => stdClass Object ( [ID] => 1580 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1434926677 ) [20] => stdClass Object ( [ID] => 1594 [post_type] => step [points] => [date_earned] => 1434926677 ) [21] => stdClass Object ( [ID] => 1599 [post_type] => step [points] => [date_earned] => 1434926871 ) [22] => stdClass Object ( [ID] => 1598 [post_type] => asl-class-badge [points] => 33 [date_earned] => 1434926871 ) [23] => stdClass Object ( [ID] => 1612 [post_type] => step [points] => [date_earned] => 1434926872 ) [24] => stdClass Object ( [ID] => 1602 [post_type] => step [points] => [date_earned] => 1434926872 ) [25] => stdClass Object ( [ID] => 1601 [post_type] => asl-class-badge [points] => 33 [date_earned] => 1434926872 ) [26] => stdClass Object ( [ID] => 1610 [post_type] => step [points] => [date_earned] => 1434926872 ) [27] => stdClass Object ( [ID] => 1605 [post_type] => step [points] => [date_earned] => 1434926873 ) [28] => stdClass Object ( [ID] => 1604 [post_type] => asl-class-badge [points] => 33 [date_earned] => 1434926873 ) [29] => stdClass Object ( [ID] => 1608 [post_type] => step [points] => [date_earned] => 1434926873 ) [30] => stdClass Object ( [ID] => 1617 [post_type] => step [points] => [date_earned] => 1434926873 ) [31] => stdClass Object ( [ID] => 1616 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1434926873 ) [32] => stdClass Object ( [ID] => 1632 [post_type] => step [points] => [date_earned] => 1434926873 ) [33] => stdClass Object ( [ID] => 1629 [post_type] => step [points] => [date_earned] => 1434926874 ) [34] => stdClass Object ( [ID] => 1619 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1434926874 ) [35] => stdClass Object ( [ID] => 1634 [post_type] => step [points] => [date_earned] => 1434926874 ) [36] => stdClass Object ( [ID] => 1627 [post_type] => step [points] => [date_earned] => 1434926874 ) [37] => stdClass Object ( [ID] => 1620 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1434926874 ) [38] => stdClass Object ( [ID] => 1636 [post_type] => step [points] => [date_earned] => 1434926874 ) [39] => stdClass Object ( [ID] => 1623 [post_type] => step [points] => [date_earned] => 1434926875 ) [40] => stdClass Object ( [ID] => 1622 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1434926875 ) [41] => stdClass Object ( [ID] => 1640 [post_type] => step [points] => [date_earned] => 1434926875 ) [42] => stdClass Object ( [ID] => 1625 [post_type] => step [points] => [date_earned] => 1434926875 ) [43] => stdClass Object ( [ID] => 1621 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1434926875 ) [44] => stdClass Object ( [ID] => 1638 [post_type] => step [points] => [date_earned] => 1434926875 ) [45] => stdClass Object ( [ID] => 1732 [post_type] => step [points] => [date_earned] => 1434930277 ) [46] => stdClass Object ( [ID] => 1731 [post_type] => community-badge [points] => 5 [date_earned] => 1434930277 ) [47] => stdClass Object ( [ID] => 1803 [post_type] => step [points] => [date_earned] => 1434930277 ) [48] => stdClass Object ( [ID] => 1554 [post_type] => step [points] => [date_earned] => 1435165202 ) [49] => stdClass Object ( [ID] => 1553 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435165203 ) [50] => stdClass Object ( [ID] => 1557 [post_type] => step [points] => [date_earned] => 1435165205 ) [51] => stdClass Object ( [ID] => 1556 [post_type] => asl-class-badge [points] => 10 [date_earned] => 1435165205 ) [52] => stdClass Object ( [ID] => 1560 [post_type] => step [points] => [date_earned] => 1435165374 ) [53] => stdClass Object ( [ID] => 1559 [post_type] => asl-class-badge [points] => 10 [date_earned] => 1435165374 ) [54] => stdClass Object ( [ID] => 2063 [post_type] => step [points] => [date_earned] => 1435176644 ) [55] => stdClass Object ( [ID] => 2064 [post_type] => step [points] => [date_earned] => 1435176644 ) [56] => stdClass Object ( [ID] => 2065 [post_type] => step [points] => [date_earned] => 1435176645 ) [57] => stdClass Object ( [ID] => 2066 [post_type] => step [points] => [date_earned] => 1435176646 ) [58] => stdClass Object ( [ID] => 2062 [post_type] => asl-class-badge [points] => 100 [date_earned] => 1435176646 ) [59] => stdClass Object ( [ID] => 2068 [post_type] => step [points] => [date_earned] => 1435176646 ) [60] => stdClass Object ( [ID] => 1729 [post_type] => step [points] => [date_earned] => 1435683845 ) [61] => stdClass Object ( [ID] => 1726 [post_type] => community-badge [points] => 5 [date_earned] => 1435683845 ) [62] => stdClass Object ( [ID] => 1801 [post_type] => step [points] => [date_earned] => 1435683845 ) [63] => stdClass Object ( [ID] => 1794 [post_type] => community-award [points] => 15 [date_earned] => 1435683845 ) [64] => stdClass Object ( [ID] => 1810 [post_type] => step [points] => [date_earned] => 1435683845 ) [65] => stdClass Object ( [ID] => 1816 [post_type] => step [points] => [date_earned] => 1435683845 ) [66] => stdClass Object ( [ID] => 1828 [post_type] => step [points] => [date_earned] => 1435683845 ) [67] => stdClass Object ( [ID] => 1836 [post_type] => step [points] => [date_earned] => 1435683846 ) )
Array ( [1] => Array ( [0] => stdClass Object ( [ID] => 1727 [post_type] => step [points] => [date_earned] => 1435084297 ) [1] => stdClass Object ( [ID] => 1725 [post_type] => community-badge [points] => 2 [date_earned] => 1435084297 ) [2] => stdClass Object ( [ID] => 1799 [post_type] => step [points] => [date_earned] => 1435084298 ) [3] => stdClass Object ( [ID] => 1554 [post_type] => step [points] => [date_earned] => 1435085958 ) [4] => stdClass Object ( [ID] => 1553 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435085958 ) [5] => stdClass Object ( [ID] => 1557 [post_type] => step [points] => [date_earned] => 1435085959 ) [6] => stdClass Object ( [ID] => 1556 [post_type] => asl-class-badge [points] => 10 [date_earned] => 1435085959 ) [7] => stdClass Object ( [ID] => 1560 [post_type] => step [points] => [date_earned] => 1435094061 ) [8] => stdClass Object ( [ID] => 1559 [post_type] => asl-class-badge [points] => 10 [date_earned] => 1435094061 ) [9] => stdClass Object ( [ID] => 1856 [post_type] => step [points] => [date_earned] => 1435095417 ) [10] => stdClass Object ( [ID] => 1854 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435095417 ) [11] => stdClass Object ( [ID] => 1858 [post_type] => step [points] => [date_earned] => 1435096177 ) [12] => stdClass Object ( [ID] => 1855 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435096177 ) [13] => stdClass Object ( [ID] => 1858 [post_type] => step [points] => [date_earned] => 1435096268 ) [14] => stdClass Object ( [ID] => 1855 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435096268 ) [15] => stdClass Object ( [ID] => 1858 [post_type] => step [points] => [date_earned] => 1435096330 ) [16] => stdClass Object ( [ID] => 1855 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435096331 ) [17] => stdClass Object ( [ID] => 1858 [post_type] => step [points] => [date_earned] => 1435096467 ) [18] => stdClass Object ( [ID] => 1855 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435096467 ) [19] => stdClass Object ( [ID] => 1856 [post_type] => step [points] => [date_earned] => 1435096541 ) [20] => stdClass Object ( [ID] => 1854 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435096541 ) [21] => stdClass Object ( [ID] => 1858 [post_type] => step [points] => [date_earned] => 1435096827 ) [22] => stdClass Object ( [ID] => 1855 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435096827 ) [23] => stdClass Object ( [ID] => 1856 [post_type] => step [points] => [date_earned] => 1435097002 ) [24] => stdClass Object ( [ID] => 1854 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435097002 ) [25] => stdClass Object ( [ID] => 1856 [post_type] => step [points] => [date_earned] => 1435097430 ) [26] => stdClass Object ( [ID] => 1854 [post_type] => asl-class-badge [points] => 20 [date_earned] => 1435097430 ) [27] => stdClass Object ( [ID] => 1729 [post_type] => step [points] => [date_earned] => 1435158409 ) [28] => stdClass Object ( [ID] => 1726 [post_type] => community-badge [points] => 5 [date_earned] => 1435158409 ) [29] => stdClass Object ( [ID] => 1801 [post_type] => step [points] => [date_earned] => 1435158409 ) [30] => stdClass Object ( [ID] => 1596 [post_type] => step [points] => [date_earned] => 1435161041 ) [31] => stdClass Object ( [ID] => 1614 [post_type] => step [points] => [date_earned] => 1435170843 ) [32] => stdClass Object ( [ID] => 1642 [post_type] => step [points] => [date_earned] => 1435173904 ) [33] => stdClass Object ( [ID] => 2063 [post_type] => step [points] => [date_earned] => 1435175937 ) [34] => stdClass Object ( [ID] => 2064 [post_type] => step [points] => [date_earned] => 1435175938 ) [35] => stdClass Object ( [ID] => 2065 [post_type] => step [points] => [date_earned] => 1435175938 ) [36] => stdClass Object ( [ID] => 2066 [post_type] => step [points] => [date_earned] => 1435175938 ) [37] => stdClass Object ( [ID] => 2068 [post_type] => step [points] => [date_earned] => 1435175938 ) [38] => stdClass Object ( [ID] => 1588 [post_type] => step [points] => [date_earned] => 1435175938 ) [39] => stdClass Object ( [ID] => 1590 [post_type] => step [points] => [date_earned] => 1435175938 ) [40] => stdClass Object ( [ID] => 1592 [post_type] => step [points] => [date_earned] => 1435175938 ) [41] => stdClass Object ( [ID] => 1594 [post_type] => step [points] => [date_earned] => 1435175939 ) [42] => stdClass Object ( [ID] => 1651 [post_type] => step [points] => [date_earned] => 1435175939 ) [43] => stdClass Object ( [ID] => 1658 [post_type] => step [points] => [date_earned] => 1435175940 ) [44] => stdClass Object ( [ID] => 1662 [post_type] => step [points] => [date_earned] => 1435175940 ) [45] => stdClass Object ( [ID] => 1599 [post_type] => step [points] => [date_earned] => 1435176180 ) [46] => stdClass Object ( [ID] => 1598 [post_type] => asl-class-badge [points] => 33 [date_earned] => 1435176181 ) [47] => stdClass Object ( [ID] => 1612 [post_type] => step [points] => [date_earned] => 1435176181 ) [48] => stdClass Object ( [ID] => 1602 [post_type] => step [points] => [date_earned] => 1435176181 ) [49] => stdClass Object ( [ID] => 1601 [post_type] => asl-class-badge [points] => 33 [date_earned] => 1435176181 ) [50] => stdClass Object ( [ID] => 1610 [post_type] => step [points] => [date_earned] => 1435176182 ) [51] => stdClass Object ( [ID] => 1605 [post_type] => step [points] => [date_earned] => 1435176182 ) [52] => stdClass Object ( [ID] => 1604 [post_type] => asl-class-badge [points] => 33 [date_earned] => 1435176182 ) [53] => stdClass Object ( [ID] => 1608 [post_type] => step [points] => [date_earned] => 1435176182 ) [54] => stdClass Object ( [ID] => 1607 [post_type] => asl-class-award [points] => 50 [date_earned] => 1435176182 ) [55] => stdClass Object ( [ID] => 1660 [post_type] => step [points] => [date_earned] => 1435176182 ) [56] => stdClass Object ( [ID] => 1656 [post_type] => asl-class-award [points] => 100 [date_earned] => 1435176182 [sent_to_credly] => 1 ) [57] => stdClass Object ( [ID] => 1664 [post_type] => step [points] => [date_earned] => 1435176184 ) [58] => stdClass Object ( [ID] => 1617 [post_type] => step [points] => [date_earned] => 1435176185 ) [59] => stdClass Object ( [ID] => 1616 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1435176185 ) [60] => stdClass Object ( [ID] => 1632 [post_type] => step [points] => [date_earned] => 1435176185 ) [61] => stdClass Object ( [ID] => 1629 [post_type] => step [points] => [date_earned] => 1435176185 ) [62] => stdClass Object ( [ID] => 1619 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1435176185 ) [63] => stdClass Object ( [ID] => 1634 [post_type] => step [points] => [date_earned] => 1435176185 ) [64] => stdClass Object ( [ID] => 1627 [post_type] => step [points] => [date_earned] => 1435176186 ) [65] => stdClass Object ( [ID] => 1620 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1435176186 ) [66] => stdClass Object ( [ID] => 1636 [post_type] => step [points] => [date_earned] => 1435176186 ) [67] => stdClass Object ( [ID] => 1623 [post_type] => step [points] => [date_earned] => 1435176186 ) [68] => stdClass Object ( [ID] => 1622 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1435176187 ) [69] => stdClass Object ( [ID] => 1640 [post_type] => step [points] => [date_earned] => 1435176187 ) [70] => stdClass Object ( [ID] => 1625 [post_type] => step [points] => [date_earned] => 1435176187 ) [71] => stdClass Object ( [ID] => 1621 [post_type] => asl-class-badge [points] => 25 [date_earned] => 1435176187 ) [72] => stdClass Object ( [ID] => 1638 [post_type] => step [points] => [date_earned] => 1435176187 ) [73] => stdClass Object ( [ID] => 1631 [post_type] => asl-class-award [points] => 50 [date_earned] => 1435176187 ) [74] => stdClass Object ( [ID] => 1666 [post_type] => step [points] => [date_earned] => 1435176187 ) [75] => stdClass Object ( [ID] => 1657 [post_type] => asl-class-award [points] => 150 [date_earned] => 1435176187 [sent_to_credly] => 1 ) )
Those are for two different users. So, I’d like to only show community-award and asl-class-award achievement types only (they are the “mega” achievements).