blogger

How to allow users to write javascript with security?

匿名 (未验证) 提交于 2019-12-03 02:22:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Blogs providers such as Tumblr and Blogger allow users to write scripts in their own blogs. It makes users add AdSense, Analytics and counters into their blogs easily. How to keep security and customization both? What kind of scripts should I filter? Thx :) 回答1: If every blog is going to be on its own domain (not a shared second level domain like blogname.myblog.com !), chances are there is no need to filter anything at all. The Same Origin Policy will prevent sites from having access to anything important (like session cookies that could be

blogspot pagination: how to remove older posts text and replace it with the line numbers when accessing labels?

社会主义新天地 提交于 2019-12-02 22:08:04
问题 When I access a blogspot label, the page always show older posts text. If I use max-result it show the line numbers but I feel it's not a SEO friendly url with max-result suffix, the phrase /search/label is bad enough for SEO. I want to know how to remove older posts text and replace it with the line numbers when accessing labels. Like this I would appreciate it if someone could help me solve this problem! Thanks very much! Here is the code var perPage = 12; var numPages=5; var firstText =

Facebook Open Graph tags for Blogger

 ̄綄美尐妖づ 提交于 2019-12-02 14:41:25
问题 I've been struggling with these for months now. I just changed them and the Facebook Debugger thinks everything's fine except for admins and app ID whih I hope I don't have to get into. But, when the like button is clicked, some posts show my generic favicon, some show an image for an old post, some show no image at all, and a rare few show an image from the post. Some of them show the correct title of the blog post, some show a link instead, some show nothing. I was hoping that a brief

Label as header in Category Page Blogger

橙三吉。 提交于 2019-12-02 09:21:38
问题 I have a website in which I can show posts with all the same labels. Is there a way to make the label as the header when showing all the posts with the same label. For example, on https://newsotuniverse.blogspot.ca/search/label/astrophysics is there a way to make the header 'Astrophysics' or on https://newsotuniverse.blogspot.ca/search/label/engineering to make the header 'Engineering'? I would like to put the name of the label (the header) in this: <b:if cond='data:navMessage'> <div class=

How to hide all post's having certain labels on home page in Google Blogger?

女生的网名这么多〃 提交于 2019-12-02 08:54:55
问题 Let's consider, "Coding", "Technical","Diary" are some labels on blog and I do not want to display all "diary" label's posts on homepage (with my rest of the label post's) so what I want to do ? I want that XML code to hide post's with some labels from homepage ! [I search uncountable times same thing on search engines like yahoo,google,yandex,etc but I didn't got anything, [ hope blogger/xml community should help !] check image to view label 回答1: Search for the following emphasised (bold)

Facebook Open Graph tags for Blogger

倖福魔咒の 提交于 2019-12-02 08:46:30
I've been struggling with these for months now. I just changed them and the Facebook Debugger thinks everything's fine except for admins and app ID whih I hope I don't have to get into. But, when the like button is clicked, some posts show my generic favicon, some show an image for an old post, some show no image at all, and a rare few show an image from the post. Some of them show the correct title of the blog post, some show a link instead, some show nothing. I was hoping that a brief snippet of text from the post would show but that never happens. This all seems to be totally random. Here's

301 redirect Blogger to another Host and keep Google rank

旧时模样 提交于 2019-12-02 08:04:12
问题 first, I apologize for any spelling error. I am french. I'd like your help for something that may have a simple fix, but I have not found anything specific to my case. EXPLANATION I have a site on Blogger platform and a domain registered at Godaddy for about two years. But nowadays, I'm unhappy there because of the many limitations of this platform. I have about 300 posts published and indexed in this blog. Well, I've just create myself a static website (with many HTML files and some CSS/JS)

301 redirect Blogger to another Host and keep Google rank

断了今生、忘了曾经 提交于 2019-12-02 07:00:46
first, I apologize for any spelling error. I am french. I'd like your help for something that may have a simple fix, but I have not found anything specific to my case. EXPLANATION I have a site on Blogger platform and a domain registered at Godaddy for about two years. But nowadays, I'm unhappy there because of the many limitations of this platform. I have about 300 posts published and indexed in this blog. Well, I've just create myself a static website (with many HTML files and some CSS/JS) and bought a Linux Hosting (Deluxe with cPanel) on Godaddy also. I created a subdomain in the parent

How to hide all post's having certain labels on home page in Google Blogger?

最后都变了- 提交于 2019-12-02 05:15:41
Let's consider, "Coding", "Technical","Diary" are some labels on blog and I do not want to display all "diary" label's posts on homepage (with my rest of the label post's) so what I want to do ? I want that XML code to hide post's with some labels from homepage ! [I search uncountable times same thing on search engines like yahoo,google,yandex,etc but I didn't got anything, [ hope blogger/xml community should help !] check image to view label Search for the following emphasised (bold) code in your template (Template - Edit HTML) .... <div class='post-outer'> <b:include data='post' name='post'/

Navigating Next And Prev Posts Under Same Labels in Blogger

时光总嘲笑我的痴心妄想 提交于 2019-12-02 02:51:55
问题 For starters I want you to read Next and Prev Buttons for Blogger Theme Understood the concept of what I want? Then let's continue with my question : Now I have the code that was already embedded to the theme for next and prev buttons and they were : <nav class='op-pagi'> <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"' expr:title='data:olderPageTitle'><i class='fa fa-angle-left'/> Prev</a> <a class='blog-pager-newer