WordPress.org

Support

Support » Plugins and Hacks » Meteor Slides » Meteor Slide and Qtranslate

Meteor Slide and Qtranslate

  • Hi – beautiful plugin but I am tearing my hair out trying to get it working with Qtranslate (am using Genesis Framework)

    This is my fault as I don’t know enough and not yours!

    So far I have added all the slides which contain text graphics and have 2 Slideshows named for each language but now am stuck. I want to use any php code that calls the slider in a widget and have installed the PHP Text Widget in readiness for this.

    Any help would be most gratefully received

    Best…
    Lynne

    http://wordpress.org/extend/plugins/meteor-slides/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Amended code as mentioned on Twitter – this does not throw an error but I just get 3 duplicate slides stacked *Ithink*

    Have fiddled about with it so much that my memory is clouded!

    <?php
    $url = htmlspecialchars($_SERVER['HTTP_REFERER']);
    if ($_GET['lang']=='') { meteor_slideshow(slider-english);
    }
    
    if ($_GET['lang']=='en') { meteor_slideshow(skills);
    }
    elseif($_GET['lang']=='cy'){ meteor_slideshow(skills-cymraeg);
    }
    
    if ($_GET['lang']=='en') { meteor_slideshow(confidence);
    }
    elseif($_GET['lang']=='cy'){ meteor_slideshow(confidence-cymraeg);
    }
    
    if ($_GET['lang']=='en') { meteor_slideshow(employer);
    }
    elseif($_GET['lang']=='cy'){ meteor_slideshow(employer-cymraeg);
    }
    
    ?>
    Plugin Author Josh Leuze

    @jleuze

    Hi Lynne, I’m not sure exactly what the conditionals for the qTranslate plugin, those look correct but I’m not sure if the “url” variable needs to be set since it isn’t being used in there. For further reference there is a list of the functions that can be used for qTranslate here.

    The Meteor Slides template tags though aren’t quite right. The meteor_slideshow function accepts two arguments, so the slideshow slug can be added straight to the function like that. Here’s an examplee that would load a slideshow with the slug of “robot”:

    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "robots", "" ); } ?>

    Another issue is that it looks like you are trying to load multiple slideshows on the same page, is that right? I think maybe you want to check the language and the page, and load a specific slideshow depending on what page it is and what language it is in.

    Try using this code instead to start with and see if you can get it working:

    <?php if( qtrans_getLanguage() == 'en' ) {
    	if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "skills", "" ); }
    } elseif( qtrans_getLanguage() == 'cy' ) {
    	if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "skills-cymraeg", "" ); }
    } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Meteor Slide and Qtranslate’ is closed to new replies.
Skip to toolbar