Forum Replies Created
Author | Posts |
---|---|
July 3, 2013 at 1:42 pm in reply to:
Post to Buddypress Actvities 5532 | |
quokka | Hi.. Try to add: print_r($post); global $post; Does that return anything? |
July 2, 2013 at 10:22 pm in reply to:
Post to Buddypress Actvities 5508 | |
quokka | Hi.. The true is for returning a single custom field value.. Try changing this: To:
Does that fix it? Regards, |
June 12, 2013 at 9:56 pm in reply to:
Some questions about the [wpuf_dashboard] user dashboard page. 4859 | |
quokka | Hi Tareq, The dashboard code is in a WP page. Thanks, |
June 11, 2013 at 8:52 pm in reply to:
Post to Buddypress Actvities 4807 | |
quokka | Hi Mahi, Sure no problem..I will include the custom post type code from my functions-custom.php as well together with some screenshots.. Can take a day or two because I’m very busy playing with you cool WPUF plugin ;-D Take care and keep up the great work at Wedevs.com! |
June 11, 2013 at 8:29 pm in reply to:
Post to Buddypress Actvities 4805 | |
quokka | Hi Tareq (and anybody else that maybe interested)… I managed to get this little plugin of mine working. When I create a new post (of custom post type ‘photoalbum’) with WP User Frontend Pro this plugin also writes the activity to the Buddypress Activity Stream. To use this with your own custom post type just search/replace for ‘photoalbum’ and replace with ‘your_custom_post_type_name’ Grab the code and save it as a WordPress plugin and you should be fine.. Thanks Tareq for pointing me in the right direction, and for making those handy action hooks available in WP User Frontend Pro 😀 Take care! The plugin code:
|
June 11, 2013 at 7:24 pm in reply to:
Post to Buddypress Actvities 4801 | |
quokka | ;-D You are right, seems like php mail() function not working on that domain hosting account. Tried on another domain / WP install and working fine! Thanks Tareq, |
June 11, 2013 at 7:10 pm in reply to:
Post to Buddypress Actvities 4797 | |
quokka | I activated this simple plugin and when I add or update a post with the WPUF forntend form, nothing seems to happen.. Thanks! |
June 11, 2013 at 7:09 pm in reply to:
Post to Buddypress Actvities 4796 | |
quokka | Hi Tareq, Thanks…i’m aready fooling around..
Thanks! |
June 11, 2013 at 5:14 pm in reply to:
Post to Buddypress Actvities 4792 | |
quokka | Looking at WPUF documentation and seems to me like the action hooks wpuf_add_post_after_insert ans wpuf_edit_post_after_update could be used to call a function likke the bp_portfolio_record_activity above that writes to the activity stream, or in’t it that easy? Thanks, |
June 11, 2013 at 9:02 am in reply to:
Post to Buddypress Actvities 4788 | |
quokka | Hi Tareq, Thanks for the great plugin! One concern.. I have been looking on how other plugins do it. [php]/** if ( !function_exists( ‘bp_activity_add’ ) ) $defaults = array( $r = wp_parse_args( $args, $defaults ); return bp_activity_add( array( ‘id’ => $id, ‘user_id’ => $user_id, ‘action’ => $action, ‘content’ => $content, ‘primary_link’ => $primary_link, ‘component’ => $component, ‘type’ => $type, ‘item_id’ => $item_id, ‘secondary_item_id’ => $secondary_item_id, ‘recorded_time’ => $recorded_time, ‘hide_sitewide’ => $hide_sitewide ) ); bp-portfolio-activity.php has a function o update the stream and i gets called on every post creation or update. /* Now record the activity item */ $project = new BP_Portfolio_Item( array( ‘id’ => $result ) ); $title = $project->query->post->post_title; if($id) { $attachment = wp_get_attachment_image_src($project->query->post->post_parent, ‘portfolio-thumb’); $activity_content = sprintf(__( ‘<div class="item-project"><div class="item-project-pictures"><img width="250px" height="170px" src="%s"></div><div class="item-project-content"><div class="item-project-title">%s</div><div class="item-project-url"><a href="%s">%s</a></div><div class="item-project-desc">%s</div></div></div></div>’, ‘bp-portfolio’), $thumbnail, $title, $url, $url, $description); bp_portfolio_record_activity( array( return true; Any chance you could build this support into WPUF? Thanks! |