dsIDXpress is a plugin for wordpress that gives IDX functionality to wordpress based site.

It allows visitors to search and browse available properties in your MLS.

Search engine will index properties from MLS on the website.

dsIDXpress works with Thesis 1.x series, but recently did a site on Thesis 2. Widgets, shortcodes etc will work without any issues.

But the page that displays the details of single property is not working. It just shows the contents of home page.

dsIDXpress is not recognizing any templates in Thesis 2.

Hope the plugin developer and thesis theme developer share their knowledge and figure out a fix / solution.


/*
Plugin Name: Substitute Displayname
Version: 0.1
Description: Substitutes a default Display name for new registrants and existing users.
Author: Author name
*/
?>
/* Version check */
global $wp_version;
$exit_msg='Substitute Author requires WordPress 2.5 or newer. Please update!';
if (version_compare($wp_version,"2.5","<")) {
exit ($exit_msg);
}
function sd_new_login_filter ($login) {
/* Don't do anything to login, just see if already in database.*/
global $wpdb, $sd_is_new_login;

$id = $wpdb->get_var("SELECT ID FROM $wpdb->users WHERE user_login = '$login'");
$sd_is_new_login = (isset($id)) ? false : true;
return $login;
}

function sd_substitute_displayname_filter ($display_name) {
global $sd_is_new_login;

if ($sd_is_new_login){
$first_letter = substr($_POST['last_name'], 0, 1);
$display_name = $_POST['first_name']." ".$first_letter;
}
return $display_name;
}
add_filter('pre_user_login', 'sd_new_login_filter');
add_filter('pre_user_display_name', 'sd_substitute_displayname_filter');
add_action ('admin_head','make_display_name_f_name_last_name');
function make_display_name_f_name_last_name(){

$users = get_users(array('fields'=>'all'));

foreach($users as $user){
$user = get_userdata($user->ID);
$firstletter = substr($user->last_name, 0, 1);
$display_name = $user->first_name . " " . $firstletter;

if($display_name!=' ') wp_update_user( array ('ID' => $user->ID, 'display_name' => $display_name) );
else wp_update_user( array ('ID' => $user->ID, 'display_name' => $user->display_login) );

if($user->display_name == '')
wp_update_user( array ('ID' => $user->ID, 'display_name' => $user->display_login) );
}
}

?>

Done with the help of following threads:
1. http://stackoverflow.com/questions/9326315/wordpress-change-default-display-name-publicy-as-for-all-existing-users
2. http://wordpress.org/support/topic/change-default-display-name-1

To clear cache, delete everything inside the folder “cache” in Public_html/var

Go to Admin area of the site

System–> Configuration –> Design –> Select Header tab

You can see relative image path, Image alt text and Welcome text there.

To use relative image path, put the logo first in the image folder inside skin/frontend/themefolder

Go to Admin Area
–>System –>Design –> Add Design Change

Select the Design you want from Drop Down list for Custom Design

<?xml version=”1.0″ encoding=”UTF-8″?>

<configuration>

<system.webServer>

<rewrite>

<rules>

<rule name=”Redirect to newdomain.com”>
<match url=”(.*)” />
<conditions>
<add input=”{SERVER_PORT}” pattern=”443″ negate=”true” />
</conditions>
<action type=”Redirect” url=”http://www.newdomain.com/{R:1}” />
</rule>
</rules>

</rewrite>

</system.webServer>

</configuration>

Please refer http://www.alexbarnettdesign.com/coding/removal-of-username-at-wordpress-register-page/.

When I tried to activate NextGenGallery on a client site, I was getting the error: 500 Internal server error.

Found a number of solutions in different sites for the issue. None of them worked for me except the following:

Add AddType x-mapp-php5 .php to .htaccess file to make the php files run with php5, since Apache by default may be running an earlier version of php.

Error: Error parsing XML; message from parser is: Invalid value for body of continue-shopping-url in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support: URL contains illegal characters

Fix: Check the field wp-admin —> Store –> Settings –> Admin –> Transaction Details URL

It should be a valid link.

I am sharing 2 simple plugins I did, so it will be helpful for new plugin writers.

My client wanted to add an award section. That is, he wanted to assign an award for some post and display it in the front end under the title of the post. Each award has an image also.

So first he needs to create the awards. For that I wrote this plugin.

Now I have to display these awards when editing a post/ adding a new post.

For that I used the following plugin: Adding custom box

This plugin will save the award id as post meta. Later in the theme page we can call the post meta and display the award.

© 2013 Some PHP | Wordpress Tips Suffusion WordPress theme by Sayontan Sinha