Title: psychedelus's Replies | WordPress.org

---

# psychedelus

  [  ](https://wordpress.org/support/users/psychedelus/)

 *   [Profile](https://wordpress.org/support/users/psychedelus/)
 *   [Topics Started](https://wordpress.org/support/users/psychedelus/topics/)
 *   [Replies Created](https://wordpress.org/support/users/psychedelus/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/psychedelus/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/psychedelus/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/psychedelus/engagements/)
 *   [Favorites](https://wordpress.org/support/users/psychedelus/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Backup Migration] Saving changes to ACF gives warnings with plugin active](https://wordpress.org/support/topic/saving-changes-to-acf-gives-warnings-with-plugin-active/)
 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/saving-changes-to-acf-gives-warnings-with-plugin-active/#post-17871118)
 * I’ve got the same issue on my setup running WordPress 6.5.5. I was getting the
   exact same warnings as [@danyw18](https://wordpress.org/support/users/danyw18/)
   shared in his screenshot when running version 1.4.5 of the plugin. I downloaded
   the beta that you linked to above, version 1.4.5.2 and that helped to suppress
   many of the warnings but one still plagues my logs as a new warning gets added
   for practically any action I take in the WordPress admin.
 * `PHP Warning: Undefined array key "f" in /home/user/Local Sites/mysite/app/public/
   wp-content/plugins/backup-backup/includes/ajax.php on line 62`
 * It’s not causing any issues but I’m writing a lot of code for a custom theme 
   and this warning fills my debug logs which is rather irritating after a while.
   Would you be able to provide any insights as to why this warning keeps coming
   up, and perhaps any steps that I could take to resolve the issue? Or is there
   perhaps an updated version of the plugin where this issue has been fixed?
 * Thanks for your time,
 * Regards.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Sidr Jquery Plugin & wordpress](https://wordpress.org/support/topic/sidr-jquery-plugin-wordpress/)
 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/sidr-jquery-plugin-wordpress/#post-4777920)
 * Can you explain what issue you are experiencing? Is the menu not loading? Are
   you getting any errors in the console of the development tools in you browser?
 * I have just added the Sidr script to a WordPress site today and it worked just
   fine. This is using the latest version of WordPress and Sidr.
 * One thing that I did differently from your set up is to register the scripts 
   before enqueuing them in your functions.php.
 * I did the following:
 *     ```
       wp_register_script('sidr-js', get_stylesheet_directory_uri() . '/js/jquery.sidr.min.js', array('jquery'), '1.2.1', false);
               wp_enqueue_script('sidr-js');
       ```
   
 * I am not sure if that will make a difference but could be worth a try. If not
   please elaborate on your issue and I’ll see if I can help you out.
 * **Edit:**
    I just realised that your paths are not going to work. You are pointing
   to the stylesheet directory and then and full url. The Url needs to be relative
   to the stylesheet directory. What you can do is refactor the url to be relative
   or just remove the get_stylesheet_directory_uri(). I would do the first option
   as it gives you more flexibility.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wp-Pro-Quiz] Add 'time' to the statistics](https://wordpress.org/support/topic/add-time-to-the-statistics/)
 *  Thread Starter [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/add-time-to-the-statistics/#post-3606218)
 * Just to be clear, I mean adding time to the statistics that get saved at the 
   end of the quiz if the user clicks on the button to send them to the leaderboard.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Plugin shortcode loads content twice](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/)
 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/#post-2666295)
 * Hi Esmi,
 * No I’m not, my WordPress installation is version 3.5. I didn’t realise this was
   only for 3.2, my apologies.
 * Either way I’ve managed to resolve the issue by not using ‘echo’ in the shortcode
   but using ‘return’ instead.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Plugin shortcode loads content twice](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/)
 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-shortcode-loads-content-into-twice/#post-2666293)
 * I know that this is an old post but I am experiencing the same problem. If anyone
   has any kind of advice on how to resolve this issue it would be greatly appreciated
   if you’d post it in this thread.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Survey And Quiz Tool] [Plugin: WP Survey And Quiz Tool] WPSQT Get the timer working](https://wordpress.org/support/topic/plugin-wp-survey-and-quiz-tool-wpsqt-get-the-timer-working/)
 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-survey-and-quiz-tool-wpsqt-get-the-timer-working/#post-2756588)
 * [@svarry](https://wordpress.org/support/users/svarry/), if the timer is not working
   for you it may be because of the same issue that I mentioned above. After speaking
   to the dev to find out what file this code was in I noticed two spaces after 
   the “}, 1000);” part. Remove those and it should work.
 * The file is located at:
    /wp-content/plugins/wp-survey-and-quiz-tool/lib/Wpsqt/
   Shortcodes.php
 * The line breaks you will want to remove will be around line 295. See code example
   above, where those <p> tags are is where the spaces are.
 * That code above was taken from the source of the page where the timer is meant
   to be on, so you can check the source of your page to see if it if the same thing
   that is breaking your timer.
 * If not then it will most likely be a conflict with another plugin, in which case
   you’ll have to disable them one by one until you find the culprit.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Survey And Quiz Tool] [Plugin: WP Survey And Quiz Tool]: see ranking results](https://wordpress.org/support/topic/plugin-wp-survey-and-quiz-tool-see-ranking-results/)
 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-survey-and-quiz-tool-see-ranking-results/#post-2671035)
 * If you are comfortable in writing some simple PHP and MYSQL you can use something
   like this to get the fastest times. I use this query on one of my sites to display
   the three top contenders with the fastest times in a quiz.
 *     ```
       <?php
       global $wpdb;
       $res = $wpdb->get_results("SELECT DISTINCT(SEC_TO_TIME(timetaken)) AS thetime, person_name FROM wp_wpsqt_all_results ORDER BY thetime ASC LIMIT 0, 3");
       foreach ($res as $rs) {
         echo $rs->thetime . ' ' . $rs->person_name . '\n';
       }
       ?>
       ```
   
 * The code above will show you the three fastest times and the names of the contestants.
 * You could also display the users score amongst those details. To do this paste
   the following into your page:
 *     ```
       <?php
       global $wpdb;
       $res = $wpdb->get_results("SELECT DISTINCT(SEC_TO_TIME(timetaken)) AS thetime, person_name, score, total FROM wp_wpsqt_all_results ORDER BY thetime ASC LIMIT 0, 3");
       foreach ($res as $rs) {
         echo 'Time: ' . $rs->thetime . ' Name: ' . $rs->person_name . ' Score: ' . $rs->score . '/' . $rs->total . '\n';
       }
       ?>
       ```
   
 * Hope this helps.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Survey And Quiz Tool] [Plugin: WP Survey And Quiz Tool] WPSQT Get the timer working](https://wordpress.org/support/topic/plugin-wp-survey-and-quiz-tool-wpsqt-get-the-timer-working/)
 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-survey-and-quiz-tool-wpsqt-get-the-timer-working/#post-2756583)
 * I’ve actually just noticed that in the source code there is a problem with the
   timer script. There are opening and closing paragraph tags at the end, which 
   is what is causing the problem.
 *     ```
       <script type="text/javascript">
       						jQuery(document).ready( function(){
       							var timeSecs = 60;
       							var refreshId = setInterval(function() {
       								if (timeSecs != 0) {
       									timeSecs = timeSecs - 1;
       									var timeMins = timeSecs / 60;
       									timeMins = (timeMins<0?-1:+1)*Math.floor(Math.abs(timeMins)); // Gets rid of the decimal place
       									var timeSecsRem = timeSecs % 60;
       									if (timeMins > 0) {
       										jQuery(".timer").html("Time Left: " + timeMins + " mins and " + timeSecsRem + " seconds");
       									} else {
       										jQuery(".timer").html("Time Left: " + timeSecsRem + " seconds");
       									}
       								} else {
       									jQuery(".quiz").html("Unfortunately you have run out of time for this quiz.");
       									jQuery(".timer").hide();
       								}
       							}, 1000);</p>
       <p>						});
       					</script>
       ```
   
 * Seems like WordPress may be doing this but just to confirm can anyone point me
   to the right file where this code is executed from?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Survey And Quiz Tool] [Plugin: WP Survey And Quiz Tool] WPSQT Get the timer working](https://wordpress.org/support/topic/plugin-wp-survey-and-quiz-tool-wpsqt-get-the-timer-working/)
 *  [psychedelus](https://wordpress.org/support/users/psychedelus/)
 * (@psychedelus)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-survey-and-quiz-tool-wpsqt-get-the-timer-working/#post-2756582)
 * Thanks for the suggestion #ramershengale, unfortunately this did not work for
   me. I disabled all plugins on my site and the timer is still not showing. I guess
   this means that the issue is with the theme.
 * Does anyone have any suggestions as to what could cause a conflict with the timer?
   Knowing this could greatly help in finding a fix for the issue. Could it be due
   to a change in the latest version of WordPress (3.4.2)?

Viewing 9 replies - 1 through 9 (of 9 total)