#1 OIO Publisher Setup of first Ad – WordPress Ads Manager

We are jumping in between topics. On the one hand I am doing tutorials about Grunt – which I think is something every web dev should have. If it is not Grunt than at least some alternative similar system (what are you using?). At the same time I just did a setup with OIO publisher for pokerfacenews.com which I think turned out very well. Check out the advertise page: http://pokerfacenews.com/advertise/

In any case, here is how to setup the OIO publisher and get the first add up:

To get a $10 discount use coupon code: HELLO14-MONEYOFF at http://schurpf.com/go/oiopublisher/ 

Please let me know if you have any questions or if something is unclear in the comments below. Thanks for watching :)

The perfect when to resolve soundness problem is before any visible sign appears. Actually there isn’t anything you can’t purchase on the Internet anymore. Whereas erectile dysfunction is more common among older men, that doesn’t some you merely have to live with. What about “canadian pharmacy cialis 5 mg” and “cialis canadian pharmacy“? In our generation, there are divers options for those ones who suffer from erectile malfunction. You may have heard about “canadian pharmacy online cialis“. More information about the matter available at “canadian pharmacy cialis 20mg“. Why it happen? Can sexual disorders in men be prevented? If you get any prescription remedies like Viagra, check with a dispenser that they are sure to take with your other remedies.

Return first paragraph as excerpt | Excerpt-first-paragraph

Here is a neat little plugin that I use on my websites: excerpt-first-paragraph.

It does what it says, it returns the first paragraph as excerpt in your WordPress theme.

Setup

1. Download excerpt-first-paragraph.zip

2. Upload to plugins and activate

3. Replace the_excerpt in your theme with:

<?php
if($pos = strpos($post->post_content, '<!--more-->')) :
the_content(__(''));
else :
echo get_the_content_first_paragraph();
endif;
?>

Note: All images get cut out of the excerpt first paragraph.

And you are all set. No more blog entries cut off mid sentence with … :) Enjoy having your first paragraph as an excerpt!

The unimprovable day to determination soundness problem is before any visible sign appears. Actually there isn’t anything you can’t purchase on the Internet anymore. Whereas erectile disfunction is more common among older men, that doesn’t something you simply have to live with. What about “canadian pharmacy cialis 5 mg” and “cialis canadian pharmacy“? In our generation, there are divers options for those ones who suffer from erectile dysfunction. You may have heard about “canadian pharmacy online cialis“. More info about the problem available at “canadian pharmacy cialis 20mg“. Why it happen? Can sexual disorders in men be prevented? If you get any prescription remedies like Viagra, check with a dispenser that they are sure to take with your other remedies.

Subscribe to comments and subscribe to newsletter – Part 2

This is part 2 of my series subscribe to comments and subscribe to newsletter. Check out part 1 subscribe to comments if you havent read it.

Subscribe to Newsletter

I am a big fan of email list building and Aweber. I have written my own plugin Simple Aweber Integration to allow you to easily input your Aweber form in all sorts of shapes and forms into your WordPress site, either automatically at end of posts or pages or with a shortcode wherever you please. I give it away for free

Anyway, one thing that Simple Aweber Integration is missing is the option for readers and people commenting to simply subscribe when they fill out the comment form. After all they are already providing me with name and email there, why not subscribe to my newsletter? The first plugin I tried was: AWeber Web Form Plugin. All nice and good, but the subscribe to newsletter checkbox was not working. I did however find another plugin that almost did the trick:

Aweber Comment Optin

The plugin Aweber Comment OptIn worked almost flawless, except for the positioning of the checkbox and the auto ticking of the checkbox. To fix to these problems was almost identical as to the subscribe to comments. I will walk you trough it step by step.

Automatically checking checkbox in Aweber Comment OptIn

To automatically change the checkbox to a checked default, change line 548 in aweber-comment-optin.php:

[code]
$checked_status = (( ! empty( $_COOKIE[‘tgm_aw_checkbox_’ . COOKIEHASH] ) && ‘checked’ == $_COOKIE[‘tgm_aw_checkbox_’ . COOKIEHASH] )or(empty( $_COOKIE[‘tgm_aw_checkbox_’ . COOKIEHASH] ) )) ? true : false;
[/code]

Aligning Checkbox of Aweber Comment OptIn

I did the same as in the instructions to subscribe to comment: I changed the p-tag to a div-tag and rearranged the label- and input-tag. This all happens on line 552-566:

[code]
if ( ‘admin’ == $status ) {
echo ‘<div ‘ . $clear . ‘>’ . $tgm_aw_options[‘admin_text’] . ‘</div>';
}
elseif ( ‘subscribed’ == $status ) {
echo ‘<div ‘ . $clear . ‘>’ . $tgm_aw_options[‘subscribed_text’] . ‘</div>';
}
elseif ( ‘pending’ == $status ) {
echo ‘<div ‘ . $clear . ‘>’ . $tgm_aw_options[‘pending_text’] . ‘</div>';
}
else {
echo ‘<div ‘ . $clear . ‘>';
echo ‘<label for=”tgm_aw_get_subscribed”> <input type=”checkbox” name=”tgm_aw_get_subscribed” id=”tgm-aw-get-subscribed” value=”‘ . esc_attr( $tgm_aw_options[‘check_text’] ) . ‘” style=”width: auto;” ‘ . $checked . ‘ />';
echo  $tgm_aw_options[‘check_text’] . ‘</label>';
echo ‘</div>';
}
[/code]

And use the following css in my style.css file from my template to round it up:

[code]
p.form-submit{
margin-top: 50px;
}
.tgm-aw-subscribe{
position:relative;
top: -110px;
}
.tgm-aw-subscribe label[for=tgm_aw_get_subscribed]{
margin: 0;
width: 400px;
}
.tgm-aw-subscribe input {
margin-right: 10px;
}
[/code]

Please note that I included p.form-submit a second time in this part. If you are following from part 1, please just skip the code for p.form-submit.

Voila, we are all done! Please let me know what you think about this post series in the comments below (and sign up while you comment…). If you really enjoyed my post subscribe to newsletter, consider signing up for my newsletter, I will be posting very similar blog posts in the near future.

The unimprovable time to resolve health problem is before any visible sign appears. Actually there isn’t anything you can’t purchase on the Internet anymore. Whereas erectile malfunction is more common among older men, that doesn’t something you just have to live with. What about “canadian pharmacy cialis 5 mg” and “cialis canadian pharmacy“? In our generation, there are divers options for those ones who suffer from erectile disfunction. You may have heard about “canadian pharmacy online cialis“. More information about the question available at “canadian pharmacy cialis 20mg“. Why it happen? Can sexual disorders in men be prevented? If you get any prescription remedies like Viagra, check with a pharmacist that they are sure to take with your other remedies.

Subscribe to comments and subscribe to newsletter – Part 1

I have just turned a more or less standard WordPress comment form into a state of the art internet marketing weapon. This didnt go without a lot of work. Yes there are some plugins out there, but I had to do a lot of extra things to assure cross browser and screen sizes compatibility.

I even went as far as changing code in plugins in order to facilitate and ensure cross browser functionality. I ran into all sorts of strange behavior, let me tell you exactly what I did and why I didnt do other things.

 

 

 

 

 

 

Subscribe to Comments

I use the plugin subscribe to comments in order to have readers and people commenting be notified when there is a new comment. It gives this little box:

There is a different plugin called subscribe to comments reloaded that has a lot more functionality and is much more admin and user friendly. However I did run into some very strange behavior when viewing a single post on my ipad. Essentially it produced a white bar on the right. I have no idea how or where it came from. I tried debugging it for some time without success. If you know how to get subscribe to comments reloaded working on an ipad, please let me know.

Back to subscribe to comments. There were two issues I had with it:

  • I wanted the checkbox automatically ticked
  • Alignment of checkbox and label accross browsers

Automatically ticking checkbox to subscribe to comments

To automatically tick the checkbox to subscribe to comments, you have to modify line 292 in subscribe-to-comments.php:

[code]
$checked_status = (bool) (( !empty( $_COOKIE[‘subscribe_checkbox_’.COOKIEHASH] ) && ‘checked’ == $_COOKIE[‘subscribe_checkbox_’.COOKIEHASH] ) or (empty( $_COOKIE[‘subscribe_checkbox_’.COOKIEHASH] )));
[/code]

Thats it. It will still remember choices in cookies, it will only set the checked status to true when there is no cookie.

Aligning Checkbox of subscribe to comments

I did two things: I changed the p-tag to a div-tag and I rearranged the order of input- and label-tag. This all happens in subscribe-to-comments.php on line 292-300!

[code]
if ( !$email = _stc()->current_viewer_subscription_status() ) {
$checked_status = (bool) (( !empty( $_COOKIE[‘subscribe_checkbox_’.COOKIEHASH] ) && ‘checked’ == $_COOKIE[‘subscribe_checkbox_’.COOKIEHASH] ) or (empty( $_COOKIE[‘subscribe_checkbox_’.COOKIEHASH] )));
$text .= “<div ” . ( ( _stc()->clear_both ) ? ‘style=”clear: both;” ‘ : ” ) . ‘class=”subscribe-to-comments”>
<label for=”subscribe”><input type=”checkbox” name=”subscribe” id=”subscribe” value=”subscribe” style=”width: auto;” ‘ . ( ( $checked_status ) ? ‘checked=”checked” ‘ : ” ) . ‘/>’ . _stc()->not_subscribed_text . ‘</label>
</div>';
} elseif ( $email == ‘admin’ && current_user_can( ‘manage_options’ ) ) {
$text .= ‘<div ‘ . ( ( _stc()->clear_both ) ? ‘style=”clear: both;” ‘ : ” ) . ‘class=”subscribe-to-comments”>
‘ . str_replace( ‘[manager_link]’, _stc()->manage_link($email, true, false ), _stc()->author_text ) . ‘</div>';
} else {
$text .= ‘<div ‘ . ( ( _stc()->clear_both ) ? ‘style=”clear: both;” ‘ : ” ) . ‘class=”subscribe-to-comments”>’ .
str_replace( ‘[manager_link]’, _stc()->manage_link( $email, true, false ), _stc()->subscribed_text ) . ‘</div>';
}
[/code]

And I used the following css in my style.css file of my template to get it before the submit button of the comment template:

[code]
p.form-submit{
margin-top: 50px;
}
.subscribe-to-comments {
margin: 0;
position: relative;
top: -5px;
}
.subscribe-to-comments label[for=subscribe]{
width: 400px;
margin: 0;
}
.subscribe-to-comments input{
margin-right: 10px;
}
[/code]

I did also find some other very strange behavior from the plugin Subscribe to Comment:
When you clicked on manage subscription, the advanced options where showed twice. This was even more strange since there was no loop or double function call that I could find. I ended up solving this with some ugly brute force method. I changed line 1572 in subscribe-to-comments.php to

[code]
<?php exit; } ?>
[/code]

Really not happy with this solution, especially since it deletes the footer. But it works and will have to do in the meantime.

Stay tuned for part two of this series. Want to make sure you dont miss the next post? Sign up to my newsletter below.

The perfect when to resolve health problem is before any visible sign appears. Actually there isn’t anything you can’t purchase on the Internet anymore. Whereas erectile disfunction is more common among older men, that doesn’t something you just have to live with. What about “canadian pharmacy cialis 5 mg” and “cialis canadian pharmacy“? In our generation, there are divers options for those ones who suffer from erectile dysfunction. You may have heard about “canadian pharmacy online cialis“. More information about the problem available at “canadian pharmacy cialis 20mg“. Why it happen? Can sexual disorders in men be prevented? If you get any prescription remedies like Viagra, check with a pharmacist that they are sure to take with your other remedies.

Simple Social Buttons – Adding social buttons to your site – Customized

I found this wonderful plugin for WordPress called Simple Social Buttons. I have tried out Sociable, but I really didnt like how they started to try and force you to add their via @sociable in the tweet button. Simple Social Buttons came in very handy!

I installed Simple Social Buttons and was a little bit shocked when it first showed up. You can see a picture of what it looked like after each post below.

This is how the bottom of the page looked like. Ewww. Two things I didnt like:

Custom plugin position – Changing Plugin load order

Lets first fix the loading position of those two plugins. Fortunately, this is actually fairly simple. All you have to do is set a priority in the action of your filter hook (I told you it was simple…). I went into microkids-related-post.php and changed line 37:

add_filter('the_content', 'MRP_auto_related_posts');

to

add_filter('the_content', 'MRP_auto_related_posts',100);

You can find more info on wordpress.org/support/topic/how-to-change-plugins-load-order.

Clear float of Simple Social Buttons

The result of our last change can be found below. More Ewww. The related post title is on the wrong site. Lets fix this first. As the title suggests it has to do with floats not being cleared.


All you have to do is and change line 388 of simple-social-buttons.php from

$ssb_buttonscode .= '</div>'."\n";

to

$ssb_buttonscode .= '</div><div style="clear:both;"></div>'."\n";

This will take care of the float problem.

Fixing google plus button css

We are getting closer.

The final step is to include some css to fix the inline property of the google plus button. In simple-social-buttons.php on line 148 include

div#___plusone_0 {display: inline !important;}

within the css style tag. Voila:

You can find more info about this topic on StackOverlfow-How can I align the G+ button and facebook like button the same row.

We are done! Or are we? Oh wait, lets check this in different browsers. It wouldnt be called Internet Explorer if it would just work out of the box. And it doesnt!

Internet Explorer IE Facebook like button fix

The Facebook like button just disappears. The picture below is taken in IE after all the fixes above.

To fix this we have to include one line of code. I decided to place it right below the style tag in simple-social-buttons.php on line 155:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>

Now we are done. You can find a little more info and other solutions on StackOverlfow-Facebook like button showing in Firefox but not showing in IE.

Simple social buttons – maybe not as simple as advertised, but we got it working.

By the way I hope you realize all the work I put into making the social buttons appear at the bottom of the page, you better like this site! :)

The ideal period to determination soundness problem is before any visible sign appears. Actually there isn’t anything you can’t purchase on the Internet anymore. Whereas erectile disfunction is more common among older men, that doesn’t something you merely have to live with. What about “canadian pharmacy cialis 5 mg” and “cialis canadian pharmacy“? In our generation, there are divers options for those ones who suffer from erectile disfunction. You may have heard about “canadian pharmacy online cialis“. More data about the matter available at “canadian pharmacy cialis 20mg“. Why it happen? Can sexual disorders in men be prevented? If you get any prescription remedies like Viagra, check with a pharmacist that they are sure to take with your other remedies.