Articles Tagged 'php'

Customize WordPress With Four Easy-To-Add Scripts

 Posted in: WordPressWritten by: Rochester OliveiraDecember 19th, 2011

Probably at some point you wanted to customize things in WordPress instead of using the "default" for every page. Like a pretty image gallery in a few posts, a syntax highlighter for your tutorial category or a demo page for your tutorials. Well all those things break the standard, so people will see it as "impossible" to change. Should you put the following scripts on every page? No. That would be a waste of resources, since you'll load a lot of useful things many times. Should you put them directly in your content (dear lord, please, don't ever do this)? This would be really hard to maintain, since every simple change would be a big waste of time because you would have to make those changes post by post. Let's see a couple of ways to get this easily working.

Customize WordPress With Four Easy-To-Add Scripts

 Read more

Getting Smarter Code with PHP Variable Variables and Variable Functions

 Posted in: CodingPHPTutorialsWritten by: Rochester OliveiraJune 10th, 2011

Oh, variables. Who doesn't love them? They are such nice guys, you know. When you need something, just call $something and your value is there. But something really cool is that you actually don't need the name of the variable. You can use other variables to access a value of one variable. For example, let's say you have two variables $jude = "hey" and $hey = "jude". If you echo $$jude $$hey(yeah, double "$") your output will be "hey jude". But, as you might be thinking it is not just about variables. You can name dynamic functions, methods, arrays, and almost anything you want to. This time we will see some uses for it, with arrays, functions, classes and how this technique can help you write better code. So, let's rock!

Getting Smarter Code with PHP Variable Variables and Variable Functions

 Read more

WordPress Wp_Nav_Menu with Icons and Active Item Highlight

WordPress is a great tool, for sure, but as many other CMS' it drives us into an "all standard" way of thinking, that is, you design things thinking that every element has to be identical to his brothers, same color, same style, same size. How many WordPress sites with pretty menu icons do you know (with wp_nav_menu, not "static" menus)?  How many of them use a different color for some categories? Well, these little things make a big difference. This time we will learn a simple way to customize our WordPress menu, without losing its wonderful admin options. We will be doing: •   Home link in our wp_nav_menu that always gets current blog url •   Customize each menu item as you want •   Put pretty icons in our menu •   Active item highlight From now on, it is useful to have a little understanding about what wp_nav_menu is, and if you have a blank WordPress install, it is time to play with it ;) So, let's rock!

WordPress Wp_Nav_Menu with Icons and Active Item Highlight

 Read more

WordPress Plugin Development – Relate Posts as a Series – Part 1/2

 Posted in: CodingTutorialsWritten by: Rochester OliveiraMay 11th, 2011

Today our task is to create a simple WordPress plugin to relate posts as a series. With this, when you  create a new post it is automatically listed in your series, so if a user is reading any post of the series he can jump to others, even posts created after that one he is reading. It may seem a bit too simple, but with this we can learn a lot about: 1. Custom post types 2. Custom fields 3. Metaboxes 4. Actions 5. Shortcodes 6. Basic plugin structure for WordPress 7. Little bit of jQuery So, let's rock!

WordPress Plugin Development – Relate Posts as a Series – Part 1/2

 Read more

Creating Your Own CMS Part 3 – Advanced Features

 Posted in: CodingPHPTutorialsWritten by: Brad BillmanApril 4th, 2011

If you have been following along you should have a simple CMS built that has a place to securely log in and you should be able to create some users and access levels for your site. If you are creating a CMS you will need more than just to be able to log in and create users so here in part three we will get into a few of the things that you can do with your own CMS. A few people have really knocked the idea of creating your own CMS which is fine because we can all have our own opinions so I will just tell you all why I personally like to use my own.

Creating Your Own CMS Part 3 – Advanced Features

 Read more

Creating Your Own CMS Part 2 – Access Levels & Administrators

Alright if you have read the first article that we worked on a while ago "Creating Your Own CMS Part 1 - Secure Login" then you should have some sort of CMS design with a secure login. Now that we can login to our CMS we will need to have an easy way to add an administrator and of course give them access to only certain parts of the CMS. But first one little thing that I decided to add in to make it easy for you to login without having to manually add an entry in phpmyadmin was to make the first login attempt double as a create user.

Creating Your Own CMS Part 2 – Access Levels & Administrators

 Read more

PHP for Beginners: Part 4 – PHP With Forms and Final Notes

In the last part, I showed you how to use PHP to send e-mail messages. In this part I will continue this and also show you how to use PHP and forms together to make your PHP scripts more useful.

PHP for Beginners: Part 4 – PHP With Forms and Final Notes

 Read more

PHP for Beginners: Part 3 – Email with PHP

 Posted in: TutorialsWritten by: Nick PlekhanovNovember 23rd, 2010

Today We are continuing our PHP series. One of the major uses of a server side scripting language is to provide a way of sending e-mail from the server and, in particular, to take form input and output it to an e-mail address. In this part I will show you how to send e-mail messages using PHP.

PHP for Beginners: Part 3 – Email with PHP

 Read more

PHP for Beginners: Part 2 – Making Decisions and Loops

 Posted in: TutorialsWritten by: Nick PlekhanovNovember 16th, 2010

Over the past part I have shown you the basics of text in PHP and how to store it as variables. In this part of the tutorial I will show you firstly how to use if statements to make decisions in your scripts. Next, I am going to show you how to use another important part of PHP, loops.

PHP for Beginners: Part 2 – Making Decisions and Loops

 Read more

PHP for Beginners: Part 1 – Introduction & Displaying Information

 Posted in: TutorialsWeb DesignWritten by: Nick PlekhanovNovember 11th, 2010

Up until recently, scripting on the Internet was something which very few people even attempted, let alone mastered. Recently though, more and more people have been building their own websites and scripting languages have become more important. Because of this, scripting languages are becoming easier to learn and PHP is one of the easiest and most powerful yet.

PHP for Beginners: Part 1 – Introduction & Displaying Information

 Read more

Page: 1 of 4

   
US