-
imjscn started the forum topic can I use the same "object" name for all components in bp_core_fetch_avatar? in the group Creating & Extending 13 years, 4 months ago
I want to modify bp_core_fetch_avatar and use it for all components in my theme.
Currently, I use'object' => $bp->current_component
This gets correct avatar for all components but I need to use a javascript to do something […] -
imjscn posted on the forum topic article images in the group EventPress 13 years, 4 months ago
I can add image, just use the “add image” button of the editor.
-
imjscn posted a new activity comment 13 years, 4 months ago
Thanks, kunalb! It’s as easy as a walk in the park —
In view.php, if function exist ( mybox), add meta box….; this solved all type’s BP front;
Then, in my plugin, add meta box (‘mybox’, …..’ep_event’ ); this solved the WP admin;
All functions in my plugin hook up with bpcp functions nicely without including any file in bpcp.
bpcp is powerful. -
imjscn posted on the forum topic Embed.ly plugin support in the group oEmbed for BuddyPress: 13 years, 5 months ago
Would anyone explain– when we have Embed Discovery , why we still need Embedly?
-
imjscn posted on the forum topic oEmbed vedio as Group / Post avatar? in the group oEmbed for BuddyPress: 13 years, 5 months ago
Thanks! I will try to get it, then, work on how to cache it.
-
imjscn posted on the forum topic Huge apologies – I'm back! in the group BuddyPress Like: 13 years, 5 months ago
Suprise! Welcome back! Congrates on your winning the election!
I’d love to be a beta tester. How to join?
I pray–you give the posibility for developers to sort posts by “Likes” count in new release. 🙂 -
imjscn started the forum topic oEmbed vedio as Group / Post avatar? in the group oEmbed for BuddyPress: 13 years, 5 months ago
Hello,
I want to replace the Group or other components avatars with embed vedio. I know how to modify bp_fetch_avatar, but how to make oEmbed working with this?
Thanks! -
imjscn posted a new activity comment 13 years, 5 months ago
@kunalb, I got it by $data[] = (object)Array(….);
Thanks again for your helping! -
imjscn posted a new activity comment 13 years, 5 months ago
OMG, within 5 minutes, I got the $data nearly correct by the get_post_custom. Thanks!
I first use a simple query to get all ID, then Foreach ID populate data by get_post_custom.
So, each of your inviteable user is an object, each of mine is an array, need to convert. and since I use Foreach, the final result shows only one ID.
If you have time,…[Read more]
-
imjscn posted an update 13 years, 5 months ago
@kunalb I want to borrow your invitable ID query in registration.php , to get all objects saved in postmeta and then input it in kb-loop extends. but your data is in multi table, my data is all in one postmeta table. I tried this:
$query = <<postmeta project_id
[Read more]
LEFT JOIN $wpdb->postmeta height
on height.post_id = project_id.post_id… -
imjscn posted on the forum topic Create a Custom Profile Field in the group How-To and Troubleshooting: 13 years, 6 months ago
Nowadays it’s popular to answer a question with a question? 🙂
-
imjscn posted an update in the group BuddyPress Custom Posts: 13 years, 6 months ago
@kunalb , I want to create a meta box in view.php so that I don’t need to repeat it for each type. Data obtained from this meta box will be processed in a Class, then, create a function to replace bpcp_get_type_avatar.
So, view.php and tags.php will need this Avatar Class, then, template files will also need this class to show the avatar.
Where…[Read more]-
As long as the function runs after plugins have loaded, you can create your own plugin and enable it and it should work fine.
-
Maybe you could add the file to the plugin itself and change the main bpcp.php file to include the class as required.
-
Thanks, kunalb! It’s as easy as a walk in the park —
In view.php, if function exist ( mybox), add meta box….; this solved all type’s BP front;
Then, in my plugin, add meta box (‘mybox’, …..’ep_event’ ); this solved the WP admin;
All functions in my plugin hook up with bpcp functions nicely without including any file in bpcp.
bpcp is powerful.
-
-
-
imjscn posted an update 13 years, 6 months ago
@Arwym could you give an example on how to add custom meta box using bpcp_edit_add_metaboxes action?
Currently I add it in WP like this:
‘add_meta_box( ‘post-meta-boxes’, __(‘Post options’), ‘post_meta_boxes’, ‘post’, ‘normal’, ‘high’ );’
How to edit this line to hook up with bpcp_edit_add_metaboxes? -
imjscn joined the group BuddyPress Activity Plus 13 years, 6 months ago
-
imjscn posted on the forum topic 0.5 Cannot Create Links in Group in the group BuddyPress Links: 13 years, 6 months ago
@jonas, I decide not to use this plugin. It shows some nice features but keeps the rest very buggy. I don’t like to see such things in open source world.
-
imjscn posted a new activity comment 13 years, 6 months ago
That fantastic! Big Thanks!
-
imjscn posted an update in the group EventPress: 13 years, 6 months ago
Hello, @kunalb
I have BPCP and EventPress installed. Now I created several other post types, I want to make extends of KB_Loop (like you did in eventpress), do I need to copy kb-loop.php in other types’ View folder ? or WP can automatically recon the Class?-
@imjscn As long as you have BPCP/EP activated and are only using the loop after all plugins have been loaded (which is almost certainly true as the loop will only be used by the time WP reaches the output generating stage—far after loading plugins), you don’t need to copy kb-loop.php.
-
That fantastic! Big Thanks!
-
-
imjscn started the forum topic Is item_id a globla variable? in the group Creating & Extending: 13 years, 6 months ago
I need to modify one plugin. I see it uses “item_id” in avatar section, without pre-define it. So, I guess $item_it might be a global variable?
-
imjscn posted on the forum topic Private Events in the group EventPress: 13 years, 7 months ago
kunalb, thanks for pointing the issue! this saves me from doing useless jobs.
Then, I will just add registered users in a private group for the contents they subscribed to. -
imjscn posted on the forum topic Private Events in the group EventPress: 13 years, 7 months ago
Seems WP doesn’t provide “protected” option for custom post type. Maybe I am wrong but the option of “protected” is not listed in any WP document of custom post type. I’m on half way of making a privacy option. Use css display:none hide main content and discussion from not-registered / not-invited users. Hope this finally […]
- Load More
@imjscn
Active 10 years, 4 months ago
@imjscn I had to construct a complete query because I needed the name from the bp profile table and wordpress’s user table. It might be simpler—and with automatic cache support via WP—to simply get the data using get_post_custom() [https://codex.wordpress.org/Function_Reference/get_post_custom] which will return an object with all custom val…[Read more]
OMG, within 5 minutes, I got the $data nearly correct by the get_post_custom. Thanks!
I first use a simple query to get all ID, then Foreach ID populate data by get_post_custom.
So, each of your inviteable user is an object, each of mine is an array, need to convert. and since I use Foreach, the final result shows only one ID.
If you have time,…[Read more]
@kunalb, I got it by $data[] = (object)Array(….);
Thanks again for your helping!