WordPress asking for FTP username/password while trying to install plugin from admin panel

This is annoying if WordPress asks for FTP username/password everytime you try to install or update plugin from admin panel.

Here is the quick hack to this.

1. Open the wp-config.php file (this will be located in the root of your wordpress installation)

2. Add the following line of code just after define(‘NONCE_KEY’, ‘put your unique phrase here’);

/* FTP login settings */
define('FTP_HOST', 'localhost');
define('FTP_USER', 'yourftpusername');
define('FTP_PASS', 'yourftppassword');

Note: Be sure to replace yourftpusername to your website’s FTP user name and yourftppassword to your website’s FTP password.

3. Upload the updated file. It works!

Popularity: 20% [?]

Posted in Wordpress, Wordpress Hacks | 1 Comment

Custom User Registration Plugins for WordPress

I have been trying hard to find an easy way out to add custom registration field to the WordPress default registration form.

I recommend the following wordpress plugin to customize, add custom fields, manage user registration, moderate user registration and edit the default email sent to the new registered users.

1. Cimy User Extra Fields
This plugin gives you the power to add custom fields to your wordpress registration form. You also get the choice to add different data types like text box, select box, radio button, text area etc with quite a few validation options.

Cimy User Extra Fields also unleashes the hidden registration fields that come with wordpress default registration form.

Download

2. Approve New Users

You can moderate New User Registration with this plugin. It adds another option “Approve New Users” under “Users” settings menu.

Download

3. New User Email Setup

New User Email Setup plugin lets you customize the default email sent to the new users upon registration. You can customize the email text, sender name, sender email and subject too. What’s more, you can even send HTML email!

Download

Popularity: 60% [?]

Posted in Wordpress | Tagged | 1 Comment

WordPress Solutions: Add New Custom Field Not Working

If you are having an issue adding a new custom fields in your wordpress blog, here is the possible solution.

Problem: Add New Custom Field Doesn’t Work at all. When you click on “Add Custom Field” nothing happens!

Solution: Refer to your Theme’s Function file (functions.php) located in your theme directory. Remove any blank lines from the file functions.php

It works!

Popularity: 22% [?]

Posted in General | Leave a comment

Thumbnail for Excerpts : Hack for WordPress 2.8+

I was stucked with Thumbnail for Excerpt plugin behaving unexpectedly with WordPress 2.8.2

Thank you Cory for sharing the plugin hack to make it work.

Bug: The Thumbnail for Excerpt plugin showing the same thumbnail image with all the posts (with WordPress 2.8.2+)

Solution: Edit the plugin in plugin editor. Replace lines 28 & 29 with this:

global $wp_query, $wpdb, $post;
$id = $post->ID;

The actual lines of code look like this

global $wp_query, $wpdb;
$id = $wp_query->post->ID;

Replace these lines with

global $wp_query, $wpdb, $post;
$id = $post->ID;

Popularity: 28% [?]

Posted in Wordpress | Tagged , | 1 Comment

Highlight the Background of Current Page in WordPress

I was stucked finding an easy solution to highlight the background of the current (active) page in wordpress. The solution is however too simple. Just add the following CSS code in your stylesheet (style.css)

#menu_id li.current_page_item a{
    background:#2E8DE6;
}

Note: Be sure to replace #menu_id with the id of your navigation bar. In this case, the list of my pages is contained in a div with id menu_id

highlight-active-page

Popularity: 23% [?]

Posted in General | Leave a comment

Yamidoo Theme Featured Content Image Slider Fix

Yamidoo Magazine Theme is one of the popular wordpress theme to give your blog a professional and fresh look. However, one of the common problem encoutered by Yamidoo theme users is that the Featured Content Gallery doesn’t slide automatically.

A simple tweak below can fix this bug and make the Featured Content Gallery on the Yamidoo Theme sliding

Open the Main Index File: /wp-content/themes/yamidoo/index.php
(assuming that you have uploaded the theme under yamidoo folder)

Search for these 2 lines (somewhere near line number 36 on index.php file):



Right BEFORE these two lines, add this line:


If you want to control the autoslider, in your header.php file, there is one such line:
autorotateconfig: [1000, 0]

The first value (default: 1000) controls the speed (in miliseconds). 1000 = 1 second.
The second value (default: 0) controls how many cycles the slider should have. If you leave it 0 – it will autoslide over and over again, an infinite amount of times.

Popularity: 37% [?]

Posted in Wordpress | Tagged , | Leave a comment

Custom Read More link for WordPress

The default “read more” link for the wordpress that comes with the_excerpt function shows [...] after every post listing WITHOUT a hyperlink to the post.  To make the_excerpt function more useful, you can add a custom read more link which will replace [...]

It require a small tweak in wp_trim_excerpt function.

Open your wordpress file /wp-includes/formatting.php

Go to line number 1482. The wp_trim_excerpt function would read like this

BEFORE

function wp_trim_excerpt($text) {
if ( '' == $text ) {
$text = get_the_content('');

$text = strip_shortcodes( $text );

$text = apply_filters(‘the_content’, $text);
$text = str_replace(‘]]>’, ‘]]>’, $text);
$text = strip_tags($text);
$excerpt_length = apply_filters(‘excerpt_length’, 55);
$words = explode(‘ ‘, $text, $excerpt_length + 1);
if (count($words) > $excerpt_length) {
array_pop($words);
array_push($words, [...]);
$text = implode(‘ ‘, $words);
}
}
return $text;
}

AFTER (refer to the modified text in red)

function wp_trim_excerpt($text) {
if ( ” == $text ) {
$text = get_the_content(”);
$read_link=’<a href=”‘. get_permalink().’”>’;
$end_read_link=”</a>”;

$text = strip_shortcodes( $text );

$text = apply_filters(‘the_content’, $text);
$text = str_replace(‘]]>’, ‘]]&gt;’, $text);
$text = strip_tags($text);
$excerpt_length = apply_filters(‘excerpt_length’, 55);
$words = explode(‘ ‘, $text, $excerpt_length + 1);
if (count($words) > $excerpt_length) {
array_pop($words);
array_push($words, ‘…’.$read_link.’[read more]‘.$end_read_link);
$text = implode(‘ ‘, $words);
}
}
return $text;
}

Cheers…you are done!

Popularity: 39% [?]

Posted in Wordpress | Tagged | Leave a comment

Best WordPress Plugins

WordPress itself is a wonderful script for the bloggers and webmasters. And the plugins make it more delicious.

The list of great WordPress Plugins is countless but still I have tried to collect a list of “Some” of the BEST WordPress Plugins I have used so far

1. WP-TREE
This Widget-enabled plugin is highly configurable and can show the Categories, Links, Pages in a Tree menu structure.

Download Link: http://wordpress.org/extend/plugins/wp-dtree-30/

2. Featured Content Gallery
This plugin can fetch images from your specified post categories and display them nicely as an image gallery with rollover text.
Demo: http://www.featuredcontentgallery.com
Download Link: http://wordpress.org/extend/plugins/featured-content-gallery/

Popularity: 42% [?]

Posted in Wordpress | Tagged , | Leave a comment

Highlight Author Comment WordPress 2.7

This is a simple way to highlight Author’s Comment in WordPress 2.7

Create a new style li.bypostauthor and add your styling.


li.bypostauthor {
/* CSS styles for author comments */
}

li.byuser {
/* CSS styles for registered users comments */
}

Popularity: 100% [?]

Posted in Wordpress | Tagged | 4 Comments

eUttaranchal Matrimonial Service

eUttaranchal Matrimonial is among the very first projects that I started developing 5 years back.

eUttaranchal Matrimonial is a complete Online Matrimonial Service where members can register and create their matrimonial profile and communicate with other registered members. Unlike other Matrimonial websites, eUttaranchal Matrimonial is 100% FREE with NO PAID MEMBERSHIP. All the features are available free of cost including the sharing of Contact Details, if allowed by the individual member through his/her privacy settings.

eUttaranchal Matrimonial currently a regional matrimonial website with over 7000 profiles and over 400 success stories running successfully under the flagship of eUttaranchal. Excited with the success of this mini project, I am planning to release a global version of eUttaranchal Matrimonial sooner.

Features of eUttaranchal Matrimonial

1. Various Search Options including Quick Search, Advanced Search, City Search, Community Search, Profession Search, Photo Search

2. Easier to create profile and communicate with members

3. Individual Privacy settings allow users to share or hide their contact details

4. Email Alerts are sent to the members when they recieve a message from other member

5. Photo albums allow users to upload more than one photo in their profile

Click here to know more about the other features of eUttaranchal Matrimonial.

Popularity: 41% [?]

Posted in Projects | Tagged | Leave a comment