[resolved] Error on line 52 of synchi.php (5 posts)

  1. wormeyman
    Posted 3 years ago #

    Currently it reads:
    $synchi_themes = array('default','ambiance','blackboard','cobalt','eclipse','elegant','erlang-dark','monokai','neat','night','rubyblue','xq-dark');
    However it should be:
    $synchi_themes = array('default','ambiance','blackboard','cobalt','eclipse','elegant','erlang-dark','lesser-dark','monokai','neat','night','rubyblue','xq-dark');

    As Synchi is missing the lesser-dark theme, unless it was removed for some reason.

    Also for me the code preview does not show the preview images

  2. mdjekic
    Plugin Author

    Posted 3 years ago #

    Hi, the missing theme will be fixed in the next update - Synchi 4.6 - that will happen in a few days / weeks.

    Can you please check Synchi version - the image preview is available since Synchi 4.4 - and please send me a screenshot if it is not working.

    Tnx :)

  3. wormeyman
    Posted 3 years ago #

    Yes i have Synchi 4.5 on DreamHost, i'm looking forward to 4.6 :D. I've also customized my own theme it would be awesome (and time consuming for you i know) to have an area where we could paste in our own CSS for the styling.

  4. wormeyman
    Posted 3 years ago #

    Uncaught TypeError: Property '$' of object [object Window] is not a function

    That's the error i get in the chrome console relating to changing the image function.


    ^ does that help?

    Basically i changed settings .php line 17 to jQuery(document).ready(function ($) {
    instead of $(function(){

    And the image switcher works!

    So line 15-25 in settings.php now looks like:

    <script type="text/javascript">
    //    $(function(){
    jQuery(document).ready(function ($) {
                $("#synchi_theme_preview").attr('src','<?php echo WP_PLUGIN_URL; ?>/synchi/img/theme-previews/' + $(this).val() + '.png');
  5. mdjekic
    Plugin Author

    Posted 3 years ago #

    Hi, I've noticed this earlier and fixed it. Please wait for the next update :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Synchi
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.