Quantcast
Channel: Envato Tuts+ Code
Viewing all 5161 articles
Browse latest View live

Adding to the Body Class in WordPress

$
0
0

In this short tutorial, we'll look at the WordPress body class and how we can manipulate it using core API calls.

Specifically, we cover adding body classes, removing body classes, conditionally adding body classes, and some use cases.

The tutorial uses some simple PHP—if you're not confident using the WordPress programming language, try our free beginner's course on Learning PHP for WordPress to get up to speed.

Learn PHP for WordPress

Once you've mastered the essentials, why not get to grips with the WordPress programming language in this free course on learning PHP for WordPress? It'll give you an overview of what PHP is and how it's used for WordPress programming and creating themes and plugins.

The Body Class: What Can It Be Used For?

The body class in WordPress is a class or series of classes that are applied to the HTML body element. This is useful for applying unique styles to different areas of a WordPress site as body classes can be added conditionally.

WordPress contains a number of default body classes which are covered in this article.

Adding to the Body Class

There are a few methods available to us for adding new body classes within WordPress. This tutorial is going to cover adding the body class within a theme (usually defined in header.php) using the body_class function and adding classes using a filter.

Editing the Theme: Passing a Body Class Value

This is a really simple way to add body classes and is especially useful if you are creating a theme. The body class is normally included in a theme using the following code:

<body <?php body_class(); ?>>

To add your own class to this, you can pass an argument in to the function, like so:

<body <?php body_class( 'my-class' ); ?>>

This would add a body class of my-class on each page of your WordPress site.

Default Static and Dynamic Body Classes in WordPress

Classes are usually added to any element to target them either for styling using CSS or for manipulating their content using JavaScript.

The body_class() function in WordPress makes this very easy for us by automatically adding a bunch of appropriate classes to the body tag of our website.

One such example would be the logged-in class that is added to the body tag if a logged-in user is viewing the page. The class logged-in will not be added to the body if a logged-out user is viewing the page.

Similarly, other classes like categoryarchivesearch, and tag are added automatically to the body tag if the user is viewing a specific type of page. This allows you to style the contents of a page selectively, depending on its type.

The body_class() function also adds a bunch of classes that can be used to target things like archive pages of a specific tag or category. For example, let's say your website has some posts filed under the category "tutorial" and other posts filed under "tip". If you visit the archive page for the tutorial category, you will see that its body tag also contains classes like category-tutorial. These dynamic classes allow you to target pages and posts for very specific styling.

If you were planning to add some classes to the body tag in order to target these kinds of posts and pages, it might just be better to use the classes added by default. All such classes added by WordPress are mentioned in the WordPress documentation.

Adding Multiple Body Classes

There may be times when you want to add more than one body class. This can be achieved using a simple array:

This takes all of the classes in the array and passes them to the body_class function.

Conditionally Adding a Body Class

You may also want to conditionally add a body class. This is easy with some simple PHP. This example uses the WooCommerce conditional method of is_shop() :

<?php if ( is_shop() ) { body_class( 'is-woocommerce-shop' ); } else { body_class(); } ?>

Note: WooCommerce already adds a class based on this, so note that this is purely an example.

What the above code is doing is checking that the first function is returning true. If it is true, then the body class has is-woocommerce-shop added to it; if it's not true, then just the default body class is displayed.

Adding a Body Class by Filter

It's possible to use a WordPress filter to add a body class, too. This method keeps the theme code cleaner and is particularly useful if you want to add a body class from a plugin. This code can either go in your theme's functions.php or within your plugin.

This adds a class (or classes, depending on your implementation) to the array and returns the entire array.

Adding Multiple Body Classes by Filter

To add more classes to the filter, just add another line that adds another value to the array:

Conditionally Adding a Body Class by Filter

Conditions can also be used in a filter. Taking the same example that we used earlier, we can achieve the same effect:

Adding a Body Class Based on the Page Template

By default, WordPress adds a body class for your page template, but if you are a front-end developer and have naming conventions for your CSS, then you may want to change this.

As an example, a page template called "halfhalf" would have a body class of page-template-page-halfhalf-php—not great.

So let's add a new class, using a filter and a WordPress conditional tag:

This will add the body class halfhalf-page if the page template is page-halfhalf.php.

Removing a Body Class

It's unlikely that you will want to remove a body class, as you are not forced to use them and they add very little to your markup. That said, it is possible to do this using the same body_class filter.

The easiest and fastest way to remove one or more classes from the body tag is to define an array of classes that you want to remove. After that, simply calling the array_diff() function will return a new array that contains the full list of classes after removing the classes we specified.

You won't have to loop through the entire array and unset the classes one at a time. In our case, we removed the classes custom-class and archive from the body tag.

That's All, Folks!

In this small tutorial, we have covered two methods of adding to the WordPress body class:

  1. by using the body_class function within a theme
  2. by using a filter

We have also covered adding body classes conditionally and removing classes, should you ever need to do so in future development.

Learn More About WordPress From Envato Tuts+

Envato Tuts+ is a great platform for picking up new skills. Our team of instructors has made tutorials, guides, and courses across many topics including WordPress and web design. If you want to dive further into these topics, start with the articles below:

If you're a visual learner, check out our YouTube channel! It's filled with helpful video tutorials and guides for WordPress and web design. Check out our playlists and explore our channel. You can also watch this video to get going:

This post has been updated with contributions from Monty Shokeen. Monty is a full-stack developer who also loves to write tutorials, and to learn about new JavaScript libraries.

 


How to Create a Simple Web-Based Chat Application

$
0
0

In this tutorial, we will be creating a simple web-based chat application with PHP and jQuery. This sort of utility would be perfect for a live support system for your website.

This tutorial was updated recently to make improvements in the chat app. 

Introduction

TutsPlus Chat App
The chat application we will be building today will be quite simple. It will include a login and logout system, AJAX-style features, and support for multiple users.

Step 1: HTML Markup

We will start this tutorial by creating our first file, called index.php.

  • We start our HTML with the usual DOCTYPE, html, head, and body tags. In the head tag, we add our title and link to our CSS stylesheet (style.css).
  • Inside the body tag, we structure our layout inside the #wrapper div. We will have three main blocks: a simple menu, our chatbox, and our message input, each with its respective div and id.
    • The #menu div will consist of two paragraph elements. The first will be a welcome to the user and will be on the left, and the second will be an exit link and will be on the right. We are using flexbox for layout instead of floating elements.
    • The #chatbox div will contain our chatlog. We will load our log from an external file using jQuery's ajax request.
    • The last item in our #wrapper div will be our form, which will include a text input for the user message and a submit button.
  • We add our scripts last to load the page faster. We will first link to the Cloudflare jQuery CDN, as we will be using the jQuery library for this tutorial. Our second script tag is what we will be working on. We will load all of our code after the document is ready.

Step 2: CSS Styling

We will now add some CSS to make our chat application look better than with the default browser styling. The code below will be added to our style.css file.

There's nothing special about the above CSS other than the fact that some ids or classes, which we have set a style for, will be added a bit later.

TutsPlus Chat App Interface
 
As you can see above, we are finished building the chat's user interface.

Step 3: Using PHP to Create a Login Form

Now we will implement a simple form that will ask the user their name before continuing further.

The loginForm() function we created is composed of a simple login form which asks the user for his/her name. We then use an if and else statement to verify that the person entered a name. If the person entered a name, we set that name as $_SESSION['name']. Since we are using a cookie-based session to store the name, we must call session_start() before anything is outputted to the browser.

One thing that you may want to pay close attention to is that we have used the htmlspecialchars() function, which converts special characters to HTML entities, therefore protecting the name variable from falling victim to cross-site scripting (XSS). Later, we will also add this function to the text variable that will be posted to the chat log.

Showing the Login Form

In order to show the login form in case a user has not logged in, and hence has not created a session, we use another if and else statement around the #wrapper div and script tags in our original code. In the opposite case, this will hide the login form and show the chat box if the user is logged in and has created a session.

TutsPlus Chat App Login Screen

Welcome and Logout Menu

We are not yet finished creating the login system for this chat application. We still need to allow the user to log out and end the chat session. If you can remember, our original HTML markup included a simple menu. Let's go back and add some PHP code that will give the menu more functionality.

First of all, let's add the user's name to the welcome message. We do this by outputting the session of the user's name.

Tutsplus Chat App Welcome

In order to allow the user to log out and end the session, we will jump ahead of ourselves and briefly use jQuery.

The jQuery code above simply shows a confirmation alert if a user clicks the #exit link. If the user confirms the exit, therefore deciding to end the session, then we send them to index.php?logout=true. This simply creates a variable called logout with the value of true. We need to catch this variable with PHP:

Tutsplus Chat APp Logout Prompt

We now see if a get variable of 'logout' exists using the isset() function. If the variable has been passed via a URL, such as the link mentioned above, we proceed to end the session of the user's name.

Before destroying the user's name session with the session_destroy() function, we want to write a simple exit message to the chat log. It will say that the user has left the chat session. We do this by using the file_put_contents() function to manipulate our log.html file, which, as we will see later on, will be created as our chat log. The file_put_contents() function is a convenient way to write data to a text file instead of using fopen()fwrite(), and fclose() each time. Just make sure that you pass appropriate flags like FILE_APPEND to append the data at the end of the file. Otherwise, a new $logout_message will overwrite the previous content of the file. Please note that we have added a class of msgln to the div. We have already defined the CSS styling for this div.

After doing this, we destroy the session and redirect the user to the same page where the login form will appear.

Step 4: Handling User Input

After a user submits our form, we want to grab their input and write it to our chat log. In order to do this, we must use jQuery and PHP to work synchronously on the client and server sides.

jQuery

Almost everything we are going to do with jQuery to handle our data will revolve around the jQuery post request.

  1. Before we do anything, we must grab the user's input, or what the user has typed into the #submitmsg input. This can be achieved with the val() function, which gets the value set in a form field. We now store this value in the clientmsg variable.
  2. Here comes our most important part: the jQuery post request. This sends a POST request to the post.php file that we will create in a moment. It posts the client's input, or what has been saved into the clientmsg variable.
  3. Lastly, we clear the #usermsg input by setting the value attribute to blank.

Please note that the code above will go into our script tag, where we placed the jQuery logout code.

PHP: The post.php File

At the moment, we have POST data being sent to the post.php file each time the user submits the form and sends a new message. Our goal now is to grab this data and write it into our chat log.

Before we do anything, we have to start the post.php file with the session_start() function as we will be using the session of the user's name in this file.

Using the isset boolean, we check if the session for 'name' exists before doing anything else. We now grab the POST data that was being sent to this file by jQuery. We store this data into the $text variable. This data, like all the overall user input data, will be stored in the log.html file. We simply use the file_put_contents() function to write all the data to the file.

The message we will be writing will be enclosed inside the .msgln div. It will contain the date and time generated by the date() function, the session of the user's name, and the text, which is also surrounded by the htmlspecialchars() function to prevent XSS.

Step 5: Displaying the Chat Log Contents

Everything the user has posted is handled and posted using jQuery; it is written to the chat log with PHP. The only thing left to do is to display the updated chat log to the user with log.php.

In order to save ourselves some time, we will preload the chat log into the #chatbox div if it has any content.

We use a similar routine as we used in the post.php file, except this time we are only reading and outputting the contents of the file.

The jQuery.ajax Request

The AJAX request is the core of everything we are doing. This request not only allows us to send and receive data through the form without refreshing the page, but it also allows us to handle the data requested.

We wrap our AJAX request inside a function. You will see why in a second. As you see above, we will only use three of the jQuery AJAX request objects.

  • url: A string of the URL to request. We will use our chat log's filename of log.html.
  • cache: This will prevent our file from being cached. It will ensure that we get an updated chat log every time we send a request.
  • success: This will allow us to attach a function that will pass the data we requested.

As you see, we then move the HTML data we requested into the #chatbox div.

Auto-Scrolling

As you may have seen in other chat applications, the content automatically scrolls down if the chat log container (#chatbox) overflows. We are going to implement a simple and similar feature, which will compare the container's scroll height before and after we do the AJAX request. If the scroll height is greater after the request, we will use jQuery's animate effect to scroll the #chatbox div.

We first store the #chatbox div's scroll height into the oldscrollHeight variable before we make the request. After our request has returned successfully, we store the #chatbox div's scrolled height into the newscrollHeight variable.

We then compare both of the scroll height variables using an if statement. If newscrollHeight is greater than the oldscrollHeight, we use the animate effect to scroll the #chatbox div.

Continuously Updating the Chat Log

Now one question may arise: how will we constantly update the new data being sent back and forth between users? Or to rephrase the question, how will we keep continuously sending requests to update the data?

The answer to our question lies in the setInterval function. This function will run our loadLog() function every 2.5 seconds, and the loadLog function will request the updated file and autoscroll the div.

Tutsplus Chat App Network

Complete Code

The chat app might not work properly for you if the right code is not placed inside the right files and in the right order. To avoid any confusion, I am posting the whole code that will go into two separate files called index.php and post.php.

Here is the code for index.php:

Here is the code for post.php:

The code that goes into style.css is already available in Step 2 of the tutorial.

If the code you have does not seem to be working, make sure it matches the code provided here. Please note that all three files—index.phppost.php, and style.css—are located in the same directory.

Finished

We are finished! I hope that you learned how a basic chat system works, and if you have any suggestions on anything, I'll happily welcome them. This chat system is a simple as you can get with a chat application. You can work off this and build multiple chat rooms, add an administrative back end, add emoticons, etc. The sky is the limit!

Also, if you need a professional app or plugin for your next project, you can take a look at one of the many Chat Scripts we have for sale on CodeCanyon.

Below are a few links you might want to check out if you are thinking of expanding this chat application:

Tutsplus Chat App

This post has been updated with contributions from Monty Shokeen. Monty is a full-stack developer who also loves to write tutorials, and to learn about new JavaScript libraries.

20+ Best WordPress Booking and Reservation Plugins

$
0
0

Are you looking for an automated booking or reservation plugin that saves you time as well as your customer's time? Are you tired of losing business to your competitors? Are you looking for a way to streamline your online appointments and bookings?

Your website should make it easy for guests to view, reserve, and book available appointments. This is where WordPress booking and reservation plugins can help you meet your online business goals.

So whatever your business—from haircuts to hotels, and from health salons to consulting firms—WordPress booking and reservations plugins help customers book appointments on your site any time of day or night.

In this post, I'll share the best reservation plugins for WordPress today.

The Best WordPress Booking and Reservation Plugins

CodeCanyon offers a huge variety of WordPress booking and reservation plugins you can download and install.

WordPress booking and reservation plugins

Some of the best features include:

  • easy customization and integration
  • translation-ready
  • ability to integrate with payment gateways like PayPal, Stripe, Square, or Mollie.

20+ Best WordPress Booking and Reservation Plugins for 2020

Check our selection of some of the best booking plugins for WordPress. Here you'll find the WordPress booking plugin you need for your website:

1. Best-Selling: EventON—WordPress Event Calendar Plugin

EventON - WordPress Event Calendar Plugin

Looking for the best booking plugin for WordPress? Check out EventOn, our best-selling WordPress booking plugin. 

EventON is packed with 200+ useful features, such as highly customizable repeating events, multiple event images, unlimited event creation, and various calendar layout designs.

With a 4.5 stars rating and more than 50,000 sales, customers are very happy with this WordPress booking plugin. User EAAcalendar says:

This calendar system is very, very all-encompassing. They made it extremely flexible and, to be honest, I have barely scratched the surface on all the features customizations that are possible.

2. Best-Selling: Calendarize it! for WordPress

Calendarize it for WordPress

Calendarize it! is another top selling WordPress booking plugin. With more than 11,000 sales, users like it because it's packed with useful features and add-ons you can download with your purchase:

  • WP Bakery Page Builder (Visual Composer) compatibility
  • event tickets with WooCommerce integration
  • eventbrite tickets
  • external event sources 
  • payment options
  • RSVP events

User hiegl says:

After two years of using this great plugin, I happily renew my 5 stars review and want to thank Richard and his team for the best support I got here on Envato. If you need a really flexible calendar, this is the best solution!

3. Best-Selling: Booked—Appointment Booking for WordPress

Booked - Appointment Booking for WordPress

Booked is a powerful WordPress booking plugin that makes online booking a simple process. You can add as many calendars as you need, and easily customize them.

Some of the best features of this WordPress reservation plugin are:

  • front-end calendar as shortcode or widget
  • fully responsive
  • customer profile and appointment management
  • guest booking
  • lifetime updates
  • add-ons (included)
  • payments with WooCommerce 
  • front-end agents
  • calendar feeds

4. Best-Selling: Bookly Pro—Booking & Scheduling System

Bookly

Bookly Pro WordPress Booking Plugin is a full-featured plugin that's easy to install, getting you up and running in a matter of seconds. It is fully customizable and mobile-ready, so customers can book appointments on the go. This WordPress booking plugin comes with an easy scheduling process that walks the user from booking to payment in a few simple steps.

The inclusion of SMS notifications, online payments, and Google Calendar sync sets it apart from many others.

Other notable features of this plugin include:

  • compatible with WooCommerce
  • multi-language support
  • unlimited number of staff members and services
  • integration with most payment systems
  • ability to allow or prevent caching of pages with booking form

5. Best-Selling: Timetable Responsive Schedule for WordPress

Timetable Responsive Schedule for WordPress

Timetable is a powerful and easy-to-use schedule plugin for WordPress. It will help you to create a timetable view of your events in minutes!

It comes with booking functionality. You can take online reservations for any event within the available number of free slots.

Other awesome features include an events manager, event occurrences shortcode, timetable shortcode generator, and upcoming events Widget. You can generate PDFs from your timetable view.

Fully compatible with Visual Composer, this WordPress booking and reservation plugin is perfect for your gym classes, school or kindergarten, medical departments, nightclubs and pubs, class schedules, meal plans, you name it.

6. Trending: Advance Seat Reservation Management for WooCommerce

Advance Seat Reservation Management for WooCommerce

Advance seat reservation management for WooCommerce is suitable for businesses such as cinemas, trains, airlines, event venues, movie theatres, bus companies, and more.

Your customers can reserve seats through this WordPress reservation system plugin for WooCommerce. It works with WooCommerce product, cart, order, and WordPress post.

7. Trending: Hotel Booking WordPress Plugin

Hotel Booking WordPress Plugin

Hotel Booking is a complete hotel and vacation rental booking system. You can use this WordPress booking system for hotels, bed and breakfast, guest houses, apartments, villas, and even hostels.

It comes with all the functionality you need to run a fully functional hospitality business website and manage reservations. You can create beautiful listings of all your properties, control seasonal pricing and rates, and rent properties out online, with or without payment.

In addition, you can synchronize direct site reservation with popular travel channels via iCal through the admin channel manager.

8. Book An Appointment Online Pro (With Video Conferencing)

Book An Appointment Online Pro

You can now provide remote services directly from your appointment booking plugin. You can do it from a phone or computer via video conference with built-in live chat. Video conferencing is between one employee and one customer.

This is what makes Book An Appointment Online Pro the WordPress appointment plugin of choice for medical centers, beauty salons, hair shops, or car services.

While this feature is available only to users with active support, the benefits you reap are immeasurably more than the extra cost you invest in extended support.

You can create three different types of schedules: regular working hours, custom schedule, and shifts. To help avoid double booking, users can book an appointment only by available time slots. They get SMS reminders, and they can also pay using PayPal or Stripe.

9. Bookme WordPress Booking Plugin

Bookme is a multi-purpose WordPress booking plugin that can be used by all kinds of businesses, ranging from beauty salons and fitness centers to educational institutions and medical centers.

You can set up a wide range of services at different prices and build custom fields depending on your requirements.

You can offer numerous booking types, including default booking, group booking, consultant booking, add to cart booking, free booking, and booking with WooCommerce.

Customers can receive SMS notifications via Twillio API. They can also pay with multiple payment systems such as Stripe or PayPal.

10. RnB—WooCommerce Booking & Rental Plugin 

RnB WooCommerce Booking  Rental Plugin

If you want to build a booking business, then WooCommerce Booking and Rental Plugin will help you do just that. You will able to rent cars, bikes, dresses, tools, gadgets, and more.

You can add unlimited rental products, set your own pricing, block rental days and hours, set minimum and maximum booking days, have single-day booking, and set up a maximum time penalty.

You can set custom pricing for particular customers. The plugin also offers inventory management, and it's fully compatible with the latest WooCommerce and WordPress versions.

This WordPress booking plugin supports WPML, which allows your website to become multilingual.

11. Trending: Salon Booking WordPress Reservation Plugin 

Salon Booking Wordpress Plugin

Salon Booking is a complete and easy-to-manage appointment booking system for busy salons. It will make it easy for customers to make reservations on your website, and it will save you a lot of time with management tasks.

Salon booking is perfect for hairdressing salons, barber shops, beauticians, therapists, spas, clinics, sport facilities rentals, and more.

12. Webba Booking Plugin

Webba Booking Plugin

As a service provider, saving time and money while at the same time offering convenient services to your customers is super important. Webba Booking Plugin is built with this in mind.

First, it’s one of the best-looking WordPress booking and reservation plugins. Second, it’s a robust system that has a long list of features to help you customize the appearance of the system to express your unique vision and business identity.

These features include 80+ customization options, as well as the ability to export CSVs, make multiple reservations in the same sessions, and reserve several services at the same time.

You can make secure online payments with PayPal, Stripe, and WooCommerce.

13. HBook Hotel Booking System

HBook is a powerful and versatile plugin that is ideally suited for anybody who owns a business in the hospitality industry: a hotel, B&B, holiday apartment, or campground.

It comes equipped with a drag-and-drop form builder that lets you choose what customer details you want to gather.

Its efficient booking management system includes:

  • calendar view to see your bookings at a glance 
  • reservation list in a table form to view details of all bookings, add comments, change accommodation, update remaining balance, or send emails.
  • multiple payment methods: Stripe, PayPal, Square, Cardlink, Mollie, and more. 

You can also synchronize your bookings with websites such as Airbnb, HomeAway, VRBO, and Booking.com.

Finally, shortcode support allows you to add availability calendars, table rates, and booking forms anywhere on your website in seconds.

14. Amelia—Enterprise-Level Appointment Booking

Like the other plugins in this list, Amelia lets your customers make appointments at any time of day and night. This plugin is easy to customize; hence you can build your appointment booking forms. What stands apart with this plugin is that you can keep your customers and employees notified and reminded of their appointments in real time with SMS notifications.

Some features include:

  • supports multiple employees, each with their services and availability schedule
  • supports multiple business locations
  • step-by-step appointment wizard makes booking easy
  • options to upsell during appointment booking 
  • integration with WooCommerce, PayPal, and Stripe 
  • supports on-site payments so your customers can pay in cash when they arrive

15. Events Plus—WordPress Events Calendar Registration & Booking

Events Plus - WordPress Events Calendar Registration  Booking

Events Calendar Registration and Booking plugin has got you covered if you want to:

  • promote classes, seminars, workshops, conferences, or concerts on your WordPress website
  • set ticket prices for your events, create recurring events, or even accept donations for your events

It gives you a quick glimpse of the latest events created, letting you sort them by categories, view payments, and keep track of your attendees.

Visitors will be able to register and pay online for those events via PayPal, Stripe, or Authorize.Net.

It also comes with shortcodes for calendars and single events.

16. Trending: Car Rental Booking System for WordPress 

Car Rental Booking System for WordPress

To run a robust car rental business, you need an efficient, powerful online booking system. This is where Car Rental Booking System comes in.

It is designed to support an unlimited number of locations, vehicles, and booking forms.

In addition to pricing rules for different cars, it has booking add-ons to order custom vehicle attributes and service restrictions related to the driver's age.

The booking process—together with multiple payment options—is simple and includes email and SMS notification.

17. Chauffeur Booking System for WordPress

Chauffeur Booking System

Chauffeur Booking System is a powerful limo reservation WordPress plugin for companies of all sizes. It can be used by both limo and shuttle operators. It provides a simple, step-by-step booking process with online payments, e-mail and SMS notifications, WooCommerce, Google Calendar integration, and an intuitive back-end administration.

18. LatePoint—Booking Reservation Plugin for WordPress 

LatePoint - Appointment Booking  Reservation plugin for WordPress

Complicated booking software takes forever to set up, slows down your website, and puts off customers. LatePoint to the rescue.

LatePoint is a simple, intuitive WordPress appointment booking plugin that makes it incredibly simple for your customers to schedule appointments.

The setup process takes less than five minutes. After that, you can create agents, add services, and set working hours. The rest is just a matter of inserting the booking shortcode button anywhere on your page, and your customers will be able to book appointments right away.

Customers can log in using popular social networks to pre-fill their personal information. Once they create an account, they can manage their reservations online.

LatePoint also has a powerful, clean, and modern admin dashboard for business owners to easily see reports of agent performance and manage services and customers.

19. Bookmify—Appointment Booking WordPress Plugin 

Bookmify - Appointment Booking WordPress Plugin

Bookmify is the go-to WordPress booking plugin for businesses in many sectors: health and wellness, government, education, fitness and recreation, entertainment, and more.

It is simple, functional, versatile, powerful, and modern. The online scheduling system is equipped with a powerful user interface to help manage your day-to-day events, keep up with your schedule and billing, and send email campaigns—all from one online app.

20. ARB - Appointment Reservation Booking Plugin 

ARB - Appointment Reservation Booking Plugin

The ARB Reservations plugin is the most flexible WordPress booking plugin for WooCommerce. It is perfect for businesses that require appointment booking: hotel rooms or resorts, appointments for courses, doctors, salons, renting products, and more.

What's really interesting about this WordPress booking plugin is that it has a "request for quote" feature, in which a customer can request a particular price and you can set custom pricing for that person.

21. Booknetic—WordPress Appointment Booking & Scheduling System 

Booknetic - WordPress Appointment Booking  Scheduling System

This is an online appointment booking plugin which supports WooCommerce, PayPal, Stripe, and SMS and email notifications. It also has:

  • reminders
  • manageable calendar
  • customizable templates
  • built-in form builder
  • multiple category levels
  • and many other features

22. Trending: Stachethemes Event Calendar - WordPress Events Calendar Plugin

Stachethemes Event Calendar - WordPress Events Calendar Plugin

This WordPress reservation plugin is a unique approach to the classic event calendar concept. It's fully responsive with a modern design. This WordPress booking plugin will display your events in an easy to read and navigate way.

The WordPress booking plugin is trending thanks to its cool features included:

  • Compatible with Elementor
  • Event filter
  • Single event page
  • Multiple calendar views: Month, Week, Day, Grid, Map, agenda and more
  • Mobile ready
  • WooCommerce integration
  • Social media integration for event sharing

23. Trending: Events Schedule - WordPress Events Calendar Plugin

Events Schedule - WordPress Events Calendar Plugin

We close the selection with another trending WordPress booking plugin. Event Schedule is a simple and versatile plugin that offers 12 schedule styles, each of them with a different design and features.

It's a great WordPress reservation plugin. You can sell tickets with WooCommerce and it's 100% responsive and Retina ready.

See what user lizYA01 says about it:

Beautifully designed and elegant plugin backed by the best customer support I have ever had from Envato. I recommend this plugin to anyone looking for a classy looking events calendar. Can't say enough about the professional support received!

4 Free Booking and Reservation Plugins Available for Download

As much as premium plugins offer more benefits and more features, there are a couple of free plugins that can help you with your business if you're on a tight budget. If you're just starting, a free plugin can give you time to gain recognition and build your brand without committing to a premium solution.

1. Hotel Booking Lite

hotel booking lite plugin

Hotel Booking Lite is the perfect booking plugin for anybody in the hotel and accommodation space. It allows you to simplify the booking experience of your customers. It offers real-time search, custom pricing, multiple currencies, and other excellent features.

Hotel Booking Lite also integrates seamlessly with most themes.

2. Booking Calendar

booking-calendar

Booking Calendar is a flexible plugin for any business that operates on a booking basis. It is also fully responsive, so users on mobile, tablet, or desktop devices can book on the go. Booking Calendar also allows you to import .ics feeds from services that use that format, such as Airbnb and TripAdvisor.

3. WP Simple Booking Calendar

wp-booking calendar

Simple Booking Calendar is the perfect plugin to show the availability of your properties or equipment. With the free version of this plugin, you can responsively feature available space and save time you would otherwise spend on manually communicating with customers.

4. Sagenda

Sagenda allows you to book appointments and meetings with your clients online. Sagenda allows an unlimited number of bookings or customers. It also integrates with the popular PayPal payment system to enable customers to pay for bookings.

Tips for Choosing a Booking and Reservation Plugin

An online booking is a must if you wish to succeed in business in this digital age. Here are some suggestions for choosing the right plugin:

  • Simplicity: a good plugin should be user-friendly and easy to customize.
  • Budget: you should select a plugin that will not strain your operating costs or eat up profit margins.
  • Support: you need to go with someone who will walk you through any issues that might arise, especially during the initial stages.
  • Features: you might not always get a plugin that meets every need. However, make a checklist of features you can't do without—such as payments, analytics, and reminders.

Explore More Awesome WordPress Plugins and Resources

Looking for more premium and free WordPress plugins? Try our free course, which introduces you to the best WordPress plugins out there. Secure your site, make it run faster, optimise it for the search engines, and more.

And you can read more about WordPress event and booking calendars here on Envato Tuts+!

Unleash the Power of CodeCanyon's WordPress Booking and Reservation Plugins Now! 

There are many different kinds of WordPress appointment, booking, and reservation plugins available today. Choosing the right one can be crucial to the smooth running of your business. You need to select a plugin that fits your requirements.

CodeCanyon offers a huge variety of WordPress booking and reservation plugins you can download one at a time and install. Go check CodeCanyon today!

How to Monetize an App: 21 Best Mobile Templates

$
0
0

Imagine that you're ready to kick-start your own mobile app development business. Chances are you'd like to use the best development practices for your first app, and also code it as quickly as possible. You'll probably want to monetize your app as well! 

This post will show you some easy ways to launch your next ad-supported app project.

You'll see highly customizable and versatile mobile app templates that you can use in your next development project. Each has Google's AdMob app monetization platform integrated, so you can build a revenue stream for your app from day one.

Universal Multi-Purpose Android App
Universal is one of the best-selling custom mobile app templates from CodeCanyon

These templates are all available from CodeCanyon, where you can buy and download an app template for immediate use in your app development project.

Additionally, we'll look at what app monetization is, list different ways of monetizing your app, and take a brief look at in-app advertising as a way to monetize your app. 

Jump To:

This article is packed with custom mobile app templates and resources! Here's a quick navigation menu for you:

Where To Buy Mobile App Templates In 2021

Now I will show you some mobile app templates you can buy and download to kick-start your own app. These mobile app templates are highly customizable and versatile. 

If you want to buy mobile app templates, Code Canyon is the best option for you
If you want to buy mobile app templates, CodeCanyon is the best option for you

Each has Google's AdMob app monetization platform neatly integrated, so you can build a revenue stream for your app from day one.

Android Templates

1. Best-Seller: Universal Multi-Purpose Android App 

Universal full multipurpose Android App

Universal is a flexible and versatile app template that can be customized for a broad range of designs. In addition to its built-in AdMob support, the template can easily integrate with more than ten different content providers, including WordPress, YouTube, and Facebook. It is a native Android app and comes with extensive documentation to help you get started.

2. Android News App 

Android News App

Android News App helps you run your own news platform. The app template consists of two components: an Android client and a PHP with MySQL server. The ready made app template also provides you with full control over AdMob, allowing you to enable and disable features according to your specific requirements. The RTL (right to left) mode will come in handy if you want to add languages other than English and expand your global audience.

3. City Guide—Map App for Android 

City Guide

City Guide is a location-aware map and places app for the Android platform. The application development template features eight different color themes, animated effects, responsive design, and a lot more.

Also, the custom mobile app template is built with easily configurable, cleanly written code, and its documentation will make getting started a breeze. It uses a local SQL database to store data, so reliance on the user's internet connection is minimized. And, of course, AdMob is supported (banners and interstitial ads). 

4. Cookbook—Recipe App for Android 

Cookbook

Cookbook is an Android app template for sharing cooking recipes. With easily configurable and customizable code, you can create your own app with relatively little effort and time. The custom mobile app template features a responsive Material Design interface and a local SQLite database in addition to its AdMob monetization support. So it's time to start "cooking" your app, using Cookbook.

5. Your Recipes App 

Your Recipes App

Another great cooking app template, Your Recipes App is a complete platform with an Android client and PHP-based server. The powerful Admin Panel lets you manage your content to keep content up to date and error-free. You can send push notifications to your users with Firebase and OneSignal. There is even RTL (right to left) language support, which will help if you want to expand into other languages.

Android WebView App Templates

6. Best-Seller: Universal Android WebView App 

Universal Android WebView App

Universal Android WebView App has a simple goal—bundle a solid Android WebView component with AdMob ads. The ready made app template has lots of nice extra features such as Material Design styling, geolocation, and pull-to-refresh gesture support. It supports app development in HTML5, CSS3, JavaScript, jQuery, Bootstrap and other web technologies, but at the same time offers its responsive design and clean native code as well.

7. RocketWeb

RocketWeb

RokcetWeb is yet another WebView-based app for Android. It comes with a lot of configuration options, and you don't need to learn any programming language to make changes to the app. What sets it apart from the competition is the wide selection of available themes. There are over 50 color schemes for you to choose from, based on the theme of your own website.

The application development template comes with support for RTL view, a dynamic sliding menu, and push notifications. There is also integration for AdMob to serve ads.

8. SuperView WebView App for Android

SuperView WebView App for Android

The SuperView WebView app for Android is great for people who already have a website and want to quickly create a mobile app that pulls up the content from the website.

If you need to buy mobile app templates, look for something like this one. The full app template comes integrated with AdMob, social logins, and in-app billing. Other features of the app include Firebase push notifications, geolocation, a splash screen, and a loading indicator.

9. Web2App 

Web2App

Web2App is another app template that provides an Android WebView component, and it's packed with features. This ready made app template offers countless possibilities for customization. Not only that, but its comprehensive documentation, along with video tutorials and step-by-step instructions, make your job much easier than you might have thought possible.

10. WebViewGold for Android 

WebViewGold for Android

If you have a website you want to convert into an Android app, then WebViewGold is perfect for you. WebViewGold for Android is an Android Studio package that wraps your URL (or local HTML) content into a real, native Android app! No more coding, no more plugins needed. This application development template supports all kinds of web apps and websites, including HTML, PHP, WordPress, progressive web apps, and HTML5 games. It also supports AdMob banners and full-screen interstitial ads.

Android Media App Templates

11. Your Radio App 

Your Radio App

Your Radio App is an internet radio streaming app for Android. It supports several popular streaming formats, including M3U and AAC. This is a well-thought-out app with some nice features. For example, the ability to stop the radio when someone is calling is useful. The powerful admin panel, the great-looking Material Design UI, and the Google Cloud Messaging push notifications are also worth mentioning.

12. Your Videos Channel 

Your Videos Channel

Your Videos Channel is a great app template for those who just need to build a video streaming platform. It doesn't matter whether you choose to serve videos from YouTube or from your own server. This full app template is capable of handling either of those options. It has a beautiful Material Design UI, a responsive Admin Panel, and support for OneSignal push notifications. It's a great way to keep users engaged with your video content while also building an additional revenue source.

13. All in One Status Saver

All in One Status Saver

This is an amazing video downloader app that allows users to save videos and status updates from all popular social media platforms. You can use it to save stories, images, and videos from Instagram. You can also save videos from Twitter and Facebook. It even gives you the option to save images and videos from WhatsApp status updates.

The application development template comes with two different UI options, and both of them have integrated AdMob and Facebook Ads.

14. Material Wallpaper 

Material Wallpaper

Android wallpaper apps are quite popular, and Material Wallpaper is a great way to cater to that market segment. It's designed according to Google's Material Design guidelines, so users get the visual experience they're expecting. The template can manage an unlimited number of categories and image galleries, thanks to its powerful and responsive admin panel. In addition to AdMob integration, it features Firebase Analytics and push notifications too.

iOS Templates

15. Web2App for IOS 

Web2App for IOS

Web2App for IOS is the iOS version of the Web2App template mentioned above. This template is highly customizable and ships with comprehensive documentation, video tutorials, and step-by-step instructions that make it easy to get started. You can choose from countless display modes and colors to suit your requirements, and of course customize the AdMob integration.

16. SuperView—WebView App

SuperView - WebView App

SuperView allows you to wrap your website in a simple iOS app. It's ideal for web developers who want to ease the difficult learning curve associated with the Swift programming language and iOS SDK. The quality of the coding and design in this template are really impressive.

17. WebViewGold for iOS 

WebViewGold for iOS

If you have a website you want to convert into an iOS app, then WebViewGold is perfect for you. WebViewGold is a Swift Xcode package which wraps your URL (or local HTML) into a real, native iOS app! No more coding, no more plugins needed. It’s optimized for iPhone, iPod touch, and iPad. It supports AdMob banner and full-screen interstitial ads.

18. RealEstate Finder App

RealEastate Finder App

As the name suggests, this is a real estate finder app for iOS. It comes with a user-friendly interface and some nice animation effects for user interactions. Users will be able to create their own profile in the app. You can also add, delete, or edit any real estate listings.

There is social integration for both Facebook and Twitter. Users can also communicate using emails, SMS, or calls. As an app owner, you will be able to display ads with the built-in integration of AdMob within the app.

Mobile Cross-Platform Templates

19. Lesath - Ionic 5 WooCommerce Full Mobile App Solution for iOS & Android

Lesath - Ionic 5 WooCommerce Full Mobile App Solution

Check this complete mobile template solution for your WooCommerce store. If you want to take your online store to the next level, get this ready made app template and build a powerful app. See what you'll get:

  • Dokan and WC multi vendor support
  • Multi-currency and multi-language
  • 40+ screens with dark mode available
  • Multiple widgets
  • Full WooCommerce integration
  • Free updates
  • Unlimited colors and home styles

20. Best eCommerce Solution with Delivery App

Best eCommerce Solution with Delivery App

This iOS and Android app template is a complete eCommerce solution for grocery shopping, medical, fashion, electronics and any kind of store. 

The mobile template comes with four components: a laravel website, ionic 5 customer application for Android and iOS, ionic 5 delivery boy application and a powerful admin panel to manage everything. Other features include:

  • 20+ product card styles
  • 10 homepage styles
  • Multiple category screens
  • Multiple Payment Methods

21. Ionic 5 food delivery full (Android + iOS + Admin Panel PWA)

Ionic 5 food delivery full (Android + iOS + Admin Panel PWA)

Full app templates like this are a must for 2021. This mobile template pack comes with three main apps and an Admin Panel with PWA support. See everything you get in these iOS and Android app templates:

  • 3 main apps (User App, Restaurant App and Delivery App)
  • Multi Restaurant supports.
  • Multi languages.
  • Mutli payment gateway (Cash on Delivery, PayPal,Stripe)
  • Unique and Attractive UI
  • Address From Geo Location
  • Live Location Tracking
  • Push Notification with Custom Alert
  • Restaurant and food reviews

This is a five-stars rated app. User husseina3 says:

This app template is the best full-stack app template. Very impressive design and works well. very good customer support as well.

Understanding App Monetization

The market is saturated with free apps, which has made it difficult to make revenue from selling apps. But your app can still be a very reliable income source. Researchers are predicting that combined global mobile app revenue for 2020 will reach $200 billion. 

There are a number of different ways to monetize your app. 

Here are some examples:

  1. free and premium versions 
  2. advertising 
  3. in-app purchases 
  4. licensing your code to other developers
  5. selling your app in marketplaces like CodeCanyon 
  6. using sign-up data to do SMS marketing and email marketing 
  7. subscriptions 

What Is an App Template?

If you have an idea for an app but you have no coding knowledge, don’t be discouraged. There are developers who build mobile app templates that you can buy and customize and make them into your own app. 

If you are a developer, instead of starting from scratch, an app template can be your starting point.  

An app template is a pre-built application that has a lot of the core functionality already provided for you. The next step is for you to customize it to create the final app you want. 

Read more about how to use an app template here on Envato Tuts+!

App Templates for Monetization

If you want to make money out of your app, some mobile app templates come with Google's AdMob app monetization platform already integrated into them. You can start making money with your app from the time it launches.  

What Is Google AdMob?

AdMob is an app monetization platform by Google. Developers have been using the AdMob advertising system to monetize their apps while still making them available for free. 

There are many online platforms and networks for hosting mobile ads, but Google AdMob is one of the most popular. 

What Does a Monetization App Template Do?

It comes with built-in AdMob functionality that allows you to monetize your app. In this case, you begin making advertising revenue by showing ads on your app. 

Why Should You Use a Monetization App Template?

With a template, you don’t have to start building your app from scratch. You can start from an already built foundation. AdMob is already set up for you. 

Let’s take a brief look at one of the most popular ways of monetizing apps: in-app advertising. 

In-App Advertising

Digital advertising is the dominant form of online marketing. Advertisers realize mobile apps are the best way to reach consumers because people spend a lot of time on mobile apps and people prefer free apps. The catch for free apps is ads. Many developers offer their apps for free and use in-app advertising as a source of revenue. 

The seven most common ad formats used in apps include: 

  • interstitial ads: also known as full-screen ads, they display across a screen after the app loads or closes or in the transition between screens 
  • banner ads: these display at the top or bottom of the screen with text and graphics
  • native ads: these don’t look like ads, but instead they integrate seamlessly into the app and appear as if they are part of the content of the app 
  • video ads
  • notification ads: deliver ads to the notification area of the user's mobile device
  • capture forms: an opt-in form where users can enter their email addresses for newsletters
  • interactive ads 

When you decide to monetize your app by incorporating ads, these are some things you should consider:

  • Do the ads enhance or interrupt the experience of your app users? 
  • If you decide to run ads in your app, how can you make your users' experiences meaningful? 
  • What advertisers do you want to associate your business or app with? 
  • Do the ads reflect your brand? Are they tied to what your business does? 
  • Too many ads on your mobile app may drive away users. 
  • Too many ads may also hinder the functionality of your app. 

Since these factors can adversely affect your app income, it is important to find the right balance.

Get an App Template Now!

App templates are a great way to jump-start your next development project or to learn from other people's work. Pick one of these great app templates today to kick-start development of your next app. Your time is valuable, and you owe it to yourself to do everything you can to get a head start on your next project. 

There are many more mobile templates available on CodeCanyon. Put one of them to use right now, or read more about how to use an app template here on Envato Tuts+!

This post has been updated with contributions from Maria Villanueva, a journalist and writer with many years of experience working in digital media.

How to Send Text Messages With PHP

$
0
0

Text messaging has become extremely widespread throughout the world -- to the point where an increasing number of web applications have integrated SMS to notify users of events, sales or coupons directly through their mobile devices. If you're looking to grow your business, a PHP text message script can be crucial.

In this tutorial, we will learn how to send a message to mobile using PHP code.

Premium Option

Before we get into the step-by-step process, you might want to look at a ready-made solution: SMS Sender, available on CodeCanyon. This send SMS through PHP script lets you:

  • create and import contacts and groups
  • send a single SMS, or send bulk SMS to a group or multiple groups
  • connect to any SMS gateway with minimal configuration
  • customize your SMS or email
  • add a link to your SMS and email
  • and much more
SMS Sender on Envato Market
SMS Sender on Envato Market

If you want to learn how to send SMS through PHP code, here's how to do it.


Overview

Sending a text message (SMS) message is actually pretty easy.

Below is a simplified diagram of how a message can be sent from a web application to a wireless device.

Send Free SMS in PHP Tutorial HTTP To Phone
 

We'll break this down -- one piece at a time:

  • The message is composed using a web application that's stored and executed on a HTTP server and then sent through the internet ("the cloud") as an email message.
  • The email is received by a Short Message Service Gateway (SMS Gateway), which converts the message from an email message to a SMS message.
  • The SMS message is then handed to a Short Message Service Center (SMSC), which is a server that routes data to specific mobile devices.
  • The message is finally transmitted over the wireless network to the recipient.

Most wireless networks have a SMS gateway through which email messages can be sent as text messages to a mobile device. This is nice, because, from a developer's standpoint, it's generally free—however, it's of course not a free service for the end user. Fees still apply to the recipient of the message and messages sent via email will be billed as a non-network text message.


Email to SMS

To learn how to send a message to mobile via email using PHP code, you'll generally require only two things:

  • The phone number or unique identifier of the mobile device you want to reach.
  • And the wireless network's domain name (many can be found in this list of email to SMS addresses)

The following convention can be followed for most carriers:

phoneNumber is the phone number of the mobile device to send the message to, and domainName.com is the address for the network's SMS Gateway.

To send a SMS through PHP to Mr. Example, you could simply add 3855550168@vtext.com to any email client, type a message and hit send. This will send a text message to phone number +1 (385) 555-0168 on the Verizon Wireless Network.

For example, I'll send a text message to myself using Gmail.

Send SMS Using PHP Tutorial Gmail
 

When my phone receives the message, it should look like so:

Send SMS to Mobile Using PHP Tutorial Result PHP Send SMS Example

Pretty awesome! It's fun to think of the possibilities available when sending SMS from PHP website to mobile.


PHP's mail Function

Let's take things a step further. Using the SMS Gateway, we can send a SMS to mobile using PHP's mail function. The mail function has the following signature:

You can read more about it here.

  • $to defines the receiver or receivers of the message. Valid examples include:
    • user@example.com
    • user1@example.com, user2@example.com
    • User <user@example.com>
    • User1 <user1@example.com>, User2 <user2@example.com>
  • $subject is rather self explanatory; it should be a string containing the desired subject. However, SMS do not require a subject.
  • $message is the message to be delivered. As mentioned in the PHP manual, "each line should be separated with a LF (\n). Lines should not be larger than 70 characters."

To replicate the earlier functionality, we could write the following PHP code:


A Test Drive

Let's run a test with PHP to make that sure everything is setup correctly and that the mail function will, in fact, send a text message. Using the following code, we can run:

When my phone receives the message, it looks like so:

PHP Email to SMS Tutorial PHP Send SMS Example
 

If you are getting an error, see the troubleshooting section.

As you can see in the PHP send SMS example above, the message shows that it's from Gmail. This is because I route all my outgoing messages from my local server through that service. Unfortunately, as of this writing, I have been unsuccessful at altering the From header to reflect an alternate address. It seems that the email headers are stripped and replaced with headers prepared by the SMS gateway. If anyone knows of a workaround, please leave a comment and let the rest of us know!


Adding Usability

The Markup

With the basics out of the way, let's take this PHP text message script and wrap a user interface around it. First we'll set up a simple form to our send free SMS HTML code:

The Style

Next we'll sprinkle in some CSS:

Our send free SMS HTML code and CSS gives us the following simple form:

Send Free SMS to PHP Tutorial Form
 

The Script

The most important part to this is the PHP text message script. We'll write that bit of code now:

  • The script first checks to see if the form has been submitted.
  • If yes, it checks to see if the phoneNumber, carrier and smsMessage variables were sent. This is useful in the case where there may be more than one form on the page.
  • If phoneNumber, carrier and smsMessage are available and phoneNumber and carrier are not empty, it's okay to attempt to send the message.
  • The message argument in the mail function should be 70 characters in length per line. We can chop the message into 70 character chunks using the wordwrap function.
  • phoneNumber and carrier are concatenated and then the message is sent using the mail function.
  • If data is missing or it cannot be validated, the script simply returns Not all information was submitted.
  • Finally, mail returns a boolean indicating whether it was successful or not. The value is stored in $result in case I needed to verify that the message was in fact sent.

Note: The mail method only notifies whether the message was sent or not. It does not provide a way to check to see if the message was successfully received by the recipient server or mailbox.


The Final Code


Troubleshooting

Localhost Error

In order to use the mail function, you must have a mail server running. If you're running this SMS PHP free script on a web host, you're probably okay. But if you're unsure, I recommend talking to an administrator. This also holds true for personal machines. So if you get errors like..

...you'll have to install and configure a mail server. This is out of the scope of this tutorial. However, if you're working on your local machine, switching to something like XAMPP might solve this problem. Alternatively, try installing Mercury Mail alongside WAMP, MAMP or on a LAMP (or SAMP or OAMP, etc.) system (that's a lot of 'AMPs').

PHPMailer

Another option (which is the method I prefer) is to use PHPMailer. Below is an example of how to use PHPMailer to connect to Gmail's SMTP server and send the message.

Using it is as simple as including a class in your PHP send SMS script.

This should print out something along the lines of:

It may take a little more to set up the connection depending on your situation. If you're planning on using Gmail for your PHP send text message free script, Google has provided information on connecting.


Find Message PHP Code From CodeCanyon

It's great that you now know how to send and receive message in PHP with SMS Sender. But SMS Sender isn't the only PHP script for sending SMS to mobile. CodeCanyon is home to many other options that have this feature and more. Here are just a few great choices for those hunting for SMS message PHP code.

1. XeroChat—Best Multichannel Marketing Application (SaaS Platform)

XeroChat lets you send free SMS in PHP and a whole lot more. You can set up Facebook Messenger chatbots, Instagram auto comment replies, ordering, and other marketing functions. This PHP email to SMS platform perfect for a restaurant or eCommerce store. If your business needs a single hub for marketing solutions, including a PHP send SMS script, try XeroChat.

XeroChat PHP Send SMS

2. Ultimate SMS—Bulk SMS Application For Marketing

Are you looking for a PHP send text message script that can handle bulk SMS? Then you're looking for something like Ultimate SMS. It's a powerful PHP script for sending SMS to mobile that's also user-friendly. You can build your own API to suit your needs, and Ultimate also supports two-way SMS. There's even an option to create custom SMS templates for common messages. It's a great option if sending SMS from PHP website to mobile is a priority for your new business.

Ultimate SMS PHP Send Text Message to Cell Phone

3. Smart SMS and Email Manager (SSEM)

SSEM is another PHP to email SMS script that also does more for you. Create, send, and schedule both SMS and emails for your project or business. These features make marketing much easier. Thanks to the continued updates of the developers, the new SSEM UI now makes this PHP send SMS script easier to use. If you're looking for PHP code to send SMS to mobile from website for free, try out SSEM.

Smart SMS PHP Script for Sending SMS to Mobile

4. SMS Gateway—Use Your Phone as SMS Gateway

You can send free SMS in PHP with the SMS Gateway script. It allows you to send bulk messages through a CSV or Excel file. You can also use your phone as an SMS gateway. Other features of this send SMS using PHP script include:

  • auto-responder
  • contact list creation
  • multilanguage support
  • delivery reports
  • messages in the admin panel 

Not a bad batch of features to have for a PHP send text message free script.

SMS Gateway Send SMS to Mobile Using PHP

5. Nimble Messaging Professional SMS Marketing Application For Business

We round out our list of message PHP code with the comprehensive Nimble. This send SMS PHP free script perfect for digital marketing. Not only can you send bulk SMS messages, but this script also has WhatsApp integration. Now you'll be able to reach contacts with important messages on the platform of their choice. Use this PHP code to send SMS to mobile from website free script if you want to send deals or product updates to customers.

Nimble Messaging PHP Send Text Message to Cell Phone

Find More PHP Scripts From Envato Tuts+

If learning how to send SMS through PHP code makes you even more interested in downloading more scripts, Envato Tuts+ is here for you. We've gathered some of the best PHP scripts for different niches. You can check them out here:

Conclusion

Learning how to send and receive message in PHP can be simple. It's nice that there are a myriad of methods to accomplish the task of sending a SMS through a web application. This method is really meant for low volume messaging (most likely less than 1,000 text messages per month) and developers looking to get their feet wet without forking out cash. Other options include:

  • Using a SMS Gateway Provider
    • Doing a Google search will return plenty of options.
    • Most SMS gateway providers include an API for sending messages through a web application.
    • You can usually sign up for service for a reasonable price, assuming you're planning on sending at least 1,000 SMS message per month.
    • You can rent a short code number.
  • Using a GSM modem
    • This can be a costly and slow way to do it, since you have to buy a modem and have a contract with a wireless network
    • You'll also have to use the AT (Hayes) command set.
  • Use a direct connection to a wireless network, which will require some strong negotiating and a whole lot of money.

This tutorial is in no way a comprehensive review of how to send SMS through PHP code, but it should get you started! I hope this PHP text message script tutorial has been of interest to you. Thank you so much for reading!

If you still need help with this or any other PHP issue, try contacting one of the experienced PHP developers on Envato Studio. Or try our free PHP tutorial, which takes you through the fundamentals of PHP in a methodical, comprehensive set of video classes. You can also learn more about PHP from the articles below.

This post has been updated with contributions from Maria Villanueva, a journalist and writer with many years of experience working in digital media.

18 Best Ionic App Templates

$
0
0

With Ionic, creating a high-performance, cross-platform mobile app is as easy as making a website. Seasoned web developers or anyone with an intimate knowledge of JavaScript can quickly get up and running with Ionic.

Its ability to develop native apps on Android, iOS, and more with a JS framework and a single codebase makes it a breeze to pick up. It also boasts a substantial community, good documentation, and even a drag-and-drop builder that can handle several tasks.

Quick Order ionic 5 mobile app for WooCommerce
Get this modern Ionic 5 template from CodeCanyon

Building a feature-rich Ionic app with an elegant user interface, however, can be challenging—even more so if it is to look native on multiple platforms. Fortunately, by using a ready-made Ionic template, you can save substantial amounts of time and effort.

The Best Ionic Mobile App Templates on CodeCanyon

CodeCanyon is one of the largest online marketplaces for Ionic templates. No matter what your app’s requirements are, there’s a good chance that CodeCanyon has one that will help give your project a boost!

Ionic templates on CodeCanyon

Ionic templates work similarly to front-end themes and templates for platforms like WordPress. They consist of a collection of files and assets that help to bridge the gap between the framework itself and the finished product that you are building.

There are a ton of benefits to using an Ionic app template, namely:

  • starting with a large portion of your project already completed
  • documented, professional code
  • reduced project cost
  • an existing structure to build the remainder of your project on

Pairing these benefits with the already robust framework provided by Ionic gives developers a huge leg up when it comes to app development. Small development teams and those with limited resources will find them especially helpful. Purchasing your premium theme on CodeCanyon can give you all of these benefits, and in some cases, you may even be able to purchase extended support.

The Ionic templates covered here are just a small sample of the hundreds of Ionic app templates we have available at CodeCanyon. With so many app templates in existence, you’re sure to find one that’s helpful, no matter how niche your project. So check them out!

18 Best Premium Ionic App Templates (From CodeCanyon -for 2021)

1. Ionic5 Woocommerce—Universal Full Mobile App

Ionic5 Woocommerce - Ionic5/Angular8 Universal Full Mobile App

This Ionic template is one of our best-selling Ionic ready-made app templates. It's the perfect solution to turn your WooCommerce online store into an app. This Ionic 5 template features:

  • 10 home layouts
  • 60+ screens
  • 50+ components
  • 20+ card styles
  • multi-currency
  • multi-language
  • RTL supported
  • unlimited colors
  • dark and light mode

User sotaj said:

Great work. I will highly recommend it if you need to turn your app live.

2. Best eCommerce Solution with Delivery App For Any Stores

Best Ecommerce Solution with Delivery App Any Stores / Laravel + IONIC5

This Ionic mobile app template is one of our newest items. This eCommerce solution comes with four components: a Laravel website, an ionic customer mobile app, a delivery boy app and a Laravel CMS with advanced features.

You'll get everything you need in this Ionic 5 template. You can use the Ionic mobile app template for groceries, medicine, fashion, electronics and any other kind of store.

3. Quick Order Ionic 5 Mobile App For WooCommerce

Quick Order ionic 5 mobile app for WooCommerce

Looking for the best Ionic 5 templates? This one is a great option for you. You'll get unlimited layouts and hundreds of customizable options:

  • Dynamic design layouts
  • WPML suppor Multi currency support
  • WooCommerce points and rewards
  • Wallet system included
  • Dark and light mode
  • Social media login
  • Multivendor support
  • Dokan multivendor support
  • WCFM and WC marketplace support
  • Unique admin and vendor features

User RM_Creation said:

Best quality app and customer support very quickly. Thanks

4. Ionic 3 UI Theme

Ionic 3 ui

The Ionic 3 UI Theme template is ideal for Ionic developers who want to create beautiful apps but spend less time designing them. The Ionic theme offers just one theme that includes over 100 commonly used screens and 100+ components. It also has a well-organized Sass file containing dozens of elements that you can change to customize your app’s appearance. It also comes with a Firebase back-end, push notifications, form validation, and much more.

5. Ionic 3 App for WooCommerce

Ionic 3 App for WooCommerce

Ionic 3 App for WooCommerce, developed by hakeemnala, is a template you should consider using if you are looking to create an eCommerce app. It allows you to quickly create a beautiful app that can connect to your WooCommerce website.

This integration allows you to pull in settings, products, and more. This cohesiveness across platforms provides a seamless experience and makes it a breeze for your customers to shop your brand anywhere, without feeling out of place.

This app template supports all primary payment methods and has auto-updating shipping information and a global search, making it as versatile as it is stunning. It also supports push notifications so customers can get to know about deals even when they are not using the app.

6. Ionic 3 Restaurant App Template

Ionic 3 Restaurant App

If you’re looking for an intuitive restaurant app that’s easy to set up, then check out this Ionic Restaurant App template, developed by Lrandom. The Ionic mobile app template is well structured and offers useful features that will enhance any restaurant’s presence.

Food categories, fully fleshed-out product listings, flexible pricing, current promotions, a powerful search, and an easily navigable cart will help your app to stand out. Also, the source code for the app comes with an admin panel CMS that will help you build your app faster.

7. Ionic 5 Restaurant App Template

Restaurant Ionic 5

Restaurant Ionic 5, which is developed by appseed, is an Ionic template that’s bound to entice any restaurant owner—or restaurant-goer. Apps created with it are feature-packed, and they have intuitive user interfaces that let customers view menus, place customized orders, read about special offers, and choose delivery methods. They’ll also allow you to communicate with your customers using push notifications. It also supports login with Google and Facebook accounts.

Setting this Ionic theme template up is a breeze. So is customizing it, because you can dramatically change the looks of your app by simply selecting one of the several beautiful Material Design-inspired color themes it offers.

8. Ionic 3 Toolkit Personal Edition

Ionic 3 toolkit

The Ionic 3 Toolkit Personal Edition allows you to build your mobile app with diverse screens and elements quickly. It comes with three different codebases: for Ionic 3, Ionic 4, and Ionic 5.

This Ionic theme comes with two different themes, light and dark variants, each with an extensive collection of beautifully crafted, frequently-used screens and a beautiful UI kit to build premium-looking apps.

9. Ionic 5 App for WooCommerce

Ionic 5 App for WooCommerce

This Ionic WooCommerce app template is a beautifully designed, easy-to-use app that automatically syncs products and categories from your WooCommerce store. Users can also browse product images and customer reviews to decide what they want to purchase. They can also make payments and track orders. Other features include Google and Facebook login support, a wallet system, and push notifications.

10. WooCommerce Mobile App

WooCommerce Mobile App

The WooCommerce Mobile App template, by hakeemnala, is a best-selling template and is one of the best rated in its category.

The app allows clients to connect to their WooCommerce store and sync categories and products in real time. Once customers register and log in, they can shop, pay for items, view order status and order history, and manage their accounts. Useful features include a featured products page, categories, a powerful search and filter, list and grid views, as well as ratings and reviews.

Being able to tie into an existing CMS reduces the overall work that needs to be completed, both by developers and by the eventual end user.

11. Multi Restaurants Ionic 3 and Firebase App

Multi restaurant Ionic 3

Multi Restaurant Ionic 3 is the perfect template to create a fully fledged restaurant system. This template comes with every possible functionality you can think of, including the ability for customers to make reservations. Some of its notable features include:

  • maps which allow customers to find nearby restaurants
  • Firebase authentication
  • support for multiple payment gateways

12. Conference Ionic 3

Conference Ionic 3

Another app template by the prolific developer appseed, the Conference Ionic 3 app template offers something unique in the app template arena. The app is aimed at conference organizers who want to create an app for attendees that provides all the information related to a conference in one handy app.

It allows attendees to view conference information such as location, exhibition halls, speakers, schedules, sponsors, committees, and much more. Users can access speaker profiles and create their schedules, which is helpful for anyone who’s trying to make sense of a multi-track conference.

13. Ionic5 eCommerce

Ionic eCommerce

While we’ve covered a few specific eCommerce templates so far, Ionic5 eCommerce is a different beast. Its focus on widely useable features has made it a popular starting point for those looking to sell online. While it operates well as a template, its real power is in its toolkit approach, providing everything you might need for many types of eCommerce apps.

Ionic eCommerce offers a variety of ready-made eCommerce pages to create your mobile app and provide a comprehensive CMS to manage your store. Some key features include interactive themes, social share, product filters, sorting and search, inventory management, and much more. The developer provides full support and will customize and install the app for you for a fee.

14. Nearme 6.0

Nearme 6

Nearme is a location-based app template by developer quanlabs. The Ionic 5 template helps developers build an app that will identify supermarkets, restaurants, places of interest, gas stations, etc. that are near the user. The template comes with an admin panel that allows developers to send push notifications to users and manage categories, places, deals, slider images, users, reviews, and more. 

15. Ionic 5 Food Delivery Full App

ionic food delivery

The Ionic 5 Food Delivery app is a fully functional and ready-to-use app with a Firebase back-end and comes with three main apps: a user app, restaurant app, and delivery app. This template also features a unique and attractive, fully responsive UI. Other features include:

  • support for multiple payment options
  • restaurant, food, and driver reviews
  • support for multiple restaurants
  • live location tracking and many more

16. Hala News Ionic 5 WordPress App

Hala News Ionic 5 Wordpress App

Hala News Pro is a highly rated Ionic 5 WordPress application, which you can use to build apps for Android, iOS, and Windows. Notable features of this Ionic social app template include auto push notifications via OneSignal, offline mode, social support and login, Google analytics, Facebook comments, and much more. Hala News is also easy to use and customize.

17. Ionic 5 WooCommerce Dokan Multivendor Mobile App

Ionic 5 WooCommerce marketplace mobile app - Dokan Multivendor

This Ionic theme template is a simple mobile app for WooCommerce. You can easily customize it into any theme. The Ionic theme template comes with great vendor features, 150 prebuilt themes and multiple easily customizable products layouts.

18. IMABuildeRz—Universal AppBuilder for Ionic 5

IMABuildeRz v3 - Universal AppBuilder for Ionic v5

The IMABuilderz is a web tool to generate Ionic Framework v4/Latest (Angular10/latest) code for apps. You can create no-limit apps and backends. This Ionic theme template features:

  • Auto/Manual coding: create an apps with/without coding skills
  • Unlimited app: make apps without limits
  • 100% White label: sell apps that you have created
  • Fully editable code
  • BackEnd Generator: create your own WordPress Plugin and private CMS for Your App
  • Multi language translation support

This is a five-stars rated app builder and Angular Ionic template. User muhdkhokhar said:

This is one of the best tools I have ever used. I already have Angular and IONIC knowledge but don't enough time to create applications. I was able to build our application using this tool in no time.

4 Free Ionic App Templates For 2021

Are you looking to test out some free Ionic 5 templates before purchasing a premium one? Here are some of the best free Ionic templates that are available from around the web.

Firebase Social Login

Firebase Social Login is a complete solution if you need to add a social login component to your app. It is an Ionic app that provides login support for Google and Facebook.

Instaclone

This Ionic theme provides all of the styling and elements needed to create an app that looks like Instagram. It doesn’t come with a back-end, but if you’re looking for a theme with style, check Instaclone out.

Ionic Slack

Similar to the previous theme, this app is front-end only. Its styles and theming will let you create an app like Slack. From there, you can adjust the branding to match your own! It’s available from the Ionic Slack GitHub account.

iClub

iClubs Ionic Theme

This theme comes with styles and theming, and a handful of great-looking screens. If you want to take it for a test run, you can find it on the official iClub GitHub page.

Find an Ionic App Template on CodeCanyon

Which Ionic app template will you try first? If you have used an app template for your Ionic project, we’d love to hear about it. Tell us about your experience and the template you used below, and we might include it in a future post!

CodeCanyon is one of the largest online marketplaces for Ionic templates. No matter what your app’s requirements are, there’s a good chance that CodeCanyon has one that will help give your project a boost!

Ionic App Templates from CodeCanyon
The best Ionic mobile app themes are on CodeCanyon

And if you want to improve your skills in building Ionic apps and templates, then check out some of the ever-so-useful Ionic tutorials we have on offer!

This post has been updated with contributions from Maria Villanueva, a journalist and writer with many years of experience working in digital media.

15 Best Social Media Scripts and Plugins to Streamline Your Workflow

$
0
0

If you are running a business or building a brand, you are always looking for ways to increase your online reach. A streamlined, accessible and consistent social media presence is essential, whether you are a bricks-and-mortar shop, a digital specialist, or a marketing influencer.

Essential Grid Gallery WordPress Plugin
Get the Essential Grid Gallery WordPress Plugin for your website today!

Using social networks scripts and plugins from CodeCanyon, you can make your life easier while optimizing your social media presence. These plugins will help you integrate your content seamlessly across platforms and run efficient and impressive online marketing strategies.

Get The Best Social Media Plugins and Scripts on CodeCanyon for 2020

Discover thousands of the best social networks scripts and social media plugins ever created on Envato Market's CodeCanyon.  From social engagement experts doing outreach for big brands to independents who need the tools to take on an online campaign, CodeCanyon has innovative and easy-to-use solutions. 

Best-selling social media plugins on CodeCanyon
Discover the best-selling social networks scripts and plugins from CodeCanyon

With a cheap one-time payment, you can purchase these high-quality WordPress plugins, extensions, and add-ons. The premium and professional items you get on CodeCanyon offer so many benefits, like:

  • unique elements
  • tasted layouts
  • lifetime updates and support
  • full integration 
  • and much more

Check out this list of must-have social tools to improve your relationship with your base, streamline your personal workflow, and create conversions in no time.

15 Top Social Networks Scripts And Plugins To Get In 2020

1. Essential Grid Gallery WordPress Plugin

Essential Grid Gallery WordPress Plugin

Essential Grid is our best-selling social media plugin for WordPress. It allows you to build sleek and clean galleries for your multimedia content, from multiple sources.

Easily import your content from a WP gallery, Instagram, Youtube, Facebook and more; then customize the layout, add filters and even skins to your gallery! Here are some of its best features:

  • template library with over 50 starter grids
  • video tutorial channel 
  • all-purpose usage
  • boxed, Full-Width and Full-Screen layouts
  • adjustable rows, columns and spacings
  • import images, Youtube & Vimeo videos, HTML5 self-hosted videos and iFrame Content
  • various animation styles 
  • dozens of available skins
  • responsive and mobile optimized

2. Easy Social Share Buttons for WordPress

Easy Social Share Buttons for WordPress

Another best-selling and must-have social media plugin for your website. Easy Social Share Buttons is packed with everything you could need to connect your site to social media. 

Easy Social Share Buttons is compatible with over 50 social media networks and offers many design options, including more than 30 automated display methods, unlimited color and styles, detailed customization of share buttons and share optimization tags. Plus, you’ll find insightful analytics and first-class mobile support.

User mblazoned says:

I love these buttons. The are good looking and functional. I've been using them for years and when I have an issue, they have great support. Thanks, Easy Share!

3. WoWonder—The Ultimate PHP Social Network Platform

WoWonder - The Ultimate PHP Social Network Platform

Are you looking for the best social networks scripts? WoWonder is a PHP social network script, and the best way to start your own social network website. Here are some of the coolest features of this best-selling script:

  • high performance & high level cache system
  • RTL support
  • social media login
  • easy and good-looking URL
  • friends and follow system
  • home / news feed
  • user timeline

See why people love this WoWonder social media script so much. User Pete says:

Wow, best script I have ever uploaded. Can't believe how simple it is to use and how it does so much. Thank you so much. This is the best Facebook like social media script I have ever used . Thanks again.

4. WordPress Social Feed Grid Gallery Plugin

WordPress Social Feed Grid Gallery Plugin

This premium social media plugin allows to create beautiful responsive galleries and widgets of social feeds, RSS and WordPress posts.

What's great about this best-selling plugin is that you can add a custom Facebook feed, Instagram feed and Twitter feed mixed in one gallery. 

This WordPress Social Feed Grid Gallery Plugin also allows you to embed user generated content (UGC) from multiple sources. This is a great way to add social proof to your WordPress website and increase your brand presence and boost your sales.

User Nazjas says:

Great plugin! Great support! Streaming social posts with Flowflow is awesome!

5. YouTube Plugin—WordPress YouTube Gallery

YouTube Plugin  WordPress YouTube Gallery

This WordPress plugin for YouTube allows you to select the desired channels and even single videos to create your own playlist right on your website.

The YouTube plugin includes 100+ adjustable parameters, four color schemes, support in 16 languages and Google AdSense integration. You'll be able to customize your video gallery as you wish with this plugin. 

6. Instagram Feed—WordPress Instagram Gallery

Instagram Feed - WordPress Instagram Gallery

InstaShow is a premium WordPress Instagram feed plugin for creating charming galleries of Instagram images. 

60+ adaptable parameters and 10 color schemes will help to adjust the Instagram gallery as you wish. Use a fully responsive and mobile friendly plugin to attract your website’s audience in a flash.

A five-star rating makes this plugin a crowd favorite! User hlviher says:

Top notch customer support, and a super cool plugin. Highly recommend!

7. Social Locker for WordPress

Social Locker for WordPress

This social media plugin has a very specific purpose: to give your visitors a  a reason why they need to click on social buttons on your website. 

Social Locker is a WordPress plugin that locks your most valuable site content behind a set of social buttons until the visitor likes, shares, or tweets your page. It helps to improve the social performance of your website, get more likes/shares, build quality followers and attract more traffic from social networks.

All you need to do is select the part of your content you want to lock, click a button and you’re done.

8. Pinterest Automatic Pin Wordpress Plugin

Pinterest Automatic Pin Wordpress Plugin

Did you know that Pinterest drives more traffic than Google+, YouTube and LinkedIn combined? 

That's why you'll like this Pinterest Automatic plugin that pins images from your posts automatically to Pinterest. Some of its best features are: 

  • pin unlimited number of images
  • automatic images and boards detection
  • bulk pin
  • queuing system
  • auto-link pins to your post
  • 9 supported tags

9. WooCommerce Social Login—WordPress Plugin

WooCommerce Social Login - WordPress Plugin

If you have a WooCommerces online store, then you need this social media plugin to improve your shopping experience. 

WooCommerce Social Login extension allows users to login and checkout with social networks such as Facebook, Twitter, Google, Yahoo, LinkedIn, Foursquare, Windows Live, VKontakte (VK.com), PayPal, Amazon, and login with Email. It features:

  • one click registration
  • seamless integration
  • secure sign-ons
  • signup statistics
  • User-friendly UI

User inkerbrained writes:

Simple to set up and use. No complicated settings. I'm not a developer but I was able to easily set up the credentials I needed to connect this plugin to my social sites. Would recommend this plugin to anyone needing to provide social login on their site.

10. Stackposts Social Marketing Tool

Stackposts Social Marketing Tool

Need help coordinating your social media presence? Stackposts is a marketing tool that allows you to manage multiple social networks, schedule posts, increase your traffic, and engage your audiences. This easy-to-use, mobile responsive tool will make your life easier. It can post to Facebook, Twitter, or Instagram simultaneously: just upload your media, add a caption, and choose a time to publish. Stackposts takes care of the rest.

This tool includes customizable email templates and a payment system upgrade, if you need it, to create a comprehensive user experience, for both you and your customers.

User lucrativetech says:

“This script is fantastic, the design is great, the code clean. I can recommend this over and again.”

11. PHP Social Stream

PHP Social Stream

Looking for a way to broadcast your social network news, updates, videos and images from multiple platforms in one place? Improve the visitor experience by installing PHP Social Stream, a plugin that combines your social networking activities into one stream to display on your website. 

Your visitors will be able to easily share your content with their networks. Choose one of four built-in templates, or customize your stream with the theme manager to create a user experience unique to your website. Supporting 17 social networks, with more than 30 feed options and six different display modes, PHP Social Stream has the flexibility to work with your social stream needs.

User deanlacey says:

“Coding! First class, super work. This has to be one of the best purchases from Envato that I’ve ever made. This looks fantastic and so professional. Absolutely first class and cannot recommend these guys enough!!!”

12. phpBioLinks: Boost Instagram Bio Linking

phpBioLinks

Instagram is a vital part of your social media strategy. If you want to share multiple links with your followers, outreach can be challenging as you can only include one unique link in your Instagram bio. phpBioLinks offers an elegant solution to Instagram’s link limit.

Using this product, you can create a website where you can add as many links as you want. Then, paste that website's URL into your Instagram bio and never change it again! A simple drag-and-drop interface allows you to reorder links, and the clean and responsive design makes this product mobile-ready. You have total control: customize pages, manage users, and access helpful analytics. phpBioLinks includes PayPal and Stripe gateways for payments, and has the ability to embed video and audio media in your custom website.

User designrpixxel says:

“Fast response + great script = 5 stars.”

13. AccessPress Social Pro

AccessPress Social Pro

How do you get more social media shares? Every business and brand wants to increase its reach, and AccessPress Social Pro is a WordPress plugin that helps you do that. This plugin allows others to easily share your website content—pages, posts, images, and media—with their networks, and works with 27 major social networks to make sure your content is accessible to a wide audience. 

With 20 highly customizable themes, an easy-to-use drag-and-drop interface, beautiful CSS3 animation and fast load-time, this fully responsive plugin will help you grow your reach.

User caapi says:

“Brilliant plugin. It doesn’t slow page loads. It has lots of design options. It’s easy to use. And incredible support team! A+++++!"

14. Facebook Messenger Customer Chat WordPress Plugin

Facebook Messenger Customer Chat WordPress Plugin

Make connecting with your customers easier and provide a seamless experience for visitors to your WordPress site with the Messenger Customer Chat plugin. Based on Facebook Messenger, this plugin allows customers to contact you for live chat directly through your website.

Messenger Customer Chat automatically loads recent chat history with each individual, to create a streamlined experience for your customers that allows you to continue the conversation even after they have left your website. No need to capture customers' information for follow up: just open the conversation in Messenger and continue where you left off! This plugin is a very convenient way for customers to stay in touch. And with each interaction, you build your customer base for future online marketing and outreach.

User baloo13 say:

“Great plugin! Simple to use, great design and super support!!”

15. FS Poster: WordPress Auto Poster and Scheduler

FS Poster WordPress Auto Poster and Scheduler

Looking for a WordPress plugin to fully integrate your website with your social networks? FS Poster’s user-friendly, modern interface allows you to schedule and automatically publish posts to multiple social networks in order to manage your full online marketing strategy in one place. With helpful features like analytics reports, WooCommerce integration and a built-in link shortener, FS Poster provides you with the tools you need to build a comprehensive and integrated web presence from your WordPress website.

User matheussantanabs says:

"Currently this is the best and most complete sharing plugin. Extremely easy to use and intuitive. Now it's much easier to monitor the networks where they are shared, I can see this clearly on the dashboard. Besides the development team is always working for improvements and is always available to help. Undoubtedly, this was one of my best investments."

Discover More Awesome Resources For Your Website

I hope you've enjoyed the selection of the best social networks scripts and plugins I showed you from CodeCanyon. If you're looking for more resources to build or add to your website, check this list below:

Conclusion

These social media tools from CodeCanyon will make it easier for you to improve online reach for your business or brand. A consistent social media presence is important no matter what kind of business you have, and the right tools can really improve your workflow!

This post has been updated with contributions from Maria Villanueva, a journalist and writer with many years of experience working in digital media.

Getting Started With the MStore Pro React Native App Template

$
0
0

Building a React Native app from scratch can be difficult. Setting up the initial project can be complex and annoying, especially for those who work primarily on web applications.

How do you deal with the command-line interface? What is exporting your project? These questions pop up, and for your first few apps, they'll seem like a mystery.

Not only that, but the transition to building native apps can be a shock. Responsive designs behave differently on smaller screens, and things like status bars have to be planned for.

BeoNews React Native App Template

This is where templates come in handy. Allowing you to skip over the initial setup and creating a framework to work within, they can become one of the best tools in a React Native developer's kit.

A number of ready-made code templates are available at CodeCanyon, along with many more tools for developers. You can also find different kinds of templates geared to specific niches, helping to cover ground on functionality only common in certain industries.

In this tutorial, we'll take a look at how to use the MStore Pro React Native template. This eCommerce app template for React Native helps you get an online store going quickly, and has a number of features you're going to love. Let's get started! 

You can also read how to use MStore Pro template to make a mobile app for your WooCommerce site

Getting the Template From the Marketplace

You can download the code by going to the MStore Pro template product page at CodeCanyon. Though it's not free, the MStore Pro template will help to reduce your development workload significantly. It'll take care of the most common functions and screens, and you just need to alter the design and hook it into your existing store (if you have one).

To give you an idea of what it offers out of the box, here are some of its top features:

  • Full integration with WooCommerce: if you're running a WooCommerce website, the app can display the same products which you have on your existing website.
  • Support for both iOS and Android: the app runs and looks good on both Android and iOS platforms.
  • Social logins: customers can log in using their Facebook or Google account.
  • Easy customization: everything is broken down into components. This ensures that you can easily customize the template based on your brand.
  • Push notifications: this automatically alerts your customers when there's an update to the status of their order. You can also send out push notifications for product promotions. Push notifications are implemented with Firebase.  
  • Multi-language support: out of the box you get English as the main language. Vietnamese exists as a second option, but you can also add your own language.
  • Secure payment integration: payments are done with PayPal.

If you don't have an Envato account yet, you can sign up here. Once that's done, log in to your newly created account. Then you can go back to the MStore Pro template page and click on the Buy Now button. 

Setting Up the Project

Once you've purchased the template, you'll get a download link to the template's archive file. Extract that and you'll get a CodeCanyon folder which contains MStore 2.2.

MStore 2.2 is the directory for the template project. Go ahead and open a new terminal window inside that directory and execute the following command:

This will install all the project dependencies. This may take a while depending on your download speed, because it has to download a lot of dependencies. Take a look at package.json if you want to see the packages it needs to download.

Once that's done, there's an additional step if you want to build for iOS devices. Go to the iOS folder and execute the following:

Next, for Android, connect your mobile device to your computer and execute:

This will list all the Android devices connected to your computer. If this is the first time you're connecting the device, you should get a prompt asking you if you want to allow the computer for USB debugging. Just tap on yes once you get that prompt.

Now you can run the app on your Android device:

For iOS:

If you didn't encounter any errors, you should be greeted with the following page:

MStore Template Home page

To give you an idea of the different pages available in the template, here are a few more screenshots.

The template comes with a complete, customizable multi-step checkout form.

Multi-step checkout form

There is also a cart review screen that makes it easy for users to view or modify the contents of their cart.

Cart review screen

The template comes with a product detail screen for getting more information about a product.

Product detail screen

Last but not least, the template comes with a complete, working login flow, including support for social login.

Social login screen

Troubleshooting Project Setup

In this section, I've compiled a list of common project setup errors and their solutions. 

Development Server Didn't Start

If the development server didn't automatically start when you executed react-native run-android or react-native run-ios, you can manually run it by executing:

Watcher Took Too Long to Load

 

If you get an error similar to the following:

This is because an existing Watchman instance is running. This is a component of the React Native development server. You can solve this error and shut down Watchman by executing the following commands:

Could Not Run ADB Reverse

 

If you're getting the following error:

It means that your Android device is running on a version that's lower than 5.0 (Lollipop). This isn't actually an error. It simply means that your Android device doesn't support adb reverse, which is used to connect the development server to your device via USB debugging. If this isn't available, React Native falls back to debugging using WiFi. You can find more information about it here: Running on Device.

Something else might be causing your build to fail. You can scroll up the terminal to see if there are any errors that happened before that.

Can't Find Variable _fbBatchedBridge

If you're getting the following error and the development server is running in WiFi mode, this means that you haven't set up the IP of your computer in your Android device. (This usually only comes up with Android devices below version 5.0.)

You can execute the following to show the React Native developer options on your device:

Select Dev Settings from the menu that shows up. Under the Debugging section, tap on Debug server host & port for device. Enter the internal IP assigned by your home router along with the port in which the development server is running and press OK:

Go back to the home screen of the app and execute adb shell input keyevent 82 again. This time, select Reload to reload the app.

Could Not Find Firebase, App Compat, or GMS Play Services

If you're getting "could not find" errors, this means you haven't installed the corresponding packages using the Android SDK Manager.

Here are the packages that need to be installed:

  • Android Support Repository
  • Android Support Library
  • Google Play Services
  • Google Repository

Make sure to also update existing packages if there are any available updates.

Other Problems

If your problem doesn't involve any of the above, you can try the following:

  • Check out the documentation on troubleshooting.
  • Check out the template product comments. You can search for the error you're getting. Try to generalize and shorten the error message, though—don't just search for the entire error message. If you can't find the error, you can try asking your own question in the comments thread. The support team usually replies promptly.
  • Try searching for the error on Google. Even if the results you find don't involve the use of the template, they'll give you an idea on how to solve the problem.
  • Search on StackOverflow or ask a new question. Make sure to include all the necessary details (e.g. the error message and any steps that you've taken). There's a good article about how to ask questions on StackOverflow.

Customizing the Template

A good place to start learning how to do things in the template is its documentation:

  • API and Project Structure: shows where to find the different files in the template and what they're used for.
  • WooCommerce Settings: shows how you can hook up your existing WooCommerce website to the app. Hooking up the app to your WooCommerce means that it will be able to fetch all the product categories and products in your WooCommerce store. 
  • Customize the App Branding: shows how to customize the theme for your own brand.

Be sure to check those out! I'm not going to repeat what was mentioned in the documentation. Instead, what we're going to do in this section is to actually customize the template so it looks the way we want.

Most of the project configuration settings are stored inside the app/Constants.js file. Here are a few examples of things which you can change from this file:

WooCommerce Integration

The URL of the WooCommerce store being used by the app. By default, this uses mstore.io.

Social Login Options

This is implemented using Auth0, an authentication platform. By default, the template only supports Google and Facebook sign-ins. But you should be able to add any service which Auth0 supports.

Icons

You can use any icon from Font Awesome, but you should prefix the name with ios-.

Theme

Colors for the different components that make up each page can also be updated. For example, if you want to change the header background color, you can update the value for TopBar:

Images

The splash screen and other images can also be updated by specifying a new path to each of the following:

These images are stored in the app/images directory; you can simply replace them if you don't want to keep the old images.

PayPal Options

You can also change the PayPal options from this file. Be sure to create your own PayPal Developer Account to obtain the clientID and secretKey. Don't forget to update sandBoxMode to false when you deploy your app to production, because by default it uses sandbox mode so that no actual money will be spent on transactions.

Customizing Individual Pages

To customize individual pages, you need to go to the app/containers directory. This is where you'll find the files for each page. For example, if you want to customize the home page, navigate to the home folder and open the index.js file. Once opened, you'll see that the page uses the <ImageCard> component to render each product category. So if you want to add a general styling for the <ImageCard> component, you have to update the app/Components/ImageCard/index.js file. Otherwise, you can simply update the styles within the page itself:

Top React Native App Templates From CodeCanyon

Learning how to use the MStore React Native template is a great way to get an e-commerce app ready for the public. But do you still have an appetite for making apps? 

1. Antiqueruby React Native Material Design UI Components

Antiqueruby React Native App Template

Antiqueruby is one of the top React Native app templates found on CodeCanyon. It's filled with beautifully-designed UI components. You'll save hours of development time by designing with Antiqueruby. It features e-commerce and music ready screens among others. Documentation is also included, so you don't have to wonder how to use this React template.

2. BeoNews Pro—React Native Mobile App for WordPress

BeoNews Pro React Native Template

This React Native template is built for anyone with a WordPress website. BeoNews Pro converts your site into an easy-to-use app. Multimedia like videos, photos, and blogs  all get integrated nicely in the new format. With regular updates, you can make sure your React Native app looks its best with this template.

3. Oreo Fashion—Full React Native App for WooCommerce

Oreo Fashion Modern Full App Template

Are you looking to build a modern mobile experience for your shop? Then you'll want to check out Oreo Fashion. It's a way to port over your desktop website to a mobile app. Edit layouts with the included layout builder. Oreo Fashion even support multi-vendor stores built with Dokan and WCFM Marketplace.

4. Felix Travel—Mobile React Native Travel App Template

Felix Travel Mobile React Native App Template

Felix Travel is a great template for 2021 and beyond. It's perfect for setting up crucial booking services. There are over 100 sample screens and more than 40 reusable React Native components. Having these tools available let you build a unique look for your app. Felix Travel also comes with documentation and support so you know exactly how to use this React Native template. 

5. GrabCab React Native Full Taxi App

GrabCab React Native App Template Taxi Rideshare Service

Ridesharing is a popular way of getting around. If you're looking to offer your community another option, build your app with GrabCab. This React Native template is filled with every tool you need to start a taxi service. It includes features like:

  • iOS and Android ready
  • industry-standard registration page
  • support for multiple payment methods
  • Google Maps API compatible
  • easy-to-use admin panel

Learn More About Code From Envato Tuts+

Learning different programming languages and how to code apps are useful skills in the 21st century. If you want to pick up some knowledge or brush up on what you already know, check out Envato Tuts+. Our instructors have made courses and tutorials that let you learn all kinds of skills.

Conclusion

With your app up and running, you can now start to dig in further. We barely scratched the surface of the MStore Pro template, but with the documentation in hand, you should have no problem finding out what to work on next.

For those with WooCommerce sites, hooking it into your online store should be next on the docket. Otherwise, try changing around some of the components or altering the design to fit your own brand better.

Download the template now, or If you want to learn more about it, you can check out the documentation. You can also find many more React Native app templates on CodeCanyon.

This post has been updated with contributions from Nathan Umoh. Nathan is a staff writer for Envato Tuts+.


Quickly Build a PHP CRUD Interface With the PDO Advanced CRUD Generator Tool

$
0
0

In this tutorial, we’re going to review PDO CRUD—a form builder and database management tool. PDO CRUD helps you build forms for your database tables with just a few lines of code, making it quick and easy to bootstrap a database application.

There are plenty of extensions available for database abstraction and specifically CRUD (create, read, update, and delete) generation for PHP and MySQL. And of course, you’ll also find commercial options that provide ready-to-use features and extended support. In the case of commercial options, you can also expect quality code, bug fixes, and new enhancements.

Learning coding language himself
Stock photo: Learning coding language himself

Today, we’re going to discuss the PDO CRUD tool, available at CodeCanyon for purchase at a very reasonable price. It’s a complete CRUD builder tool which allows you to build applications just by providing database tables and writing a few lines of code.

It works with multiple database back-ends, including MySQL, Postgres, and SQLite. In this advanced PHP CRUD tutorial, we’ll see how to use PDO CRUD to build a CRUD system with the MySQL database back-end.

Note: Si quieres aprender cómo hacer un CRUD en PHP y mySQL, da clic aquí.

Installation and Configuration

In this section, we’ll see how to install and configure the PDO CRUD tool once you’ve purchased and downloaded it from CodeCanyon.

As soon as you purchase it, you’ll be able to download the zip file. Extract it, and you'll find the directory with the main plugin code: PDOCrud/script. Copy this directory to your PHP application.

For example, if your project is configured at /web/demo-app/public_html, you should copy the script directory to /web/demo-app/public_html/script.

Next, you need to enter your database back-end details in the configuration file. The configuration file is located at /web/demo-app/public_html/script/config/config.php. Open that file in your favorite text editor and change the following details in that file.

As you can see, the details are self-explanatory. The $config["script_url"] is set to the URL which you use to access your site.

Once you’ve saved the database details, you’re ready to use the PDO CRUD tool. In our example, we’ll create two MySQL tables that hold employee and department data.

  • employees: holds employee information
  • department: holds department information

Open your database management tool and run the following commands to create tables as we’ve just discussed above. I use PhpMyAdmin to work with the MySQL database back-end.

Firstly, let’s create the department table.

Next, we’ll create the employee table.

As you can see, we’ve used the dept_id column in the employee table, which holds the id of the corresponding department stored in the department table.

Once you’ve created the tables in your database, we’re ready to build a CRUD application interface using the PDO CRUD tool!

How to Set Up Basic CRUD

In this section, we’ll see how you can set up a basic CRUD interface using the PDO CRUD tool by writing just a few lines of code.

The Department Table

We’ll start with the department table.

Let’s create department.php with the following contents. If your document root is /web/demo-app/public_html/, create the department.php file at /web/demo-app/public_html/department.php. Recall that we’ve already copied the script directory to /web/demo-app/public_html/script.

And now, if you point your browser to the department.php file, you should see something like this:

Advanced PHP CRUD Tutorial Blank Department View

Phew! With just two lines of code, you have a ready-to-use CRUD UI which allows you to perform all the necessary create, read, update, and delete actions on your model. Not to mention that the default listing view itself contains a lot of features, including:

  • search
  • built-in pagination
  • print
  • export records to CSV, PDF or Excel format
  • bulk delete operation
  • sorting by columns

Click on the Add button on the right-hand side, and it’ll open the form to add a department record.

Advanced PHP CRUD Tutorial Add View

Let’s add a few records using the Add button and see how it looks.

Advanced PHP CRUD Tutorial List View

As you can see, this is a pretty light-weight and neat interface. With almost no effort, we’ve built a CRUD for the department model! Next, we’ll see how to do the same for the employee table.

The Employee Table

In this section, we’ll see how to build a CRUD for the employee table. Let’s create employee.php with the following contents.

It's pretty much the same code as last time; we just need to change the name of the table. If you click on the Add button, it also brings you a nice form which allows you to add the employee record.

Como Hacer un CRUD en PHP y mySQL Tutorial add employee

You might have spotted one problem: the Dept id field is a text field, but it would be better as a drop-down containing the name of the departments. Let’s see how to achieve this.

In this code, we've accessed the department table through PDO CRUD so that we can associate the department name with the department ids. Then, we've updated the binding options for the department id field so that it will render as a dropdown (select) list.

Now, click on the Add button to see how it looks! You should see the Dept Id field is now converted to a dropdown!

Advanced PHP CRUD Tutorial Drop-down Demo

Let’s add a few employee records and see how the employee listing looks:

Advanced PHP CRUD Tutorial Employee View

That looks nice! But we have another small issue here: you can see that the Dept id column shows the ID of the department, and it would be nice to display the actual department name instead. Let’s find out how to achieve this!

Let’s revise the code of employee.php with the following contents.

Here, we've created a join between the employee and department tables with $pdocrud->joinTable, and then told PDO CRUD to render only the employee name, department name, and contact info with $pdocrud->crudTableCol.

And with that change, the employee listing should look like this:

Como Hacer un CRUD en PHP y mySQL Tutorial Employee With Reference

As you can see, the PDO CRUD script is pretty flexible and allows you every possible option to customize your UI.

So far, we’ve discussed how to set up a basic CRUD interface. We’ll see a few more options that you could use to enhance and customize your CRUD UI in the next section.

Customization Options

In this section, we’ll see a few customization options provided by the PDO CRUD tool. Of course, it’s not possible to go through all the options since the PDO CRUD tool provides much more than we could cover in a single article, but I’ll try to highlight a couple of important ones.

Inline Edit

Inline editing is one of the most important features, allowing you to edit a record quickly on the listing page itself. Let’s see how to enable it for the department listing page.

Let’s revise the department.php script as shown in the following snippet.

As you can see, we’ve just enabled the inlineEditbtn setting, and the inline editing feature is there right away!

Como Hacer un CRUD en PHP y mySQL Tutorial Inline Editing

This is a really handy feature which allows you to edit records on the fly!

Filters

As you might have noticed, the department listing page already provides a free text search to filter records. However, you may want to add your own custom filters to improve the search feature. That’s what exactly the Filters option provides as it allows you to build custom filters!

We’ll use the employee.php for this feature as it’s the perfect demonstration use-case. On the employee listing page, we’re displaying the department name for each employee record, so let’s build a department filter which allows you to filter records by the department name.

Go ahead and revise your employee.php as shown in the following snippet.

We’ve just added two lines, with calls to addFilter and setFilterSource, and with that, the employee list looks like the following:

Como Hacer un CRUD en PHP y mySQL Tutorial Filters

Isn’t that cool? With just two lines of code, you’ve added your custom filter!

Image Uploads

This is a must-have feature should you wish to set up file uploads in your forms. With just a single line of code, you can convert a regular field to a file-upload field, as shown in the following snippet.

I'll assume that you have a profile_image field in your employee table, and that you’re ready to convert it to a file-upload field!

That's it! Users will now be able to upload an image to the profile_image field.

CAPTCHA

Nowadays, if you want to save your site from spamming, CAPTCHA verification is an essential feature. The PDO CRUD tool already provides a couple of options to choose from.

It provides two options: CAPTCHA and ReCAPTCHA. If you select the CAPTCHA option, it presents a mathematical puzzle for the user to solve. On the other hand, if you select the ReCAPTCHA option, it presents a famous I’m not a robot puzzle!

If you want to add a simple CAPTCHA puzzle, you need to add the following line before you render your CRUD.

On the other hand, if you prefer ReCAPTCHA, you can achieve the same by using the following snippet.

You just need to replace the your-site-key and site-secret arguments with valid credentials from Google.

So far, we’ve discussed options that enhance the functionality of your application. Next, we’ll see how you could alter the skin and thus the look and feel of your application.

Skins

If you don’t like the default skin, you have a couple of options to choose from. The PDO CRUD tool provides dark, fair, green and advanced skins as other options to choose from.

For example, the following listing is based on the green theme.

Advanced PHP CRUD Tutorial Green Theme

It looks nice, doesn't it?

Pure Bootstrap

Although the default skin already supports responsive layouts, the PDO CRUD tool also supports Bootstrap library integration!

You need to use the following snippet should you wish to build your layout using the Bootstrap library.

And here’s what it looks like:

Advanced PHP CRUD Tutorial Bootstrap Theme

5 Top Premade PHP CRUD Interfaces From CodeCanyon

CodeCanyon is home to dozens of well-reviewed, easy CRUD PHP interfaces. If you don't want to browse through all of the PHP CRUD builders on the site, check out these five options:

1. PHP CRUD Generator

With more than 20 Bootstrap themes and great advanced features, this premade interface looks great and performs well. It does a great job of performing analysis on your data. PHP CRUD Generator also comes with tools that let you make your ideal Admin panel.

PHP CRUD Generator

2. xCRUD—Data Management System (PHP CRUD)

xCRUD is a CRUD PHP builder that's simple enough for most people to use while being powerful enough to be useful. You can work with multiple tables at the same time and access your data quickly with this data management system. A simple plugin also offers you WordPress integration. With a more than 4.5 star rating, xCRUD is one of the best PHP CRUD builders available.

xCRUD WordPress CRUD Builder

3. Laravel Multi-Purpose Application

Do you need an HTML5 CRUD application with all the bells and whistles? Then Laravel is a good choice for you. This easy PHP CRUD application is filled with features like:

  • front-end and back-end template
  • email blasts to users and groups
  • forgot password feature
  • blocked and allowed IP addresses
Laravel HTML5 CRUD Application

4. Admin Lite—PHP Admin Panel and User Management

If your next project is being made with CodeIgniter, you'll want Admin Lite. This HTML5 CRUD application helps you stay on top of your web development with ready to use modules. Admin Lite comes with an admin and user dashboard and supports multiple languages. You can convert your existing panel to this one so you can pick up where you left off.

Admin Lite CRUD PHP Panel

5. Cicool—Page, Form, REST API and CRUD Generator

We round out this list with Cicool. It's an easy CRUD PHP generator with a lot of features. This WordPress CRUD PHP builder can also be used to make pages, forms, and REST APIs. Using Cicool lets you use ready components and inputs to create what you need. Thanks to its constant updates, you'll know Cicool stays supported.

Cicool HTML5 CRUD Application

Learn More About The World of Code With Envato Tuts+

There's no doubt coding is a deep topic. There's a lot to learn, and it's easy to get lost. If you want to pick up very useful coding skills with some guidance, check out Envato Tuts+. Our code tutorials, guides, and courses offer you the instruction you need while learning. You can check out some of them below:

And make sure you head to our YouTube channel! It's filled with video tutorials and courses that are taught by our expert instructors.

Conclusion

Today, we reviewed the PDO CRUD advanced database form builder and data management tool available at CodeCanyon. This is a CRUD application interface builder tool at its core. It provides a variety of customization options that cover almost everything a CRUD system requires.

As I said earlier, it’s really difficult to cover everything the PDO CRUD tool provides in a single article, but hopefully the official documentation should give you some insight into its comprehensive features.

I hope you’re convinced that the PDO CRUD tool is powerful enough to fulfill your requirements and allows you to get rid of the repetitive work you have to do every time you want to set up a CRUD in your application. Although it’s a commercial plugin, I believe it’s reasonably priced considering the plethora of features it provides.

If you have any suggestions or comments, feel free to use the feed below and I’ll be happy to engage in a conversation!

Create a Google Login Page in PHP

$
0
0

In this article, I’m going to explain how to integrate Google login in your PHP website. We’ll use the Google OAuth API, which is an easy and powerful way to add Google login to your site.

As a web user, you've probably experienced the hassle of managing different accounts for different sites—specifically, when you have several passwords for different services, and a website asks you to create yet another account on their site.

To deal with this, you could offer a single sign-on feature to allow visitors to use their existing credentials to open an account on your site. A lot of websites nowadays let users log in by using their existing accounts at Google, Facebook, or some other popular service. This is a convenient way for new users to register with a third-party site instead of signing up for a new account with yet another username and password.

In this post, we’ll use the Google OAuth login API, which allows users to log in with their existing Google accounts. Of course, users should still be able to register with the usual registration form on your site, but providing Google login or something like it can help maintain a healthy user retention ratio.

How Google Login Works

Let's quickly go through the top level data flow of the whole process. As you can see in the following diagram, there are main three entities involved in the login process: the user, third party website and Google.

Google Login data flow

Now, let’s understand the overall flow of how Google login works on your site.

On the login page of your site, there are two options users could choose from to log in. The first one is to provide a username and password if they already have an account with your site. And the other is to log in on your site with their existing Google account.

When they click on the Login With Google button, it initiates the Google login flow and takes users to the Google site for login. Once there, they log in with their Google credentials, and after that they will be redirected to the consent page.

On the consent page, users will be asked for permission to share their Google account information with the third-party site. In this case, the third-party site is a site where they want to use their Google account for login. They will be presented with two options: they can either allow or deny.

Once they allow their information to be shared with the third-party site, they will be taken back to the third-party site from where they initiated the Google login flow.

At this point, the user is logged in with Google, and the third-party site has access to the user profile information which can be used to create an account and do user login. So that’s the basic flow of integrating Google login on your site. The following diagram gives a quick overview of the steps that we've just discussed.

Google Login process flow

In the rest of the post,  we’ll implement this login flow in a working example in PHP.

Setting Up the Project for Google Login

In this section, we’ll go through the basic setup which is required to integrate Google login with your PHP website.

Create a Google API Project

Firstly, you need to create an application with Google which will allow you to register your site with Google. It allows you to set up basic information about your website and a couple of technical details as well.

Once you’re logged in with Google, open the Google Developers console. That should open up the Google Dashboard page, as shown in the following screenshot.

Dashboard

From the top left menu, click on the Select a project link. That should open up a popup as shown in the following screenshot.

New Project Pop Up

Click on the New Project link and it will ask you to enter the Project Name and other details. Fill in the necessary details as shown in the following example.

Create New Project

Click on the Create button to save your new project. You will be redirected to the Dashboard page. Click on the Credentials from the left sidebar, and go to the OAuth consent screen tab.

oAuth Consent Screen

On this page, you need to enter the details about your application like application name,  logo, and a few other details. Fill in the necessary details and save them. For testing purposes, just entering the application name should do it.

Next, click on Credentials in the left sidebar. That should show you the API Credentials box under the Credentials tab, as shown in the following screenshot.

Credentials Tab

Click Client credentials > OAuth client ID to create a new set of credentials for our application. That should present you with a screen that asks you to choose an appropriate option. In our case, select the Web application option and click on the Create button. You will be asked to provide a few more details about your application.

App Settings

Enter the details shown in the above screenshot and save it! Of course, you need to set the Redirect URI as per your application settings. It is the URL where the user will be redirected after login.

At this point, we’ve created the Google OAuth2 client application, and now we should be able to use this application to integrate Google login on our site. Please note down the Client ID and Client Secret values that will be required during the application configuration on our end. You can always find the Client ID and Client Secret when you edit your application.

Install the Google PHP SDK Client Library

In this section, we’ll see how to install the Google PHP API client library. There are two options you could choose from to install it:

  1. Use Composer.
  2. Download and install the library files manually.

The Composer Way

If you prefer to install it using Composer, you just need to run the following command.

And that's it!

Download the Release

If you don’t want to use Composer, you could also download the latest stable release from the official API page.

In my example, I just used Composer.

If you’re following along, by now you should have configured your Google application and installed the Google PHP API client library. In the next and final section, we’ll see how to use this library in your PHP site.

Client Library Integration

Recall that while configuring the Google application, we had to provide the redirect URI in the application configuration, and we set it to redirect to https://localhost/redirect.php. Now it’s time to create the redirect.php file.

Go ahead and create the redirect.php with the following contents.

Let’s go through the key parts of the code.

The first thing we need to do is to include the autoload.php file. This is part of Composer and ensures that the classes we use in our script are autoloaded.

Next, there’s a configuration section, which initializes the application configuration by setting up the necessary settings. Of course, you need to replace the placeholders with your corresponding values.

The next section instantiates the Google_Client object, which will be used to perform various actions. Along with that, we’ve also initialized our application settings.

Next, we’ve added email and profile scopes, so after login we have access to the basic profile information.

Finally, we have a piece of code which does the login flow magic.

Firstly, let’s go through the else part, which will be triggered when you access the script directly. It displays a link which takes the user to Google for login. It’s important to note that we’ve used the createAuthUrl method of the Google_Client to build the OAuth URL.

After clicking on the Google login link, users will be taken to the Google site for login. Once they log in, Google redirects users back to our site by passing the code query string variable. And that’s when the PHP code in the if block will be triggered. We’ll use the code to exchange the access token.

Once we have the access token, we can use the Google_Service_Oauth2 service to fetch the profile information of the logged-in user.

So in this way, you’ll have access to the profile information once the user logs in to the Google account. You can use this information to create accounts on your site, or you could store it in a session. Basically, it’s up to you how you use this information and respond to the fact that the user is logged in to your site.

Useful PHP Form Scripts

Today, we discussed how you could integrate Google login with your PHP website. It allows users to sign in with their existing Google accounts if they don’t want to create yet another account for your service.

If you're looking for PHP scripts that you can use right away, I recommend you visit the following posts, which summarize some excellent scripts that are available for a low cost.

Let me know in the comments below if you have any questions!

Displaying the Date and Time in the WordPress Loop

$
0
0

Adding the date and time to the WordPress Loop seems like a simple enough task, right?

Well, yes. It can be a case of coding a simple template tag and letting WordPress do the work for you. But sometimes you can run into problems along the way.

In this quick tip, I'll show you the different functions WordPress gives you for displaying the date and time and tell you which ones to use if you run into snags.

If you need a quick refresher on using PHP for WordPress, check out my free course on the topic.

The Available Template Tags

WordPress gives you four functions to output the date and/or time. These are:

  • the_date(): By default, it will echo the date of the post in the format F j, Y, so if the post was published on 20 November 2018, it would echo November 20, 2018.
  • get_the_date(): This fetches the date and doesn't echo it out. To echo it, you'd use echo get_the_date(), which gives you the same result as the_date(). It's useful if you're already using echo in your code. It can also help you get round the problem of dates not being displayed, as you'll see shortly.
  • the_time() and get_the_time(): These fetch the time by default, but if you specify date formatting, you can also include the date. You could even use this just to output the date if you configured the formatting to do so, but it would more sense to use the_date() or echo get_the_date().

Formatting the Date

Each function has a default format, which you can override if you need to. To do this, you'll need to use standard PHP date and time formatting.

Here are some examples, all for a post published on 20 November 2018.

  • the_date() would output November 20, 2018 by default.
  • echo get_the_date( l, S M Y ) would output Tuesday, 20th Nov 2018.
  • the_time( 'g:i a' ) would output 2:03 pm.
  • echo get_the_time( 'G:i' ) would output 14:03.
  • the_time( 'g:i a, D, j F y' ) would output 2:03 pm, Tues, 20 November 18.

Troubleshooting Dates in the Loop: Missing Dates in an Archive Page

If you are using the_date() to output dates on an archive page, and you find that the date isn't being displayed with some posts, that's because the_date() doesn't repeat the date for subsequent posts published on the same day as a previous one.

Sometimes you might want to keep it like this, if you don't want to repeat the date for every post published that day.

But if you want to ensure that all posts have their date output with the title and any other content you're outputting, you'll need to use another function. You can use any of the other three functions above.

The simplest option is to replace the_date() with echo get_the_date(). If you wanted to add the time, either the_time() or echo get_the_time() will work.

Note: If you're puzzled by the fact that the_date() throws up this problem but the_time() doesn't, it's because posts published on the same date weren't published at the same time. You'd have to go to a lot of effort, either scheduling posts, editing the publication times, or co-ordinating efforts between two bloggers, for that to happen!

I had this problem in the front page template of a theme I coded for a client. In this template were a number of loops, all leading to different content types on the site and all coded using WP_Query. The problem wasn't apparent until the day they added two posts (not something they normally did). They were puzzled as to why the second post's date didn't appear on the home page and kept editing it, refreshing it and republishing it until they gave up and asked me.

Here's the original code:

I edited the function so it read like this:

In the line beginning li class="home newsletter", I replaced the_date( 'j F, Y' ) with echo get_the_date( 'j F, Y' ). It fixed the problem.

So if you ever find that dates aren't showing up in your archives, this might be the solution.

Some Tips for Displaying the Date and Time

As mentioned earlier in the article, you can use four different functions to output the publication date for posts on archive pages.

Using the the_date() and get_the_date() Functions

Using the_date() will output the date but it will only output the date once for multiple posts published on the same day. The function get_the_date() returns the date for all posts even if they are published on the same date. However, you need to use echo get_the_date() to output the date.

Using the the_time() and get_the_time() Functions

The function the_time() will also output the date separately for each post. However, this function will output the time according to the format specified as the value of time_format option by default. You can use it to output the date by calling it as the_time('j F, Y'). The get_the_time() function works in a similar manner but it returns the date instead of outputting it. This means that you will have to use echo get_the_time('j F, Y') to output the date. You could simply replace all occurrences of the_date('j F, Y') with the_time('j F, Y') wherever you want to show the date.

Additional Parameters for the the_date() Function

Unlike other functions, the_date() accepts four parameters. The second and third parameters are used to specify the string that should be shown before and after the date. Similar functionality can be replicated for other functions by using the code below:

If you want to learn more about WordPress, check out our other courses and tutorials here on Envato Tuts+!

This post has been updated with contributions from Monty Shokeen. Monty is a full-stack developer who also loves to write tutorials, and to learn about new JavaScript libraries.

Build Your Own CAPTCHA and Contact Form in PHP

$
0
0

Note: This tutorial was originally written 10 years ago. It has now been updated to use new code for generating a random string. 

People write code every day to automate a variety of processes. We exploit the fact that computers are a lot faster and more accurate than humans, which lets us simplify a lot of mundane tasks. Unfortunately, these same abilities can be used to program computers to do something malicious like sending spam or guessing passwords. The focus of this tutorial will be on combating spam.

Let's say you have a website with a contact form to make it easy for visitors to contact you. All they have to do is fill out a form and hit the send button to let you know about a problem or request they have. This is an important feature of a public-facing website, but the process of filling out form values can be automated by malicious users to send a lot of spam your way. This type of spamming technique is not limited to contact forms. Bots can also be used to fill your forums with spam posts or comments that link to harmful websites.

One way to solve this problem is to devise a test which can distinguish between bots which are trying to spread spam and people who legitimately want to contact you. This is where CAPTCHAs come in. They generally consist of images with a random combination of five or six letters written on a colored background. The idea is that a human will be able to read the text inside the image, but a bot won't. Checking the user-filled CAPTCHA value against the original can help you distinguish bots from humans. CAPTCHA stands for "completely automated public Turing test to tell computers and humans apart".

In this tutorial, we will learn how to create our own CAPTCHAs and then integrate them with the contact form we created in the tutorial.

Creating the CAPTCHA

We will use the PHP GD library to create our CAPTCHA. You can learn more about writing text and drawing shapes with GD in one of my earlier tutorials. We will also have to write a little bit of code to create our random string to be written on the image that's created. Another tutorial, titled Generating Random Alphanumeric Strings in PHP, can help us in this regard.

Generate a Random String

All the code from this section will go in the captcha.php file. Let's begin by writing the function to create the random string.

The $permitted_chars variable stores all the characters that we want to use to generate our CAPTCHA string. We are only using capital letters in the English alphabet to avoid any confusion that might arise due to letters or numbers that might look alike. You can use any set of characters that you like to increase or decrease the difficulty of the CAPTCHA.

Our function creates a five-letter string by default, but you can change that value by passing a different parameter to the generate_string() function.

Generate a Cryptographically Secure Random String

You can use cryptographically secure functions to generate random strings and make the CAPTCHA harder to guess.

In this particular case, we can use the random_int() function in place of mt_rand(). It accepts the same two parameters but generates cryptographically secure random numbers. Here is our modified code for generating the random strings.

The only change we make here is the use of a third parameter in our generate_string() function. This third parameter called $secure is set to true by default. Later in the code, we check if $secure is set to true and then use random_int() to generate the string.

Modifying our function this way allows us to make the output of all our previous calls of the function cryptographically secure without making any changes to old code. It also allows us to generate random strings which are not cryptographically secure by explicitly setting the third parameter to false in any future calls.

Render the CAPTCHA Background

Once we have our random string, it's time to write the code to create the background of the CAPTCHA image. The image will be 200 x 50 pixels in size and will use five different colors for the background.

We begin with random values for the variables $red$green, and $blue. These values determine the final color of the image background. After that, we run a for loop to create progressively darker shades of the original color. These colors are stored in an array. The lightest color is the first element of our $colors array, and the darkest color is the last element. The lightest color is used to fill the whole background of the image.

In the next step, we use a for loop to draw rectangles at random locations on our original image. The thickness of the rectangles varies between 2 and 10, while the color is chosen randomly from the last four values of our $colors array.

Drawing all these rectangles adds more colors to the background, making it a little harder to distinguish the foreground of the CAPTCHA string from the background of the image.

Your CAPTCHA background should now look similar to the following image.

CAPTCHA background in PHP

Render the CAPTCHA String

For the final step, we just have to draw the CAPTCHA string on our background. The color, y-coordinate, and rotation of individual letters is determined randomly to make the CAPTCHA string harder to read.

As you can see, I'm using some fonts I downloaded from Google to get some variation in the characters. There is a padding of 15 pixels on both sides of the image. The leftover space—170 pixels—is divided equally among all the CAPTCHA letters.

After rendering the text string above the background, your result should look similar to the image below. The characters will be different, but they should be slightly rotated and a mix of black and white.

CAPTCHA background with text

Adding the CAPTCHA to Our Contact Form

Now that we have created our CAPTCHA, it's time to add it to our contact form. We will use the contact form from my previous tutorial on how to create a PHP contact form and add the CAPTCHA just above the Send Message button.

We will be using sessions to store the CAPTCHA text and then validate the text entered by website visitors. Here is the complete code of our captcha.php file:

The fonts that you want to use will go into the fonts directory. Now, you simply have to add the following HTML code above the Send Message button from our previous tutorial on creating a contact form in HTML and PHP.

Sometimes, the CAPTCHA text will be hard to read even for humans. In these situations, we want them to be able to ask for a new CAPTCHA in a user-friendly manner. The redo icon above helps us do exactly that. All you have to do is add the JavaScript below on the same page as the HTML for the contact form.

After integrating the CAPTCHA in the form and adding a refresh button, you should get a form that looks like the image below.

PHP Contact form with CAPTCHA

The final step in our integration of the CAPTCHA we created with the contact form involves checking the CAPTCHA value input by users when filling out the form and matching it with the value stored in the session. Update the contact.php file from the previous tutorial to have the following code.

We updated this file to first check if the CAPTCHA value stored in the session is the same as the value input by the user. If they are different, we simply tell the visitors that they entered an incorrect CAPTCHA. You can handle the situation differently based on what your project needs.

Final Thoughts

In this tutorial, we created our own CAPTCHA in PHP from scratch and integrated it with a PHP contact form we built in one of our earlier tutorials. We also made the CAPTCHA more user-friendly by adding a refresh button so that users get a new string with a new background in case the previous one was unreadable.

You can also use the logic from this tutorial to create a CAPTCHA that relies on solving basic mathematical equations like addition and subtraction.

If you want to add a CAPTCHA to your website, you should check out some of the form and CAPTCHA plugins available from CodeCanyon. Some of these have CAPTCHA and many other features like a file uploader built in.

If you have any questions or suggestions, feel free to let me know in the comments. You should also take a look at this list of the best PHP contact forms.

13 Best PHP URL Shortener Scripts (Free and Premium)

$
0
0

URLs are rarely short and sweet. They usually contain multiple keywords and are accompanied by extra parameters to help with the tracking of different campaigns or incoming traffic. These long URLs with so many parameters can sometimes be off-putting for potential visitors. Therefore, it's usually a better idea to use a URL shortener script and share these shortened URLs on social media and in other places.

Besides being used by individual websites, URL shortening scripts are also used as a standalone service to sell paid membership plans to clients to allow them to shorten their own URLs.

In this post, we will list some of the best PHP URL shortener scripts that you can use to create your own URL shortener. You can use them to create a monetized link shortening service, track your own URLs and campaigns across the web, or share website posts on social media with short URLs for extra analytics information.

PHP URL Shortener Scripts on CodeCanyon

There are about 30 different PHP URL shortener scripts on CodeCanyon. While all of them serve the same purpose of shortening URLs, they each offer some unique features to set them apart.

PHP URL Shortener Codecanyon

You can buy some of these scripts for as little as $6, and all the premium PHP URL shortener scripts that you buy from CodeCanyon will come with free lifetime updates and six months of free support.

Best PHP URL Shortener Scripts

In this section, I will briefly review the features of the best PHP URL shortener scripts that you can buy on CodeCanyon. Let's get started!

1. Best Seller: Premium URL Shortener

Premium URL Shortener

This Premium URL Shortener is built from scratch, without the use of any PHP frameworks, and it was created with performance in mind. It has been around for seven years now, with a lot of great customer reviews.

It comes with a nice set of common and unique features that you expect in a URL shortener script. You can use this script as either a private or a public URL shortener for monetization.

The full-featured admin panel gives you control over all aspects of the URL shortener, like advertising, reCaptcha, user registration, themes, maintenance, and URL filters.

It comes with a responsive URL shortener template and built-in template editor so that you can tweak the design of the script without worrying about the underlying link shortener code. The templates have been tested extensively on all modern browsers and mobile devices.

There are many other features like a geotargeting system, powerful API, Facebook Connect, and Twitter login, all of which make the Premium URL Shortener worth checking out.

2. Trending: BioLinks—Instagram and TikTok Bio Links and Shortener

BioLinks - Instagram & TikTok Bio Links & URL Shortener

Biolinks solves two problems in one: it shortens your Instagram and TikTok bio line, and at the same time shortens your URLs!

It's a highly customizable PHP shortener script that comes with a lot of interesting features. Users can create unlimited bio link pages and shortened URLs. They can embed YouTube, SoundCloud, Spotify, Twitch, Vimeo or TikTok to their bio link pages. They also have the advantage of two-factor authentication for security. 

On the admin side you can manage and delete users including pages and links create by users. Also, you can offer custom made subscription plans and earn money by charging one time, recurring or lifetime payments. You can give users the options of paying using PayPal, Stripe, or bank transfers. 

To prevent spamming and phishing, Biolinks is equipped with Phishtank and Google safe browsing.

3. BeLink—Ultimate URL Shortener

BeLink Ultimate URL Shortener

The BeLink URL shortener comes with an easy-to-use installer so that you can start shortening links in minutes. You can use it either as a public or a private URL shortener.

You get a lot of options to fully control the behavior of shortened URLs. For example, you have different redirection options like redirecting to long URLs immediately or waiting for a few seconds before redirection. You can set expiration dates for the links. They can also be password protected or geo-targeted.

The relevant statistics of different links created by a user like total clicks, countries, referrers, devices and browsers are also displayed to the clients who created those links.

The script offers an admin panel that allows you to make changes to the overall functionality of the script. This includes things like managing the users and their roles, setting permissions, etc.

4. URL Shortener

URL Shortener

The URL shortener allows your users to create short URLs with a single click. It also generates a QR code which can be scanned to open the original link. The link shortening page contains sharing buttons for popular social media websites, making it easier for everyone to instantly share the links on the favorite platforms.

The clean and friendly user interface, along with small but useful features like the autocopy button, make it a great tool for use within a larger project.

This simple url shortener script is SEO friendly and comes with support for Open Graph tags. This URL Shortener is ideal for people who just want a link shortening script that can be easily integrated within a larger project.

5. AdLinkFly—Monetized URL Shortener

The AdLinkFly Monetized URL Shortener is different from all the other URL shorteners we have mentioned so far. It is a full-fledged solution designed to monetize short URLs with a service similar to AdFly.

AdLinkFly Monetized URL Shortener

Each shortened URL will display advertisements before taking users to the final URL. This way, your service generates revenue based on ad impressions. Members can simply shorten URLs and earn money in the process whenever these URLs generate ad impressions. 

It will allow all members to shorten links. They are then allowed to keep a share of the profit made due to advertising. Basically, any member who joins your AdLinkFly URL shortening service will be able to earn money by shortening URLs.

This script supports multiple payment gateways including PayPal, Payza, Bitcoin, Skrill, WebMoney, etc. Publishers can withdraw their earned money using any of these services.

It also comes with a built-in referral program. This is a great way to spread the word about your awesome link-shortening service.

The dashboard provides brief reports about link clicks and total earnings for both the admin and the joining members.

AdLinkFly Dashboard

Administrators can create unlimited pages, which are fully editable and can also be deleted if needed. You can also implement a basic blogging system where visitors can post comments.

6. Linkity—Business URL Shortener

Linkity Business URL Shortener

The Linkity Business URL Shortener is meant to be used as a private URL shortener for your own business or website.

The admin dashboard has a modern and beautiful design inspired by the material design philosophy. The use of AJAX makes it easier for you to view and update different things in the dashboard without constant reloads. This creates a smooth user experience.

There is detailed analytics information about different links in the dashboard. This includes things like viewer countries, device types, browsers, operating systems, referring sites, etc.

The script supports multiple types of databases like MySQL, PostgreSQL, and MariaDB.

You should definitely consider Linkity—Business URL Shortener as a viable solution if you are looking for a private URL shortener that offers basic analytical data about the shortened links.

7. Mighty URL Shortener

Mighty URL Shortener

Mighty URL Shortener is written in PHP and comes with a lot of interesting features. The script will work on all kinds of shared, VPS and dedicated hosting plans as long as they fulfill the standard requirements mentioned on the plugin description page.

The mighty url shortener short url script offers advanced analytics reports where you can see the breakdown of link clicks based on countries, cities, devices, browsers, referrers, or social media counts.

It also comes with smart targeting so that you can use the same URL and take different actions based on the country, operating system, or device type of the user.

You can use it to create an unlimited number of membership plans. Each membership plan will have a preset limit defined by you to take different actions. This includes things like the maximum number of shortened URLs per day or per month. There are many other abilities that you can turn on and off for different membership plans.

There is a CAPTCHA system to prevent abuse. You can also accept payment from members using a lot of different gateways like PayPal, Stripe, Payza, Skrill, etc.

8. Shortny—The URL Shortener

Shortny URL Shortener

Shortny is also a nice little URL shortener script with all the basic features that you expect in a URL shortener. It is incredibly easy to set up and use.

The front-end of the script has a nice responsive design with an optional dark theme. You can use it to create shortened URLs with custom text. The links can also be password protected.

The back-end offers the functionality to delete any old shortened URLs, add or edit the ads displayed on the webpage, and edit the CSS to customize the look of the website. All the input is properly validated for additional security.

9. phpShort—URL Shortener Platform

phpShort - URL Shortener Platform

phpShort is an advanced URL shortener platform that allows you to easily shorten links, target your audience based on their location or platform. This URL shortener with statistics provides analytics insights for the shortened links also based on user's location and preferences.

It is built with the Laravel framework on the back-end and bootstrap on the front-end, both of which makes it extremely easy to customize and expand in the future.

The interface is highly responsive adapts to all types of devices from desktops, tablets and smartphones. It is also highly optimized for regular and high DPI screens. 

phpShort is a multi-language adaptable system that also allows you to run your own link subscription-based shortening platform that offers users different plans to choose from. For this you'll need an extended subscription.  

10. Lara—Powerful URL shortener

Lara -Powerful URL Link Shortener

Laralink is a link shortener which allows you to manage links from a simple dashboard with advanced analytics.

Users can create short links from other more complex and long URLs. Links can also be created by anonymous users, in this case analysis of visits for all links will only be visible from the admin panel. 

The installation is very fast and simple, you just have to have a database ready, then unzip the files on your server and access the installation wizard through the browser.

Free PHP URL Shortener Scripts

After looking at the best PHP URL shortener scripts on CodeCanyon, let's review some free URL shortener scripts.

Before listing the free alternatives, I would like to mention that there is a good chance that the free alternatives will not offer as many features as the premium URL shortener scripts. The premium scripts also come with free lifetime updates and six months of free support. This should be enough to get you up and running.

Now, here are some of the best free PHP URL shortener scripts:

YOURLS

The name YOURLS is short for Your Own URL Shortener. As the name suggests, you can use this script to create your own PHP-based URL shortener. It gives you full control over your data and provides detailed stats and analytics information.

Polr

The next free PHP URL shortener on our list is Polr. It also gives you the option to create a self-hosted URL shortener with a robust API.

PHP URL Shortener

This PHP URL Shortener script allows you to create as many as 42 billion unique URLs with just six characters. It is quite fast and uses very little server resources. It also comes with an API to give you the option of creating short URLs on the fly.

Which PHP URL Shortener Script Is Best for You?

All the PHP URL shortener scripts from CodeCanyon that we reviewed in this post have something unique to offer in terms of functionality. The ideal script for you will depend on how you want to use it.

Are you looking for a URL shortener that can be part of your larger project? In this case, you should go ahead and choose either Shortny or URL Shortener.

Do you want to sell the URL shortener as a service under different membership plans? The Premium URL Shortener and Mighty URL Shortener will serve you well here.

If you want to monetize the URL shortener using advertisements, then AdLinkFly has everything that you might need. It is a fully fledged URL shortening service to create short URLs and earn money using advertising.

The Best PHP Scripts on CodeCanyon

Explore thousands of the best and most useful PHP scripts ever created on CodeCanyon. With a low-cost one-time payment, you can purchase these high-quality WordPress themes and improve your website experience for you and your visitors.

Best PHP scripts on CodeCanyon

Here are a few of the best-selling and up-and-coming PHP scripts available on CodeCanyon for 2020:

This post has been updated with contributions from Franc Lucas. Franc is a writer for Envato Tuts+ who enjoys exploring the world of SaaS.

11 Best PHP Event Calendar and Booking Scripts... and 3 Free Options

$
0
0

In this article, I'll review 10 of the best PHP calendar scripts. Whether you need an appointment booking script, an event calendar script, a web calendar script, or a PHP calendar reservation system, you'll find something on this list.

There are lots of reasons you might need a PHP calendar script. If you’re a service provider, you need an appointment booking system that allows customers to see your availability and select an appointment time and date that is best for them. This makes it easier for customers to book and cuts down on needless calls to your business.

Laravel Calendar Booking System
The Laravel calendar booking system is one of the many great PHP calendars on CodeCanyon.

Online PHP calendars are also handy for organisations of any size to help team members share events and tasks and keep track of what everybody is working on.

Their usefulness isn’t just limited to companies, however. Artists, writers, performers, bloggers and anyone else with an active public life could make good use of PHP calendar scripts to let followers and fans know the whens and wheres of public appearances.

What Type of PHP Calendar Script Do You Need?

When it comes to PHP event calendar and appointment booking scripts, choosing the right one can be hard. They can take dozens of forms, and finding the right one for you can be a daunting task.

To help choose the right PHP calendar framework for you, here are a few questions to ask yourself before you get started:

  • Do I need to focus on events, which occur at specific times, with a large number of tickets to sell? Or on bookings, with a smaller number of services that could occur at any time?
  • Will I need to support only my business? Or are there others that will be included in my listings? For example, a business cooperative might need to handle bookings for multiple service providers.
  • Will there be a single entity that events or bookings are attributed to, or several—as in a hair studio, with several stylists available?
  • Do I need a script to embed into a current site, or do I need something that stands on its own?

PHP Event Calendar and Booking Scripts on CodeCanyon

There are currently almost 50 PHP event calendar and booking scripts available on CodeCanyon. Some of these PHP calendar script downloads address very specific use cases like cleaning and laundry services. Others are more general-purpose web calendar scripts used to book all kinds of events.

PHP Event Calendar Scripts

All of these web calendar scripts offer the basic functionality you expect in a booking system. Some of them also have a unique set of features that includes things like generating invoice PDFs or sending booking alerts through SMS.

After you purchase any of these scripts, you will get six months of free support to help you set things up. You also become eligible for free lifetime updates. This is one helpful reason to choose a premium option over a PHP event calendar that's free. It's hard to find well-supported free PHP booking calendars online, and even harder finding ones that are full of features.

The Best PHP Event Calendar and Booking Scripts on CodeCanyon for 2021

With all this in mind, we’ve compiled 11 of our best PHP calendar, booking and event scripts available for download today at CodeCanyon. This post will help you choose the PHP calendar framework that’s right for you.

1. Bestselling: BookingWizz—Booking System

BookingWizz - Booking System

BookingWizz is an easy-to-use, easy to set-up booking script that will help you set up a reservation system in minutes. This fully responsive PHP calendar reservation system works with any device or screen. 

Standout features include: 

  • SMS reminders
  • PDF schedules 
  • easy integration with Paypal, Stripe and multiple payment gateways
  • easy integration with WordPress website
  • various display settings including timezones support 
  • and more 

2. Bestselling: Ajax Full Featured Calendar 2

Ajax Full-featured Calendar

Ajax Full Featured Calendar 2 is a highly customizable personal PHP calendar designed to help you keep organized. This is a best-selling update of another popular web calendar script, the Ajax Full Featured Calendar.

Standout features include:

  • PHP and JS versions with PHP classes and object-oriented programming
  • ability to auto-embed YouTube, Vimeo, Dailymotion, or SoundCloud media
  • ability to export calendar or events to iCal format
  • supports recurring events
  • and more

3. Tending: Cleanto

Cleanto PHP Calendar Framework

Cleanto is ideal for many different types of service companies looking for a reliable way to provide clients with full-featured online booking.

Standout features of this PHP calendar script download include:

  • PayPal, Authorize.Net, and Stripe payment methods
  • email reminders
  • auto-confirm bookings
  • ability to add breaks in the schedule
  • and more

4. Trending: Appointo—Booking Management System

Appointo PHP Calendar Booking Management System Admin Dashboard

An end-to-end solution for booking, Appointo Booking Management System takes the heavy lifting off your CMS or static site. This PHP calendar script download provides a front-end calendar and booking system that can be easily used to mark appointments or events. Then, on the administrative side, you can manage the events and services that are available, and keep track of customers or attendees.

Standout features of this PHP booking system script include:

  • front-end booking calendar
  • ability to manage services and booking
  • point-of-sale support
  • customer management
  • support for both PayPal and Stripe

5. Event Calendar

Calendar PHP With Events

Built with jQuery FullCalendar and integrated into Bootstrap’s grid layout, the Event Calendar plugin allows users to organise and plan their events.

Standout features of this event calendar script include:

  • create new types of events
  • add fields such as title, colour, description, link, and photo
  • Google Fonts and Font Awesome icons
  • and more

6. eCalendar

eCalendar

Quite simply, the eCalendar script is designed to keep individual users or companies organised. It displays a calendar that allows users to add as many events as needed. It also lets them update details like the event title, location, or time.

Standout features include:

  • choice of two designs
  • cross-browser compatibility (IE8+, Safari, Opera, Chrome, Firefox)
  • events are saved in your MySQL database
  • fully-responsive design
  • and more

7. Vacation Rentals Booking Calendar

Vacation Rentals Booking Calendar

The Vacation Rentals Booking Calendar is an online vacation rental booking calendar script that allows property owners or management agencies to create and manage rental availability calendars for their vacation rental properties. It's a very useful PHP calendar script with events for property owners and management companies.

Standout features:

  • highly customizable
  • email notifications to site owner or administrator
  • XML and JSON availability feeds
  • export calendars to iCalendar format
  • and more

8. NodAPS Online Booking System

NodAPS Online Booking System

The NodAPS Online Booking System promises to help you manage your appointments more easily. You can create unlimited accounts with administrative, assistant, and staff permission, and add unlimited languages to this simple PHP event calendar. You can also change the booking time and date with a drag-and-drop feature.

Standout features:

  • multi-provider system
  • seven different booking type forms
  • multilingual
  • easy to install
  • and more

9. Laravel Calendar Booking System

Laravel Calendar Booking System

The Laravel Calendar Booking System with live chat offers a great online system for booking and making appointments. Users can buy credits as a payment option and view available services, total transactions, their total credits, and administrator contact information via their dashboard.  

From the administrative side, the system administrator can manage all things system related: general settings, payment settings, and user management. Admins can also manage bookings and respond to inquiries from their dashboard in this simple PHP event calendar.  

Standout features include:

  • live chat
  • multi-language support
  • booking and transaction history
  • PayPal integration
  • and more

10. Laundry Booking and Management

Laundry Booking and Management Calendar PHP With Events

This Laundry booking and management script serves a very specific purpose. This is good news for anyone who wants to create their own laundry and dry cleaning business. The Laundry PHP calendar script download has some great features, both for users of the service and for the business owner.

Users can book orders for services like washing, dry cleaning, ironing, etc. The user interface of this simple PHP event calendar allows them to pick the number of different types of clothes like trousers, shirts, etc.

The business owner can get paid through a lot of payment gateways like PayPal, Stripe, and Authorize.net, among others. They will also get booking alerts via SMS.

Here are some additional features of the script:

  • multiple SMS and email templates for users
  • guest checkout for orders
  • generate invoices in PDF format
  • staff dashboard to easily manage everything from one place

This fantastic script offers a lot of other features that you will find useful. If you're serious about starting a laundry business, you should definitely consider giving it a try.

11. Rezervy—Online Appointment Scheduling

Rezervy

Rezervy is a great online appointment scheduling and reservation booking script. It was added only recently to CodeCanyon, but the numerous five-star ratings of the script are proof of its quality.

Rezervy comes with both single-step and multi-step booking form features. The script creates a fully responsive booking system, so it looks great on large screens as well as smaller mobile devices.

There are many amazing features in this script, like:

  • support tickets
  • guest checkout
  • coupon discounts and recurring discounts
  • support for multiple currencies
  • manual booking
  • referral codes
  • rating and review for each appointment
  • and a lot more

Just try the live preview of the script, and you will be amazed by its design and functionality.

Free PHP Event Calendar and Booking Scripts

Creating a great PHP calendar script is hard. As a result, it can be hard to find quality scripts—especially for free!

That's why our recommendation is to try one of the CodeCanyon web calendar scripts mentioned in the article. All of the PHP calendar script downloads offer a lot of features, and you will get six months of support and free lifetime updates.

Most of the free PHP booking calendar and event booking scripts either have a very limited feature set or have not been updated in a long time. There are some good options out there, though. Here are three of the best PHP event calendars available for free:

1. Ajax Calendar

This is a very basic PHP event calendar that's free. It allows for creating, editing, and deleting events. This free event calendar script also lets users create accounts and navigate events smoothly.

2. laravel-booking

This is a simple room-booking system based on Laravel 5.6. Laravel is a free, open-source PHP framework for creating web applications. So you need to be familiar with both PHP and Laravel to set up this free PHP web calendar script.

3. laravel-google-calendar

This is yet another free PHP booking calendar script based on Laravel. It allows you to easily create, delete or update any events in Google Calendar. It's bare bones, but a good option if you want to access a PHP event calendar for free.

5 Top Tips for Using Event Calendars and Booking Scripts

Here are a few tips that you should remember when starting a business that's based on booking products and services.

1. Make Sure That the Booking System Is Responsive

People almost always have their smartphones with them. They usually also prefer to do things like booking reservations on their smartphones. If your booking system has a responsive layout that provides an amazing user experience, you will have a big advantage over your competition.

2. Don't Cram Too Much Information on the Screen at Once

Depending on the type of business that you operate, it might not always be possible to just ask users a couple of questions and book their slots. In such cases, use simple layouts that guide people throughout the booking process without overwhelming them. One great example would be the booking system by Rezervy.

Reservy Web Calendar Script
Reservy is a great PHP calendar that keeps everything simple.

3. Set Up Automated Reminders

We're all human, and sometimes our appointments can slip our minds. That's why it's a great idea to set up your PHP calendar to send out reminders. These can come in the form of emails or SMS notifications, depending on the PHP calendar framework you use. Reminders are not only helpful, but they show you care about customer service. Check if your simple PHP event calendar includes notification features.

4. Have Flexible Payment Options

Visitors using your PHP calendar framework are all different. That means the ways they book are different too. Instead of losing potential clients, set up multiple payment methods with your web calendar script. For example, having PayPal as an alternative to Stripe can increase the number of visitors that can confidently book with you over a competitor.

Appointo PHP Calendar For Booking
The Appointo PHP calendar booking management system lets visitors pay with different methods.

5. Offer Discounts and Special Prices

There's nothing like a good discount to sway a customer that's on the fence about booking. Limited offers, coupons, and seasonal discounts can keep visitors coming back to your PHP calendar throughout the year. Thankfully, there are many PHP calendar script downloads from CodeCanyon that include these features.

BookingWizz PHP HTML Calendar Booking System
Manage the coupons available through your PHP calendar with BookingWizz.

Other PHP Scripts on CodeCanyon

These PHP event calendar and booking scripts just scratch the surface of what's available at CodeCanyon. There are over 4,000 PHP scripts available in the marketplace, covering everything from calendars and forms to social networking and shopping carts.

PHP Scripts on CodeCanyon

Here are a few of the best-selling and up-and-coming PHP scripts available on CodeCanyon for 2021.

If you'd like to learn more about using the PHP scripting language, Envato Tuts+ can help there too! Join our free PHP fundamentals course to get a good base of necessary skills. We also have many PHP tutorials and guides to get you more familiar with these scripts.

This post has been updated with contributions from Franc Lucas. Franc is a writer for Envato Tuts+ who enjoys exploring the world of SaaS.

20 Best Email and Mailchimp WooCommerce Plugins

$
0
0

Optional Sections for Your Marketing Emails

1. Use Opt-In Forms

One of your biggest assets as an eCommerce store is your email list. Email lists provide a direct connection to your potential and existing customers. By adding opt-in forms to your website, you will be able to collect emails and market with a WooCommerce Mailchimp subscribe list. One effective way to collect emails from this opt-in form is to offer a free download in return for the user's email address. 

WooChimp Constructing Form
Creating an email opt-in form in the WP dashboard for the WooChimp plugin.

2. Tag Your Email Subscribers

As mentioned, no matter what type of WooCommerce website you are running, you will want to have opt-in forms to collect emails. The user emails collected should then be tagged in your email service provider so you can engage them in a targeted marketing plan in the future. 

For example, if you are running an online clothing store and offer a free coupon for a discount on a pair of jeans, then you should tag the users that sign up on this opt-in form as "Interested In Jeans." Then you can send specific emails on a new release of jeans or other discounts on jeans and the marketing campaign will be much more successful as the user had already shown interest in the jeans that were on your website. 

3. Customize Your Email Templates 

As a business, you will want to take advantage of every opportunity to promote your brand. Every piece of content the customer or potential customer sees should reflect your brand identity. This includes the transactional WooCommerce emails that are sent out. When customizing the transactional emails, you will want to ensure that the company's logo is present as well as the brand's colors and fonts. 

In another tutorial, I show step by step how to create branded WooCommerce emails.

While this may seem like only a minor change to the email templates, it will have a huge impact on the customer's perception of your brand.  replace me

Email Customizer for WooCommerce Customize Email Template
Customizing the "received order" email template

4. Remind Your Customers and Potential Customers

Sending out an email inviting your customers and potential customers to purchase your products on a random schedule is not going to cut it here. You need to make sure you are taking advantage of every opportunity to market to your customers by sending out dedicated emails based on their actions. Here are a few scenarios when you would want to send out a custom email to encourage your customers to make a purchase:

  • when they abandon their cart
  • when they sign up on one of your opt-in forms
  • when a potential customer has not made a purchase in a specific number of weeks

Sending out these WooCommerce subscription reminder emails and similar messages can help engage with leads you don't want to lose.

5 Common Questions Everyone Has About Email Marketing

The Mailchimp and WooCommerce plugins can help drive conversions, but learning more about email marketing can push those numbers sky-high. That's why we've answered five questions about email marketing (with tutorials) to get you on your way.

1. How Can I Get People To Subscribe To My Newsletter?

The easiest way to get visitors to subscribe is to ask! Leave contact forms on your website that allow interested leads to sign up and subscribe to your WordPress newsletter.

The plugin described in this tutorial can make an attractive signup pop-up for your website.

2. Do I Need to Know How to Code to Make an Email?

Having a background in coding is helpful, but it's not a requirement. Many popular email templates have drag and drop elements that make design easy. 

You still need to have an idea of what look you would like. This guide can help you decide which email template will work for you. 

3. Why Are My Emails Not Converting?

Low conversions can be caused by several reasons. But a lot of the time the cause is generic email content. Try to make emails that are personalized and suit each subscriber.

4. What Content Will My Audience Like?

This answer depends on your business. Your email content should be aligned with your product or service. Once you land on the type of content, you need to learn how to write your emails well. 

5. What Are The Different Types of Email?

There are four basic types of email: basic communications, promotions, newsletters, and relationship-builders. In order to find what type is best for you, you should learn how to use each one.

Take Advantage of the Email and Mailchimp Plugins Available on CodeCanyon Now!

When it comes to marketing on your WooCommerce website, email marketing is one of your biggest money-makers. If you do not have a way to connect your WooCommerce store and your email service provider, you will not be able to make the most out of your marketing efforts. CodeCanyon offers the most powerful email and Mailchimp WooCommerce plugins available that will help your business succeed.

Whether you need to remind customers to purchase your product, capture emails through forms, or customize email templates, head to CodeCanyon to find the right plugin for your business. 

The Best WordPress Plugins on CodeCanyon

CodeCanyon not only offers these email plugins, but they also offer many other high-quality WordPress plugins that can help improve your WooCommerce website. Take look through this massive collection and you will find all types of plugins, including gallery, advertising, calendar, and other marketing plugins.

Find the right WordPress plugin to help your website succeed and generate more sales! 

CodeCanyon WordPress Plugin Selection

This post has been updated with contributions from Franc Lucas. Franc is a writer for Envato Tuts+ who enjoys exploring the world of SaaS.


How to Create a Thumbnail Image in PHP

$
0
0

Today, we’ll discuss how you could create thumbnail images in PHP with the help of the GD library.

When you’re working on projects that are related to media, more often than not you will need to create thumbnails from the original images. Also, if you’ve enabled image uploads on your website, it’s essential that you should never display the original images that are uploaded by users. That's because images uploaded by users could be of large size and will not be optimized for web display. Instead, you should always resize images before they're displayed on your website.

There are different tools that you can use to resize images in PHP, however we’re going to discuss one of the most popular options among them: GD library. It’s one of the easiest ways to create image thumbnails on the fly.

Prerequisites

In this section, I'll go through the prerequisites for the example which will be discussed later in this article.

Firstly, you should make sure that the GD library is enabled in your PHP installation. In a default PHP installation, the GD library should already be enabled. If you’re not sure about whether it's there, let's quickly check.

Create the info.php file with the following contents.

Upload this file to the document root of your website. Next, open the https://your-website-url/info.php URL in your browser and it should display the PHP configuration information as shown in the following screenshot.

PHP Configuration

Now, try to find the gd extension section. If it’s installed and configured in your PHP installation, you should be able to find it as shown in the following screenshot.

GD Library Section

If you don’t find it, it means that gd is not installed on your server. In this case, you just need to install the gd extension, and you’re good to go. If you want to install it yourself, take a look at my article explaining how to install specific PHP extensions on your server. You’ll need to have root access to your server shell in order to be able to install it yourself.

Once you’ve installed and enabled the gd extension, it’s time to look at the real world example and that’s what we’ll discuss in the next section.

A Real World Example

In this section, we’ll go through a real world example to demonstrate how you could create image thumbnails in your PHP projects.

Firstly, we’ll create the thumbimage.class.php file which contains the ThumbImage class and it holds the logic of creating thumbnail images. Next, we’ll create the example.php file which demonstrates how to use the ThumbImage class.

The ThumbImage Class

Go ahead and create the thumbimage.class.php file with the following contents.

Let’s go through the createThumb method in detail to understand how it works.

The createThumb method takes two arguments, the destination image path where the thumbnail image will be saved and the thumbnail width which will be used for resizing. The thumbnail width parameter is optional, and if you don’t pass any value, it’ll take 100 as the default width.

Firstly, we’ve used the imagecreatefromjpeg function which creates the image resource in memory out of the source image path which was initialized in the constructor. It’ll be used later on when we’ll actually create the thumbnail image. It’s important to note that we've used the imagecreatefromjpeg function, as we want to resize the jpeg image in our example. If you want to resize png, gif or bmp images, you could use the imagecreatefrompng, imagecreatefromgif or imagecreatefromwbmp functions correspondingly.

Next, we’ve used the imagesx and imagesy functions to measure the width and height of the original image. It’ll be used when we’ll actually resize the original image.

Once we’ve got the width and height of the original image, we use it to derive the thumbnail image height. If you’re aware of how to calculate the aspect ratio, this should look familiar to you. We’re using the aspect ratio to calculate the thumbnail height based on the provided thumbnail width to make sure that the resulting image isn't distorted. This is one of the most important factors which you should consider while creating thumbnail images: a distorted thumbnail is confusing and unprofessional looking.

Next, we’ve used the imagecopyresampled function which actually does the heavy lifting of creating the thumbnail image. It copies and resizes part of the image with resampling based on the provided parameters and generates the thumbnail image in memory.

In the imagecopyresampled function, initial two arguments are destination and source image resources. The third and fourth arguments are x and y coordinates of the destination point. The fifth and sixth arguments are x and y coordinates of the source point. The next two arguments are used to specify the width and height of the thumbnail image which will be created. And the last two arguments are the width and height of the original image.

Finally, it’s the imagejpeg function which saves the in-memory thumbnail image to the desired path on the disk. The $destImage variable holds the thumbnail image source, and we’ve saved it to the path which is initialized in the $destImagePath variable. You need to make sure that this directory is writable by your web server, otherwise the thumbnail image won’t be saved on the disk.

Again, since we want to create a jpeg thumbnail image, we’ve used the imagejpeg function. If you want to create gif, png or bmp images, you could use the imagepng, imagegif or imagewbmp functions.

Last but not least, it’s necessary to free memory associated with image resources. We’ve used the imagedestroy function to achieve this.

The Example File

Now let’s see how you could use the ThumbImage class to create thumbnail images. Go ahead and create the example.php file with the following contents.

First, we include the required class file.

Next, we create an instance of the ThumbImage class and assign it to the $objThumbImage variable. It’s important to note that we’ve passed the path of the original image file as the first argument to constructor when we instantiated the ThumbImage class.

Finally, we’ve used the createThumb method to create the thumbnail image. In the createThumb method, the first argument is the thumbnail image path and the second argument is the width of the thumbnail image. Of course, if you don’t pass the second argument, the default width of 100 will be used during resizing.

Go ahead and run the example.php file and it should create the thumbnail image.

If there are any issues, and the thumbnail image is not created, you should check that you have the correct directory permissions in the first place. In most cases, that should fix it. If the problem persists, make sure that the source image exists and you’ve provided the correct path to the ThumbImage class. Of course, you could always reach out to me if you’re facing any specific issues.

Conclusion

So that’s how the GD library allows you to create image thumbnails in PHP. As we discussed earlier, you should never display original images on your website. Generally, you will want to create different versions of images like small thumbnail images for listing pages, medium thumbnail images for the introduction page, and large versions for the zoom feature.

In this article, I demonstrated how you could use the GD library to create thumbnail images in PHP. We also built a real world example to understand the different functions provided by the GD library.

Learn PHP With a Free Online Course

If you want to learn PHP, check out our free online course on PHP fundamentals!

 

In this course, you'll learn the fundamentals of PHP programming. You'll start with the basics, learning how PHP works and writing simple PHP loops and functions. Then you'll build up to coding classes for simple object-oriented programming (OOP). Along the way, you'll learn all the most important skills for writing apps for the web: you'll get a chance to practice responding to GET and POST requests, parsing JSON, authenticating users, and using a MySQL database.

25 Best WordPress Form Plugins for 2021

$
0
0

Add a feature-rich and easy-to-use form plugin to your WordPress website to help you collect information that is vital to the functionality and growth of your business.

forms

These powerful form-creating plugins allow you to capture the most important information from your visitors. The flexibility and feature-rich form plugins allow you to add a wide variety of forms on your website, such as:

  • contact forms
  • quizzes
  • article submission forms
  • price estimations
  • booking forms

At the bare minimum, you will want to have a contact form on your website regardless of what type of website you have, so head on over to CodeCanyon and choose from the premium plugins available. 

Top 20 Form WordPress Form Plugins (From CodeCanyon for 2021)

Here are 19 of the top-rated WordPress form plugins that are available for you to download on CodeCanyon:

1. FormCraft—Premium WordPress Form Builder

Formcraft

Here are some of the highlights:

  • form validation
  • conditional logic
  • customized notifications
  • AJAX-powered interface
  • submissions in your inbox
  • drag-and-drop form builder
  • forms presented as popup, slide up, fly in, or widget
  • and much more

You'll find it fully responsive, with retina-optimized images for fields. And if you need to integrate multi-page forms and payment gateways? You can look to the available FormCraft - Premium WordPress Form Builder add-ons.

2. Quform2—WordPress Form Builder

Quform does a good job setting itself apart from other WordPress form plugins.

The simple drag-and-drop interface and flexible styling are where this WordPress form plugin shines the most.

Quform2

Fully responsive and with the new Google reCAPTCHA, you'll find this and more:

  • conditional logic
  • add attachments to notifications
  • fully translatable
  • live design preview
  • drag-and-drop interface
  • edit CSS in the form builder admin
  • includes three themes with five variations
  • export submitted data to Excel/OpenOffice
  • entries submitted within WordPress and via email

The unique theming system makes it easy to make your forms look great, but without sacrificing many of the features users are looking for in a premium WordPress form plugin like Quform.

3. eForm—WordPress Form Builder

eForm (Previously FSQM Pro) is an advanced and flexible form builder that can be integrated into your existing WordPress site. This is a complete form management solution for quizzes, surveys, data collection, payment/cost estimation, and user feedback of all kinds. 

But don't let the "easy to use" tools deter you from its functionality.

eForm

Options include, but are certainly not limited to:

  • fully responsive, state of the art design
  • intuitive form builder—no coding required
  • heavy on security, hard on bots
  • automated quiz system
  • survey system
  • ecommerce system
  • login, registration, and guest blogging
  • mathematics powerhouse
  • reports and statistics
  • supports integrations such as MailChimp, Aweber, Zapier, etc.

With the quick and easy drag-and-drop form builder, you can build unlimited forms and manage them from your admin dashboard. All submissions are stored in your eForm database, so you can view, track, analyze, and act on the data you have captured. A user portal also allows registered users to review and track their submissions.

eForm - WordPress Form Builder is a robust and comprehensive form builder with the perfect combination of style and functionality: packed with all the elements you need, while clean and elegant to use.

4. NEX-Forms—The Ultimate WordPress Form Builder

NEX-Forms—The Ultimate WordPress Form Builder may be just that.

The ultimate.

Nexforms

At first glance, you'll see features you would expect:

  • math logic
  • drag and drop
  • fully responsive
  • conditional logic
  • built-in antispam
  • form analytics
  • form submission exporting and reporting
  • multi-step forms
  • email autoresponder
  • etc.

But when you begin to dig a little deeper, you'll see “the ultimate” isn't just over-zealous marketing.

More notable features include:

  • popup forms
  • 660+ vector icons
  • 50+ form elements
  • 1200+ Google Fonts
  • Font Awesome integration
  • more

5. ARForms: WordPress Form Builder Plugin

This WordPress form plugin hits a nice mix of features and easy customization.

ARForms is integrated with Twitter Bootstrap, supports seven autoresponder systems, and is fully compatible with WPML.org.

ARForms

You can embed your forms in the page or choose to have them fly, stick, or pop up on page load. A great option for newsletter signups and announcements.

Additional features include:

  • CSV export
  • form analytics
  • enhanced conditional logic
  • math logic
  • supports Google Fonts
  • multi-column form support
  • password strength indicator
  • collection of commonly used form templates
  • ajax forms , analytics 
  • and more

There are 30 elements and 500+ icons included with ARForms: WordPress Form Builder Plugin as well as a full-featured styling tool for CSS customization.

And if this isn't enough to get the job done, there are many helpful add-ons available for this full-featured form builder.

6. WordPress Contact Form Plugin—Ninja Kick       

Ninja Kick

Website users can immediately call up the contact form without having to wait for a page to load—complete with slide-in animation.

Ninja Kick features:

  • Mailchimp opt-in
  • client-side form validation and form AJAX submission
  • responsive design
  • 30 built-in backgrounds
  • color picker for easy styling
  • supports swiping on mobile devices
  • and more
This form plugin supports WPML, though RTL needs to be customized to work correctly in Google Chrome.
 

Ninja Kick: WordPress Contact Form Plugin is a stylish, fast-loading plugin that works great as a contact or newsletter submission form—or even more complicated forms built using more robust WordPress form plugins.

7. WP Cost Estimation & Payment Forms Builder

wp cost estimation

This WordPress form plugin is more eCommerce centric. If you are selling any service or product, you can create your responsive cost calculator or payment forms. 

Having this form is invaluable if you need to provide estimations for your potential customers. It saves you time from having to talk to customers who are not interested in your service. The popular payment platforms, PayPal, Razorpay, or Stripe, are all available to use with this form.

Other features include:

  • a booking system for managing your calendars, events, and reminders
  • PDF files integration  
  • Google analytics
  • digital download support
  • powerful conditional logic and custom calculations
  • and more!

8. PrivateContent—User Data Add-On

The User Data add-on boosts your PrivateContent plugin, allowing you to create and use unlimited fields to record more information from your users.

Each field is dynamically validated and is also really flexible, letting you target what will be required. String length, numeric ranges, multi-option checks, preset texts (integer and floating numbers, e-mail address, dates, URL, etc.) and also room to use advanced regex. Say goodbye to fake data being stored!

PrivateContent

Features include:

  • extend your user database
  • custom forms builder
  • forced password reset system
  • import system integration
  • manage and export data
  • conditional data restriction shortcode
  • user data shortcode
  • automatic updates
  • walkthrough videos

The PrivateContent - User Data add-on is an add-on. You must have at least PrivateContent v6 to use it.

9. TotalPoll Pro—WordPress Poll Plugin

One does not simply set up a poll on WordPress.

TotalPoll Pro is the best-selling polls plugin on CodeCanyon, boasting over 70 features.

total poll

Fully responsive and easy to include in WordPress using a shortcode, widget, or direct link, additional features include:

  • custom fields
  • fully responsive
  • beautiful templates
  • six different anti-cheating layers
  • reCaptcha service to protect against bots
  • display archived poll results and export results as CSV
  • and much more

10. ez Form Calculator—WordPress Plugin

The ez Form Calculator can be used with WooCommerce and PayPal.

ez Form

A few use case scenarios include:

  • real estate
  • event managers
  • media agencies
  • charity organizations
  • freight costs
  • photography studios
  • etc.

Build your forms using the drag-and-drop editor or use the import/export feature.

Additional features include:

  • discounts
  • file uploads
  • conditional logic
  • Mailchimp integration
  • advanced calculation and back-end security verification

Whether you're using ez Form Calculator - WordPress Plugin as your primary form or along with WooCommerce, you'll find that it really adds up.

11. Super Forms—Drag & Drop Form Builder

super forms

Super Forms is an incredibly powerful form plugin that allows you to design a form that functionally and stylistically fits your needs. The different options available for you to create your form are as follows:

  • layout elements
  • form elements
  • HTML elements

You can adjust the form settings to send out a confirmation email to the user that filled out the form and send an email to notify you that a form was submitted. Super Forms lives up to its name with all of its advanced editing options. 

Other features include

  • email autoresponder
  • drag and drop interface
  • AJAX-powered forms
  • conditional logic
  • 850+ icons to choose from
  • column or grid system
  • and many others

12. Contact Form 7 Pipedrive CRM Integration

Contact Form 7

This contact form is a bit more advanced than the others listed due to its integration with the customer relationship manager Pipedrive CRM. If you are running an eCommerce store, this form plugin will be a valuable addition to your website. 

By integrating this form with Pipedrive CRM, you will automatically create new contacts, store information about these contacts, and send them down a sales funnel. If you are looking to take your eCommerce store seriously, then Contact Form 7, and Pipedrive CRM integration is a must-have.

13. Storage for Contact Form 7

Extend the power of Contact Form 7 with Storage for Contact Form 7.

This plugin add-on is a good way to avoid servers mishandling Contact Form 7 submissions and losing them into the Black Hole of the Internet.

Just to be clear, Contact Form 7 is required for this to work.

Storage for Contact Form 7

All form submissions are stored in your WordPress database—including attachments. You can also have submissions sent to you via email, but all data is collected in the Admin and can also be exported to CSV.

Additional data collected by Storage for Contact Form 7 includes:

  • time
  • date
  • email
  • subject
  • IP address
  • attachments
  • URL referrer
  • and more

This plugin add-on is a great way to extend Contact Form 7's usability.

14. Exporter for eForm—Reports & Submissions

This is an add-on plugin; a very nice addition to eForm—WordPress Form Builder.

Exporter for eForm—Reports & Submissions takes the user data collected and imports it into a number of useful formats.

eForm

Exportable formats include:

  • PDF
  • HTML
  • CSV
  • XLS
  • XLSX

You can also include charts with most export formats.

You can make some extra customizations to your PDF exports—handy for quick reports—but most users will find the raw data exports extremely useful.

Exporter for eForm—Reports & Submissions is a very useful add-on for the eForm WordPress Form Builder plugin.

15. AccessPress Anonymous Post Pro

Building a WordPress site that allows visitors to submit standard WordPress posts or post types, whether they're logged in or not, requires a particular set of features.

AccessPress Anonymous Post Pro has that exact feature set.

AccessPress Anonymous Post Pro

In full HTML5 responsiveness, you can customize a front-end posting form with all the right options. It's like having several plugins in one.

The included options and features are:

  • captcha
  • post details
  • custom fields
  • email notifications
  • field type selectors
  • media uploading tools
  • media library integration
  • drag and drop form builder
  • post types and taxonomies
  • templates and styling features
  • select or exclude categories and tags
  • PayPal payment
  • and more

There are other plugins like this, but you'll be hard-pressed to find one that offers this much flexibility and options.

AccessPress Anonymous Post Pro does a great job of bringing everything that's in the post admin side of WordPress and bringing it to the front end.

16. Frontend Publishing Pro

Much like the previous plugin, Frontend Publishing Pro brings the back end of WordPress to the front.

Configure an unlimited number of forms—with your settings and restrictions for each form—and easily add them to any page using a shortcode.

Frontend Publishing Pro

You have the option to give users full access to their own post-management, including view, edit, and delete. Users can upload files within the limits you put in place, such as max upload size and file type.

Other features include:

  • custom fields
  • unlimited forms
  • PayPal payments
  • layered security
  • email notifications
  • CopyScape integration
  • drag-and-drop form builder
  • supports any post type and custom taxonomies
  • more!

Quickly and easily set up front-end publishing with Frontend Publishing Pro.

17. WordPress Form Builder—Green Forms

Green forms

Green Forms for WordPress allows you to create multi-purpose, stylish forms that match the design of your website. Main features of green forms include:

  • drag-and-drop form builder
  • full grid system
  • built-in anti-spam
  • conditional logic
  • payment forms and email notifications
  • math expressions
  • form statistics

Each of the forms created can be embedded into posts, pages, and even sidebars, so you can find the perfect placement for them. Download this powerful form plugin now!

18. MagicForm—WordPress Form Builder 

Magic Forms

Magic Forms is a minimalistic form builder that allows you to create any form you can think of. It comes with pre-built templates to make the design process very smooth. Magic forms will enable you to customize every aspect of your form, such as colors, input, or labels.

Other features include:

  • PayPal and stripe payment integration
  • PDF generation
  • e-signatures
  • progress bar
  • spam protection
  • and many others

19.Modal Survey—WordPress Poll, Survey and Quiz Plugin

Surveys are a useful and inexpensive way to gather data from respondents. As a business person, you need a way to undertake this type of activity. Modal Survey is aSurvey & Quiz Plugin that provides you with an avenue to hear your customers' and visitors' opinions. You can conduct unlimited surveys, questions, and answers to get any information you wish to know.

Features of Modal surveys include:

  • AJAX-powered survey
  • rating system
  • insert images to surveys
  • statistics via admin panel
  • create conditions based on results
  • export results to CSV, JSON, PDF, XML, or XLS

20.Gravity Forms Address Google Autocomplete

Gravity Forms Address Autocomplete add-on simplifies the form filling process helping your users enter their address with the Google Places API. You can save time by finding accurate addresses with suggestions and filling forms faster with autofill.

  • automatic suggestions
  • ability to use address autofill on address or single-line fields
  • autofill other address fields such as zip code, city, or country within seconds
  • supports multiple search forms on one page
  • restrict search results by country
  • autocomplete values from one of the post types and taxonomies

Free Form WordPress Plugins for Download in 2021

By purchasing a premium WordPress form plugin, you will receive the most comprehensive set of tools available. The number of features that these plugins will have and the overall user experience will be much higher with a premium plugin. 

If you are currently on a budget, you might not be able to afford to purchase these premium form plugins, but still need to have these forms on your website

That is why I have collected a list of five of the best free WordPress form plugins available.

1. Forminator

Forminator

Forminator is quite a diverse form creator. Besides the normal contact form, you can create interactive polls, quizzes, service estimators, and registration forms with payment options including PayPal and Stripe.

2. Contact Form 7

With Contact Form 7, you can manage multiple contact forms. The form supports Ajax-powered submitting, CAPTCHA, and Akismet spam filtering.

3. Ninja Forms

Ninja forms

Ninja Forms allows you to use their drag-and-drop form editor to quickly put together a simple form. There are no limitations on the number of forms, fields, emails, actions, or submissions that can be included in these forms.

4. Very Simple Contact Form

By adding the plugin's dedicated shortcode, you can add a simple form to your website. The Very Simple Contact Form  is lightweight and has fields for name, email, subject, and messages.

5. Caldera Forms

Caldera Forms visual editor helps you create a form for your website in minutes. You can set up your form with multiple columns, add additional pages, and filter user responses with conditional logic to get more relevant information from your website visitors. 

How to Add a Contact Form to Your Website Using Quform

1. Creating the Form

Once the plugin is installed, head on over to WP dashboard > Quform > Add New. We will then title our form "Contact Form." This will create our contact form and take us to the form editor.

2. Adding Content to the Form

Once we are in the editor, we will want to add three different fields to the form: first name, last name, and text area. These fields will allow us to capture all the information we need from the website user. First, we will add the first and last names to the form by clicking on the person icon in the Quform editor. This will automatically insert the first and last name fields in our form

quform

Lastly, we will add the text field to the form so the user can insert a message to us. Click on the left align paragraph icon in the Quform editor to add this to your form. Next, click on the text area tab named Untitled on the left-hand side of the Quform editor and type in "Message." This will change the text in the form to say "Message" instead of "Untitled."

3. Adding the Form to Your Website

Now that we have created the form, it's time to add it to your website. At the top of the form editor, you will see a shortcode. 

Copy this shortcode and create a new page or post. Paste this shortcode where you want the form to appear on the page, and you are all set. You can view this page or post and see that the contact form was added.

For a more detailed tutorial on how to create a form with the Quform plugin, check out the How to Create a Form With the Quform WordPress Plugin article.

Loading CSS Into WordPress With Enqueue Style

$
0
0

Without CSS, you have very limited choices to style your web pages. And without proper CSS inclusion inside WordPress, you can make it extremely hard for your theme's users to customize the theme's styling.

In this tutorial, we're going to have a look at the right way to enqueue CSS into WordPress with wp_enqueue_style().

In this post, you'll learn the right way to load an entire CSS stylesheet into your theme. If you just want to add some CSS to your WordPress site without coding, check out our post on How to Add Custom CSS to Your WordPress Site.

The Wrong Way to Load CSS in WordPress

Over the years, WordPress has grown its code in order to make it more and more flexible, and enqueueing CSS and JavaScript was a move on that direction. Our bad habits remained for a while, though. With knowing that WordPress introduced CSS and JavaScript enqueueing, we continued to add this code into our header.php files:

Or we added the code below into our functions.php files, thinking it was better:

In the cases above, WordPress can't determine whether the CSS files are loaded in the page or not. That might be an awful mistake!

If another plugin uses the same CSS file, it wouldn't be able to check if the CSS file has already been included in the page. Then the plugin loads the same file for a second time, resulting in duplicate code.

Luckily, WordPress has a pretty easy solution to problems like this: registering and enqueueing stylesheets.

The Right Way to Load CSS in WordPress

As we said earlier, WordPress has grown a lot over the years and we have to think about every single WordPress user in the world.

In addition to them, we also have to take thousands of WordPress plugins into account. But don't let these big numbers scare you: WordPress has pretty useful functions for us to properly load CSS styles into WordPress.

Let's have a look.

Registering the CSS Files

If you're going to load CSS stylesheets, you should register them first with the wp_register_style() function:

  • $handle (string, required) is unique name for your stylesheet. Other functions will use this "handle" to enqueue and print your stylesheet.
  • $src (string, required) refers to the URL of the stylesheet. You can use functions like get_template_directory_uri() to get the style files inside your theme's directory. Don't ever think about hard-coding it!
  • $deps (array, optional) handles names for dependent styles. If your stylesheet won't work if some other style file is missing, use this parameter to set the "dependencies".
  • $ver (string or boolean, optional) is the version number. You can use your theme's version number or make up one, if you want. If you don't want to use a version number, set it to null. It defaults to false, which makes WordPress add its own version number.
  • $media (string, optional) is the CSS media types like "screen" or "handheld" or "print". If you're not sure you need to use this, don't use it. It defaults to "all".

Here's an example to the wp_register_style() function:

Registering styles is kind of "optional" in WordPress. If you don't think your style is going to be used by any plugin or you're not going to use any code to load it again, you're free to enqueue the style without registering it. See how it's done below.

Enqueueing the CSS Files

After registering our style file, we need to "enqueue" it to make it ready to load in our theme's <head> section.

We do this with the wp_enqueue_style() function:

The parameters are exactly the same with the wp_register_style() function, so no need for repeating them.

But as we said the wp_register_style() function isn't mandatory, I should tell you that you can use wp_enqueue_style() in two different ways:

Keep in mind that if a plugin will need to find your stylesheet or you intend to load it in various parts in your theme, you should definitely register it first.

Loading the Styles Into Our Website

We can't just use the wp_enqueue_style() function anywhere in our theme–we need to use "actions". There are three actions we can use for various purposes:

Here are the examples for these three actions:

Some Extra Functions

There are some very useful functions about CSS in WordPress: They allow us to print inline styles, check the enqueue state of our style files, add meta data for our style files, and deregister styles.

Let's have a look.

Adding Dynamic Inline Styles: wp_add_inline_style()

If your theme has options to customize the styling of the theme, you can use inline styling to print them with the wp_add_inline_style() function:

Quick and easy. Remember though: You have to use the same hadle name with the stylesheet you want to add inline styling after.

Checking the Enqueue State of the Stylesheet: wp_style_is()

In some cases, we might need the information on a style's state: Is it registered, is it enqueued, is it printed or waiting to be printed? You can determine it with the wp_style_is() function:

Adding Meta Data to the Stylesheet: wp_style_add_data()

Here's an awesome function called wp_style_add_data() which allows you to add meta data to your style, including conditional comments, RTL support and more!

Check it out:

Awesome, isn't it?

If I'm not mistaken, this is the first tutorial ever written about this little—but useful—function.

Deregister Style Files with wp_deregister_style()

If you ever need to "deregister" a stylesheet (in order to re-register it with a modified version, for example), you can do it with wp_deregister_style().

Let's see an example:

Although it's not required, you should always re-register another style if you deregister one – you might break something if you don't.

[There's also a similar function called wp_dequeue_style(), which removes the enqueued stylesheets as its name suggests.

Loading CSS Only on Specific Pages

WordPress relies on multiple plugins to add different kind of functionality to a website. The CSS and JavaScript needs by those plugins is usually required on specific pages. This means that loading the same unused CSS on every page results in unnecessary bloat.

In this section, we will learn how to only load CSS into WordPress on those pages where it is actually required.

In the following code snippet, we register the scripts and styles for Chart.js library when the init hook is fired. After that, we enqueue these files conditionally when the wp_enqueue_scripts hook is fired.

The is_page() function is used to determine if we are enqueuing the script and stylesheet on the right page. You can pass individual string and numbers or their arrays to check for multiple pages at once. In our case, the Chart.js files will be enqueued on pages that show sales and quarterly results.

Loading CSS in the Footer

Another way to improve the page load speed for users is to only load critical CSS in the head and load everything else in the footer.

The last parameter in wp_enqueue_script() function allows us to load our scripts in the footer. Unfortunately, the corresponding wp_enqueue_style() function does not have this parameter. The best way to ensure that the stylesheet is added to the footer is to use the wp_footer action hook. It is used to output scripts or other data before the closing body tag.

Wrapping Everything Up

Congratulations, now you know everything about including CSS in WordPress correctly! Hope you enjoyed the tutorial.

Do you have any tips or experiences you want to share? Comment below and share your knowledge with us! And if you liked this article, don't forget to share it with your friends!

If you want to learn how to add CSS to your WordPress site without coding, check out our post on How to Add Custom CSS to Your WordPress Site.

Also, if you're making changes to a third-party theme, it's a good idea to create a child theme and make your edits there. Besides directly adding custom CSS rules to your WordPress theme, you can also safely enqueue external CSS files with the help of a child theme.

The Best WordPress Themes on ThemeForest

While you can do a lot with free themes, if you are creating professional WordPress sites, eventually you will want to explore paid themes. You can discover thousands of the best WordPress themes ever created on ThemeForest. These high-quality WordPress themes will improve your website experience for you and your visitors. 

Here are a few of the best-selling and up-and-coming WordPress themes available on ThemeForest for 2020.

15 Elegant CSS Pricing Tables for Your Latest Web Project

$
0
0

Pricing tables are an important part of any website that sells some kind of services and products. You can use them to quickly list the features, similarities, or differences between two, three, or four different products at once.

These tables give users all the information they need when choosing between different products and services. This, in turn, can result in more business for you. In a way, pricing tables are a win-win tool for both businesses and consumers.

Best CSS Pricing Tables

One common problem that you might face when trying to add tables to your own website is that creating them from scratch can be a bit difficult. The table has to look good, and it should also be responsive.

In this post, we have listed some of the best CSS pricing tables available on CodeCanyon that you can start using in your projects right away.

CSS Pricing Tables on CodeCanyon

There are currently over 110 CSS pricing tables listed on CodeCanyon. Many of them follow a unique approach when it comes to designing pricing tables. This means that you can easily pick a unique responsive pricing table design that makes you stand out from the competition.

CSS Pricing Tables from CodeCanyon

The price of these tables starts from as low as $3. New tables are added to the collection every month. You can pick the right table for your business from the best-sellers or the trending section.

We will also list briefly and review some of these tables below to give you a head start.

Best CSS Pricing Tables on CodeCanyon

Here are the top eight CSS pricing tables that you can buy right now from CodeCanyon:

1.Best-Seller: CSS3 Responsive WordPress Compare Pricing Tables

css3-responsive-wordpress-compare-pricing-tables

Simplicity is what makes CSS3 Responsive WordPress Compare Pricing Tables a bestseller. Built in pure CSS3, it comes only in two styles so you are not overwhelmed by too many choices. 

In addition to choosing from 20 predefined color versions, you have plenty of options for tables, columns, rows and table cells. 

You can implement the expandable row feature comes with expand and collapse option to show or hide table rows.  Once you design your table you can copy and paste the generated short-code into pages of your website.  It's multisite compatible and comes with extensive documentation to help you set up your pricing tables. 

2. Bestselling: CSS3 Responsive Web Pricing Tables Grids

This pack of CSS3 Responsive Web Pricing Tables is one of the highest-rated and top-selling pricing tables on CodeCanyon. It offers a lot of features to back this popularity.

CSS3 Responsive Web Pricing Tables Grids

The tables are available in 20 different colors and two different styles. They are responsive and retina ready, so they will look good on devices with different screen sizes and resolutions.

You can make one of the columns active so that it pops out by default. This is useful if you want to highlight a popular plan or product on the website.

The columns have an extra hidden ribbon. You can display it on individual columns and edit its appearance using CSS.

Other features of the table include tooltips, yes/no icons, and animated hover states. The table fully supports old browsers like IE9.

The plugin description page links to a video that showcases all the features of this table.

3. Responsive CSS3 Pricing Tables

Responsive CSS3 Pricing Tables

Responsive CSS3 Pricing Tables is a highly customizable tool for building awesome pricing tables in minutes.

The responsive layout of the HTML and CSSpricing table templates means they will resize automatically on smaller screens. 

Your pricing tables can use a dark or light theme, and can have up to 6 columns.  In case you want to change the color of the pricing tables, there are 6 color variants to choose from.  

The tables can have CSS3 transition or hover effects. They use pure CSS3 effects, no images except the icons. 

Finally, it is compatible with all modern browsers. 

4. Responsive Clean Simple Pricing Tables

Responsive Clean Simple Pricing Tables

Depending on the look that you are going for, sometimes simple tables with minimal use of colors can look great, instead of tables with lots of animation and elements.

These responsive clean simple pricing tables will be perfect for you if you want to create some basic tables.

As the name suggests, they are fully responsive and built entirely using CSS. There are seven different color options available. The main accent color of the tables can also be changed easily.

The tooltips are created using HTML custom data attributes with CSS tooltips. The table supports all major browsers and comes with jQuery fallbacks for older browsers.

5. Round Pricing Tables

Round Pricing Tables

These round pricing tables are ideal for people who want to display multiple products or services on a single page.

These tables take very little space and still convey all the necessary information. This is because the services or features of a plan are shown only when the users hover over the tables.

The tables have a clean design without a lot of clutter. The animations are powered entirely by CSS, and you can easily change the color of different elements in the CSS itself. The tables are very lightweight because they don't rely on images to create the layout.

You should visit the description page and take a look at the screenshots of the table or the preview video.

6. Kote—Featured Tables Collection

KoteFeatured Tables Collection

If you are looking for modern and responsive CSS tables, then Kote—Featured Tables Collection is perfect for you.

This collection has 34 different tables that should cover almost every scenario where you can use a pricing table.

The first set of HTML and CSS pricing table templates contains tables that are packed closely together, with the middle column popping out from the group. The middle column of the pricing table also has a subtle pulsating animation applied to it to draw attention.

The second set of templates contains tables with a distinct header, body, and footer. They have a simpler design with properly separated columns.

The third set of templates uses fully colored tables with background images that blend perfectly with the background. The downloadable zip archive contains separate SVG files for these backgrounds and other icons.

Overall, this collection of tables is suitable for anyone who wants to have a lot of design options available when creating a pricing table.

7. Horizontal and Vertical Pricing Tables

Horizontal  Vertical Pricing Tables

If you are looking for unique layout options to display pricing tables on your website, then these horizontal and vertical pricing tables are definitely worth checking out.

Two things make these tables stand out. First, they allow you to create pricing tables that are laid out horizontally. Most CSS pricing table solutions only focus on vertical layouts. Second, the tables rely on a well-thought-out combination of colors and animation to give you that feeling of professionalism.

The smooth transition of colors when you hover over different tables is very satisfying to watch. The tables are divided into three distinct sections for the header, the main body, and the footer. The tables are also fully responsive, so they look great on all devices. Take a look at the live preview to experience it all yourself.

8. Modern—Bootstrap 4 Pricing Tables

ModernBootstrap 4 Pricing Tables

Bootstrap is a popular framework used by many websites to quickly create their front end. If your website has also been created using Bootstrap, then it makes sense to use pricing tables that were made specifically for Bootstrap. This will make their integration into existing websites a lot easier and keep the size of the CSS file a bit smaller. 

One of the best ways to quickly add Bootstrap based pricing tables to your website is to use the modern Bootstrap 4 pricing tables.

There are nine different table layouts, with six different color options. The tables are fully responsive, just like their parent framework.

You can present your products and services with a modern, clean, and unique design using these Bootstrap 4 pricing tables.

9. Loki Pricing Table Generator

Loki Pricing Table Generator

Not everyone is comfortable when it comes to making changes to HTML and CSS to customize a pricing table. The Loki Pricing Table Generator solves this problem by giving you the tools to easily customize the basic features of the pricing tables.

There are eight different table layouts. However, you can change various aspects like the primary, secondary, and background color to make them unique. Similarly, you can change the font size for the pricing, features, title, etc.

The generator also gives you the option to change the text of different rows and columns without actually touching the pricing table markup. In the end, you can simply click on the Code button to directly download the HTML and CSS files for the table created.

New and Trending CCS3 Pricing Tables on CodeCanyon

10. Collyshefra—Responsive Modern Pricing Table

collyshefra-responsive-modern-pricing-table

If it's simplicity you're after, and you want a clean design for your HTML and CSS pricing table templates then consider Collyshefra.

You only have to choose from two templates. Each table has only three columns. The first one is only for monthly payments. The second presents your visitors a choice of monthly or annual payments. 

The horizontal pricing tables can be easily customized and are fully responsive. The tables are built using Bootstrap, SCSS, CSS3, and HTML5. They work perfectly on all modern browsers.                                   

11. Pricium Pricing Tables

pricium-pricing-tables

Most pricing tables use cookie-cutter layouts that can look monotonous. Pricium Pricing Tables, however, have a creative and colorful approach pricing table that utilizes a nice single color or multicolor background color over the entire table.

This gives the tables a catchy look. In fact, it's the best table design CSS you will find anywhere.

The tables also have different designs ranging from circular cutouts, rectangular blocks and so on.

These tables have 15 distinct layouts styles to showcase your plans and products. All these styles are fully responsive, so they look great even on mobile devices.

The smooth animation, fully colored columns, and clean flat design used in creating these tables make them unique among all the tables listed in this post.

12. Alura—Creative And Ultimate Pricing Plan HTML Plugin

Alura - Creative And Ultimate Pricing Plan HTML Plugin

When you're looking to build pricing or hosting plan tables that you can customize to your heart's satisfaction then Alura is perfect choice. The tables are designed using HTML5, CSS3, Bootstrap, and jQuery.

The pricing table maker comes with tables that are easy to customize, edit or change thanks to the choice of 10 button hover effects, 3 unique layouts, and 6 color combinations. 

Finally, these modern responsive pricing table are supported across many desktop and mobile browsers.   

13. Colorful Pricing Table

Most pricing tables use different colors for only the header and the footer of a column. However, colorful pricing table uses a unique approach of adding a nice background color over the entire table. This gives the tables a catchy look.

Colorful Pricing Table

These tables have four distinct layouts to showcase your plans and products. All these styles are fully responsive, so they look great even on mobile devices.

The smooth animation, fully colored columns, and flat design used in creating these tables make them unique among all the tables listed in this post.

You should visit the table description page and check out the preview video to see if the tables are suitable for your projects.

Note that this item is no longer supported by the author.

Free CSS Pricing Tables

Before I start listing a few free CSS pricing tables, there are a few things that I should clear up.

There aren't a lot of dedicated libraries and frameworks out there created specifically to generate fancy pricing tables. You will have to look around for a while before you can find some pricing tables that look professional and go well with the overall design of your website.

Keeping these points in mind, it might simply be easier for you to buy one of the premium pricing tables, which come with different templates and clean, professional design. You also get lifetime free updates for any pricing tables you download.

If you still want to give some free CSS pricing tables a try, then the ones I listed below will be a good start.

Pricing Table With Hover Animation

This pricing table enlarges the table that users are hovering over with a nice, smooth animation.

Responsive Pricing Table

This responsive pricing table uses Flexbox to create the layout. Minimal use of colors and other styling elements makes it very easy to integrate with the design of existing websites.

Pricing Table With a Prominent Header

This multi-colored pricing table comes with prominent headers to display a big title for the product or service as well as its price.

Pricing Table with a Prominent Header

The pricing columns are properly separated from each other, and they don't have hover animation applied to them. There is a little badge that you can add to the top of a column to indicate the most popular plans, etc.

Pricing Table With Enlarged Column

A common practice to highlight a popular product or service in a pricing table is to enlarge its column to make it stand out. This pricing table helps you do exactly that. It has a very simple layout with a subtle background animation on hover.

Best Practices to Keep in Mind When Creating Pricing Tables

Pricing tables are generally placed in a prime location on a website, and they are used to highlight the main products and services that you offer. Therefore, it makes sense to follow all the best practices when you create these tables.

Here are a few things that you should remember when creating pricing tables:

1. Make the Tables Responsive

A lot of traffic to a website generally comes from mobile devices nowadays. There is no fixed resolution that you can target when creating pricing tables. Therefore, it is important to make sure that your pricing tables look good on all screen sizes. The premium CSS pricing tables from CodeCanyon are already responsive, so you won't even have to worry about it when using them.

2. Use Fewer Words

Pricing tables are meant to give users all the necessary information they need about different products at a glance. Use them to list the most important distinguishing features of these products. Other details can be mentioned somewhere else on the website.

3. Include a Prominent Call-to-Action Button

Hopefully, the pricing tables that you create will give users all the necessary information that they want before making a purchasing decision. Once they decide to buy one of your products and services, you should make it as easy as possible for them to complete the purchase. The best way to do that is to include a button to make the purchase somewhere in the pricing table itself.

Final Thoughts

As we discussed at the beginning of this post, pricing tables are a great way to drive more business by allowing users to quickly compare different products and services.

Creating a responsive and nicely designed pricing table from scratch can be a daunting and time-consuming task. That is why you should consider using one of the premium CSS pricing tables available on CodeCanyon.

CSS Pricing Tables from CodeCanyon

Which pricing table do you like the most from the ones we mentioned in the post? Let us know in the comments.

This post has been updated with contributions from Franc Lucas. Franc is a writer for Envato Tuts+ who enjoys exploring the world of SaaS.

21 Best Tab and Accordion Widget Plugins for WordPress (Free & Premium)

$
0
0

Your website's content should be organized and beautiful. By adding a tab or accordion widget plugin to your WordPress website, you will be able to display your website's content in an elegant way. 

An interactive accordion and tab plugin can tidy up the design and readability of your webpages.

Accordions and tabs are great ways to communicate text-heavy information in a stylish and condensed way. Keeping your website clutter-free and interactive should be the main priority for your website, and accordions and tabs help you accomplish this. 

At CodeCanyon, you will be able to choose from a library of premium WordPress accordion plugins available and find a tab and accordion plugin that will fit your website's theme and allow you to display your website's information without crowding your page's designs. 

The Best WordPress Tab and Accordion Plugins on CodeCanyon

Discover CodeCanyon's extensive library of the best tab and accordion WordPress widgets and plugins ever created. With a cheap one-time payment, you can purchase these high-quality WordPress widgets and plugins and draw in more traffic to your website. 

Here are a few of the best-selling tab and accordion WordPress widgets available on CodeCanyon for 2021.

Best-Selling WordPress Tab  Accordion Widgets  Plugins
Best-selling tab and accordion widgets and plugins available on CodeCanyon 

These powerful tab and accordion plugins allow you to display your website's text and media in a systematic order that fits your particular website. These widgets and plugins come with plenty of features that can enhance your website, including:

  • pagination
  • animated layers
  • customizable columns and rows
  • touch-enabled mobile functionality 
  • lightboxes

Head on over to CodeCanyon and choose from the premium tab and accordion plugins available now! 

15 Best Tab and Accordion WordPress Widgets for 2021

Here are 15 of the top-rated WordPress tab and accordion widgets and plugins that are available for you to download on CodeCanyon:

1. Ultimate Searchable WordPress Accordion

Ultimate Searchable WordPress Accordion

This five star-rated WordPress accordion plugin for WPBakery Page Builder is a crowd favorite. Some of its coolest features are:

  • quick and easy installation
  • responsive accordion layouts
  • unique live content search
  • 14+ smooth animations
  • 6 pre-defined color themes
  • RTL support
  • lifetime support and updates

See what user spektacle says about this accordion WordPress plugin widget:

Probably the best accordion add-on available for WPBakery (Visual Composer). Lots of flexibility to adjust the look and feel of each accordion and the transitions are super smooth to create a sleek effect.

2. BWL Knowledge Base Manager WordPress Accordion

BWL Knowledge Base Manager WordPress Accordion

This is one of the best tab plugins for WordPress we've got. The WordPress tabs plugin is user-friendly, fast, and fully responsive. People love this WordPress tabbed content widget because:

  • no configuration is required
  • responsive grid system
  • AJAX-based searching system
  • animated and responsive tabs
  • extensive Options panel
  • unlimited customization
  • lifetime support and updates

User cleolc says:

This is a quality plugin for WordPress. We have over 400 entries to manage in our knowledge base and this app works flawlessly! And customer service has been fast and extremely helpful.

3. ZF WordPress Category Accordion

ZF WordPress Category Accordion

This WordPress accordion plugin was created to improve your WooCommerce website with a better navigation experience. 

ZF WordPress Category Accordion plugin allows you to show all your categories as WooCommerce category accordions. Check this WordPress accordion's nice features:

  • support WooCommerce category accordion
  • support WordPress category accordion
  • pages accordion (accordion menus)
  • translation-ready
  • support shortcodes and widgets
  • toggle accordions
  • 7 default color schemes

4. CSS3 Accordions For WordPress

CSS3 Accordions For WordPress

This accordion WordPress plugin widget is entirely based on CSS3. It's one of the best accordion plugins for WordPress because it comes with an intuitive admin panel, horizontal and vertical layouts, and unlimited color skins. 

You can put any type of content inside the expandable section, including lists, images, or any custom HTML code.

5. Accordion Slider—Responsive WordPress Plugin

Accordion Slider

The Accordion Slider WordPress theme combines two great functions in one handy plugin. First, it functions as an accordion, and secondly it functions as a slider. The best features of this accordion slider include:

  • add as many panels as you want, without worrying about screen space
  • touch-enabled to work well with mobile screens  
  • loads images and content from posts, galleries, and Flickr
  • accordions are automatically cached to improve the load time
  • can be placed anywhere: in posts/pages, template PHP code, or widgets

Accordion Slider—Responsive WordPress Plugin is a great two-in-one accordion plugin that will appeal to those looking for a great way to present images or text.

6. Grid Accordion—Responsive WordPress Plugin

Grid Accordion - Responsive WordPress Plugin

One of the best-looking WordPress accordions out there, Grid Accordion adds a fresh feel to your site by offering a feature not found in other plugins: an accordion that works in two directions. While most plugins let you open and close tabs or similar UI elements either horizontally or vertically, with this accordion plugin, you can do both. Not only does it handle text content well within its accordion grid, but you can even fill your content areas with images and other media for a more stunning effect.

Make sure to check out the demo for Grid Accordion here.

This accordion WordPress plugin widget also comes with a host of other features, such as:

  • a fully responsive and touch-enabled design
  • support for dynamic content from posts and galleries
  • available hooks for actions and filters
  • JavaScript API endpoints for maximum customization

7. WP Responsive FAQ With Category

WP Responsive FAQ With Category

The Responsive FAQ With Category WordPress tabs plugin is specifically designed for users who want to add a Frequently Asked Questions area to their site and don’t want their visitors to have to scroll through an endless stream of text.

This WordPress tabbed content widget's best features include:

  • FAQs can be arranged by category
  • 15 customizable different designs to choose from
  • compatible with Visual Composer page builder and WooCommerce
  • two types of FAQ toggle icons: arrow or plus sign

There’s no question that this one of the best tab plugins for WordPress and that WP Responsive FAQ with Category is the answer to all your FAQ needs.

8. WooCommerce Category Accordion

WooCommerce Category Accordion

The WooCommerce Category Accordion is designed specifically for WooCommerce users. It can be used as a widget or shortcode to list product categories and subcategories. The best features of this WordPress accordion are:

  • supports unlimited categories and subcategories
  • 14 Font Awesome icons included
  • ability to highlight current category option
  • sort by ascending or descending order

WooCommerce Category Accordion is ideal for users who want to organize their products or services into categories and subcategories to make it easier for customers to navigate their site.

9. Responsive Searchable 3 Level Accordion

Responsive Searchable 3 Level Accordion

Responsive Searchable 3 Level Accordion is a simple WordPress accordion plugin that can be used anywhere on your site. It will appeal to users who are looking to arrange content in accordion style within a post, sidebar, footer, etc. The best features of this accordion and accordion slider are:

  • can be used as a widget or shortcode
  • three nesting levels available
  • five ready-made styling options
  • allows users to type in the searched phrase

Responsive Searchable 3 Level Accordion For WordPress is a low-fuss accordion plugin, and its standout features like three-level support and searchable content really set it apart.

10. Accordion FAQ WordPress Plugin

Accordion FAQ WordPress Plugin

FAQ pages are an important part of almost any website, and with this WordPress accordion plugin, you can fit a mountain of text behind a sleek and easily digestible display. This accordion plugin focuses on doing one thing, creating FAQ-style content easily, and it does it well. Here’s what you can expect to get with this WordPress tabs plugin:

  • ability to quickly add multiple FAQ accordions throughout your site
  • easy drag-and-drop interface for reordering
  • color, icon, and font customization
  • built-in generator for creating shortcodes

If you’re looking to add an FAQ section to your existing design, then the Accordion FAQ WordPress Plugin has you covered.

11. WordPress Tabs and Accordions DZS

WordPress Tabs and Accordions

WordPress Tabs and Accordions DZS is another of the best tab plugins for WordPress. It gives users access to both tab and accordion functions. Its best features are:

  • full skins to fit every brand
  • WYSIWYG editor
  • unlimited color options for customization
  • iPhone, iPad, and Android optimized
  • and more

WordPress Tabs and Accordions DZS is another great two-for-one WordPress tabbed content widget.

12. Side Tabs—Layered Popups Add-on

Side TabsLayered Popups Add-on

A little different than most of the plugins on this list, Side Tabs delivers the features you’d expect from a WordPress tabs plugin, but instead of existing within your site’s content, they live at the edge of your screen. This unique presentation creates a number of unusual uses.

One of the most interesting ways you can use Side Tabs is to present a constant access point to content throughout an entire page (or several pages). Besides that, this WordPress tabbed content widget also makes a great tool for offering calls to action and similar content without being too intrusive.

With a ton of customization and animation options available out of the box, this is one of the best tab plugins for WordPress. It works brilliantly for anyone looking to add a fresh way of presenting information to their site.

13. WooCommerce Tabs Pro: Extra Tabs for Product Page

WooCommerce Tabs Pro Extra Tabs for Product Page

If you have a WooCommerce site, the WooCommerce Tab Pro plugin will allow you to create and manage 11 different types of tabs to display your products. The best features of this WordPress tabs plugin are:

  • ability to add unlimited tabs to a single product page
  • WYSIWYG editor for editing custom content
  • ability to enable or disable tabs
  • ability to create a global tab that can be used with all products

When you have an eCommerce site, making improvements to your layout can really boost sales. With WooCommerce Tabs Pro: Extra Tabs for Product Page, the tills will soon be ringing.

14. Elegant Tabs for Visual Composer

Elegant Tabs for Visual Composer

Elegant Tabs for Visual Composer is an add-on for the WPBakery WordPress plugin (formerly Visual Composer). This WordPress tabbed content widget lets you add any shortcode to multiple tabs and offers loads of customization like different colors, icons, and backgrounds for different sections or tabs. Its best features include:

  • vertical tabs
  • drag and drop any WPBakery elements inside the tab content
  • supports deep linking
  • ten different styles of tabs and unlimited variations
  • and more

Elegant Tabs is also available for Fusion BuilderWooCommerceCornerstone, and Beaver Builder.

15. PullOut Widgets for WordPress

PullOut Widgets for WordPress

PullOut Widgets is a different take on tabs. The WordPress tabs plugin is specifically designed to turn any widget on your site into a pullout tab. Here are the best features:

  • 289 icons for pullout tabs
  • 32 sliding animation effects
  • unlimited pullout widget positioning on the top, right, bottom, or left side
  • unlimited widget colors

The most successful websites are interactive, and PullOut Widgets for WordPress gives your visitors plenty of chances to engage with your content.

5 Free Tab and Accordion WordPress Widgets and Plugins for Download in 2021

The best features and most beautiful interfaces are found in the premium plugins from CodeCanyon. But, if you're on a budget or just want something simple, check out these free tab and accordion plugins for WordPress.

1. Arconix Shortcodes

Arconix Shortcodes

Arconix Shortcodes is a very versatile accordion plugin and is a must-have if you cannot afford any of the premium plugins. With this plugin, you can add not only accordions but styled boxes, buttons, tabs, unordered lists, columns, and much more.

2. Easy Accordion

Easy Accordion is a responsive drag-and-drop accordion builder that will help you to display multiple accordions on your WordPress website. No coding is necessary to add the accordions to your website as everything is added through shortcodes.

3. Accordion

Accordion

This accordion plugin can help you create different sections of your website, including but not limited to FAQs, a knowledge base, and a question & answer section. You can change the colors, font size, and icons for each accordion.

4. Squelch Tabs and Accordions Shortcodes

With the use of shortcodes, you can add horizontal accordions, vertical accordions, and tabs. This free plugin will help you save space on your webpages, make your website look more professional, and add an interactive component to your website.

5. Shortcodes Ultimate

Shortcodes Ultimate allows you to add many tools to your website. You can easily create tabs, buttons, boxes, sliders and carousels, and responsive videos. The plugin comes with over 50 shortcodes for you to implement. 

How to Add an FAQ Accordion to Your Website

In this example, we are going to create an FAQ section for our online store using one of our best accordion plugins for WordPress. 

First, we need to create a category for our FAQ accordion so the plugin knows what content to add to each specific accordion. Once you have installed the Accordion FAQ WordPress plugin, head on over to WP Dashboard > FAQ > Categories. In the name field, we will type "Online Store" and click the Add New Category button. 

Next, we will click on WP Dashboard > FAQ > Add New. We will add our three FAQ entries this way. We will include the question in the title and the answer in the text editor. 

Creating FAQ Entry

For each of our entries, we will make sure to click the checkbox next to the category, Online Store, that we created to make sure we group the entries together. 

Once we have added our three FAQ entries for our online store, it's time to add the accordion widget to a page. On an existing or new page or post, click on the Add Shortcode button on the top of the text editor. Choose Insert FAQs from the Select a Shortcode drop-down menu. From here, we will be given a basic group of settings for us to change. We will choose the Online Store category from the Faq Category option and change the Icon Background Color to blue. 

Changing Accordion Settings

Click the Insert Shortcode button, and the shortcode will be added to the text editor. The FAQ accordion will now be displayed on your webpage for all your users to see!

Online Store Accordion FAQ

Install a Tab or Accordion WordPress Widget Now! 

By adding a premium tab or accordion plugin to your website, you will be able to simplify your web page's design and display your text and media in an easy-to-understand way. 

These handy widgets and plugins allow you to integrate interactive displays for your website's content that can be styled to fit your website's theme. 

In addition to all the high-quality tab and accordion widgets available, there are also thousands of other high-quality WordPress plugins on CodeCanyon that can help enhance your website. Take look through this massive collection of plugins, and you will find all types of plugins, including gallery, newsletter, eCommerce, and marketing plugins.

This post has been updated with contributions from Maria Villanueva, a journalist and writer with many years of experience working in digital media.

Viewing all 5161 articles
Browse latest View live