• I’ve used the Smart YouTube plugin to embed YouTube videos into my blogs. The way I did it is to replace the http:// of the YouTube url with httpv:// as the plugin describes.

    But now I noticed that it’s much easier to just auto-embed the YouTube videos by posting the normal http:// url. I would like to disable the Smart YouTube plugin and convert all those httpv:// back to http://. Is there a good automated way to do that?

    Here’s an example blog post of mine that now has Smart YouTube disabled so there’s just a httpv:// url lingering there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Assuming you’re not a programmer, a simple way would be to:

    1.) Export your database into a textfile.
    2.) Make a backup of the textfile (in case you mess up).
    3.) Open the textfile and use your text-editors Find/Replace feature to replace “httpv:” with “http:”.
    4.) Import the textfile into your database (overwrite existing tables).

    Very simple! You could also just export the posts-table…

    Thread Starter lexfridman

    (@lexfridman)

    Actually, I *am* a programmer with a good level of expertise with php and MySQL. I didn’t really think about how easy it is to just replace the text in the table that contains the posts. I thought that perhaps there was a more standard way of fixing something like that. I wish plugins provided that option upon disabling the plugin.

    Thanks.

    Well, if you *are* a programmer, you should know that you just need to get all table rows, and for each row preg-replace (or similar) the string and then update it ;).

    No, there isn’t a more standard way. Just think about it. How would you do that? It’s just plaintext, hasn’t got anything to do with the plugin. All the plugin does is look for that particular pattern within a post and then produce the corresponding html-output according to its settings.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Rename Smart YouTube's httpv back to http for all posts’ is closed to new replies.