Solved

Converting Javascripts into Wordpress plugins

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

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.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
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.

724 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