WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
Meteor Slide and Qtranslate (3 posts)

  1. mljo
    Member
    Posted 1 year ago #

    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/

  2. mljo
    Member
    Posted 1 year ago #

    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);
    }
    
    ?>
  3. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    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", "" ); }
    } ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic