Solved

Converting Javascripts into Wordpress plugins

Posted on 2011-03-09
5
483 Views
Last Modified: 2012-05-11
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
Comment
Question by:herit02
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
jeremyjared74 earned 500 total points
ID: 35088337
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
 
LVL 3

Author Comment

by:herit02
ID: 35088626
@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
 
LVL 3

Author Closing Comment

by:herit02
ID: 35088632
:)
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 35088912
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
 
LVL 3

Author Comment

by:herit02
ID: 35092867
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

First things first, I say this in many of my articles, but in this one you can take it as fact. I am not in any way an expert when it comes to WordPress. I am strictly a user. I don't know the programming languages involved, and although I could pro…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now