Category Archives: Free Press
Twitter Suspends Mobber From Using Its API
How To Restrict Other Servers From Accessing Your Files ?
If your site stores popular image files then for reducing bandwidth usage you can use this Apache hack for denying servers to access your files. Open your sites .htaccess file for editing and add the following code:
<FilesMatch “.(gif|jpe?g)$”>
SetEnvIf Referer “^http://([^/]*.)?mydomain.com/” request_ok = 1
Order Allow, Deny
Allow from env=request_ok
</FilesMatch>
This restricts other domains form accessing all GIF or JPG files in your website.
Facebook Got More Than 83 Million ‘Fake’ Users
Facebook has revealed that it believes more than 83 million Fake IDs are registered on there social network.
Company filings says that 8.7% of its 955 million active Facebook users might not be real.
Duplicate profiles => 4.8% of the users
User-misclassified accounts => 2.4%
Undesirable User IDs => 1.5%
Estimated Fake User Profiles => 83.09 million
Estimated fake user profiles are classified into three groups:
First group is of duplicate user profiles which Facebook Inc. defines: account that a user maintains in addition to his or her principal account.
Second is User-misclassified where FB users create profiles for business, organisations, Gods and also of non-human entities like pets.
Third is Undesirable profiles against Facebook’s terms of service like profiles created for sending spams, messages, ads or other content.
A BBC investigation suggests,
“Companies are wasting large sums of money on adverts to gain “likes” from Facebook members who have no real interest in their products. A security expert has said some of the profiles appeared to be “fakes” run by computer programs to spread spam.”
Facebook’s business model relies on targeted advertising that promotes gathering of likes from users.
Now slowly companies are realizing that gathering millions of fake likes is of no use when members are itself not interested in their products and large number of likes come from fake Ids which are used only for one or two time and are created for a single purpose only. This can seriously harm Facebook’s business but Facebook Inc. is not taking it as a serious issue. May be they are planning to gain registered IDs more than the total world population.
Nice Blogging Tool That Finds People Asking Questions About The Things You Know
InboxQ helps you to create better blog topics by finding people who are willing to know something about the information and things you know.
How it works ?
- It Creates a campaign targetting questions you can answer.
- You answer the questions directly from your own Twitter account.
- Hence you earn more followers and customers.
- See it in action in the following video:
How to start ?
- Visit InboxQ.
- Click Get Started.
- Enter your keywords. You can enter keywords from 3 to 10, one in each line.
- Click Preview Questions
- Answer them. These all are in twitter. Create related blog posts and share with these people.
When you click Answer Question; it prompts you to login with twitter. After logging in you can answer the question or reply your blog post URL related to that particular question.
WordPress Hack For Adding Signature After Posts Content
Open your theme’s function.php and add the following code. Remember changing text after equal sign with your own.
function custom_content_after_post($content){
if (is_single()) {
$content .= ‘<p>Load Your Content Here</p><img src=”‘. get_template_directory() .’/images/signature.png” alt=”Your Name” />’;
}
return $content;
}
add_filter( “the_content”, “custom_content_after_post” );
You may also use WordPress Signature Plugin for doing so. It allows WP users to put signatures below every post. After installing and activating it you can easily access it by navigating to WP-Admin Dashboard >> Tools >> WPSignature.
Become Google’s Verified Author For Your WordPress Blog
After getting Google’s verified authorship you will be seeing your blog post search results with the screen shot of your Google Plus Profile Image. As show below:

For doing this in your blog results, follow these steps
Open your theme’s header.php file and add the following given code block in head section –
<link rel=”author” href=”https://plus.google.com/107466614529996508363/posts” />
Remember:
- Change the profile URL with your Google Plus Profile URL in the above given code block.
- Head section is between <head> and </head> tag so add the given code in between these tags.
Now open your theme’s function.php file and the following action at last:
add_action(‘wp_head’, ‘add_google_rel_author’);
function add_google_rel_author() {
echo ‘<link rel=”author” href=”https://plus.google.com/107466614529996508363/posts” />’;
}
- Visit your Google+ Profile.
- Click Edit and make your +1s pubic.
- Scroll down to contributors section.
- Under the heading “Contributor to” add your blog’s address.
That’s all. Next Google’s re-crawl to your blog pages will start showing your face in Google search results. So wait for it. You can reduce this time by writing a new blog post.
Outlook.Com Is Loaded With Vast Privacy Issue
I am using Gmail since long and will keep using it. Microsoft Outlook.Com is loaded with vast privacy issue of contemporary world.
Outlook.Com Keeps Your Mail Without Your Permission Even After You Delete It And You Think It Is A Cool Feature
It offers you a feature for Recovering Deleted Mails even after emptying your trash you can get your mails back from Deleted directory’s link “recover deleted messages.”
This might be useful sometime but it is the most serious flaw. Outlook.com doesn’t respect your privacy. Its spying on you. Its a CIA agent. You can get your deleted messages back; it means all of your content is safe on their server even after removing it permanently.
When you delete anything on Gmail it moves to Trash bin. You can restore it from there but if you want to delete it permanently then you empty the trash bin and your mail is completely gone and you are free. But in case of Outlook.com where you delete your mail, it moves to trash, you empty the trash bin for removing your mails permanently from your account but it is still there. You don’t know where it it. You cannot see it but it is there on the server and they tell that this vast privacy issue is a cool feature.
If You Think That Outlook Offers Unlimited Space, you are Wrong. Microsoft Is Misguiding You.
On Internet there is nothing like unlimited. Anyone who offers you unlimited space, bandwidth or anything is fake. Internet runs on hardware not space and hardware cannot provide anything which is unlimited. Google is honest and respects science-mathematics so it tells you the truth that they offer you 10 GB storage. Outlook.com is just opposite and it came from the proprietary background of Microsoft so they trick on you. Open and clear fact is that on Outlook.com you can receive email with maximum size of 25 MB which is similar to Gmail. If Outlook.Com is better than Gmail then it should increase this size. Saying that you give Unlimited storage doesn’t matter because one can backup the mails on other machine but receiving mail more than 25 MB might be a step ahead. Then also I will not be using Outlook.Com because still it has privacy issue and proprietary background.
Google integrates Google+ network with your mailbox. May be none of your friends use it. May be they are using Facebook, Twitter and LinkedIn which easily gets integrated with Outlook. Is that actually matters for you, if yes then I am sure you will be using Facebook Email Service for all of your mails and Facebook Search for finding things.
People who are more close to science and math use Google like Linus Torvalds because they understand the technical superiority and honesty of Google.
How can you trust anything from Microsoft. You know what its founder says:
“I will always choose a lazy person to do a difficult job… because, he will find an easy way to do it”
And what he actually does, he choose toppers knowing that toppers work day and night for merit.
Microsoft is misleading you, tricking you since a very long time. They are selling the most insecure operating system at very high rates (and also in parts). So it is better to change your mind if it is bending towards the wrong side. Don’t use Microsoft products. Don’t use Outlook. They are less scientific. Use Linux as it is free and open. Use Google as it is honest and scientific.
When Your Facebook Group Chat Stops Working
If your Facebook group chat is not working or suddenly it stopped working and your are checking Facebook group settings to find out the problem and enable Facebook Group Chat. Then you must know:
You cannot enable chatting in any Facebook group which has more than 250 members because Facebook group chat automatically gets disabled when the number of group members exceeds the default limit of 250.
There are only two conditions when Facebook Group Chat stops working:-
When your Group Chat Settings are Off
SOLUTION – Visit your group >> Select Edit settings >> Check Send Me Group chat messages
When Group members are more than 250
SOLUTION – You cannot do anything for this because members are more important than chat. Use Group Wall for discussions. You may tag your friends in a post by using @ followed by the name and it drops down the name suggestion. Select it and add friend for the public message. It sends a notification to the person you have added in your post.
Disable Comments On WordPress Media Attachments
Using WP Plugin
Download and activate Disable Comments plugin. Using this plugin admins can easily disable comments site wide or according to post type. After installation it can be accessed from settings menu of admin area dashboard.
Using WP Hack
Add this code in your theme’s function.php file:
function filter_media_comment_status( $open, $post_id ) {
$post = get_post( $post_id );
if( $post->post_type == ‘attachment’ ) {
return false;
}
return $open;
}
add_filter( ‘comments_open’, ‘filter_media_comment_status’, 10 , 2 );
How To Protect wp-config.php And .htaccess Files In WordPress ?
You can block access to your site’s wp-config file from browser by adding following code in your .htaccess file:
# Block access to wp-config
<files wp-config.php>
order allow,deny
deny from all
</files>
For blocking access to your .htaccess file add this code inside your .htaccess file:
# Block access to htaccess
<files .htaccess>
order allow,deny
deny from all
</files>
Note:.htaccess file is present in your site’s root at the same place where you find wp-config file.
Facebook Announced Improvements In Photos Section
Today Facebook has announced few improvements in the photos section.
Now You Can See Bigger Photos On Facebook
By clicking photos at the top of your timeline you can see larger pictures filling up all over your page. You can use menu for finding shots you are tagged in, images you have shared and albums you have created.
Now You Can Showcase The Photos You Like
You can easily show your favorite photos to your friends from Facebook’s new photos all in one section. Click star button to make important photos stand out as shown in the following image:
Protecting Your WordPress Admin From Hacks
You may use this trick for adding an additional layer of security on your WordPress site so that your site don’t get compromised and hacked:
- Open your cPanel.
- From Security section click Password Protect Directories.
- Now on the Pop Up. Select root then from your WordPress installation select wp-admin.
- Check Password protect this directory.
- Create a user for that directory; there is an option below the check box. That’s it..
Now anytime you visit wp-admin directory you should notice an authentication box asking you for the username and password for authentication.
Sometimes it may show some errors depending on how your server is configured. Don’t worry, just ask me here about the problem(if you face one).
Monitor, Manage And Backup All Of Your WordPress Sites At Once From A Single Place
Using WP Remote you easily monitor, update and backup all of your WordPress sites at the same time from a single place. It communicates with your WordPress site using API like Akismet so there is no need of providing username and password and it is completely free to use.
Features:
Know WP Remote Latest Enhancements
- It can track all of your sites.
- No limitation to number of sites you add.
- It can update WP-Core, all plugins and themes.
- Check WP Remote Security policy here.
WP-Hack For Adding Google+ Page Badge ‘Add to Circles’ In Your WordPress Blog
Add this code in your theme’s header.php file’s head section:
<link href=”https://plus.google.com/PageID” rel=”publisher” /><script type=”text/javascript”>
(function()
{var po = document.createElement(“script”);
po.type = “text/javascript”; po.async = true;po.src = “https://apis.google.com/js/plusone.js”;
var s = document.getElementsByTagName(“script”)[0];
s.parentNode.insertBefore(po, s);
})();</script>
Replace PageID (in bold text of above code block) with your Google+ Page ID.
Now visit your blog’s wp-admin (Dashboard) >> Appearance >>Widgets and drag text widget to your sidebar.
Paste following code inside your text widget (replacing PageID) :
<g:plus href=”https://plus.google.com/PageID” size=”badge”></g:plus>
For smaller badge use:
<g:plus href=”https://plus.google.com/PageID” size=”smallbadge”></g:plus>
Note: You can get your Google Plus Page ID by visiting your page’s profile and copying the number before /posts or /about in URL.
Function For Defining Default Post Thumbnail In WordPress
Open your theme’s function.php file and add the given function editing the thumbnail image URL (given in bold text) with your own image URL.
add_action( ‘save_post’, ‘wptuts_save_thumbnail’ );
function wptuts_save_thumbnail( $post_id ) {
$post_thumbnail = get_post_meta( $post_id, $key = ‘_thumbnail_id’, $single = true );
if ( !wp_is_post_revision( $post_id ) ) {
if ( empty( $post_thumbnail ) ) {
update_post_meta( $post_id, $meta_key = ‘_thumbnail_id’, $meta_value = ‘https://sangkrit.net/thumbnail.jpg’ );
}
}
}
How To Edit WordPress ‘Posts’ Label ?
You can edit WordPress post label to something Else. For example if you want to edit Posts (label) to Article so that anytime you or any other member visit you wp-admin (dashboard) he can see Article as a label on sidebar menu not posts (which is by default).
For doing this, open your theme’s function.php file and add the following code:
add_filter(‘gettext’, ‘change_post_to_article’);
add_filter(‘ngettext’, ‘change_post_to_article’);
function change_post_to_article($translated) {
$translated = str_ireplace(‘Post’, ‘Article’, $translated);
return $translated;
}
How To Add Custom User Roles In WordPress ?
Suppose you need to create a new custom post type, may be NEWS. So that you can allow you subscribers to post NEWS on your website. In the given example we will be creating a custom user role for NEWS and the users allotted this role would only be managing only NEWS section from WP-Admin (Dashboard).
Open your theme’s function.php file: site root >> wp-content >>themes >> function.php and add the given code block:
add_role( ‘news_user’, ‘News User’, array( ‘news’ ) );
This function generates new custom user role which can only manage
news section from Dashboard.
Although you may add some more function for new custom user role.
New custom user role can also be removed from WordPress by using the following function in your theme’s function.php file:
remove_role( ‘news_user’ );
From WordPress Function $wp_roles also you can add and remove custom user roles as show below:
global $wp_roles;
$wp_roles->add_cap( ‘news_user’, ‘manage_category’ );
$wp_roles->remove_cap( ‘news_user’, ‘view_post’ );
WordPress Hack To Set A Custom Default Avatar
- Create a new custom Avatar. It should be 60px*60px PNG format.
- Name it custom-avatar.png.
- Upload this avatar image in your /wp-content/themes/yourtheme/images directory
- Open you theme’s functions.php file
- Copy the following given code and paste it in your functions.php file:
if ( !function_exists(‘custom_gravatars’) ) {
function custom_gravatars( $avatar_defaults ) {
$myavatar = get_template_directory_uri() . ‘/images/custom-avatar.png’;
$avatar_defaults[$myavatar] = ‘people’;
return $avatar_defaults;
}
add_filter( ‘avatar_defaults’, ‘custom_gravatars’ );
}
- Open your Admin Section (Dashboard)
- Visit Settings >> Reading section and select your newly uploaded avatar as default.
How To Display WordPress Featured Posts And Pages ?
Featured Page Widget
From this widget you can feature pages on your sidebar using an excerpt of the page and a text or image link to the page. Click here to know more features.
Download WordPress Featured Page Widget
Installation:
- Install and Activate the plugin
- Configure options from Dashboard >> Settings panel.
- Add widgets to your sidebar.
Featured Post Widget
It is a customizable multiwidget, that displays a single post in the widget area. You can decide, whether or not the post thumbnail is displayed, whether the post title is above or beneath the thumbnail and a couple of more things. You can style the widget individually.
Download WordPress Featured Post Widget
Installation:
- Install and Activate the plugin.
- Add and customize the widget.