-
David Yerrington replied to the forum topic Getting group avatar, outside of loop. in the group How-To and Troubleshooting 13 years, 4 months ago
Solution: Getting the URL with bp_core_fetch_avatar() and using the option ‘html’ => false to get group images by URL rather then a whole image tag.
IE:
`
$avatar_options = array ( ‘item_id’ => ‘1’, ‘object’ […] -
David Yerrington replied to the forum topic Getting group avatar, outside of loop. in the group How-To and Troubleshooting 13 years, 4 months ago
Alright, drilling down a bit further, in bp-groups/bp-grouptemplatetags.php, around line 279, there’s our bp_get_group_avatar() method.
`
function bp_get_group_avatar( $args = ” ) {
global $bp, $groups_template;[…]
-
David Yerrington started the forum topic Getting group avatar, outside of loop. in the group How-To and Troubleshooting 13 years, 4 months ago
I’ve found only a few examples of using bp_get_group_avatar(). I can’t seem to get anything returned other then a blank image.
http://phpxref.ftwr.co.uk/buddypress/bp-groups/bp-groups-template.php.source.html#l380
So […]
-
David Yerrington posted on the forum topic Achievements for actions through other plugins in the group Achievements: 13 years, 7 months ago
Given the context of the type of developer that would potentially find your documentation useful, it’s somewhat appropriate. My issue was that I have a fairly large project that is loosely integrated with wordpress. A lot of my database inserts are performed outside any do_action() or any “official hooks”. I think one thing that threw […]
-
David Yerrington posted on the forum topic Achievements for actions through other plugins in the group Achievements: 13 years, 7 months ago
I’m still kinda new to WordPress but I’m a fairly seasoned PHP dev. What I learned: How to cook a custom event ———————————————- 1) Action must be defined, ie: add_action(‘action_name’, ‘function_reference’) 2) If using a class method for your function method, use an array, ie: add_action(‘action_name’, array(&$obj,…[Read more]
-
xgote posted on the forum topic ”..you need to upload an image to the WordPress Media Library”. Plenty of images though. in the group Achievements: 13 years, 7 months ago
Perhaps something changed in a recent version of WordPress (1.3.2)? I got some sleep and then opened my editor again. The fix for me, was probably not an elegant one: 1) includes/achievements_templatetags.php, around line ~1630, Updated the method dpa_change_picture_has_pictures() to return $wp_query->post_count instead of $wp->post_found 2)…[Read more]
-
xgote started the forum topic ”..you need to upload an image to the WordPress Media Library”. Plenty of images though. in the group Achievements: 13 years, 7 months ago
So, I’ve got plenty of images to select from in my media library, however, I can’t select any from the “Change Picture” tab. First thing I looked at was includes/templates/achievements/single/change_picture.php
dpa_change_picture_has_pictures() is a method that returns $wp_query->found_posts. This attribute looks sort of bare:…[Read more]
-
xgote posted on the forum topic Achievements for actions through other plugins in the group Achievements: 13 years, 7 months ago
I added a record into “wp_achievements_actions”, like category=custom, name=test_event, description=a test!, is_group_event=0. Now I see the event show up in “Other” when I’m in the “create achievements” form when I select “event”. Cool! When I reload the achievement details page after I created it, the % goes up every time I reload the page. Now […]
-
xgote joined the group Achievements 13 years, 7 months ago
-
xgote posted on the forum topic Searching / browsing through extensions in the group Requests & Feedback: 13 years, 11 months ago
I had some time earlier to create a little spider that basically: – Scans the extensions page (all 12 pages!) for the direct URL’s of each plugin – Extracts meta-data from each of the pages (title, rating, downloads, last updated, compatible, requires.. etc) – Normalizes a little bit – Dumps to text file for database […]
-
xgote started the forum topic Searching / browsing through extensions in the group Requests & Feedback: 13 years, 11 months ago
I’m fairly new to buddypress and one of the features that I really think makes this project so great is the community and all of the add-ons that are published. So many great extensions but very limited ability to find what I’m looking for. The things I want to know, quickly are: 1) Top extensions […]
-
xgote joined the group Requests & Feedback 13 years, 11 months ago
-
xgote posted on the forum topic Image Facebook-like tagging. Want to help ! in the group BuddyPress Media: 14 years, 1 month ago
@foxly this is great! I will have to give this plugin another look. When I first installed it, nothing worked with the version of WP and BP I have installed (most recent).
I’ll check out the code and see if I can’t help 🙂
-
xgote posted on the forum topic Image Facebook-like tagging. Want to help ! in the group BuddyPress Media: 14 years, 1 month ago
I’ve considered writing a mod for enabling photo tagging. I’m still evaluating a few different plugins vs writing my own. Have you guys made any progress with this or need any help?
-
xgote joined the group BuddyPress Media 14 years, 1 month ago
@xgote
Not recently active