The MU forums have moved to WordPress.org

Anarchy Media Plugin (70 posts)

  1. zeug
    Member
    Posted 16 years ago #

    The quicktags would be quite simple, just calling the js that already handles my strip/embed regex hackery, the trick for me though is doing it without having to edit quicktags.js but via a wp plugin hook. There are a few around including buttonsnap and I've been meaning to get onto it...

    As for other side of the planet, no, not Europe. If you look at the ground you're standing on I'm about 8000 miles beneath that, through the core and out onto the 'other side of the planet' in Perth, Western Australia.

  2. agapecatholic
    Member
    Posted 16 years ago #

    Any chance of getting this to work with the deans_fckeditor plugin?

  3. zeug
    Member
    Posted 16 years ago #

    "deans_fckeditor"? Gods no, although quicktags are now working for the 'code' editor in the AMP 2.0 beta version for Mu so you can still have the best of both worlds.

    I do like fckeditor though, and was using a couple of plugins in wp 1.5 that replaced the default editor ... but I can't really support 3rd party editors as they always get buggy as WordPress develops, then drop away when the devs can't be bothered keeping up whereas the default tmce editor is here to stay.

  4. agapecatholic
    Member
    Posted 16 years ago #

    Thanks for the reply zeug. I didn't expect you to support fckeditor but it never hurts to ask.

  5. qza
    Member
    Posted 16 years ago #

    Thank you zeug for great plugin. But embed video doesn't work on my site :(
    It's working OK with embed flash, but YouTube and Google video seems to be not working.
    In this page:
    http://movie.delhii.net/2007/02/01/5/
    source code looks like this:
    <script type="text/javascript">
    var flashObject = new FlashObject("<a class","fm_<a class","765","630","6","","","","","");
    flashObject.addParam("wmode", "transparent");
    flashObject.write("fo_targ_<a class395413469");
    </script>

    There isn't any video link in javascript.

    Code in Write Post looks like this:
    [kml_flashembed movie="http://www.youtube.com/v/RnQz4CP6_qU" width="765" height="630" wmode="transparent" /]

    Can you please look into it? Thank you in advance.

    PS: I installed AMP 2.0 beta in wpmu 1.2

  6. zeug
    Member
    Posted 16 years ago #

    Ok, so flash swf embeds are working which means SWFObject js is loading fine ... I'd guess the urchinTracker js is probably stealing the youtube and google links. Can you disable that script and test? Make sure to refresh your cache.

  7. qza
    Member
    Posted 16 years ago #

    Thank you very much zeug :) That solved the problem.

  8. johnol
    Member
    Posted 16 years ago #

    Zeug, this is a fantastic work. It was functioning perfectly well for me on my wp-mu platform but then it died.

    The only thing I did was enable the wp-mu caching. (I edited wp-settings.php and put a define('ENABLE_CACHE', true); call just above the wp_cache_init(); call. I also created the cache directory under the wp-content directory. That's it. My site load speeds improved dramatically but suddenly your entire plugin stopped working. (The editor icons would still appear but they wouldn't do anything. Likewise, video that used to be properly embedded just shows up as a link now.)

    I really need the performance boost of running with the cache enabled. Any ideas on how to fix this? Your help is appreciated!

  9. Farms2
    Member
    Posted 16 years ago #

    I just did the same with the 1.1.1 and teh latest Anarchy media player.

    Well, not quite the same - I put define('ENABLE_CACHE', true); into wp-settings (like you) and wp-config as I still can't figure out which one I'm supposed to put it in :)

    Any hints?

    Anyway, Anarchy is still working as brilliantly as ever for me.

    Cheers, James

  10. zeug
    Member
    Posted 16 years ago #

    Same here on my test Mu, I always enable cache in wp-settings and just updated to 1.1.1 with no problems. You could perhaps delete your Mu cache and refresh your browser, although from the sounds of it the javascript isn't loading at all, either in the editor or on site.

    What version of amp are you using? Maybe update to the 2.0 beta if you haven't done already as that's the one I'm building on mu at the moment. And is this happening on all the blogs or just home? All browsers or are you using IE7?

  11. jeppe
    Member
    Posted 16 years ago #

    Just a quick note about including wp-config.php in the beginning of the plugin.. instead of the loop to go back in dirs you could just use

    require_once(dirname(__FILE__)."/../../../wp-config.php");
  12. zeug
    Member
    Posted 16 years ago #

    Yeh was using that then used the include loop function from buttonsnap but will probably go back to dirname(__FILE__) ... 6 of one and a half dozen of the other ... unless you've got openbase_dir restrictions server side!

  13. jeppe
    Member
    Posted 16 years ago #

    So when do we get a new beta for WPMu? :-)

  14. zeug
    Member
    Posted 16 years ago #

    Ummm ... after I've crashed for one more day ... and after the mining company website build over the weekend that will pay for my rent and food ... then after the sessional lecture I give on Tuesday and the assessments are done ... I'll port the edits from the updated AMP for WP to WPMu ... unless I need to crash for a couple more days cos my candles burnt from both ends and melted away. Hopefully it should be up online by the following weekend after this one.

    Gods I need a holiday ... on a beach somewhere nice and quiet ... maybe with wireless internet, my powerbook and a dacquiri ... I like dacquiris =)

  15. gumdrop
    Member
    Posted 16 years ago #

    OK, who's gonna send zeug a dacquiris?

  16. johnol
    Member
    Posted 16 years ago #

    I apologize for taking time to get back here - I am running the beta 2 release of Anarchy. I did try to clear the cache. I tried to disable caching. It seems nothing will work. Once I turned caching on I was toast and it seems there is no going back. It broke Anarchy on all blogs running on WP MU and it stopped working in Firefox, IE6/IE7, and Opera.

  17. zeug
    Member
    Posted 16 years ago #

    What's broke exactly? Does anarchy.js load in the headers? You get an options page? Editor buttons there but no anarchy_videoquicktags.js?

    Did you delete your cache files? What version of Mu are you running? And ... got a url to check? I can't see how enabling cache is going to break anything apart from caching.

  18. zeug
    Member
    Posted 16 years ago #

    Just uploaded an update to the AMP 2.0 beta for Mu. This one rolls in all the kmil flashembed and SWFObject updates plus a few fixes for things like:

    1. Mouseover text on rte buttons
    2. Embeds in RSS feeds
    3. Path problems with openbase_dir
    4. xhtml validation ... mostly ... works on some sites and not others??

    Custom images for QT also added. Now if there's an image in the same directory as your vid with filename mymovie.mov.jpg, that will load as the poster image. Works out of the box for blip.tv

    Also added a sitewide option to turn off the users option page (in sitewide config at top of config.php) cos a mu admin requested it.

    Ummmm ... and some other stuff. Hopefully it don't break nothing!

  19. Farms2
    Member
    Posted 16 years ago #

    Yum! I'll let you know :)

    Many thanx

  20. Farms2
    Member
    Posted 16 years ago #

    Looking great so far - coupla quick ones:

    -The options page produces this error:

    Parse error: syntax error, unexpected T_IF in /home/learnerb/public_html/wp-content/mu-plugins/anarchy_media/anarchy-options.php on line 1

    -Does the single button support straight .swf embeds? My users are kinda fond of that!

    Cheers, James

  21. zeug
    Member
    Posted 16 years ago #

    Parse error: syntax error, unexpected T_IF in /home/learnerb/public_html/wp-content/ mu-plugins/anarchy_media/anarchy-options.php on line 1

    That sounds familiar, but maybe it's a cache problem first up? The only difference between the new and previous beta options file are 2 html edits, nothing's changed in the php... actually if the previous config.php is cached then you could get a broken if statement on trying to load the options page to admin_head.

    Does the single button support straight .swf embeds? My users are kinda fond of that!

    Same deal as before, use the flash button for swf's and the 'A' button for all the other media links and youtube etc url's. Does this mean your editor has gone flaky and doesn't show the flash button?

    Again could be a cache problem as I've kinda radically edited the tinyMCE external buttons and you should replace everything in the old beta with the new.

  22. Farms2
    Member
    Posted 16 years ago #

    Hmmm... the previous version didn't have an Options menu... probably about a month old?

    We are running cache so that could be the issue, although I did a delete and clean install on this.

    Flash button hasn't automatically show up either... dontcha just love tinyMCE :)

  23. zeug
    Member
    Posted 16 years ago #

    So you were using the ancient 165 AMP on Mu 1.1.1? That's from about November ... and it worked?? ... ishoos, we've all got ishoos!

    And yeh, tmce is an ongoing nightmare, the latest version in Wp 2.1.2 has a realpath bug that kills the external buttons for all the plugins like vipers, image manager and anarchy, and sometimes the entire editor depending on your php/server combo. It's a fast moving target but the fix is in the pipeline for WP 2.1.3 ...

    One thing you could try is in line 28 of anarchy_media_player.php add a "bold" plugin as in:

    function anarchy_mce_plugins($plugins) {
    	array_push($plugins, "-anarchyswf","-anarchydcr","-anarchymedia","bold");
    	return $plugins;
    }

    Just had to add that back to my subdirectory Mu on OSX Server ... don't ask me why it might work cos I don't know! Something to do with realpath only returning false on BSD and mebbe Fedora systems if the last plugin call is missing ... or something. Apparently fixed in the newest version of tmce ... which hopefully won't introduce another round of bug swatting.

    How are you going with the magical disappearing options page?

  24. zeug
    Member
    Posted 16 years ago #

    Actually here's a thread on the options page problem. Looks like an unzip/upload error messing with line breaks in anarchy_options.php ...

  25. Farms2
    Member
    Posted 16 years ago #

    Should search a bit more then... tra la la :)

    Tried upload in ASCII and Binary but that particular file was still stuffed, so opened it up on the server and manually replaced it with teh local code and we're in business - lord only knows why!

  26. zeug
    Member
    Posted 16 years ago #

    Yeh, and why that particular file? I'll have a good look at my master copy and see if I can find any problems ... cept I can't replicate the problem here.

    So was the Flash button just a caching glitch?

  27. Farms2
    Member
    Posted 16 years ago #

    Yep, it's all oh so good now :)

    Great upgrade btw - those options rock.

  28. suleiman
    Member
    Posted 16 years ago #

    zeug, for some reason this latest release breaks on some of my themes.

    Take a look at yaser.hadithuna.com. The flash embed code is displayed instead of the actual video!

  29. suleiman
    Member
    Posted 16 years ago #

    I should be more clear. The postswith media content appear correctly if you scroll down on the page you'll be able to see that.

    But in K2 if you use the scrolling archives to go back through previous articles then the flash embed code is displayed.

  30. zeug
    Member
    Posted 16 years ago #

    Hi Suleiman,

    not sure what the problem is here as I can't see it. The archives page for yaser.hadithuna.com/2007/02/ displays youtube for me... Is this still a problem or was it a caching thing?

About this Topic