Archive for the “php” Category

Tonight I will be pushing to the development SVN a beta preview of the 2.1 release.

Here are some of the changes:

Poor tags, we barely knew them…

GOODBYE! inpost tags, (sort of), configuration will no longer be handled using the inpost tags, the old tag structure will be retired in favor of an anchor to place the player in your content [FLOWPLAYER], configuration of the player will now be handled by an admin menu box.

That’s quite a list you’ve got there…

(basic) Playlists support has been added, this is configurable from the admin menu for the post

Dude, where’s your config file?

The saiweb_wpfp.conf file has now been removed *gasp*, now reliant in internal wordpress *magic* for the storing of the plugin config.

Your media is a great big canvas, and you should throw all the paint you can on it

Fixed a bug with the canvas colour settings

Is that a logo in your pocket, or are you just pleased to see me?

The commercial version of flowplayer will now only be used if a license key is specified, the free version will now be used if no key is specified which has a reduced logo branding.

I Once Was Blind, But Now I See

Player embed causing issues with some navigation menus, this should be resolved with the wmode setting.

Details of how to get the preview version and install it along with screen casts of the new menus (time allowing) will be added to this post once everything is committed to subversion.

UPDATE: 15/04/2009 Got my hands on flowplayer 3.1 code is around 60% finished, went for a complete re-write.

Tags: , , ,

Comments 4 Comments »

An example of getting the current page / post ID, identifying whether the current item is a page or a post, and then appending the results to the content.

All from within a plugin.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?PHP
/*
Plugin Name: Get Page / Post ID using a plugin by D.Busby Saiweb.co.uk
Plugin URI: http://saiweb.co.uk
Description: Identifies the current page/post and appends text to the content
Version: 0.1
Author: David Busby
Author URI: http://saiweb.co.uk
*/


//WP hooks start
add_filter('the_content', 'post_page');
//WP hooks end

function post_page($content){
    global $post; //wordpress post global object
    if($post->post_type == 'page'){
        $content .= '<br /> This item is a page and the ID is: '.$post->ID;
    } elseif($post->post_type == 'post') {
        $content .= '<br /> This item is a post and the ID is: '.$post->ID;
    }
    return $content;
}
?>

Install the above as a plugin i.e. in wp-content/plugins/test/test.php

Head over to your admin menu and enable the plugin, now each page and post will identify itself as a page or post, and provide it’s ID.

There is a lot available in the $post object for a list add

1
2
3
4
ob_start();
var_dump($post);
$content .= ob_get_contents();
ob_end_clean();

Tags: , , ,

Comments 2 Comments »

The 2.1.0.0 release is due for the end of this month, you can follow it’s progress from the TRAC page here: http://trac.saiweb.co.uk/saiweb/milestone/wordpress-flowplayer%202.1.0.0

At the time of writing this intends to close 9 issues / feature requests.

If you have anything you want to see in the next release please leave a comment, or raise a ticket in the trac system.

Cheers

Buzz

Tags: , ,

Comments No Comments »

Just as a warning and as a poke to say WHY are you not running PHP 5.x yet.

Parsing “” and it seems some multibyte chars to html_entity_decode() in PHP 4.3.10 will cause it to crash, returning random memory contents.

In my case some contents in memory from other sites running on the box were returned.

Tags: ,

Comments No Comments »

This release fixes BUG #23

Tags: , ,

Comments No Comments »

WordPress Flowplayer 2.0.1.3 comes with bug fixes and more features.

  1. RPath not applying to /videos – FIXED
  2. Commercial Support Customer Logo and Link (Dupe of #9)
  3. comments posting over-writing config of player – FIXED
  4. Removal of RPATH config – IMPROVEMENT

This release brings the commercial distribution of Flowplayer allowing for greater customization, it is recommended that you upgrade as soon as possible to fix the bugs in previous 2.x versions.

Tags: , ,

Comments No Comments »

If you are interested in helping to test release 2.0.1.3, check out the current development version here:

1
svn co http://svn.saiweb.co.uk/branches/wordpress-flowplayer/trunk/ /path/to/wp-content/plugins/word-press-flow-player

Tags: , ,

Comments No Comments »

Ah yeh so I forgot to blog about this, 2.0.1.2 of my wordpress plugin is now available, as noted development of this plugin is unaffected by recent events.

2.0.1.3 will be released shortly to amend a minor bug with nonstandard wordpress installs, 2.0.1.2 fixed the loading in of flowplayer and the javascript libs however as Jerry has pointed out here: http://www.saiweb.co.uk/wordpress-flowplayer/comment-page-1#comment-995 this does not extend to wp-content/videos/

As such for the time being as a work around please use the full http://yoursite.com/blog/wp-content/videos path when embedding media.

Tags: ,

Comments No Comments »

2.0.1.2 brings a fix for #15 allowing users to edit the relative path.

As this is currently in testing you can get a copy of this fix here

1
svn export -r 144 http://svn.saiweb.co.uk/branches/wordpress-flowplayer/trunk/flowplayer.php

Tags: , ,

Comments No Comments »

Version 2.0.1.0 is aimed to close 3 enhancements to the plugin including google analytics support.

v2.0.1.0 is due for completion 05/01/09

You can track progress here: http://trac.saiweb.co.uk/saiweb/milestone/wordpress-flowplayer%202.0.1.0

Tags: , ,

Comments 4 Comments »