Zoinks! Graphics
Forum Replies Created
-
Interestingly, including the following code anywhere in the header.php file works. But I’d much rather have it in the functions.php if at all possible!
use FileBird\Classes\Helpers as Helpers; $ids = Helpers::getAttachmentIdsByFolderId(2); define('FILEBIRD_PIC', $ids[0]);Thank you for the response!
As instructed, in functions.php I replaced…
<?php if(!defined('ABSPATH')) exit;…with…
<?php namespace FileBird\Controller; use FileBird\Model\Folder as FolderModel; use FileBird\Classes\Helpers as Helpers; use FileBird\Classes\Tree; if(!defined('ABSPATH')) exit;Instead of working, however, that made my site only show the header and footer. Any other ideas?
Forum: Plugins
In reply to: [Share to Google Classroom] WordPress 5.5.1 compatibilityLooks like the current version of the plugin doesn’t include the platform.js javascript link. Here’s how I included it in my theme…
<?php echo '<script src="https://apis.google.com/js/platform.js" async defer></script>'; echo do_shortcode('[share_to_google]'); ?>See here for more info: Google Dev
“The tutorial is here”
Where? 😉Forum: Plugins
In reply to: [Shipping Live Rates for FedEx for WooCommerce] Time in transit?Cool, thanks! Now how would I call the public function rate_shipment() outside of FedexShippingService.php like say in my theme’s functions.php? Just adding that function results in…
Fatal error: Uncaught Error: Call to undefined function rate_shipment()Forum: Plugins
In reply to: [Shipping Live Rates for FedEx for WooCommerce] Time in transit?Thanks, but again, I didn’t explain clearly. Can you please tell me which file in your plugin the SOAP query fires off to create the code snippet I included above? Then I will add some functions on my end to get the time in transit info.
Again, I will be happy to send you whatever code I come up with if it helps with developing the next version of your plugin.
Forum: Plugins
In reply to: [Shipping Live Rates for FedEx for WooCommerce] Time in transit?Thanks for the response, Piotr! I wasn’t clear in my request… Can you point me to where/how in your code that *I* can hook in to obtain time in transit information? Specifically the “[TransitTime]” value as displayed below from the plugin’s debugging. I’ll be happy to share my customizations.
[PackagingType] => YOUR_PACKAGING [CommitDetails] => Array ( [0] => FedExVendor\FedEx\RateService\ComplexType\CommitDetail Object ( [name:protected] => CommitDetail [values:protected] => Array ( [ServiceType] => FEDEX_GROUND [ServiceDescription] => FedExVendor\FedEx\RateService\ComplexType\ServiceDescription Object ( [name:protected] => ServiceDescription [values:protected] => Array ( [ServiceType] => FEDEX_GROUND [Code] => 92 [Description] => FedEx Ground [AstraDescription] => FXG ) ) [DerivedOriginDetail] => FedExVendor\FedEx\RateService\ComplexType\CleansedAddressAndLocationDetail Object ( [name:protected] => CleansedAddressAndLocationDetail [values:protected] => Array ( [CountryCode] => US [StateOrProvinceCode] => PA [PostalCode] => 18708 [LocationNumber] => 185 ) ) [DerivedDestinationDetail] => FedExVendor\FedEx\RateService\ComplexType\CleansedAddressAndLocationDetail Object ( [name:protected] => CleansedAddressAndLocationDetail [values:protected] => Array ( [CountryCode] => US [StateOrProvinceCode] => PA [PostalCode] => 18708 [LocationNumber] => 185 [AirportId] => ABE ) ) [TransitTime] => ONE_DAY [BrokerToDestinationDays] => 0 ) ) )- This reply was modified 6 years, 7 months ago by Zoinks! Graphics. Reason: cleaned up code sample
Forum: Plugins
In reply to: [Shipping Live Rates for FedEx for WooCommerce] Authentication failedI too am experiencing “Authentication Failed” likely because I’m currently in test mode. So there’s no way to use this plugin with Test Account Credentials?
Forum: Plugins
In reply to: [Toolbar Publish Button] Support for other plugins?Oh, and adding body class allows you to determine on which pages it displays.
body.post-type-custom-css-js #major-publishing-actions #publishing-actionForum: Plugins
In reply to: [Toolbar Publish Button] Support for other plugins?Speaking of CSS, an approximation of your plugin is achieved by adding this to the admin CSS. Your results may vary… 😉
#major-publishing-actions #publishing-action { position:fixed; z-index:999999; top:80px; right:200px; }Forum: Plugins
In reply to: [Advanced WordPress Backgrounds] Parallax Scrolling Not WorkingHow?
Forum: Plugins
In reply to: [Ozh' Admin Drop Down Menu] PLEASE ADOPT THIS PLUGIN!!!I’d love to adopt this plugin, as I’ve made several modifications on my website. What next?
Thanks.
Forum: Plugins
In reply to: [Error Log Monitor] Time of error incorrectDisplays correct date in my timezone with the following tweaks:
I edited around line 234 of DashboardWidget.php as follows…
echo '<ul class="', esc_attr(implode(' ', $listClasses)), '"><tbody>'; $f = 'F j, Y @ g:ia'; foreach ($lines as $line) { printf( '<li class="elm-entry%s" data-raw-message="%s">%s <p class="elm-timestamp" title="%s">%s</p>', !empty($line['stacktrace']) ? ' elm-has-stack-trace' : '', esc_attr($line['message']), $actions, // !empty($line['timestamp']) ? gmdate('Y-m-d H:i:s e', $line['timestamp']) : '', !empty($line['timestamp']) ? date($f, $line['timestamp']) : '', // !empty($line['timestamp']) ? $this->plugin->formatTimestamp($line['timestamp']) : '' !empty($line['timestamp']) ? date($f, $line['timestamp']) : '' ); echo '<p class="elm-log-message">', esc_html($this->plugin->formatLogMessage($line['message'])), '</p>'; if ( !empty($line['stacktrace']) ) { $this->displayStackTrace($line['stacktrace']); } echo '</li>'; } echo '</ul>';…and in my functions.php added…
add_filter('date_i18n', 'wpse57195_filter_date', 10, 4); function wpse57195_filter_date($date, $format, $timestamp, $gmt) { if(!is_admin()) { return $date; } date_default_timezone_set('America/New_York'); // if(!get_query_var('sitemap')) return $date; // if this isn't a sitemap page, bail // W3C Time format with -05:00 for central time // NOTE: this doesn't account for daylight saving time $f = 'F j, Y @ g:ia'; return $gmt ? gmdate($f, $timestamp) : date($f, $timestamp); }- This reply was modified 7 years, 11 months ago by Zoinks! Graphics.
Forum: Plugins
In reply to: [Error Log Monitor] Time of error incorrectLooks like the problem still persists with the development version?