How to add login with google on my Hexo Blog? - blogs

I recently created a blog using Hexo and using the Aurora theme. I would like to know how to add the connection with google so that we can leave comments. I haven't found anything on the internet as a plugin or tutorial to implement this

Your request is two-fold:
You want people to have to login using Google to be able to post those comments.
You want the ability to leave comments on your Hexo blog.
Google themselves do not have a commenting service but you can use a number of other services that provide comment functionality for the pages of your blog.
I personally use and recommend Disqus. It's very customisable allowing people to login with a number of different providers depending on the settings you choose. This includes Google login.
But you can allow people to login using Twitter, Facebook and other services to post the comments to your blog. You can see an example of this in action here at the bottom of the post.
There are other options besides Disqus but the Hexo creator himself uses Disqus and most themes come with it built in as standard.
There's even a setting comments in the main config file to enable this.
However if Disqus isn't to your liking you may consider GitTalk and Facebook comments plugins.
It seems your theme only supports Valine and GitTalk as standard so you could use those [by following the instructions given on the themes documentation page.
I wouldn't recommend Valine due to a XSS security vulnerability that's not been fixed so far though.
Implementing Disqus on the theme is very simple and upon sign up all the information and tutorials you would need are provided by them.

Related

How do do I embed a research publications database into my website?

Context
I am volunteering to develop a website for an astronomer.
The website is made using Wix.com with some additional HTML/CSS/Javascript edits when needed.
Problem
The astronomer wants to embed his research publications into the website. These publications are visible here: Link
Unfortunately, I do not know how to perform this embedding.
What I have tried
I have tried to find Wix Apps or other third-party apps that can convert the database into HTML embeddings. Unfortunately, no such objects exist.
I have tried scouring the database's website to find any possibilities of embedding into an external site. Unfortunately, this does not exist.
Please let me know if there is any other information that you need, I would love to get this up and running soon :)

Website hack line appearing on wordpress homepage

Helping a friend's company with their website. They have a random bit of code appearing on a bar near the top of what looks to be just on the homepage:
http://snakeoilcocktail.com/
The line is here according to the source:
<div class='dc'>You take that to bank:same day loans. Buy there a atv armor set</div>
I used a plugin to do a String check to find out where the line is but I can't see where it's located to edit it. Any help would be greatly appreciated.
Thanks!
Looks like there's some malware injected on the site. In the top navigation under "Beverage Catering and Event Mixology" there's what looks like some malicious JS code that's adding a div with a class of "dc". Not sure what your setup is, but I'd advise checking into this plugin: https://wordpress.org/plugins/sucuri-scanner/
It'll tell you if any of the core Wordpress files have been hacked, or if it recognizes any files that aren't part of WP.
They have a free quick scanner, check this out: https://sitecheck.sucuri.net/results/snakeoilcocktail.com/
Revolution Slider is a big risk :) (Note the comment on Sucuri) It's supposedly been patched but they ran into a huge security issue where thousands of WP sites were infected. Happened to a couple of sites I took over as well - I completely removed it.
In other words, if you have to keep the Revolution Slider plugin, update it ASAP. It introduces a vulnerability that allows hackers to upload arbitrary files to your site - bad news. They often upload something that gives them read access to the wp-config.php file so they can get into the database as well. (http://securityaffairs.co/wordpress/35431/cyber-crime/revslider-plugin-vulnerable.html)
It has to be somewhere! So either one of your plugins is outputting that code or it has been hacked into your theme.
First, try to deactivate all the plugins one after each other to find out if a plugin causes that issue. If that doesn't help, you may need to go through each file in the theme until you found the target. Also notice that the code could look different in a file than the code which you have posted in your question.
Your website must gave been infected with a malware/adware of some sort. This usually happens when you are using a free hosting service. Check whether your friend is using a free hosting service to host his website. Some of those providers inject advertising content into free hosted websites to make revenue.
If this is not the case,
Restore to previous backup
Disable any plug-ins used on the website
Check through the code for any suspicious lines.
Delete all the files on the web server if possible and try re-uploading
the source files.
Migrate to a hosting provider such as goDaddy, AWS etc for security of
your website.

Has anyone created a method for cloning a squarespace site to create a new squarespace site?

As I understand it, Squarespace provides no method to clone a site. Clone means to create a new squarespace site (not re-create ex-squarespace).
My latest project includes creating a 'base site' and then cloning it for different customers (and each clone will have it's own template tweaks, new blogs and calendar, etc), but all the rest of the content will be the same as the original.
I'm figuring that some enterprising developer/firm has solved this problem using scripts, etc. Please help! Or I will need to use Weebly instead, which DOES support cloning sites.
Unfortunately, it's not possible. Here's a similar question on stackoverflow, and an official answer from Squarespace.
I spoke with a Squarespace rep... He explained that it is possible if you follow these steps:
1.) Select the website from your Dashboard that you want to DUPLICATE.
2.) Click on the 3 dots and choose "DUPLICATE WEBSITE."
3.) You will need to invite the future recipient of the new website to be a "Contributor."
4.) Then you may Transfer Ownership to that "Contributor."
Contact Squarespace and describe the above steps and they will help you through it.

Using OneNote API without registering an application?

The question is pretty clear I think, but I will elaborate on why I'm asking it.
I created a little blog engine based on OneNote. Basically, the blog configuration asks for an access to OneNote. Then the user chooses a section under which the blog posts are stored.
There is a cron script that will use all these informations to automatically get new pages, fetch the medias and cache every, and finally display the posts.
I chose OneNote because I own three Windows 8 computers and a Windows Phone, so OneNote was an easy choice, as I didn't want to get an other application to manage my blog.
There is still a lot to do (as always with softwares...), but I want to make this more or less an open source project, so that other people can install it on their websites and link it directely to OneNote.
The only "big" obstacle for this now is that authentication in the OneNote API needs to register the application on the Live Connect, and specify a redirect domain. So every user wishing to use this blog engine on their server will have to register their own application... That will look complicated just for a blog, especially if you're not tech-savvy.
Is there a way to "skip" or work around this requirement, even if it requires the user to make the section public (as it is for a blog, this doesn't seem too much to ask) ?
Thank you in advance,
Cheers
Sounds like an awesome project! When you get it released be sure to let us know at #OneNoteDev.
Unfortunately, at this time there's no way to circumvent the requirement for Live Connect OAuth configuration. You could offer a hosted variant so only you need to worry about the LiveID configuration.

Developing another blog application for learning purpose

I am thinking of developing a blog application. I understand that this has already been done many times. But i like do for learning purpose.
I like to know for this kind of blog application.
What are the desired features to develop?
Some interesting features that you may want to implement are (in no particular order):
WYSIWYG editor (use one of the available like TinyMCE) for writing the posts. This is interesting for the sanitisation of input (you may/may not want your posters to be able to use certain HTML tags for instance).
upload system for images/files that you want to include in posts
support of comments with possibility of moderation
voting system for the posts
"share me" system (note in Google Reader, share on FaceBook, StumbleUpon etc etc.) (but note this :D :D)
support of tags
automatic suggestion of tags depending on the post text/title
support for multiple users with different privileges. For instance you may have various types of users (admins, posters, guests) with different privileges: admins can modify all the posts, posters only their own posts, guest can only read. Other things may include different maximum upload size for the images etc etc
implementation of linkbacks (trackbacks / pingbacks / refbacks)
I guess this is already plenty of work! Enjoy!!!
First, see the blog-in-15-minutes screencast in Ruby on Rails. This shows you the basic components and features and how to implement them, even if you do not want to use Rails.