Browsing articles in "PHP"
4
Jan

MooHover – MooTools 1.2 hover buttons

MooHover is a MooTools 1.2 class that enhances regular links and form buttons with hover effect transition between two different images, giving a flash-like aspect to links and/or button and submit form inputs.

Requirement

To use this script, download MooTools 1.2 Core.

Demo

Download

4
Jan

jQuery Accordion Widget with CSS Sprites

jQuery Accordion Widget with CSS Sprites

There are four buttons on this example, each of which has three states. That would normally be 12 images (thus 12 server requests), but thanks to the CSS sprites technique it is only one. The technique is demonstrated practically in the form of an accordion widget.

Demo

Download

4
Jan

jQuery – Start/Stop Slider

This is a jQuery based slider which auto-detects the number of “slides”. There are multiple animations per slide, which auto-plays, but has a start/stop button. Very easy to adapt.

jQuery - Start/Stop Slider

Demo

Download

1
Jan

LightForm – Free Ajax/ PHP Contact Form

LightForm - Free Ajax/PHP Contact Form

A Free Ajax/PHP Contact Form with validations.

Website: http://web-kreation.com/demos/LightForm/

Demo: http://web-kreation.com/demos/LightForm/

Download: http://web-kreation.com/?dl_id=8

1
Jan

Flip! – A jQuery plugin

Flip! - A jQuery plugin

Flip is a plugin for jquery that will flip your elements in four directions.

Compatibility: Firefox 2+, IE 6+, Safari, Google Chrome

Website: http://lab.smashup.it

Demo: http://lab.smashup.it/flip/

Download: http://lab.smashup.it/flip/files/jquery.flip-0.4.1.zip

31
Dec

jQuery Image Slider: Agile Carousel

Agile Carousel is a feature-rich jQuery plugin for creating attractive image sliders.

With a bunch of options to customize the slider, and it can be used with or without jQuery UI for more effects, the plugin provides total control.

Controls:

  • Prev-next button options
  • Enable-disable slide captions
  • Effects used, delays
  • Use of watermarks (text)
  • and more…

Website: http://code.google.com/p/agile-carousel/
Demo: http://www.5bosses.com/examples/agile_carousel/full_…
Download: http://code.google.com/p/agile-carousel/downloads/list

30
Dec

Simple Directory Listing – A PHP File Manager

Simple Directory Listing is a PHP script that works as an online file manager.

It is only one file, just upload & use, and requires PHP to run.

The script can work in read-only or full mode and can be limited to manage a folder.

Besides the functions of a standard file manager script, it also has a FTP layer that makes it possible to connect to remote hosts.

And, the script has RSS support.

Such scripts are very useful when you want to make “files of a project”  reachable by customers where FTP usage may be limited or seem advanced from the eyes of the customer.

Requirements: PHP 4+
Website: http://simpledirectorylisting.net/
Demo: http://simpledirectorylisting.net/demo

26
Dec

8 Useful WordPress SQL Hacks

Over the past 10 years, the MySQL database has become incredibly popular on the Web. Every WordPress blog is driven by a MySQL database, which contains the blog’s posts, settings, comments and much more.

While plug-ins and even coding hacks can solve some problems and achieve some tasks, sometimes you don’t have any other choice than to execute SQL commands in phpMyAdmin or directly to the database via SSH. Let’s take a look at 8 useful SQL hacks for WordPress. Each section of this post presents a problem, suggests a solution and provides an explanation to help you understand the solution.

1. Creating a Backup of Your Database

The problem. While the tips in the rest of this post have been tested, you should definitely not try any of them without first having a proper backup of your MySQL database.

The solution. To create a manual backup of your WordPress database, follow these simple steps:

  1. Log in to phpMyAdmin and select your WordPress database.
  2. Once done, click the “Export” button located in the horizontal menu.
  3. Choose a compression method (personally, I use gzip), and click the “Execute” button.
  4. Your browser will ask you if you want to download the backup. Of course, select “Yes,” and then store it on your hard drive.

Explanation. Note that creating a backup of your WordPress database can be more easily executed with the WP-DB-Backup plug-in. WordPress users should install this plug-in if they have not yet done so and create regular backups of their data.

2. Batch Delete Post Revisions

The problem. Post revisions, a new WordPress 2.6 feature, can be very useful, but they also increase the size of your MySQL database. Sure, you can manually delete posts revisions, but that’s very long and boring work.

The solution. The solution to this problem is simple: we batch delete post revisions by using a simple SQL query. The result can be almost unbelievable if you have a lot of posts: Your database size will be reduced by half!

  1. Log in to phpMyAdmin and select your WordPress database.
  2. Click the “SQL” button. Paste the following code in the SQL command window:

    • DELETE FROM wp_posts WHERE post_type = “revision”;
  3. You’re done. Depending on how many posts you had in your WordPress database, you may have saved lots of precious space!

Code explanation. The wp_posts table has a field named post_type. This field can have one of many values, such as “post,” “page” or “revision.” When we want to get rid of post revisions, we simply run a command to delete any entry in the wp_posts table in which the post_type field is equal to “revision.”

Source:

  • How to: Batch delete post revisions

Read the rest of this entry »

24
Dec

How To Detect Mobile Browsers With PHP?

DetectMobileBrowsers.mobi is a website providing a function & information on how to detect mobile browsers.

It can detect:

  • iPhone
  • Opera Mini
  • Android
  • Blackberry

It has an online function generator that guides you to create a personalized function according to “how you want to treat every browser”.

P.S. The code is free to be used on non-profit websites.

Website: http://detectmobilebrowsers.mobi/
Download: http://detectmobilebrowsers.mobi/#download

16
Dec

Easy setup of login, Registration and Password Protected areas on your Website

This video tutorial will walk you through setting up a registration and login system for your web pages. You can then password protect any pages you desire on your website.

The script allows a user to register, log in, log out, change their password, and retrieve a forgotten password. It also makes sure the user submits a valid email address by sending them a link to their email that they must click before the registration is completed.

There is no need to know coding the video will walk you through setting it all up. All the files you need are available for download on this site.

User Registration

  • Log in
  • Log out
  • User can change password
  • User can retrieve forgotten password
  • Password protect any pages on your site with a small snippet of code
  • Of course it’s free

Click Demo to try out the registration system.

Click Download to download files.

Pages:«1...56789101112»
Creative Resume Template
Open source icons
Best Hosting