Monday, 19 January 2015

How to add post rating on blogger?

While I was trying to learn how to run php code on blogger, I found this post

http://www.mybloggerlab.com/2014/02/how-to-add-post-rating-system-in-blogger.html

Thought of trying it.

1. Go to http://rating-widget.com/get/rating/blogger/#editor

2. Press signup & add to blogger

3. You can either press Add to blogger
or show source code.

4. I did Add to blogger and it just worked. After all my posts i see five stars to be rated

5.  I want to verify if it works on mobiles too.

6. Another thing I want to check is if, the ratings can be seen only by me or by my readers too

7. Last thing I want to check is that it shouldn't make my blog slow.


how to run php code on blogger

I want to run php code on my blogger.

I am following this link

http://www.mybloggerlab.com/2013/10/how-to-easily-add-php-codes-in-blogger.html

and here will update what extra i had to do.

Trying to do it right in this post

1. created helloworld.php using notepad with this content:

<?php
echo '<p>Hello World</p>';
 ?>

2.
now to upload it in google drive I am following this tutorial

http://www.mybloggerlab.com/2013/04/how-to-host-css-or-javascript-files-in-blogger-using-google-drive.html

Change
https://drive.google.com/file/d/0BwqMfuVVnopVX1pDNVhzX1NUSE0/view?usp=sharing

-->
https://googledrive.com/host/0BwqMfuVVnopVX1pDNVhzX1NUSE0

3.
Added this link:
<object width="400" height="300" type="text/html" data=" your-file.php"></object>


Ok.. end result is php file gets downloaded on my system. This is not what i wanted. :( :(
I wanted to run php code but looks like this is not possible with googledrive. I will probably have to host it on a php hosting service provider.