dliem
Forum Replies Created
-
Forum: Plugins
In reply to: SEO Pack breaks query_posts()I’m running wp 2.7.1 and SEO Pack version 1.4.91. and my custom theme uses the cat= parameter (example “cat=3,-37,-6”), and i’m not seeing this issue.
which webhost are you using? last week, my host did a mysql server upgrade and query_posts started acting funky. they changes everything back to the old servers, and it worked fine.
Forum: Requests and Feedback
In reply to: Audio Gallery?I wanted the same thing as you. I threw together a plugin using the XSPF flash player. Please give it a shot, if you’d like. I’d like some feed back.
https://dliem.wordpress.com/2008/10/30/wp-audio-gallery-playlist-v006/
Forum: Fixing WordPress
In reply to: Next and Previous Links in WP2.5 galleryYou will want to use:
<div class="alignleft"><?php previous_image_link() ?></div> <div class="alignright"><?php next_image_link() ?></div>
And example of this can be found in the default theme that comes with wordpress 2.5 in the image.php file.
When linking to attachments in wordpress gallery, it defaults to pulling from image.php. If image.php doesn’t exist it will default to single.php.
Hope this helps.
Forum: Alpha/Beta/RC
In reply to: 2.5 no Thumbnails in Postthanks, all for the info in this post. I found the same problem as gfra. I wasn’t able to insert thumbnails until i disabled “podpress”.
Forum: Fixing WordPress
In reply to: Thumbnail InsertI’m seeing this same issue with 2.5.1.
funny thing is, I have two websites that are both using the same version of wordpress, but it works in one and not the other. Both websites are running off of the same domain host.
Forum: Plugins
In reply to: flowplayer pluginWith the last changes, the plugin worked well for me. I really wanted to have the ability to add my own splash file per movie instance. so I added support/argument to do so.
In the code below you need to specify the call:
[PLAYER=file.flv splash=splash.jpg]hope others might find it useful.
<?php /* Plugin Name: fp4wp Plugin URI: https://renechristen.net Description: Embed FlowPlayer in WordPress. Version: 1.1 Author: Rene Christen Author URI: https://renechristen.net */ ?> <?php $fp4wp_uploads_path = '/wp/wp-content/uploads/movies/'; $fp4wp_plugins_path = '/wp/wp-content/plugins/'; $url = 'https://domain.com'; add_filter('the_content', 'fp4wp_the_content'); function fp4wp_the_content( $content ) { // AUDIO $search = "/\[PLAYER=(.*\.mp3)\]/"; //.mp3 preg_match_all($search, $content, $audio_matches); if (is_array($audio_matches[1])) { foreach ($audio_matches[1] as $filename) { $search = "[PLAYER=".$filename."]"; $replace = fp4wp_audio($filename); $content = str_replace ($search, $replace, $content); } } // VIDEO $search = "/\[PLAYER=(.*) splash=(.*)\]/"; //.mp4,.m4v,.m4a,.mov,.3gp,.flv etc... preg_match_all($search, $content, $video_matches); if (is_array($video_matches[1])) { foreach ($video_matches[1] as $filename) { //echo $filename; $splashname = $video_matches[2][0]; $search = "[PLAYER=".$filename." splash=".$splashname."]"; $replace = fp4wp_video($filename, $splashname); $content = str_replace ($search, $replace, $content); } } return $content; } function fp4wp_audio($filename) { //.mp3 global $fp4wp_uploads_path; global $fp4wp_plugins_path; $string = '<object type="application/x-shockwave-flash" data="' . $fp4wp_plugins_path . 'fp4wp/flowplayer/FlowPlayerLight.swf" width="320" height="22" id="FlowPlayer"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="' . $fp4wp_plugins_path . 'fp4wp/flowplayer/FlowPlayerLight.swf" /> <param name="quality" value="high" /> <param name="scale" value="noScale" /> <param name="wmode" value="transparent" /> <param name="flashvars" value="config={playList:[{ url: \'' . $fp4wp_uploads_path . $filename . '\', },], showPlayListButtons: false, loop: false, autoPlay: false, hideControls: false, showFullScreenButton: false, showMenu: false, showLoopButton: false, initialScale: \'orig\', autoBuffering: false }" /></object>'; return $string; } function fp4wp_video($filename, $splashname) { //.mp4,.m4v,.m4a,.mov,.3gp,.flv etc... global $fp4wp_uploads_path; global $fp4wp_plugins_path; global $url; $string = '<object type="application/x-shockwave-flash" data="' . $fp4wp_plugins_path . 'fp4wp/flowplayer/FlowPlayerLP.swf" width="510" height="426" id="FlowPlayer"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="' . $fp4wp_plugins_path . 'fp4wp/flowplayer/FlowPlayerLP.swf" /> <param name="quality" value="high" /> <param name="scale" value="noScale" /> <param name="wmode" value="transparent" /> <param name="flashvars" value="config={ controlBarBackgroundColor: -1, controlBarGloss: \'none\', controlsOverVideo: \'ease\', bufferBarColor1: \'0x888888\', bufferBarColor2: \'0x888888\', progressBarColor1: \'0x0000ff\', progressBarColor2: \'0x0000ff\', progressBarBorderColor1: -1, progressBarBorderColor2: -1, showPlayListButtons: true, usePlayOverlay: false, autoPlay: false, useSmoothing: true, showMenu: false, showFullScreenButton: false, showVolumeSlider: false, timeDisplayFontColor: \'0x666666\', initialScale: \'fit\', loop: false, playList: [ { url: \'' . $fp4wp_uploads_path . $splashname. '\'}, { url: \'' . $fp4wp_uploads_path . $filename . '\'} ] } " /></object>'; return $string; } ?>
Forum: Fixing WordPress
In reply to: File upload problemI’m seeing the same problem has anyone found the resolution to sirlinux’s issue?