-
modemlooper replied to the topic Multiple custom post types in activity stream in the forum Creating & Extending 11 years, 5 months ago
Hmm, maybe a lowercase issue.
Try portfolios instead of Portfolios. The name and singular name should be lower case. The other array items can be upper since they are what is displayed but the first two are the slugs.
-
modemlooper replied to the topic Charge a fee to upload media in the forum How-to & Troubleshooting 11 years, 5 months ago
maybe something like user credits would work http://codecanyon.net/item/user-credits-for-wordpress/783664
-
modemlooper replied to the topic Multiple custom post types in activity stream in the forum Creating & Extending 11 years, 5 months ago
make sure it’s the plural of the type
function inspired_record_more_types( $types ) {
$types[] = 'customs';
$types[] = 'roles';return $types;
}add_filter( 'bp_blogs_record_post_post_types', 'inspired_record_more_types', 1, 1);
-
modemlooper replied to the topic Multiple custom post types in activity stream in the forum Creating & Extending 11 years, 5 months ago
do you have the option checked in BuddyPress settings to track blog posts?
-
modemlooper replied to the topic Multiple custom post types in activity stream in the forum Creating & Extending 11 years, 5 months ago
function inspired_record_more_types( $types ) {
$types[] = ‘my-cpt-name-1’;
$types[] = ‘my-cpt-name-2’;return $types;
}
add_filter( ‘bp_blogs_record_post_post_types’, ‘inspired_record_more_types’ ); -
modemlooper replied to the topic Buddypress Responsive Design in the forum Requests & Feedback 11 years, 5 months ago
more on what Hugo said. The theme developers can supply responsive BP templates to make it 100% responsive. Even if BP added CSS and HTML to be responsive it still would not be 100% perfect because responsive CSS is different with every theme.
-
modemlooper replied to the topic Buddypress Responsive Design in the forum Requests & Feedback 11 years, 5 months ago
BP is not responsive.
-
modemlooper replied to the topic [Resolved] Additional menu elements in the forum Creating & Extending 11 years, 5 months ago
500 day old article refers to old BuddyBar. BP know uses WP admin bar.
http://blog.rutwick.com/add-items-anywhere-to-the-wp-3-3-admin-bar
-
modemlooper replied to the topic Cacheing plugin recommendations in the forum Third Party Plugins 11 years, 5 months ago
not all pages use ajax. activity stream does.
-
modemlooper replied to the topic Cacheing plugin recommendations in the forum Third Party Plugins 11 years, 5 months ago
WP super Cache but do not cache any page that updates via ajax.
-
modemlooper replied to the topic Add links to specific profile fields in the forum How-to & Troubleshooting 11 years, 5 months ago
If you look at this snippet for allowing youtube link to embed instead of showing a link you can wrap a function in an if this field is X then don’t remove link.
-
modemlooper replied to the topic Creating New Plugins in the forum Creating & Extending 11 years, 5 months ago
Looks good. One more suggestion per WP standards. Place all add_actions right below it’s function unless the action is inside a function in that case you place that actions function below the function the add action is inside. It’s to keep the code easier to manage when you have really long file and scrolling up and down gets tedious.
/*** Make…
[Read more] -
modemlooper replied to the topic Charge a fee to upload media in the forum How-to & Troubleshooting 11 years, 5 months ago
You can use s2 member or restrict content pro plugins to charge for a certain membership but then you would have to custom code the only allow those paid members to upload content.
-
modemlooper replied to the topic Creating New Plugins in the forum Creating & Extending 11 years, 5 months ago
Since last year plugin reviews are getting stricter to avoid useless and or badly coded plugins for the benefit of not having to filter through crap when searching the repo.
-
modemlooper replied to the topic Creating New Plugins in the forum Creating & Extending 11 years, 5 months ago
You got rejected and asked why, I explained with code examples and you think It’s not necessary. Why ask for help to only reject the suggestions? Also, this type of response will get you rejected from repo.
The WordPress community is about sharing knowledge and helping each other better the code whether it’s your plugin or core code. No one…[Read more]
-
modemlooper replied to the topic Creating New Plugins in the forum Creating & Extending 11 years, 5 months ago
You really need to wrap the if class in a function that loads after all plugins just to be on the safe side. The reason it works is because your plugin name is alphabetically after BuddyPress so it loads after but the proper way is to wait until all plugins are loaded and then give the error notice.
-
modemlooper replied to the topic Creating New Plugins in the forum Creating & Extending 11 years, 5 months ago
The reason of my last suggestion is you can not test if BuddyPress class if you do not call it after plugins_loaded. Previous code doesn’t work right because plugins load in the order they are listed in the admin. If your plugin is above BuddyPress then the BP class hasn’t loaded and the error notice will show even if BuddyPress is active. The…[Read more]
-
modemlooper replied to the topic Creating New Plugins in the forum Creating & Extending 11 years, 5 months ago
Actually just wrap notice check in if class because bp_include won’t run if bp isn’t active.
add_action( ‘bp_include’, ‘private_community_for_bp_lite_init’ );
function private_community_for_bp_lite_bp_check() {
[Read more]
if ( !class_exists( 'BuddyPress' ) ) {
add_action( 'admin_notices', 'private_community_for_bp_lite_install_buddypress_notice' );… -
modemlooper replied to the topic Creating New Plugins in the forum Creating & Extending 11 years, 5 months ago
You can also wrap everything in a class. Look at bp-loader.php to get an idea of how to do that. I’m guilty of not following the best way out of laziness but I always go over my code and try and perfect as much as possible. I look at how BuddyPress core code is written and look over others plugins that I feel are doing it right.
-
modemlooper replied to the topic Creating New Plugins in the forum Creating & Extending 11 years, 5 months ago
this: require_once( ABSPATH . ‘/wp-admin/includes/plugin.php’ );
The review proccess can and will point out better coding practices. If they see a cleaner way to write it then they will say something. If you ever submit a theme for review you will have this happen 10 fold.
The plugin review team is actually easy on the reviews.
- Load More
@modemlooper
Active 10 months ago