Monthly Archives: May 2017

Inserts or Adsense advertisement code after a few paragraphs

This post was most recently updated on March 25th, 2019

Advertising is part of modern day life. It comes by choice for web administrators. Sometimes, many bloggers tend not to use such advertisements for the considerable period of time. After getting certain views then they move towards it.

Showing advertising after a few paragraphs of the post:

It is the choice and wish of the webmaster. Personally, I fond of inserting advertisements on websites as it makes the website looks beautiful and the readers with ad blocking options switched off to find some superb information through these. I used the Adsense advertisements on my present site after my application to them have been successfully reviewed.

Still-to-date, though I have moderate earnings but the primary focus of these advertisements for the time beings is to find my money is WordPress hosting packages and WordPress domain packages.

Even till this day, I have been experimenting for about advertisements for placements and continue to do that till the date I got handsome results:

My first emphasis on my site is to present users with information on a variety of subjects and educate and convey to them my opinions on these subjects and I expect the advertisements that have been on the roll in it should provide some additional information so that ultimately that should present users with handsome information in addition to the article.

That is the reason why I want to place an advertisement in the article but still this day not being able to do this until I have done this. It is not just a simple idea as the standard WordPress procedure is to bring out the article from its database and loads on the web browser and to put ads inside of it remains a good amount of tactics and this procedure also changes from theme to theme.

Generally, while editing any of these files of WordPress I would prefer to go with cPanel hosting side:

This time I got the information from the internet and wish to write it down so that whenever I would change the theme of the website for sure go back to this article to know what are the procedure to insert ads inside content. WordPress server connects with its database with just single line and then inserting something in the middle of this seems a very difficult idea that is why most of the articles on this subject to the internet does not seem to work in the correct manner.

Generally, while editing any of these files of WordPress I would prefer to go with cPanel hosting side so that after review of coding if something goes wrong then I could reach out to and correct those codes immediately. Instead of theme editor of WordPress, I prefer to go from ‘file browser’ of cPanel. After logging into cPanel reached to ‘File Manager’ and open it.

  2. Then move to ‘wp-content’ and open it.
  3. wp-content
  4. Then move to ‘themes’ and open it.
  5. theme
  6. It will show you the installed theme and the default themes that installed with WordPress.
  7. Click on the installed Theme. In my case, it is the ‘grandstand’.
  8. grandstand
  9. It is important to open the activated theme that has been activated by you for your blog on word press administration segment.
  10. It would then show the PHP and other files and folders that have been inside the theme.
  11. Just scroll on to it to find out ‘single.php’ and double click on it to back up the files, in case something wrong happens while putting the code, we could upload that files and replace the wrong coded file.
  12. Then, just select ‘single.php’ and the top menu click on ‘code editor’.
  13. It would show you a ‘Code Editor’ dialogue box.
  14. Then click on ‘Edit’ and it would open ‘single.php’ on a new page of the web browser window.
  15. Go to its 62 number entry, which is ‘<?php the_content(); ?>’ or control ‘F’ while the file is open on browser and paste this code to search for this line on your theme, and then replace that with the below mentioned code.
Code starts here--------------------
$show_after_p = 2;
$content = apply_filters('the_content', $post->post_content);
if(substr_count($content, '<p>') > $show_after_p)
$contents = explode("</p>", $content);
$p_count = 1;
foreach($contents as $content)
echo $content;

if($p_count == $show_after_p)
echo "</p>";

Code ends here------------------------------------

The above code explanation:

  1. This is not a complex code.
  2. In the second line of the code,’ $show_after_p = 2’ and 2 is the advertisement to be shown after the second paragraph of the article.
  3. If you want to make it to third or fourth or so on the change that to number 3 or 4 or so on.
  4. Then move to the line where it is written as ‘ YOUR MEDIA.NET code GOES HERE’ and paste your Adsense or code there.
  5. If you have SSL site or normal site, do this in according to the code.
  6. Then after doing this copy entire code and then replace it with ‘ ’. Do remember to replace ‘ ’ with the above code.
  7. Then click on ‘Save Changes’ and you are done.

If you have followed all of these steps correctly which are the most basic ones then for sure you would be seeing advertisements on the after precise paragraphs after articles. Do open the individual article on your favourite web browser and without ad block and check it back and for sure if all the above steps have been performed correctly you would be for sure see advertisements inside the precise paragraph.

There have been many advertisement plugins which you can do it normally without wasting any of your time but still, it is better to use code instead of the plugin as this could result in faster website loading time as well as you would have excellent control over entire code here. With this as webmaster for one also learns immensely so that with due course of time with acquired accumulated knowledge one could slowly build another form of stronger management of ideas while playing with PHP, CSS and javascript codes. Also after upgrading my site to flexible SSL, I have found that the most HTTP codes are not working.

I contacted my account manager, and they responded swiftly and provided. Me with HTTPS codes but that does not work through WordPress admin and text widget function. Then, I put these codes into cPanel and all now works and in this case the ad rotating plugins would be vague and for this it is important to know the tits and bits of installing the codes into theme files so that everything should be nice and good and every control should be with your hands instead of depending too much on plugins.

Related Posts:

Off Site SEO Checklist

This post was most recently updated on June 25th, 2019

SEO is better known as search engine optimisation. Most of visibility of website constructed with relation to appearances on search results. Mostly it is about appearing into front search results of Google. Apart from online search engine optimisation tools, offsite seo check list is important. It attends to the tunes of distributing information of contents to local people in general.

Word-of-mouth is a better way to manage, and propagate information to proper management to large number of people within shortest span of time. You should attend cultural gatherings from time to time, go with a jersey written behind yours website name and properly displayed there on.

let people to understand name of yours website and ask them to log into this so that you should get more and more visitors count there on. Ask them to browse your website and you should get one more visitors count.

In the cultural events we provide gifts to the person whom function we attend and in this scenario inside gift pack do remember to write the name of website there and let people open the envelope to know yours name of website.

In the local radio station, it is a good idea to advertise your website. This is generally comes with less cost and this happens mostly in local radio stations and you get more and more clicks as the result of it and most of visitors will come from yours locality and this will make visitor’s engagement better and proper organic visitors will reach to your website.

Do take note to advertise your website in local news paper and it comes with lesser costs. Some newspaper provides city edition and do find edition of your town and advertise on those news papers. Mostly people of those towns tend to purchase local news paper editions as this provides most of local news and those comes with people of yours nearest locality reaches at you immidiately.

Put hoardinshawsgs at local towns with white space behind and clearly visible name of your website, and this will provide most of visitors to look at your name of yours website and this can generate additional revenues while getting organic visitors.

Another form is to put small advertisement behind the back screen windows of three wheelers namely auto rickshaws as most of these three wheelers goes in the form of shared auto and this make people from all around town as well as visitors to know the name of your website in clear and visible format.

You can put advertisements on local bittle shops and smaller shops of your locality so that known people ask you about this and you can advise them to browse your website so that you will get more and more visitors in the form of offsite SEO checklisting you have been doing so far in these exercise.

Rourkela Musings

This post was most recently updated on April 4th, 2019

I was completely surprised when I decided to meet fellow class students after 25 years. Plenty of waters have flown into the rivers and there must have been plenty of change during these courses. Plenty of changes have occurred but one thing that has never changed during these courses is the presence of the same sort of childhood memories that have been accumulated with all of us and still continues to be there.

During these times, most of our school friends have united for a complete get together at Rourkela and then probably at Tensa for some time so that we could see each other and greet each other after such a prolonged time. Lots of things must have changed during these 25 years of time but only one thing that has never ever been changed should have been the same sort of childhood memories of all of us that continues to be evolved and continue to stay forever.

Tensa get together, where the school is situated have not been clearer, but get together at Rourkela is now confirmed. It was for me the very last time confirmation and for this, I could not book the train for this and for this I continue to go with the bus from my native place of Puri and there is a direct bus service from Puri to Rourkella. In the last few years, there has been a sea change in the approaches of how the roaming of the bus should have been on these routes.

Now, there have been sleepers inside the bus and most of these buses are fully air-conditioned and that makes the journey extremely comfortable. For such a journey of over eight hours with air-conditioned and sleeper that should help us to be staying with super comfort for entire courses of the journey for sure.

Radhika Regency, Rourkela
Radhika Regency, Rourkela

I reached at Sarathi bus which runs from Bhubaneswar to Rourkela and leaves Puri at five pm and my sleeper number is five and then I reached there, and it is extremely comfortable. That is wider sleeping space with an air-conditioned ventilator at the top of it and it has been two in size to render it most comfortable at that point. There has been a nice presence of stairs cases out there where easily and most comfortable I could rise to the sleeper and there have been no difficulties in reaching there.

The journey was super relaxing, with first class air condition working and the resting time was cool and wonderful. With the provision of closing the windows pane with windows mat, it became extremely convenient for me to sleep for some time as I know in the next day meeting with so many friends after such a difference of time but still, the joy of meeting them reminds me for their absolute presence.

With complete air-conditioned facilities and the speed of the bus are good and especially nice after crossing the Cuttack bus station and that reminds me of better facilities or same to same facilities just like that of a first-class railway journey. In between nearer to Cuttack railway station, the conductor asked for the ticket and he checked it and then I closed the windows mat and then began to eat the foods which I took from home and then took some water and then bring out the earphone and then put it the other side into music player and then I try hard to get into sleeping.

In the meantime when the bus reaches nearer to Cuttack bus station, my phone rang and it was from Ranjeet Pattnaik and he was telling me about from which location I should be getting down so that it should be super convenient for all of us to reach nearer to Hotel Basera where our rooms are booked.

I reached nearer to Sector 2 and from there, I hired one shared auto that took me nearer to hotel Basera for ten rupees and then I slowly walked to the other side of the road and move towards the sideward road to reach towards it and then at the front of it I saw the Hotel Regency International and then at the left side I moved to this hotel Basera.

Just at the front of Hotel Basera, I saw, two or three persons have been standing there and from the distance, I could recognize them as Rana, Bibhuti, Manoj Rath and Rajesh Mahapatra and that reminds me of my childhood days.

From their appearances and the facial structure it is imminent and construed that they were the same person and the states of happiness and the confidences from which the sharpness of the same set up and wonderful presence comes upon so many times reminds me of the same sort of childhood days that has been there as if still to date.

It was one of delightful get-together. We all reached to the room number 304 of this hotel and inside of it Uttam already there reached from Bhubaneswar and we all have a tremendous time at that juncture with complete smiling all a crosses and everyone was looking at each other quite closely and trying hard to remember the childhood days. It was a small but nice room with good air conditioning all around and presents with such and such wonderful presentations of conveniences and gestures that make the entire surroundings one of brilliant place to live in.

The climate of Rourkela is comparatively respectable if we see the amount of perspiration and humidities inside Puri climate. Puri my native place is surrounded from most sides by sea provides ample shreds of evidence of the presence of the amount of humidity that makes the 34 temperature feels like near to 50.

For me the temperature of Rourkela is good and nice and it does feel some sort of coolness for me and we reached to the room and then I went for refresh and after some time the other entire presented childhood friends suggested for moving to a nearby site for taking up tea out there.

It was one of the places nearer to the square where many steel plant workers tend to unite there and have the tea and snacks and we get there and then after some time we reached the hotel and stayed there for some time. Uttam, Manoj all have been there and we talked and talked as there have been 25 years of gap in between our school life and the present life and there have been many things to talk with all of us and the series of conversations moved thereon.

We all talked about our respective professions and continue to talk about this for some time and then the presence of the flurry of my classmates comes to meet with all of us with complete eagerness and enthusiasms. In the meantime flurry of childhood friends reached and prominent among them are the Gada, Manoj Sathpathy, Siba, Debashish, Ranjeet Pattnaik and many others and the get together should be at Subham International and it was a walkable distance from there on.

We all moved with respective bikes and then reached there which is hardly a 100 to 200 meter walk able distance. We reached at the first floor and the room was a wide area with a larger gathering could be there comfortably. There were three waiters waiting to serve food and break fast. Slowly all total 25 to 30 classmates are reached. Most of them were eager to meet me and Uttam reaching out to classmates after 25 and 15 years and this should have been one of most anticipated getting together ever.

There have been smiles all around everywhere and plenty of great attention towards all of us and everyone, is talking about how Atanu and Abhi missed the bus and some have been very interested in talking about childhood days and the most wonderful moments thereafter. Every one were happy and reeling into momentous presence in which we are in and we are just contemplating about our childhood memories and how we have been very happier with each and every days and continue to find more and more strategically wonderful time and we are very much thankful for the present time and ours luck to be united all over again.

Related Posts:

Tips for Protecting Data Privacy of Android Users

This post was most recently updated on April 2nd, 2019

Since the computer and then smart phones and then mobile operating systems, the flow of data incoming and outgoing is enormous. Slowly, most of these processes become highly confidential since paperless transactions. Most financial and banking transactions goes on through mobiles and smart phones.

Now, most of these transactions need secure OTP (Onetime password) and that comes easily through smart phones and mobile numbers. The flow of data becomes largely in the highest number because of the presence of large numbers. It is important to secure data of individuals in greater density.

Android mobile operating systems are by most of the people. Therefore , the flow of data from various Android operating systems and the accumulation of data from these sources need a secure process to store these data.

Android has various apps to store and secure data. Most of these are from Google and it stays secure as always. I back most of Android secure settings up through Google Drive. To back up android setting so that in case any outrage occurs then easily from these setting phone recovery possible.

Open Google Drive for Android and then move to backups. There perform back ups. YOu can perform the backup of the android, settings and most of these are for the sake of wireless connectivity but you can make it in data connection. If you have similar Google account across multiple phones then other back ups is there at the heading of other back ups in Google Drive.

If you have WhatsApp account then it back ups in Google Drive too. I backs in this way, most precious data of yours such as security settings of Phone, wireless connectivity, all up, and back up to Google Drive.

Smart phone means advent of camera and taking screenshots at various intervals. Google has its Photos in this app all photos are backing up to its in optimised resolution, and then it synchronises to phone. Photos are synchronises to phone means, all images, show up in offline mode.

Google Photos provide back up and sink privately with secure protocol and back up photos to high quality free unlimited storage. If you want fast and secure back up, then choose express upload, which is fast back up at a reduced resolution. It compresses photos to 3MP. In high quality photos compressed to 16 MP. In express compression videos stays in standard definition.

One must go with the amount of speed of internet on has such as, for slow internet and limited internet value pack express back up is good. If one has faster internet and higher value pack and one wants to show up photos instantly, then express back up is also good idea.

In express back up of Google Photos synchronise images, appear instantly and reupload does not take place so it save internet, battery and provide faster photo browsing experiences.

What app is the popular social media app. One need to back up account periodically to secure data. When you change the handset and insert the same sim of WhatsApp account then, you need to install from back up and it comes from Google account of the android. In WhatsApp setting go to chat, chat backup and then to back up and it will back up information in Google drive.

In the case you are doing for the first time then coenct Google Drive to Whatsapp and authorise it and then connect it. Then choose backed up to Google Drive periods such as daily or weekly.

With Android 8 go to security status  and click on Find Device and then move to Google Play Protect and turn on scan device for security threats and improve harmful app detection. In this way, Google will regularly check apps and scan your device for any security threats and warn you about it if it is there periodically.

With the second option such as improve harmful app detection Google will send from time to time harmful and unknown app behaviour for google scan and if there is any such bad behaviour of app then Google will stop these app from running.

It will scan app which comes from Google Play Store and scans and then download to device. Sometimes harmful apps can appear and resurface as the malware and Google Play Protect checks these apps for such malwares and stops these apps. Google has unwanted software policy, and it checks these apps for such behaviour and it appears to have then it stops these apps from resurfacing.

If there is harmful app detection, then it warns users and sometimes removes these apps automatically from the user’s device. Do not install app from unknown sources. Download app from Google Play Store as all app scans in sand boxing environment to provide the secure and clean application environment.

Install Files from Google Play Store. It is from Google. It scans device for junk files that accumulate automatically and take unnecessarily space on your phone. It scans for duplicate files and WhatsApp media and provides suggestions for unused apps that is not in use for many days. In this way unused apps are uninstalled.

In this way, Android stay secure and smarter, and with all of above suggestions your android device secures your data and stores in google server famous for secure and long lasting. By using directions from Google such as the good application behaviour and to perform back up at correct time makes the application data and device runs in the secure and personalised environment.

Article updated on April 02/2019
Related Posts: