All Articles by Sangkrit

Register/transfer domain names at http://system.sangkrit.net and mail to system@sangkrit.net to get your web/app made/managed as per the budget allocated.

4518 Articles

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 );

Google Has Changes Google Play’s Content Policy; Now No More Intrusive Ads

Google is developing a positive experience for Google Play. Some are saying that Google is trying to move away from its Wild West image and that is good. From now the content of your app in Google Play must be rated in accordance with our Content Rating Guidelines which means:

All the developers must be labeling their applications in accordance with Google Play ratings system. It has four different levels:

  • Everyone
  • Low maturity
  • Medium maturity
  • High maturity

All applications should adhere to the Google Play Developer Content Policy. Now following items in the list must not be added in Google Play by any how –

  1. No Sexually Explicit Material
  2. No Violence and Bullying
  3. No Hate Speech
  4. No Impersonation or Deceptive Behavior
  5. No unauthorized publishing of others Personal and Confidential Information
  6. No infringe on the intellectual property rights of others
  7. No Illegal Activities
  8. No Gambling
  9. No Dangerous Products like transmitting of viruses, worms, defects, Trojan horses, malware etc.

Applications must not create unpredictable network usage that has an adverse impact on a user’s service charges or an Authorized Carrier’s network.

For Spams in Google Play Store:

  1. No repetitive content posting.
  2. No attempt to manipulate search ranking at Google Play Store  by misleading keywords in product’s description.
  3. Product descriptions should not be misleading or loaded with keywords in an attempt to manipulate ranking or relevancy in the Store’s search results.
  4. No attempt to change the placement of any Product by multiple rating done by any how.
  5. No submission of apps that are created by some automated tool or service by the operator of that service on behalf of other persons.
  6. No submission of apps with primary functionality of driving traffic to a particular website.
  7. No submission of apps with primary functionality of providing a webview of other’s website without permission
  8. No sending of SMS, email etc on the behalf of the user without permission. You must provide user with the ability to confirm content and intended recipient.

Developer must use  Google Play’s payment system for charging for Apps and the developers who are offering additional content, services or functionality within an application downloaded from Google Play must use Google Play’s payment system as the method of payment, except in case payment is primarily for physical goods or services and if payment is for digital content or goods that may be consumed outside of the application itself. View Details

Following is the email message for developers:

Hello Google Play Developer,

We are constantly striving to make Google Play a great community for developers and consumers. This requires us to update our policies when we launch new features, like subscription billing, and also when we see unhealthy behavior, like deceptive app names and spammy notifications. This email is to notify you that we’ve made some changes to our policies which are highlighted below.

– We’ve added clearer details to the payment policy, and guidelines on how we will handle cancellations in our new subscription billing feature

– We are restricting the use of names or icons confusingly similar to existing system apps in order to reduce user confusion

– We are providing more detail on the kinds of dangerous products that are not allowed on Google Play. For example, apps that disclose personal information without authorization are not allowed.

– We are giving more examples of practices that violate the spam policy.

Additionally, we are adding a new section that addresses ad behavior in apps. First, we make it clear that ads in your app must follow the same rules as the app itself. Also, it is important to us that ads don’t negatively affect the experience by deceiving consumers or using disruptive behavior such as obstructing access to apps and interfering with other ads.

Please take a look at the Google Play Developer Program Policy at http://play.google.com/about/developer-content-policy.html to see all the changes and make sure your app complies with our updated policies.

Any new apps or app updates published after this notification will be immediately subject to the latest version of the Program Policy. If you find any existing apps in your catalog that don’t comply, we ask you to fix and republish the application within 30 calendar days of receiving this email. After this period, existing applications discovered to be in violation may be subject to warning or removal from Google Play.

Regards,

Google Play Team

How To Configure Apache WebSite To Use Multiple Ports ?

  1. Open httpd.conf file in your host.
  2. Find Listen 80 and on the next line add Listen 8080
  3. Find VirtualHost section for your Site config.
  4. Add *:8080. It should look like this: <VirtualHost *:80 *:8080>
  5. Restart Apache
  6. Test your work by hitting your site to the new port number. Example: http://www.yoursite.com:8080

This would be helpful for you if your ISP is blocking any port. You can add an alternate port in your website. Here we have used port 8080 but you are free to use any other.

Creating Temporary And Permanent Redirects Using Apache

301 is a permanent redirect and 302 is a temporary redirect. 301 redirect is used when you want to redirect pages without penalizing them in search engines. And 302 redirect is used when you want to set up temporary redirect for keeping your page rank better in search engines. Learn more.

How To Set Up Permanent Redirect Using Apache ?

Open your site’s .htaccess file.

If there is no .htaccess redirect then create a new text file in your site’s root.

Add this line at the very end of your .htaccess file:

Redirect 301 /REDIRECT_PATH NEW_URL

Where:

REDIRECT_PATH = Directory path on your web server. And

NEW_URL = Is the path you want the pages redirected to.

Save the file and test your URL.

Example: 

Redirect 301 /tags/lamp/ https://www.sangkrit.net/tags/lamp/

How To Set Up Temporary Redirect Using Apache ?

Open your site’s .htaccess file.

If there is no .htaccess redirect then create a new text file in your site’s root.

Add this line at the very end of your .htaccess file:

Redirect 302 /REDIRECT_PATH NEW_URL

Where:

REDIRECT_PATH = Directory path on your web server. And

NEW_URL = Is the path you want the pages redirected to.

Save the file and test your URL.

Example:

Redirect 302 /tags/lamp/ https://www.sangkrit.net/tags/lamp/

Difference Between Permanent And Temporary Redirects

301 redirect is a permanent redirect whereas 302 is a temporary redirect. Permanent redirects tell search engines that old URL is out so that they can pull this new URL in it’s place. 301 is used when you want to preserve the page index and keep the page rank.

Ubisoft Uplay Has Been Blocked By Firefox

Ubisoft Uplay has been blocked by Firefox. It got a security vulnerability that can be exploited by malicious websites to gain control over the user’s system. All Firefox users who have installed this addon are affected so Firefox suggests other users who are currently using this addon to remove it but they are free to continue if they accept the risks described.

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:

  1. Open your cPanel.
  2. From Security section click Password Protect Directories.
  3. Now on the Pop Up. Select root then from your WordPress installation select wp-admin.
  4. Check Password protect this directory.
  5. 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

  1. It can track all of your sites.
  2. No limitation to number of sites you add.
  3. It can update WP-Core, all plugins and themes.
  4. Check WP Remote Security policy here.

Latest Release Of Skype – Install Skype 4.0 in Ubuntu 12.04

If Skype is already installed then update is there for you in Update Manager. If you don’t have Skype then enabled Canonical Partners channel.

  • Visit Ubuntu Software Center
  • Then select Edit > Software Sources
  • Click  tab: ‘Other Software’
  • Check the boxes next to ‘Canonical Partners’

After updating open Software Center and search for and install ‘Skype’ package.