Tulip Media

Entrepreneurial thoughts

Asides

Specify cookie expiration time (or delete them) from WordPress comments

Below WordPress, THE cookie expiration time stored on the computer of the Internet user who commented your blog is extremely long (approximately a year). There are several reasons why a blogger might want to reduce this timeout, starting with improving performance and the desire to have faster page loading. Indeed, one of the pet peeves of bloggers who use the plugin for example W3 Total Cache is the famous mention “Cookie is rejected”, which causes the no caching of pages. In fact, the site is no longer hidden from Internet users who have commented on articles.
Cookies are used to store information about the commentator, which allows them in particular not to fill in the “nickname”, “email” and “website” fields for each comment. If this option is useful for active commenters, it is much less useful for those who comment rarely, and who find themselves deprived of a cache.
So, for reduce cookie expiration time for commenters, and allow pages to be hidden even for an Internet user who has left a comment on your blog, here is a little hack to add to your sacrosanct functions.php.
[icon style=”chain” color=”red”]functions.php[/icon]
[coded]
add_filter('comment_cookie_lifetime', 'my_comment_cookie_lifetime');
function my_comment_cookie_lifetime($lifetime) {
return 259200;
}
[/coded]
And there you have it, thanks to this little piece of code, you set the cookie expiration time to 259,200 seconds, or 72 hours!
Thanks to Shibashake, where you will find other tips related to W3 Total Cache.
Update :
Since the new EU cookie standards, you are required to have your visitors' permission to store "non-essential" cookies. To avoid pop-ups and other unwanted requests which – let’s face it – are more annoying for the user than the cookie itself, here is a way to delete cookies used to store commentator information:
[coded]
remove_action( 'set_comment_cookies', 'wp_set_comment_cookies' );
[/coded]
Obviously add to your functions.php file. Also useful for optimizing your cache!

How to customize the comment cookie expiration time in WordPress

In WordPress, the default how to cookie expiration time is up to 30,000,000 seconds. That's very long, especially for bloggers who are using cache plugins like W3 Total Cache. In fact, this plugin is not caching pages for visitors who have left comments on your blog, because of cookies, and until the cookie is cleared the plugin informs that cookie is rejected.
If you want to reduce the comment cookie expiration time, you have to play with the comment_cookie_lifetime filter in your functions.php file. You can set the expiration time you want, I thing 259 200 seconds in this example.
[icon style=”chain” color=”red”]functions.php[/icon]
[coded]
add_filter('comment_cookie_lifetime', 'my_comment_cookie_lifetime');
function my_comment_cookie_lifetime($lifetime) {
return 259200;
}
[/coded]
Via

Internet

Feedburner removes Socialize feature: how to retrieve it?

As you can see, Google Feedburner has removed Socialize feature from its left menu on Feedburner account. Webmasters and bloggers hope that it's not a permanent change because this tool is very useful for those who want to link their RSS feed to their Twitter account.
The link has been removed, but hopefully not the feature: you can access to Socialize settings by typing this URL on your toolbar address:
http://feedburner.google.com/fb/a/socialize?id=XXXXXXXXXXXX
Just change “XXXXXXXXXXXXX” by your own ID, that you can retrieve on toolbar address when browsing options of your feed in your Feedburner account.

Social media

How to find the Socialize option on Feedburner

Here is a small trick quickly to find the option “ Socialize " In Feedburner, which literally disappeared from the menu! If you are a user of Feedburner, you must have noticed like me that the page “ Socialize", which allowed link your Feedburner account to your Twitter account has simply disappeared from the Feedburner menu. And like me, you must have spent a good quarter of an hour clicking everywhere to find it, thinking that the problem came from you and not from Feedburner. I reassure you immediately: it is Feedburner which has obviously removed the Socialize page.
Is this the logical continuation of their strategy of conquering social media through Google+? After removing the tweets from Google's search results (which allowed me to find very fresh news), Google - owner of Feedburner and whose unofficial slogan is "Don't be evil" - continues- to cut ties with Twitter?
No word on whether the Socialize option link will return in the future. In the meantime, the option still works for those who had set it up and, fortunately, the link to Socialize is still accessible from the address bar of your browser, by typing this:

Buddypress

PHP function to display total number of members under Buddypress

Here is a small function for Buddypress which helped me greatly and which I wanted to share with you for those who need it: little highlighted in the doc, it allows display the total number of registered users on your network.

Wordpress

WordPress tip: put images in the RSS feed

Here is a very simple code which will allow you to insert your featured image in your RSS feed, so that, when you relay your feed on a social network like Facebook for example, the image can accompany the title and the presentation of your post.

Change WordPress Default Email Address

Here is a little tip which concerns the bloggers who use the WordPress CMS. By default, WordPress uses the email «  » and the name “WordPress” to send some notifications to users. This little piece of code will improve the wp_mail function of WordPress and let you personalize the sender email and name.

Change WordPress Default Sender

Little quick tip for users of the CMS WordPress, tired of seeing the function wp_mail send automatic messages to their users under the email " “. To overcome this problem, there are unfortunately no settings in the backend of WordPress. So, here is a little filter seen on Butterblog.com, the author of the WP-Members plugin, which allows you to customize not only the default WordPress sending email address, but also the sender name.

 

My latest tweets

New shorts on Blooness 👉 Training dedicated to the best oilseeds for health is finally available in audio format https://buff.ly/3xo9fTS
https://buff.ly/43DkrYR

New shorts on Blooness 👉 If there was only one supplement to take, it would be magnesium (along with vitamin D). The complete guide to the best multivitamins on the market still available here with free access https://buff.ly/49bHqvp
https://buff.ly/49c3rKK

New shorts on Blooness 👉 The latest Blooness training on #proteins is available in audio format https://buff.ly/4aijbMW
https://buff.ly/3TP67cB

Load more

Don't miss business advice by email

No spam, just an email when new content is published.

en_USEN