You may want to publish your WordPress post just right now but post date will be a future time. By default WordPress doesn’t have such option. Here I will show you a very simple trick to do this. Continue reading
Author Archives: oneTarek
How to Add Extra Meta Field to WordPress User Profile by Plugin
When you are creating a WordPress plugin to play with users’ profile meta data, you may need to use some different meta data those are not exists in user profile page. So you must want to have new custom meta field with user profile. Sometimes we call it user custom field. How to do add this custom field? Here I will show you the complete code snippet and a simple demo plugin. Continue reading
How to Point WordPress Default Media Upload Directory to New Location
WordPress stores your media files like image, video, audio, flash etc in a default location in the wp-content/uploads directory. The default media upload directory is wp-content/uploads/ . But if you don’t want to use this directory, you want to store your media files in another location. WordPress has an option to change this default media uploads location. Its very easy way but if you are very new to WordPress you may think it difficult. So what to do for this? Continue reading
WordPress Problem to Pass External Domain as URL Query String Parameter Value
Today I have discovered a strange problem of WordPress / Apache. WordPress / Apache is unable to handle an URL with a query string parameter containing a link of external domain (Cross Domain). It shows not found page. I am trying call a static story.html file from my upload directory. I have to pass some query string with URL of my story.html file. But when I am trying to pass some query parameter in the URL then I am going to a not found page. Continue reading
JavaScript: How to Get Query String Parameter Value from Current Page URL
You can retrieve any query string value based on parameter name from the url of current page. Following JavaScript function returns the value for given parameter name. These are raw JavaScript codes, so you don’t need to use jQuery. Continue reading
Slim : a PHP micro framework
Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
FEATURES
- Powerful router
- Standard and custom HTTP methods
- Route parameters with wildcards and conditions
- Route redirect, halt, and pass
- Route middleware
- Template rendering with custom views
- Flash messages
- Secure cookies with AES-256 encryption
- HTTP caching
- Logging with custom log writers
- Error handling and debugging
- Middleware and hook architecture
- Simple configuration
SYSTEM REQUIREMENTS
PHP 5.3.0 or newer
Guide:PHP Simple Learning Record Store (LRS) With Tin Can API
Script for Self hosted Learning Record Store Supporting Tin Can API
This guide was originally posted at http://www.tincanapi.co.uk/wiki/Guide:PHP_Simple_LRS . Due to an error this site is not accessible now. I collected this guide form a google cached data. I post this content here just for my personal purpose. Now the main author posted his codes on gitHub Project PHPCan
Track Who is Trying to Login into Your WordPress Admin Panel
You may think your website is very new and not much popular. So none can try to hack your WordPress. If you think so then I will tell you are wrong. Form my real experience I know some bad guys are always trying to hack any website. It is a hobby of theme. And some people may hack an website for his benefit. WordPress is an popular and open source CMS. Everybody know the internal codes of an WP site. And it is a nice playground to hacker. Your site is not risk free. Hackers are always trying to hack your site. Continue reading
How To Add or Remove a Class Using Raw JavaScript and jQuery
If you want to dynamically set or remove a CSS class name for a HTML element, then you need to do some javaScript works. We can do this by using raw javaScript. jQuery is also a popular javaScript library. You can use jQuery also. Here I am showing you the both way to add/remove class. Continue reading
CSS Mistake is Harmful for Your WordPress and it Increases Multiple Times Server Usages
Do you know your WordPress site is being loaded multiple times for a single page visit? I am sure you don’t know. It is happening behind your eyes. A simple mistake of CSS style codes may increase your WordPress server usages and server may goes to slower down. In this article I will show you how a bad or old CSS code is harmful for your server.
