Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Converting Javascripts into Wordpress plugins

Posted on 2011-03-09
5
Medium Priority
?
492 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
jeremyjared74 earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

664 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