What’s New in WordPress 4.0 “Benny”

Version 4.0 of WordPress, named “Benny” in honor of jazz clarinetist and bandleader Benny Goodman.

Manage your media with style
Working with embeds has never been easier
Focus on your content
Finding the right plugin

Please check the blow video by kimmimebaby

“What’s New in WordPress 4.0 “Benny” – 11 New Features Found”

Please find more details https://wordpress.org/news/2014/09/benny/

By |September 27th, 2014|Open Sources, Word Press|0 Comments

How to Disable WordPress Admin Bar for All Users Except Administrators

I am working on new public domain website http://www.forefingerfirst.com/ where people can only able to vote after FB login. So i have done customized the easy facebook login plugin.

But then we are facing the issue that once user login with FB. He/She was getting Admin bar. So i have search for solution and below is […]

By |April 1st, 2014|Open Sources, Technical, Word Press|0 Comments

How to make your WordPress Website Secure

You have find many discussion about WordPress is not secure or easy to hack. I will share some of plugin which can make your website more secure.
Google Authenticator
The Google Authenticator plugin for WordPress gives you two-factor authentication using the Google Authenticator app for Android/iPhone/Blackberry.

Download here
Limit Login Attempts
Limit the number of login attempts possible both through normal […]

By |September 28th, 2013|Open Sources, Technical, Word Press|0 Comments

How to increase font size based on window width by using jQuery and CSS

HI

Add below CSS

<style type=”text/css”>

body {font-size:62.5%;} /* Set the size of 1em to 10px in all browsers */

body.extraWide {font-size:85%;}
body.wide {font-size:75%;}

body.narrow {font-size:50%;}
body.extraNarrow {font-size:40%;}

</style>

and add jQuery with the support of  a set timeout so it would scale in real time. It doesn’t reverse scale though.

$(document).ready(function() {scaleFont();});

function scaleFont() {
var viewPortWidth = $(window).width();
if (viewPortWidth >= 1900) {$(‘body’).addClass(‘extraWide’).removeClass(‘wide, standard, narrow, extraNarrow’)}
else […]

By |May 1st, 2013|Open Sources, Technical|0 Comments

Apache web server: Mapping a URL to a local directory in Ubuntu

We would like to serve the content of a local directory to the Web through the Apache web server. The problem is that the directory isn’t into the Apache document root and we do not want to move it there. :-/

To solve this we will map a URL starting with /desired_URL to files in the […]

By |March 29th, 2013|Open Sources|0 Comments

ERROR: Either the server is overloaded or there was an error in a CGI script – Apache Server in XAMPP

Windows XP Pro SP 2
XAMPP

Error Message:

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
02/27/08 13:04:31
Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.4

SOLVE:

Mod_rewrite needs to be […]

By |November 15th, 2011|Open Sources, Technical|Comments Off on ERROR: Either the server is overloaded or there was an error in a CGI script – Apache Server in XAMPP

WordPress Tutorial – Adding A Widget Area To Your Theme Files

Its a fairly simple process, which involves 2 steps:
1. Register The Widget
To register the new widget you need to open the functions.php file in your WordPress themes editor.

Add the following code to the functions file, making sure you place it in between php tags:
if ( function_exists(‘register_sidebar’) ){
register_sidebar(array(
[…]

By |September 6th, 2011|Open Sources, Word Press|Comments Off on WordPress Tutorial – Adding A Widget Area To Your Theme Files

Content Divider, Support Writing & Editing Splitting Content in WordPress

We can put more link in a a post/page by just adding

<!-more–>

We can split a post/page up into different web pages so that is has pagination? All you have to do is type:

<!–nextpage–>

into the HTML editor where you would like your page breaks to appear.

You can use it throughout a long post to make […]

By |August 18th, 2011|Open Sources, Word Press|Comments Off on Content Divider, Support Writing & Editing Splitting Content in WordPress

How to export HTML Table into Excel via PHP

Create one variable and save whole table as string to that variable and just add below headers lines
//Header information
$header = “Header1” . “\t”;
$header .= “Header2” . “\t”;

//Reading the data thro’ POST
$data= $_POST[‘header1’]. “\t”;
$data .= $_POST[‘header2’] . “\t”;

header(“Content-type: application/x-msdownload”);
header(“Content-Disposition: attachment; filename=xyz.xls”);
header(“Pragma: no-cache”);
header(“Expires: 0”);
print “$header\n$data”;
download sample file

By |July 22nd, 2011|Open Sources|Comments Off on How to export HTML Table into Excel via PHP

Steps for how to move Mysql database from default drive to other Drive!!!

Steps for how to move Mysql database from C: drive to D or any other Drive!!!

Step 1:

Cut the folder of database which you want to move from mysql c: data folder

For e.g. in my case

Database path:  C:\Program Files (x86)\MySQL\MySQL Server 5.0\data

Database name: tejash

[…]

By |July 1st, 2011|Open Sources|Comments Off on Steps for how to move Mysql database from default drive to other Drive!!!

Win 2003 Server, IIS 6, PHP 5 : Error: security error (ACL ERROR).

I am using Win 2003 Server, IIS 6, PHP 5.

If you see “You are not authorized to view this page” error when running your PHP page.

Try one more thing:
1. Right-click {C:\php} (or your PHP installation root) and select {Properties}
2. Select {Security} tab and click {Add} button
3. Enter {ComputerName/IUSR_ComputerName} as object name and press {OK}
4. Select […]

By |June 13th, 2011|Open Sources|Comments Off on Win 2003 Server, IIS 6, PHP 5 : Error: security error (ACL ERROR).

How to setup a local web server on your computer using XAMPP

Installing XAMPP on your computer

First, download XAMPP for Windows Installer
Then run the installer on your computer and make sure that your Windows firewall unblocks Apache.
Run the Apache administrator.
Open your browser and go to http://127.0.0.1 – If all went well, a screen will appear where you can choose your language.
Go to http://127.0.0.1/security/xamppsecurity.php and setup a password […]

By |June 13th, 2011|Open Sources|Comments Off on How to setup a local web server on your computer using XAMPP

PHP Error – How to Display Error in browser

display_errors = On

in php.ini

 

By |June 12th, 2011|Open Sources|Comments Off on PHP Error – How to Display Error in browser

PHP Error – It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

Search for ‘timezone’ in php.ini file

change
;date.timezone =

to

date.timezone = “America/New_York”

or whatever specific timezone you are in.

By |June 12th, 2011|Open Sources, Technical|Comments Off on PHP Error – It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

PHP Warning: fopen() Permission denied in in IIS 7

hi

Just at time of installation of opencart on my local iis 7.

I face this error PHP Warning:  fopen() []: Permission denied in  in IIS 7 […]

By |February 14th, 2011|Open Sources, Technical|Comments Off on PHP Warning: fopen() Permission denied in in IIS 7

How to: Restrict page view to authenticated users – WordPress

To check if the current reader is authenticated or not, WordPress provide the is_user_logged_in()function, which will return true if user is logged in, false otherwise.

We just have to create a basic php conditional instruction and check if the user is logged in:

if (is_user_logged_in()) {
// You page code goes here
} else {
echo “You must be logged in […]

By |January 20th, 2011|Open Sources, Word Press|Comments Off on How to: Restrict page view to authenticated users – WordPress

Registration Module in WordPress: WP-Members

Download Plugin – http://wordpress.org/extend/plugins/wp-members/
Description
WP-Members™ is a plugin to make your WordPress blog a membership driven site. Perfect for newsletters, private blogs, premium content sites, and more! The plugin restricts selected WP content to be viewable by registered site members. Unlike other registration plugins and WordPress itself, it puts the registration process inline with your content (and thus your branded theme) instead of the native WP login page. WP-Members™ works “out-of-the-box” with no modifications to your theme, but it is fully scalable for those that want to customize the look and feel, or want to restrict only some content. It is a great tool for sites offering premium content to subscribers, and is adaptable to a variety of applications. […]

By |January 20th, 2011|Open Sources, Word Press|Comments Off on Registration Module in WordPress: WP-Members

PHP snippets to interact with Twitter

Twitter is an awesome tool for website owners, and you should definitely integrate it into your website if you want to attract more traffic and new visitors. Today, let’s take a look at some PHP snippets to interact with Twitter.
Get number of Twitter followers […]

By |January 14th, 2011|Open Sources, Social Media|Comments Off on PHP snippets to interact with Twitter

PHP and MySql Interview Question Paper with Answer

What’s PHP?

The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications.

[…]

By |January 14th, 2011|Open Sources|Comments Off on PHP and MySql Interview Question Paper with Answer

Create a CSV file from MySQL with PHP

The example code below uses the raw mysql_* functions but it should be easy enough to substitute a database library’s functions instead. It also writes the data out line by line to the CSV file whereas you could buffer the whole file in memory and write it out at one go; however if the resultset is large it may be better to write it out line by line so as not to consume too much memory.

The $server, $login, $password, $db and $table variables should be obvious in their purpose 🙂 […]

By |January 14th, 2011|Open Sources|Comments Off on Create a CSV file from MySQL with PHP

Sending a CSV file to the web browser with PHP

The headers look like so, substituting filename.csv for the name you would like:
header(‘Content-type: application/octet-stream’);
header(‘Content-Disposition: attachment; filename=”filename.csv”‘); […]

By |January 14th, 2011|Open Sources|Comments Off on Sending a CSV file to the web browser with PHP

Export data to CSV from MySQL

To dump all the records from a table into the file /tmp/[tabelname].csv as a CSV file, use the following SQL query: […]

By |January 14th, 2011|Open Sources|Comments Off on Export data to CSV from MySQL

Creating a MySQL dump in CSV format

Mostly, a dump of a db is wanted in SQL. In case of emergency import file. But some people do not comprehend SQL or their SQL doesn’t like your SQL and everything goes down the drain. So there is the CSV or Comma-separated values file. As the name says, it separates the values by commas (and more if needed). Since it’s so dead simple, you will get a lot of different tools and program languages that will make life easy for you to re-import or just search in it. Microsoft Excel and Openoffice Calc both can handle the format as well, so for a quick look, this will do very nicely. […]

By |January 14th, 2011|Open Sources|Comments Off on Creating a MySQL dump in CSV format

New in WordPress 2.9: Post Thumbnail Images

Many WordPress themes, especially those with “magazine-like” layouts, use an image to represent each post. It might just be on the front page. It might be alone, or alongside an excerpt. Until now, there was no standardized way to do this. Many themes would require you to tediously enter a Custom Field with the value being the URL you wanted to use. Often you had to do cropping yourself. With WordPress 2.9, theme authors can easily enable Post Thumbnail selection UI and call those image using simple template tags.

and call those image using simple template tags.

[…]

By |December 27th, 2010|Open Sources, Word Press|Comments Off on New in WordPress 2.9: Post Thumbnail Images

Running_a_Development_Copy_of_WordPress

Whether you’re developing WordPress plugins, WordPress themes, or rolling out a new site based on a customized version of WordPress, it’s often helpful to be able to mirror your live site on your local system for development. This is common for commercial sites, where you have a live production server but you also need a development and/or staging server, which is run locally to test plugins, mods, themes, and everything else that you don’t want to do on the live production server. For example, your live site could be http://www.example.com/blog and your development site might be http://localhost/example.com/blog. However, WordPress serves pages with embedded absolute URLs based on the absolute site URL configured in your database, so none of the links on your development site will work.

[…]

By |November 14th, 2010|Open Sources, Word Press|Comments Off on Running_a_Development_Copy_of_WordPress