WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. wormeyman
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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.

    http://stackoverflow.com/questions/10807200/jquery-uncaught-typeerror-property-of-object-object-window-is-not-a-funct

    ^ 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").change(function(){
                $("#synchi_theme_preview").attr('src','<?php echo WP_PLUGIN_URL; ?>/synchi/img/theme-previews/' + $(this).val() + '.png');
            });
            $("#synchi_theme").change();
        });
    
    </script>
  5. mdjekic
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.