blogger

How To Attach an Image with Blog post - Google Blogger API - C# - VB.Net

夙愿已清 提交于 2019-12-04 13:06:39
I am using this code to create new post on blogger but I was searching that how to attach and upload an image with our post. Imports Google.GData.Blogger Imports Google.GData.Client Dim service As New BloggerService("<my apps name>") service.Credentials = New GDataCredentials("<email>", "<apps password>") Dim newPost As AtomEntry = New AtomEntry() newPost.Title.Text = "Test Title" newPost.Content = New AtomContent() newPost.Content.Content = "<h2>Test HTML Content</h2>" newPost.Content.Type = "html" Dim response As AtomEntry = Nothing Dim blogFeedUri As Uri = New Uri("http://www.blogger.com

Using bootstrap twitter with google blogger

百般思念 提交于 2019-12-04 05:13:14
I've been trying to use bootstrap twitter on my google blog on blogger.com. Apparently it is not working, and I am quite sure that the problem is how I am including the css and js files. I've uploaded the .css and .js files as .txt files to an online plain .txt upload server. I am including them in the head. bootstrap.css <link href='http://m.uploadedit.com/b013/1366225851722.txt' rel='stylesheet'/> bootstrap.min.css <link href='http://m.uploadedit.com/b013/1366225875450.txt' rel='stylesheet'/> bootstrap-responsive.css <link href='http://m.uploadedit.com/b013/136622647822.txt' rel='stylesheet'

Auto refresh a specific div blogger javascript

久未见 提交于 2019-12-04 04:30:32
问题 I use a Javascript widget on a blogspot. It include a div with some javascripts that get some "non-statical" strings from a server and print them on the page. Until here everything works fine, the problem is that I would like to update the execution of this div every few seconds in order to have updated strings, without refreshing the whole page, but just the specific widget (div). I have added another script that tries to refresh the specific div, but I had no luck. Please see the code below

Extra Lines using SyntaxHighlighter for Chrome Only?

十年热恋 提交于 2019-12-03 15:06:23
问题 Extra lines are being inserted when I am using Chrome to look at a draft blog post (on blogger) that uses syntax highlighter e.g. But on IE it looks fine: Any ideas what I am doing wrong here? edit: The config/setup for SyntaxHighlighter I am using is below: <!-- Syntax Highlighter Additions START --> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel=

Posting to Blogger using PHP

被刻印的时光 ゝ 提交于 2019-12-03 13:38:49
问题 I'm having a problem getting the Blogger API for PHP to work. What I need is to be able to post a new blogpost to my bloggeraccount. The code I'm using is taken from the Google API page here : http://code.google.com/intl/nl/apis/blogger/docs/1.0/developers_guide_php.html Here is my code : <? require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_Query'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); $user = 'name@example.com'; $pass =

Extra Lines using SyntaxHighlighter for Chrome Only?

房东的猫 提交于 2019-12-03 04:49:06
Extra lines are being inserted when I am using Chrome to look at a draft blog post (on blogger) that uses syntax highlighter e.g. But on IE it looks fine: Any ideas what I am doing wrong here? edit: The config/setup for SyntaxHighlighter I am using is below: <!-- Syntax Highlighter Additions START --> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js'

Posting to Blogger using PHP

陌路散爱 提交于 2019-12-03 03:46:35
I'm having a problem getting the Blogger API for PHP to work. What I need is to be able to post a new blogpost to my bloggeraccount. The code I'm using is taken from the Google API page here : http://code.google.com/intl/nl/apis/blogger/docs/1.0/developers_guide_php.html Here is my code : <? require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_Query'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); $user = 'name@example.com'; $pass = 'password'; $service = 'blogger'; $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service,

Issues adding github gist to my blog(using Google blogger)

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to add a gist to my blog to see how it works and use it to share some code related blogs going forward. I've followed the steps mentioned form this blog , but I'm not able to get it to work. I don't know what I'm missing, any pointers on what I could be missing would be really appreciated. My HTML Editor of blog related code looks like this:- <div dir="ltr" style="text-align: left;" trbidi="on"> <div dir="ltr" style="text-align: left;" trbidi="on"> Hi<br /> <br /> test<br /> <br /> <br /> <div class="gistLoad" data-id="4132084" id

POST request with JSON body

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to add a post to a Blogger blog via PHP. Google provided the example below. How to use that with PHP? You can add a post for a blog by sending a POST request to the post collection URI with a post JSON body: POST https://www.googleapis.com/blogger/v3/blogs/8070105920543249955/posts/ Authorization: /* OAuth 2.0 token here */ Content-Type: application/json { "kind": "blogger#post", "blog": { "id": "8070105920543249955" }, "title": "A new post", "content": "With exciting content..." } 回答1: You need to use the cURL library to send

Facebook Open graph tags for blogger - OG Image is too small. Can I designate full size image instead of thumbnail?

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Blogger does not allow you to designate an open graph image in each post. Currently, there is a piece of code in the template that designates the automatically generated thumbnail as the open graph image for facebook. The problem is, the thumbnail image is 72*72 and Facebook now requires at least a 200px width in the OG image or it defaults to the first image on the page that meets the criteria, which is my header image. My question is this: Can I amend this code in my template to designate the full size image in the post instead of the