Quantcast
Channel: Amit Sonkhiya – Fellow Tuts
Browsing all 72 articles
Browse latest View live

Fancybox ajax content & navigation issue in group & popup

While working with fancybox, you might have noticed that any button or link or input inside fancybox popup just behaves like previous/next item slider, making that coming item to appear in popup rather...

View Article


Find object by value in array of objects

In PHP we either create objects and their array, or database returns array of objects as result-set of some query. There we might need to find an object which have a particular property-value pair....

View Article


2 ways to truncate foreign key constrained table

In MySQL we create tables and build relationship among them. In the process if we need to truncate foreign key constrained table then we can't do it simply and MySQL will throw an error even we have...

View Article

Select element with multiple attributes in jQuery

Selecting element with two or more attributes in your html page is not a trivial task. It's just a very simple line of jQuery selector when it comes to select element with multiple attributes. So let...

View Article

2 ways to fix: Can’t use method return value in write context

Have you ever used a function call in `empty()` for an `if` condition to perform some checking? Then you might come up with an PHP fatal error saying Can't use method return value in write context. I...

View Article


2 ways to center a column in Twitter Bootstrap 3

Here are 2 ways which you can use whenever you need to center a column div within `.container` in Twitter Bootstrap 3 as well as to keep empty space outside the `div` to be evenly distributed. First...

View Article

Placing text above foreground image in html

It's quite common to use background image and place text above it but it's also possible to use image in foreground and place text above foreground image overlay. You can also horizontal center or...

View Article

Image may be NSFW.
Clik here to view.

Facebook app is still in development mode & don’t have access

When you setup App on Facebook and try to make login with Facebook available in your script, everything seems fine but when someone attempt to login with a Facebook account he/she gets either of these...

View Article


MySQL update if value is greater than current value

While working with MySQL database there might be situation when you wish to update certain column only if the value being updated is greater than existing value or current value stored in that column....

View Article


Install Redis & Redis extension in PHP on windows

This article is intended to those who wish to install Redis and PHP extension for interfacing with Redis on their XAMPP installation on windows. As I had required once to setup a Redis Server on my...

View Article

Bootstrap Form in Modal – Use Popup in Correct Way

Form in modal is a trending tool for websites now a days. Like Bootstrap login/register form implemented in a modal to popup. I have seen designer making form markup wrong within modal and thus...

View Article

Caching in WordPress to Store Data – Transients API

Caching in WordPress using Transients API can store the data which have an expiration time. After the data has expired or not available, we can run code to grab data and catch it again. Transients API...

View Article

3 Steps: Connect or Link Facebook App to Facebook Page

To connect or link Facebook app to your Facebook page, follow the simple information provided along with images in this article. Linking your Facebook application to your existing page is very...

View Article


How to Use Individual JavaScript Plugin in Bootstrap

You can use individual JavaScript plugin in Bootstrap framework also, rather using whole Bootstrap JS file built on jQuery. Once I had need to include only Navbar component which depends on Collapse...

View Article

Add Target, CSS Class, Title or Rel to WordPress Menu

You can easily add Target, CSS Class, Title, Rel or even some description to a WordPress Menu. Defining target, CSS class, adding title or rel (relation) attribute to navigation links in WordPress menu...

View Article


Outlook HTML Email Templates – Right Way to Add & Configure

Configuring HTML Email Templates in Outlook gives you power to send branded emails to your clients in lesser time through HTML email templates. From my perspective, it's now been required to add &...

View Article

Modal as Popup or Direct as Page Content in Bootstrap

We always use Modal as Popup in Bootstrap. But just with a little PHP & CSS, we can use it direct as page content. It's useful when we want modal to behave as expected, popup at most of pages in...

View Article


Align Div or List to Horizontal, Vertical Center to Parent

Bootstarp 4 has introduced classes to align div or list to horizontal, vertical center to it's parent. Do you have a list inside a div and you wish to vertically align center to list items inside the...

View Article

Screen Options Not Working in WordPress Dashboard

Screen Options Not Working / Saving in WordPress Dashboard is a very irritating problem. Once you update / save any screen option and it doesn't work at all. Or does only once and fails on next page...

View Article

Add Default WordPress Categories and Tags to Custom Post Types

You can add default WordPress Categories and Tags taxonomies to Custom Post Types through passing taxonomies parameters to arguments. In previous article we had learnt how to create CPT using code in...

View Article
Browsing all 72 articles
Browse latest View live