Solved

Converting Javascripts into Wordpress plugins

Posted on 2011-03-09
5
487 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
htacces issue 2 64
Wordpress update causing pages to crash 1 36
WORDPRESS: Does wp Log excessive Http requests by a user? 1 33
wordpress display sub menu only when click 12 38
What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

777 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