Category Archives: Tech

How to Disable WordPress Plugin ? Easy Method

Have you trapped with a plugin ? which installed recently to your website admin side and not allowing to login.

Here are easy way to get rid of this situation,

 

Go to PHPMyAdmin using your hosting services,

Then click on the database and click on ‘Search’ icon which is available within the phpmyadmin top menu.

Search term ‘active_plugin’ by selecting all the tables.

– The results may appear with a list which having the term active_plugin
– Browse on ‘tableprefixname_options’ table which might be showing in the results
– Click on edit option and change the value as shown below,

a:1:{i:0;s:48:”blahblahblah”;}

to

a:0:{i:0;s:48:”blahblahblah”;}

 

 

 

How to Add Login Session to Your WordPress Website

Here is the simple way,

Go to your admin page and click on Editor from Appearance menu.

Check for functions.php and add/edit it with the below code,

 

//Login Session Coding

add_filter(‘wp_nav_menu_items’, ‘add_login_logout_link’, 10, 2);
function add_login_logout_link($items, $args) {
ob_start();
wp_loginout(‘index.php’);
$loginoutlink = ob_get_contents();
ob_end_clean();
$items .= ‘<li>’. $loginoutlink .'</li>’;
return $items;
}

Once this is added to functions.php, your primary and secondary both menus will display the session status.

Thanks

 

 

You Can Customize WordPress Website Author Link

Every author or website administrators doesn’t want to show/display a hint of their username for strangers or hackers.

This is really a frustration for wordpress Website managers. You can avoid this loop hole from the site. How ? Here are the steps,

 

Article on how to remove wordpress username from public link

Article on how to remove wordpress username from public link

  1. Go to your website admin page, make sure that your username and display name are different to avoid hackers guessing on your userid
  2. If you done the first step, go to your phpMyAdmin and go to the database and Tables created for your website
  3. The users table or authors tables usually comes with prefix _users, find it and check for user_login, user_nicename and user_email column
  4. Edit/Change user_nicename to something else which does not give a hint to the hacker
  5. You are done!

    Note : The user_nicename is publicly visible. Thanks, Enjoy Your Blogging.

 

Android Basics for Beginners

We all are familiar with Android Application, but few are good at developing such applications. So here are the basics of Android Development.

To write or use code smartly everyone needs a platform which is called Integrated Development Environment in short IDE. For Android, it is Android Studio which looks like the image shown below,

Android Studio Sample Screenshot

Android Studio Sample Screenshot

Before going to the coding sample you need to know XML (Xtensible Markup Language), which is developed in 1990s to overcome the drawback of HTML(HTML does not allow the definition of new text elements). In either means, XML is the language used for creating the layout or UI. Java is used to write dynamic code for an Application(Android).

 

Views: Can be images, text, buttons etc…

Here is the basic code format of Android,

Code starts here,

1 <TextView
2      android:text=”Happy Birthday Sister”
3      android:background=”@android:color/darker_gray”
4      android:layout_width=”150dp”
5      android:layout_height=”75dp” />

Coding Ends.

  • The numbers represents only lines which come with the platform
  • Whenever writes a code incorrectly, In Android Studio it will be displayed in Red colour