I'm trying to create a MS CRM Dynamics 2011 plugin that shares views in a dashboard when the dashboard is shared with users. Right now, when we share a dashboard, users cannot see the views because the views have not been shared as well.
I know how to share records with code, but I'm not sure how to hook my plugin to a dashboard share event. Normally I use the Plugin Registration Tool and specify an entity and CRUD operation required to kick off my plugin:
But because Dashboards are not entities (Contact, Account, etc.), I'm not sure how to fire my plugin during sharing. Does anyone know how to do this?
Figured this out.
Message: GrantAccess.
Primary Entity: userform
Related
have spent hours of researching understanding the correct approach for developing plugin for wordpress which does have custom "service" URL.
So far done:
plugin registers custom capabilities and role
inits the db and entries using $wpdb
create rest-api hook that could be used with JS
Should do:
Only the users with custom role "service" shall have access to a service dashboard.
the service dashboard shall make use of $wpdb to query data from the db.
I am looking badly for a simple example to learn from which shows a custom page that isn't integrated into WP posts or the admin panel.
Something that does check current user and allow access for given role to e.g. "www.awesome-wp-page.com/myplugin/main" and load some further data later as e.g. "www.awesome-wp-page.com/myplugin/stats/1234"
Originally I wanted WP to query the data via its own custom restapi, but also did not find any examples that query rest-api within WP (providing nonce etc) as simple example.
I found a lot examples for admin panels, adding links to post etc, but to my surprise not really some examples which do load simple (form) page or do a quick custom DB query and show the results on a static link.
Any help is appreciated
I am developing a Kibana plugin displaying a list of items. Some of these items needs to be highlighted if created by a certain team.
The idea is to attribute a specific role to the members of the team to distinguish them from other users, so I need to be able to check the roles of the active users when a new item is created.
Is there a way to retrieve this kind of information from the server-side or the client-side?
I tried server-side but adding opendistro_security to the dependencies of my plugin prevents it to start.
We are using the version 1.8.0 of the OpenDistro plugins and the plugin I am working on uses the new plugin platform.
Thank you!
I have The Events Calendar Plugin installed on my wordpress site. Now, there is an addon that I cannot afford right now (Community Events).
So, I kindly ask, how would I go about recreating just the basic functionality of having users post their own events on the frontend?
I am currently enrolled in a WordPress, plugin and theme development course and my progress is slow. This makes me wonder whether there is some code I can build upon to make my development faster.
Current Skillset: Basic PHP, Intermmediate Wordpress, CSS, HTML, Javascript not ES6, whatever that is. Some SQL (can create tables and write some queries)
What I can do so far:
Create a basic plugin and activating it in the admin dashboard
Creating Custom post types and Metaboxes
Saving my posts
Basic understanding of Actions and Filters
What I don't know how to do, yet:
Structure a plugin
Write good code
Clone the community events addon
I just require users to start posting their own events on my website via an interactive frontend and, those events to be refelcted under All Events in The Events Calendar Plugin
Thank you, I appreciate your feedback.
There used to be an alternative plugin a while ago, but it's either not around anymore or obsolete with the more recent versions.
If you want to avoid buying that plugin, I might recommend to either find an alternative events system plugin (other than The Events Calendar) or create two template pages: one for the user to view their events, and one for the user to create a new event or edit their existing events. Make sure only logged in users can access these pages with something like if ( ! is_user_logged_in() ) { wp_redirect( wp_login_url() ); exit; } (redirects to login page).
I'm developing an e-commerce product using Asp.Net and C#. I would like to use the checkout pages from Magento.
So I'm using Magento SOAP API in order to:
Create a product.
Create a customer.
Create a cart.
Call shoppingCartCustomerSet to associate the cart with the customer.
Add the product to the cart and then call shoppingCartProductMoveToCustomerQuote.
I've learned that in order for the call to shoppingCartProductMoveToCustomerQuote to work out, the customer need to be signed in. I would like to single sign on the customer and redirect to the cart page of Magento, and I'm looking for the an easy and elegant way to do it.
The options I can think of are:
Use OAuth to log in the customer to Magento, but in this scenario the customer will have to enter their password, which they don't even know... I guess I can try to populate it somehow, but I think there should be an easier way.
Use PHP code I found in a similar questions (Magento customer login programmatically, Log user into Magento programmatically), and create my own SOAP API.
Can you suggest any other solution?
I have a Drupal site where I want to allow users to add their current Facebook Events that they themselves have created into a custom database. I'm not looking to use Facebook Connect as a User Management system, just trying to get someone's info after they accept.
More specifically I'm looking for a way to access a user's Facebook events info from a Drupal Page using PHP. I want them to be able to hit a button and give me access to their events.
Did you take a look at http://drupal.org/project/fb and http://www.drupalforfacebook.org/ ?
The FB module works pretty well, is mostly sane to use, and the author is responsive to bug reports.