Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 493
  • Last Modified:

Converting Javascripts into Wordpress plugins

Well i want to expand towards developing wordpress plugins and i want to start off with ease at beginning.

so first of all i want to convert simple javascripts into wordpress plugins.

Any reference or ideas on creating wordpress plugins from javascripts? Did a heavy search over google, only then came over here... :(
0
herit02
Asked:
herit02
  • 3
  • 2
1 Solution
 
jeremyjared74Commented:
The tutorial from Nettuts is a good place to learn the basics:
http://net.tutsplus.com/tutorials/wordpress/creating-a-custom-wordpress-plugin-from-scratch/

Another way is to look at other plug-ins to see how they are structured. The plug-in that everyone deletes right out of the box "Hello Dolly", is one of the most basic ones. I believe that is why it comes packaged with WordPress. I think it is meant to be a building block for uses her want to dabble in creating their own. You could just add to it, and test you code using it. You know it will register in the plug-ins, so you will know instantly if you code is effective or now. I have been wanting to start playing around using this method, but I just can't seem to find enough hours in the day.

Here are a few more good resources:
This one talks about integrating JavaScriot/jQuery into WordPress plug-ins.
This is more of a discussion than a tutorial, but it has some useful info:
This one walks you through addin JavaScript to a plug-in to add a Bio section to a WordPress theme:

That should get you started, Good Luck!
0
 
herit02Author Commented:
@jeremyjared, out of all the links you provided, this link (
http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/ )
matched for me perfectly as it not only had basic things but also some conditions to trigger function only if shortcode is included in the post which makes it even more flexible for me.

thanks again!
0
 
herit02Author Commented:
:)
0
 
jeremyjared74Commented:
You're welcome. I'd like to know how it turns out. Like I said earlier I want to check out building a plug-in, but I have to choose my projects sparingly. I've learned having a full time job and a 1/2 time freelance, 1/4 time continuous student, well you can do the math...
I can't seem to work it in.
0
 
herit02Author Commented:
well i assume you really have a very hectic schedule.
but nevertheless its cool whenever you spare time for it...
i just spend 3 hours on your links yesterday and guess how much fun i had playing with these toys. and initially it is not just easy, but very enjoyable to see my own name in plugin's section in your wordpress admin
some noobs can't even paste some basic hacks/tricks/JScripts into functions.php and therefore plugin developers just format it and convert it to plugin. which not only gives them reputation, but also a good portfolio to display to the clients.

btw i am eagerly waiting to see some of your works b.caz i know you are gonna do something very outstanding the same way as you are doing on E-E.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now