fujikuraeurope
Forum Replies Created
-
Forum: Plugins
In reply to: [Document Management System] Blank FrameI too am experiencing this exact same problem, I also have PHP7
Thanks for that. Is it possible to delegate authorisations to specific users, or is it role based only? I don’t want other managers being able to approve different teams leave.
Many thanks
Forum: Plugins
In reply to: [Email Users] No Line ReturnNot that I’m aware of, but I can’t say for sure. I’ll do some testing next week when I’m back and will let you know.
Many thanks,
Solomon
Forum: Fixing WordPress
In reply to: Book Reservation via List Plugin?Thanks for your reply. Not looking for someone to make something for me, just wondered if anyone knew about any plugin that might suit :). Thanks for keeping the thread open
Will do it in a short while. Cheers ??
(marked as resolved)
I’ve only recently introduced AO and it was at that time when I noticed the speeds decreased, yeah.
Hi Frank,
I’m uncertain to be honest, but as soon as I deactivate AO my site goes back to having 0.5/0.7 second response times. I reactivate AO and the response time goes from 5 seconds to 30 seconds (30seconds was the longest it has been). I won’t be able to get back on today, but is there anywhere I could get you information that might help?
Thanks,
Solomon
My apologies, the Autoptimize plugin interfering with the process. I have removed this and all is well again.
Forum: Fixing WordPress
In reply to: Autoload Slow Response on Core ComponentNever mind… I found the problem. It was the Cache. Sorry.
Forum: Plugins
In reply to: [Document Management System] PDF Documents “Failed to Load”Hi Villa,
It was a bug with the plugin when updating to the new version. You need to make sure you have the latest version, then reupload all of your files. Once you’ve done that, the problem should fix itself (The latest version has dealt with the problem, so it shouldn’t happen again).
If that doesn’t work, then you might have a different issue
Ahhh, I see. No problem. My users were a bit confused by it. They also don’t like having too much information on their screen, hence limiting it to three articles to display (I have 8 categories).
Thanks for getting back to me with an appropriate explanation. All the best
Forum: Plugins
In reply to: [Email Users] Font not matching ThemeOK, no problem, thanks Mike for your quick response.
- This reply was modified 7 years, 8 months ago by fujikuraeurope.
Forum: Plugins
In reply to: [Email Users] Font not matching ThemeFYI, none of my WordPress filters are enabled
“Filters
wp_mail_content_type: No
wp_mail_charset: No
wp_mail_from: No
wp_mail_from_name: No”Forum: Plugins
In reply to: [WP Distance Calculator] Calculate using miles?Figured it out.
If anyone wants to change it to MILES instead of KILOMETERS then you need to edit Index.php and change it to this
<?php /** * Plugin Name: WP Distance Calculator * Plugin URI: https://phpcodingschool.blogspot.com/ * Description: This plugin claculates distance between two near by locations. * Version: 1.0.0 * Author: Monika Yadav * Author URI: https://phpcodingschool.blogspot.com/ * License: GPL2 */ class DistanceWPCalculator { public function __construct() { //action definations add_shortcode( 'distance_calculator', array( &$this, 'distanceWPfrontend' ) ); add_action( 'wp_ajax_nopriv_distancewpcalculator', array( &$this, 'distancewpcalculator_calculate' ) ); add_action( 'wp_ajax_distancewpcalculator', array( &$this, 'distancewpcalculator_calculate' ) ); add_action( 'init', array( &$this, 'init' ) ); } public function init() { wp_enqueue_script( 'distancewpcalculator', plugin_dir_url( __FILE__ ) . 'js/calculatedistance.js', array( 'jquery' ) ); wp_localize_script( 'distancewpcalculator', 'DistanceCalculator', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) ); ?> <script> var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>"; </script> <?php wp_enqueue_style( 'DistanceWPCalculator-Style', plugin_dir_url( __FILE__ ) . 'css/style.css', array(), '0.1', 'screen' ); } public function distancewpcalculator_calculate() { // The $_POST contains all the data sent via ajax if ( isset($_POST) ) { $from = urlencode($_POST['from']); $to = urlencode($_POST['to']); $data = file_get_contents("https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=$from&destinations=$to&language=en-EN"); $data = json_decode($data); $time = 0; $distance = 0; foreach($data->rows[0]->elements as $road) { $time += $road->duration->value; $distance += $road->distance->value; } $time =$time/60; $distance =round($distance/1609); //Output if($distance!=0){ echo "<div id='result_generated'>"; echo "From: ".$data->origin_addresses[0]; echo "<br/>"; echo "To: ".$data->destination_addresses[0]; echo "<br/>"; echo "Time: ".gmdate("H:i", ($time * 60))." hour(s)"; echo "<br/>"; echo "Distance: ".$distance." miles"; echo "</div>"; }else{ echo "Sorry only nearby distance can be calculated."; } } die(); } //Function to display form on front-end public function distanceWPfrontend( $atts ) { ?> <form method = "post" id="calculator" > <div class="DC_title">Distance Calculator</div> <input type="text" id="from" name="from" placeholder="From.."></br> <input type="text" id="to" name="to" placeholder="To.."></br> <input type="button" id="calculate" name="calculate" value="Calculate"> </form></br> <div id="result"></div> <?php } } $distancewpcalculator = new DistanceWPCalculator(); ?>
Forum: Plugins
In reply to: [WP Distance Calculator] Calculate using miles?Any luck on calculating in miles?