Per Post Copyright for 1.2+

Tagged


You might find this a pretty extensive hack, depending on your level of experience so be warned.


I have finished the hack to give you post per post control over copyright on your WordPress powered blog.  Honestly the hardest part is adding the entries to the database where needed, other than that you just need to drop in some replacement files.


On the next page are some shots of the modified UI for the post/edit screen, and options-misc:



Here is the new post/edit screen:


new post/edit screen


And here is the new options-misc page:


new options screen



Now if you are not scared away, here is a link to the files you will need, and a step by step guide on how to add fields to your WordPress Database:

  • First fire up your favorite interface to your MySQL DB, my one of choice is phpMyAdmin if I am away from the server room, or CocoaMySQL if I am in the server room. In phpMyAdmin locate the wp_ (or b2, or whatever prefix)posts table and add 1 new field, anywhere really, I always put them at the end of the table:
    1. post_copyright, text, no length/value, no attributes, not null
  • Then go to your options table and insert the following rows:
    1. default_copyright, option type 2, option_can_overide Y, admin user level 8
    2. use_default_copyright, option type 2, option_can_overide Y, admin user level 8
    3. use_copyright_options, option type 2, option_can_overide Y, admin user level 8
  • Next backup the following files: edit-form-advanced.php, options-misc.php, template-functions-post.php, post.php, and functions.php.
  • Then drop in the new versions of the above files located in the copyright folder you DLed and unzipped.
  • Now when you login, you should be able to go to Options>Miscellaneous and find at the bottom Use Copyrighting Features.  Now all you need to do is fill out what you want the default copyright to be, place the function call: where you want the copyright notice to appear and you are golden.

    One note, this option works just like the Geographic Tracking Features, meaning that you can modify the default on a post per post basis when you are writing your entries.

    As always this tutorial and hack are fully supported by me, when I have time, so leave me a comment here and I will try and help you if you are having any problems.