webtent
Forum Replies Created
-
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] PHP Fatal ErrorMaybe not, I’ve received the error again since when making a syntax error, so perhaps it is uncovering something wrong with a custom script……
We got it working by adding the ‘publish_ai1ec_events’ capability to another role and giving the user that role.
Thanks for the clarification. While I am the developer, I don’t manage permissions, so I’ll need to get with those involved to hammer out how to make it work. They use the Adminimize plugin to hide things from users by role and the User Role Editor plugin to assign capabilities. Making the user an Author works for this purpose, but not sure if that will show things in the admin section they don’t want to show, will clarify later today.
I tried to add the ‘publish_ai1ec_events’ capability to the Event Contributor role using the User Role Editor plugin, but it won’t save. Is it not possible to alter the role capabilities? It would be ideal for use to just give the Event Contributor the capability to publish events. Or have an “Event Manager” that has the added capability.
Oh, sorry, forgot to mention and purchased this add-on. I can post automatically as admin, but can’t seem to allow any other users. The doc you referenced says “Remember, If you are logged into an account that has permission to post an event on the calendar, your event will be posted automatically.”, but I don’t see any instruction on how to give those permissions.
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] HooksYes, I understand there are no docs, help, pointers or suggestions for developers. If any other users can actually help, much appreciated. Don’t really need help with coding, just pointers from experienced users. Not sure if the changes to the code as suggested are needed to the core code or it is possible to override functions or hook into the plugin, or create my own calendar view would be great? I really like this plugin, would save a lot of work as we are needing a calendar with front-end submission capability.
I see the calendar views in the plugin code base, but don’t see any hooks. Just looking for a way to override without changes to the core code of the plugin if anyone can suggest from experience. Thanks!
I have same problem for the same reasons. I’m not finding an answer to the 4GB limit in ZipArchive class, a split feature is needed.
Forum: Fixing WordPress
In reply to: Removing item from Woocommerce cartI simplified my code to have it remove any item I try to add to the cart, see below. This works for any simple or downloadable product I try to add to the cart, they are removed, but not variable products. I found three different examples of this code on the web, so I am baffled by what might be causing my issue:
`add_action(‘template_redirect’, ‘wmnf_add_to_cart’);
function wmnf_add_to_cart() {
if( is_cart() || is_checkout() ) {
foreach( WC()->cart->cart_contents as $prod_in_cart ) {
$prod_id = ( isset( $prod_in_cart[‘variation_id’] ) && $prod_in_cart[‘variation_id’] != 0 ) ? $prod_in_cart[‘variation_id’] : $prod_in_cart[‘product_id’];
$prod_unique_id = WC()->cart->generate_cart_id( $prod_id );
unset( WC()->cart->cart_contents[$prod_unique_id] );
}
}`Using debug methods, I found the $prod_unique_id is not correct when generated for variable products. Here is a snippet of the WC()->cart->cart_contents array for an example variable product I’m trying to remove:
`Array
(
[11adc438e60c11150644599f9648a809] => Array
(
[product_id] => 67466
[variation_id] => 67494
…`But the ID generated is not present in the array, these are the values generated for the variables in my code:
$prod_id: 67494
$prod_unique_id: 906a14e7a829f839c08452f8b1f2a05dI cannot figure out where this unique id is coming from, does anyone know what could be my problem?
Forum: Fixing WordPress
In reply to: Removing item from Woocommerce cartOkay, after a bit more debugging, I found it is returning the wrong unique ID. The unique ID returned is aadda33446a0633e97539c0c7f0b177b while the item in the cart is b87bad89a1d78ee97fd1d9dca115b6f5. So, just trying to see where the former ID is coming from at this point. It is a variation product, but the product ID does match my product that I’m trying to remove. Here is a snippet of the cart array:
[b87bad89a1d78ee97fd1d9dca115b6f5] => Array ([product_id] => 67532 [variation_id] => 67535…
Where would the former ID be coming from? This is the only item in the cart. The ID returned by $prod_in_cart[‘product_id’] is 67532.
Forum: Fixing WordPress
In reply to: Problem with multiple shortcode in page templateYes, I tried that already with no help. Looking at the plugin that provides this shortcode, I also see they are using that and the wp_reset_query function as well. It is very perplexing since I have one version on the dev site that works. Any attempts to recreate the page/template have the issue.
Forum: Plugins
In reply to: [Posts 2 Posts] Connections Types read-onlyThanks for the response. I have over 3100 connections in the wp_p2p table for several connection types. Sorry, not sure I understand the part about whether they were changed or removed.
Forgot to post the error, when trying to dismiss as a user other than administrator, it gives the popup browser exception of ‘Error dismissing notice.SyntaxError: Unexpected token Y’.
Forum: Plugins
In reply to: Woocommerce theme conflictFurthermore, I used the What The File plugin to verify this product-category permalink is using woocommerce.php, which I had created when I installed WC and it warned of the theme not declaring Woocommerce support. I followed this post for making changes to the theme….
http://docs.woothemes.com/document/third-party-custom-theme-compatibility/
Forum: Fixing WordPress
In reply to: TimezoneThanks for that info, still trying to get my head around it all to make sure I understand correctly how it affects our database. We are getting ready to go live with a new website with 12K+ migrated records from a ruby application. I asked the design company about this setting being UTC in the General -> Settings -> Timezone and no one address during the initial migration about a month ago. A few days ago, they did another migration, but after which I changed that setting to ‘America/New York’ after asking them again if there was any problem doing so and they said no. This was a concern of mine since we had experienced issues with the Ruby app using all UTC even at the server level. The server timezone for this new WP website is Eastern and I thought it best WP was set to the same.
Now, doing a query on the wp_posts table, I see the two different dates as you mention until we get back a week or so, then both fields, post_date and post_date_gmt, are the same. I do know the second migration did an update and not overwrite already migrated data. Since the initial migration was done when both General -> Settings -> Timezone and the wp-settings file set to UTC, can I suspect all those initially migrated records need to be updated?
Also, when using a timezone different in the Settings GUI and I query or insert into the mysql database directly, I must adjust for UTC? All this came to question when I created a plugin that inserted records into a custom table using the PHP date function and those dates posting as UTC.
Thanks again for your help!
Forum: Fixing WordPress
In reply to: Adding jQuery datepicker to adminMakes sense of course, kinda what I thought. But wondered if perhaps the WP core was supposed to find it by the referenced name, the link I sent prior is what I followed.
So, if I download and place the jquery UI css in my themes’ css/ folder, I should reference like this?
wp_enqueue_style(‘jquery-ui-css’, get_template_directory_uri() . ‘/css/jquery-ui.css’);
Thanks for the help!
Forum: Fixing WordPress
In reply to: Adding jQuery datepicker to adminI’m not sure where the style sheet is supposed to come from when using the following line:
wp_enqueue_style( ‘jquery-ui-datepicker’ );
Here is a screenshot of what I get when using the above line: