I am very new to writing plugins for wordpress.
I am looking at writing a plugin where a user can upload an image, and a certain style(coded in the back end) is applied to the image. Then i would allow a user to use a short code to input the image.
(the above is just an example of what i need to do… its a little bit more complex than this but im sure i can code it up once i get a start)
So i the shortcode i can do.
Firstly how would i go about creating a admin panel that can upload an image, and store that image in the database.
when ever a user would upload the image the previous image would be overwritten.
If someone has a link to a good tutorial on creating admin panels that would be great. the ones out there are just not working for me.
This is another good place to start: http://codex.wordpress.org/Writing_a_Plugin
This code should get you going :
Add this code to a yourPlugin.php file and place it in your plugin directory. E.g
plugins/yourPlugin/yourPlugin.php
Adding something like the following to your plugin should get you started
Then you would create a file named admin-options.php with the admin page presentation and functionality. Try a “Hello World” in that file just to see it appear.
This code is explained in great detail in the WordPress Codex http://codex.wordpress.org/Adding_Administration_Menus which will also give you some examples of how to properly build out your page in a standard way.
This should be able to get you started:
http://net.tutsplus.com/tutorials/wordpress/how-to-create-a-better-wordpress-options-panel/