Vincent_Khoo
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Cool Video Gallery] Issues with CVG Ver 1.8I solved the problem myself! Just to share the code
I added
jwplayer("<?php echo 'mediaplayer_gallery_'.$gallery_id; ?>").onComplete(function() { jwplayer("<?php echo 'mediaplayer_gallery_'.$gallery_id; ?>").playlistNext(); });
into the playlist script area, making it look like this
jQuery(document).ready(function(){ jwplayer("<?php echo 'mediaplayer_gallery_'.$gallery_id; ?>").setup({ 'name': "<?php echo 'playerID_Gallery'.$gallery_id;?>", 'flashplayer': "<?php echo $this->plugin_url . "cvg-player/" . $player_swf; ?>", 'id': "<?php echo 'playerID_Gallery'.$gallery_id; ?>", 'playlistfile': "<?php echo $playlist_xml; ?>", 'height': "<?php echo $full_player_height; ?>", 'width': parseInt(<?php echo $full_player_width; ?>), 'playlist.position': "<?php echo $options_player['cvgplayer_playlist']; ?>", 'playlist.size': parseInt(<?php echo $panel_width; ?>), 'autostart': "<?php echo $autoplay; ?>", 'controlbar': "<?php echo $options_player['cvgplayer_controlbar']; ?>", 'volume': "<?php echo $options_player['cvgplayer_volume']; ?>", 'mute': "<?php echo $mute; ?>", 'stretching': "<?php echo $options_player['cvgplayer_stretching']; ?>", 'skin': "<?php echo $this->video_player_url . 'skins/' . $options_player['cvgplayer_skin'] . '-skin/' . $options_player['cvgplayer_skin'] . '.xml' ?>" }); jwplayer("<?php echo 'mediaplayer_gallery_'.$gallery_id; ?>").onComplete(function() { jwplayer("<?php echo 'mediaplayer_gallery_'.$gallery_id; ?>").playlistNext(); }); });
Also want to say thanks for the great plugin, hope you can include this piece of code in your next version
Forum: Plugins
In reply to: [Cool Video Gallery] Issues with CVG Ver 1.8I have added a list videos, but after completing the first video, the next video does not play. Help please
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Add drop down list of recent postsThanks for the code
Just want to share that I have modified the code so that it could be used within the blog pages without affecting the main loop
I also added in parameters like name and max width
wpcf7_add_shortcode('postdropdown', 'createbox', true); function createbox($tag){ $name = $tag['name']; $options = (array) $tag['options']; $values = (array) $tag['values']; foreach ($options as $option) { if (preg_match('%^(\d*)[/x](\d*)$%i', $option, $matches)) { $size_att = (int) $matches[1]; $maxlen_att = (int) $matches[2]; } } $args = array('category_name' => 'property-list' ); $output = "<select name='".$name."' id='".$name."' onchange='document.getElementById(\"" . $name ."\").value=this.value;' style='min-width:".$maxlen_att."px; max-width:".$maxlen_att."px; border:none; margin-top: 5px; margin-bottom:5px;'><option></option>"; $query2 = new WP_Query( $args ); // The 2nd Loop while( $query2->have_posts()): $query2->next_post(); $output .= "<option value='$title'>".get_the_title( $query2->post->ID )."</option>"; endwhile; $output .= "</select>"; return $output; }
So the shortcode will become [postdropdown post_selection /100] and mailtemplate can be [post_selection]
Viewing 3 replies - 1 through 3 (of 3 total)