Posts Tagged 'PHP'

Multiple Users – Access Twitter 1.1 API with Oauth Script

Primarily the focus on this tutorial is to display your cached tweets for 2 users using PHP and OAuth on your website. We will be accessing the secure Twitter 1.1 API with PHP by parsing both json files and merging them into a single file to cache and store on your server. This is a follow up from Display Your Cached Tweets Using PHP and OAuth which is recommended for a single twitter user.

Read More…

Display Your Cached Tweets Using PHP and OAuth

Primarily the focus on this tutorial is to display your cached tweets using PHP and OAuth on your website. We will be accessing the secure Twitter 1.1 API with PHP by parsing and caching the Json file to store on your server. It may seem a lot of code just to display your latest tweets on your website but the benefits are that you can style it to your own taste with a little CSS and caching the Json file will not add extra load on the Twitter API. For WordPress users you should use WordPress – Display your Cached Tweets using PHP and OAuth or my new plugin.

Read More…

Display WordPress Posts as a News Ticker

The following tutorial will display your latest posts in a news ticker format. The code is basically the same as my popular post Display Your Latest Posts on a Static Page except that the output is in a unordered list for the jQuery news ticker to work. This tutorial is meant for non WordPress websites to access their WordPress powered blog. To add a news ticker to your WordPress powered blog to display your latest posts try this tutorial. To add a news ticker to your WordPress blog with external RSS feeds try this tutorial.

Read More…

WordPress – Display your Cached Tweets using PHP and OAuth

Primarily the focus on this tutorial is to display your cached tweets using PHP and OAuth on your WordPress website. We will be accessing the secure Twitter 1.1 API with PHP by parsing and caching the Json file using the WordPress API. It may seem a lot of code just to display your latest tweets on your website but the benefits are that you can style it to the taste of your theme with a little CSS and caching the Json file will not add extra load on the Twitter API.

New Update. I have packaged all of the features and more into a WP plugin. Please remember to remove any of the code used from this post before installing the plugin. Check out WOW-Twitter.

Read More…

Display WordPress Posts on another WordPress Blog

Following on from the post Display Your WordPress Recent Posts on a Static Page which was used to display your WordPress posts on a non-WP website on the same server. I have had several people contacting me on how to display WordPress posts on another WordPress blog. This tutorial will show you how to display your posts, associated post thumbnail images and a snippet of the content from one blog to another by fetching the data from your RSS feed using the SimplePie RSS parser which is included in the WordPress installation.

Read More…

Integrate WP Single Post Navigation into your WordPress Theme

This tutorial shows you how to integrate the WP Single Post Navigation into your theme without using the plugin. I initially attempted to use the plugin and for some reason it didn’t work on my custom child theme based on TwentyEleven so I decided to hard code it into my theme by adding it to my functions.php. I will show you two methods, one to display the default WordPress single post navigation and one to display how to reverse the links for a book like affect.

Read More…

PHP and jQuery checkbox array with a hint of Jquery UI

I have been learning jQuery alongside PHP to help with my event manager project. Here is a tutorial on how to get the values of a checkbox array, post it via a jQuery Ajax call and subsequently delete the values from a MYSQL database. This tutorial also makes use of the jQuery UI which we will use to display our dialogs.

Read More…

Getting to grips with PHP Radio Buttons

Following on from getting to grips with PHP Checkboxes I decided to write a little tutorial on radio buttons. As you know radio buttons can only have 1 state either on or off and only one can be selected at any one time. Here is a simple tutorial on how to get data from a database, select the radio button, get data from the form and update the database. If you have previously read and completed the setup procedure the process is the same so you may want to go straight to the code.

Read More…