Apr
1
2008

Not receiving Trackback/Pingback on your wordpress?

Recently I needed to close commenting on one of my blog posts and only allow trackbacks.

I was pulling my hair out trying to figure out why I'm not getting trackback/pingback notifications. I have tested this with another Wordpress blog that I own - I did a test post and linked back to the other post in the other blog, check the other blog and no comments!

Errrr! I wasn't sure if one blog wasn't sending the pingback, or is it the other blog not receiving the pingback. Finally, I came across this post and found out that my Captcha Form plugin was trapping the pingbacks all along!

Man, I love that plugin… my spam comments have greatly reduced since I installed it. I guess I'll have to revert to the math comment spam protection plugin instead.

Mar
24
2008

Wordpress 2.5 Walkthrough

I tested a wordpress 2.5 install on articlemeta.com

I have to say that 2.5 definitely has that Web 2.0 feel than its predecessors.

Here is the user login page, slick eh?

loginpage.gif

Here is the new dashboard look:

dashboard.gif

The new post page:

postpage1.gif

Here is the insert/edit embedded media popup:

media.gif

You can go to the Advanced tab for more embedded player options:

media1.gif

A slick AJAX image/multimedia manager available right from the post page:

addmedia.gif

Can't wait for the stable release!

Good job WP Team!

Mar
23
2008

Absolutely Free Premium Wordpress Themes!

Okay, too good to pass up!  As long as you don't resell or give them away, you can do whatever you want with them.

http://www.theblog.ca/wordpress-premium-themes

Get it before he runs out of coupons!

Mar
21
2008

How To Add NoFollow To Your WordPress Post Links

By default, Wordpress adds a "nofollow" property in any anchor link in the comments section, but does not add a nofollow property in the anchor link appearing in the post content.

This hack will basically add a "nofollow" to your Wordpress post links.

Open /wp-includes/post-template.php file and find around line 53 this block of code and add the call to wp_rel_nofollow1() function on line 57 as illustrated below:

53.  function the_content($more_link_text = '(more…)', $stripteaser = 0, $more_file = ") {
54.     $content = get_the_content($more_link_text, $stripteaser, $more_file);
55.     $content = apply_filters('the_content', $content);
56.     // this is the hack:
57.     $content=wp_rel_nofollow1($content);
58.    $content = str_replace(']]>', ']]>', $content);
59.    echo $content;
60. }

Then you want to add this function to the file:

function wp_rel_nofollow1( $text ) {
global $wpdb;
$text = preg_replace('|<a (.+?)>|ie', "'<a ' . str_replace(' rel=\"nofollow\"',",stripslashes('$1′)) . ' rel=\"nofollow\">'", $text);
return $text;
}

Keep in mind that this is a hack of the Wordpress core file.  If you ever upgrade your Wordpress, then you will need to reapply the hack to the upgraded file.

You may see a working example site that uses this hack:

Movie Reviews (MFR)

Enjoy!

Jan
14
2008

BDP RSS hack - Not polling "Hello world!" posts

I recently installed BDP RSS plugin for my WPMU site.  On the frontpage I'm using BDP RSS to display MPMU sitewide feed.  To my surprise, BDP RSS plugin doesn't come with the option to filter out certain posts (such as the default "Hello world!" post that WPMU installs in every new user blog).

So here is the hack that I did to accomplish this.

In bdp-rss-update.php, line 62 - 69 should read:

// extract and save key item information
$counter = 1;
foreach ($pfeed['items'] as $item)
{
$ticks = 0;

$link = $item['link'];
$title = $item['title'];

After $title = $item['title'];, insert this code:

if(strcasecmp($title,'hello world!')!=0) {

Now we'll need to put in the closing } to our 'if' block.  Around line 200 you should find:

$counter++;

Go ahead and close up the if statement, so it should look like this:

$counter++;
}

That's it!  You can download the hack here:  BDP RSS hack

Dec
5
2007

Send eMail Notification When Inviting Friends - Version 6.0.0003

I'm surprised Dolphin doesn't come with this feature already!

What this MOD does is it sends out an email notification to the member who has been invited as a friend by another member. Without an email notification, the only other way a member knows that a friend request has come in is by logging to his/her account. Using this MOD will notify the invited member right away by email to approve or reject a friend request, and will drive existing member traffic back to your site and hopefully click on your Adsense Ads ;)

Anyway, here is the MOD on how to do it.  You may download the code here:  email-notification-for-friend-invites.zip

Backup /list_pop.php before doing anything, in case you screw things up like you always do

Open /list_pop.php and find:

Line 90: function PageListFriend($sourceID, $targetID)
Line 91: {

On line 92, insert this code:

global $site; // this makes site-wide variables available for this function

Then, find:

Line 114: else
Line 115: {
Line 116: $query = "INSERT INTO `FriendList` SET `ID` = '$sourceID', `Profile` = '$targetID', `Check` = '0′;";
Line 117: if( db_res( $query ) )
Line 118: {
Line 119: $ret = _t_action('_User was invited to friend list');

The line number could be off because you have inserted another line of code from above step. But the most important thing is that you find a code block that looks like line 114 - line 119.

On line 120, insert the following code:

$recipient = getProfileInfo( $targetID );
$aReporter = getProfileInfo( $sourceID );
$rnickname = $recipient['NickName'];
$nickname = $aReporter['NickName'];
$message ="
Hi {$rnickname},

You have received a new friend request at {$site['title']}!
from {$nickname}.

You may login to your account at

{$site['url']}member.php

and approve or reject this friend request.


{$site['title']} mail delivery system

Auto-generated e-mail, please, do not reply
";
$subject = "You Have A New Friend Request!";
sendMail( $recipient['Email'], $subject, $message );

That should do it!

I would appreciate your rating on Expertzzz.com:

http://www.expertzzz.com/Downloadz/view/1512

Be sure to subscribe to my blog feed if you want more MODs in the future!

Dec
2
2007

MOD: Redirect Member To Profile Page After Login

Tested on version 6.0.0003 build.

I wanted members to login to my site and taken directly to their profile page, rather than the "my account" page that Dolphin redirects users to.

Here is the MOD that does exactly this.

Backup member.php just in case you screw things up.

Open member.php and find:

line 78: if( !$sUrlRelocate = $_POST['relocate'] or basename( $_POST['relocate'] ) == 'index.php' or basename( $_POST['relocate'] ) == 'join_form.php' )
line 79: $sUrlRelocate = $_SERVER['PHP_SELF'];

Insert this code after line 79 (line 80 would be OK :))

$sUrlRelocate = '/profile.php?ID='.$member['ID'];

What this does is that it forces the redirection to yoursite.com/profile.php?ID=x after a successful login, where x is the user ID of the member.

Now, if you have friendly profile URL turned ON, then obviously this MOD will still work.

If you like this MOD, then please rate it at:

http://www.expertzzz.com/Downloadz/view/1484

Be sure to subscribe to my blog feed if you want more MODs in the future!

Dec
2
2007

BoonEx Dolphin Script

I recently stumbled on a pretty cool social networking script called Dolphin (by BoonEx.com). It is an open-source script, however, you do need to pay for licensing fee if you want to remove references to BoonEx on your site.

My brother is launching a new social networking site based on this script for wine lovers. Check it out at http://www.winehappy.com

Since I'm playing with this script, I will have a few customization tips and tricks that I'll share with my readers.

Please keep in mind that I have version 6.0.0003 installed

First is a MOD that will add an Admin member as a friend to all other members. This MOD will only add the Admin as a friend AFTER you have the MOD installed. It doesn't roll back and add the Admin member to your existing members - this could be done, though.

Here is the file with the MOD included:

http://winehappy.com/join_form.txt

Be sure to rename join_form.txt to join_form.php

Back up your join_form.php first in case you screw it upHere is the MOD detail for those Do-It-Yourself'ers:

Open join_form.php

Find this code:

Line 374: if ( getParam('autoApproval_ifNoConfEmail') == 'on' )

Insert before line 374:

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$IDnormal}', `Profile` = 1, `Check` = 1″);

You may want to change `Profile` = 1 to a value of the member ID that you are making this as the friend you are adding to all future new members.

That should do it! Please leave a rating if you like this MOD: http://www.expertzzz.com/Downloadz/view/1481

If you are MODDING (cool… I'm making this a verb, first to call it!) a Dolphin version other than 6.0.0003 then the place to insert the code may be different. So always backup a copy of your original file so you can roll back to it if you mess up something.

- Codersteve

Jan
23
2007

Feed-o-Matic v1.0 Released!

Fixed the bugs. Thanks for your feedback. You can get the latest at Wordpress Plugin Page

Dec
2
2006

New Wordpress Plug-In

Introducing Feed-o-Matic version BETA - A Wordpress Plugin that will pull in RSS items and make them into posts.

You can get it at Wordpress Plugin Page

Let me know what you think…



You haven't activated the Flickr plugin.
If You don't have it installed
You can
Download the Flickr Plugin
from here

Recent Flickr Photo

2008 (c) InfinityScript.com - theme by ReviewSaurus