Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Incluído plugin social login #19 #20

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

### Instalação

#### Produção
#### Produção

Com o WordPress instalado baixe o [tema na versão mais recente](https://github.com/PHPSP/phpsp-blog-theme/releases) e instale pelo gerenciador de temas do WordPress.

Expand Down Expand Up @@ -63,6 +63,21 @@ O Painel Administrativo poderá ser acessado em http://blog.phpsp.dev.
* [Disqus Comment System](https://wordpress.org/plugins/disqus-comment-system/)
* [Crayon Syntax Highlighter](https://wordpress.org/plugins/crayon-syntax-highlighter/)
* [Event Organiser](http://wordpress.org/plugins/event-organiser/)
* [Social Login](https://wordpress.org/plugins/oa-social-login/)

### Configurando o Social Login

1. Crie uma conta no site [OneAll](https://app.oneall.com/signin/)
2. Adicione um novo Site e guarde as infromações Subdomain, Public Key e Private Key.
![Alt text](/oneall-api-credentials.png?raw=true "Informações OneAll")
3. Configure o Plugin na aba **Social Login** do Wordpress (Seção API Settings),
com as informações acima.
![Alt text](/oneall-wp-api-settings.png?raw=true "Configuração Social Plugin")
4. Habilite o plugin para usar o GitHub como identity provider.
5. Registre a aplicação no GitHub (Developer applications) para usar GitHub API com
a conta do OneAll criada no passo 2.
register-app-github.png
![Alt text](/register-app-github.png?raw=true "Registro app GitHub")

### Bugs

Expand All @@ -77,4 +92,3 @@ Você também pode [abrir um Pull Request](https://github.com/PHPSP/phpsp-blog-t
### Licença

![Licença Creative Commons](http://i.creativecommons.org/l/by-nc-nd/3.0/88x31.png)

17 changes: 16 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.2.0-dev" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho que aqui ainda era 1.2.0-dev, é a versão do tema (http://semver.org)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usando o build.xml com "> -"

Eu estava tendo o erro abaixo quando rodava o phing:

rodrigo@rodrigo-pc:~/projects/vagrantpress-master/wordpress/wp-content/themes/phpsp-blog-theme$
phing
Buildfile:
/home/rodrigo/projects/vagrantpress-master/wordpress/wp-content/themes/phpsp-blog-theme/build.xml

BUILD FAILED
/home/rodrigo/projects/vagrantpress-master/wordpress/wp-content/themes/phpsp-blog-theme/build.xml:1:19:
XML declaration not finished
Total time: 0.1061 seconds

Por isso eu mudei para 1.0, que vi nesse exemplo:
http://www.phing.info/trac/browser/docs/example/build.xml?rev=e1a3b0a82597dc1e5ebd0d21219efb7f3b5cf188

On Fri, Oct 31, 2014 at 9:11 AM, Rogerio Prado de Jesus <
notifications@github.com> wrote:

In build.xml:

@@ -1,4 +1,4 @@
-
+

Acho que aqui ainda era 1.2.0-dev, é a versão do tema (http://semver.org)


Reply to this email directly or view it on GitHub
https://github.com/PHPSP/phpsp-blog-theme/pull/20/files#r19661357.

Rodrigo Prado de Jesus
http://about.me/royopa
royopa@gmail.com

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, faz sentido. Não deve ser a versão do projeto, mas sim a versão da marcação XML!

Blz!

<project name="phpsp"
default="main"
basedir="."
Expand Down Expand Up @@ -37,11 +37,26 @@
command="curl http://downloads.wordpress.org/plugin/event-organiser.latest-stable.zip -o '${plugindir}event-organiser.latest-stable.zip'" />
<unzip file="${plugindir}event-organiser.latest-stable.zip" todir="${plugindir}" />

<exec
escape="false"
passthru="true"
checkreturn="true"
command="curl https://downloads.wordpress.org/plugin/oa-social-login.4.6.zip -o '${plugindir}oa-social-login.4.6.zip'" />
<unzip file="${plugindir}oa-social-login.4.6.zip" todir="${plugindir}" />

<exec
escape="false"
passthru="true"
checkreturn="true"
command="curl https://downloads.wordpress.org/plugin/oa-social-login.4.6.zip -o '${plugindir}oa-social-login.4.6.zip'" />
<unzip file="${plugindir}oa-social-login.4.6.zip" todir="${plugindir}"></unzip>

<fileset dir="${plugindir}" id="deleteFiles">
<include name="wp-no-category-base.zip" />
<include name="disqus-comment-system.2.77.zip" />
<include name="crayon-syntax-highlighter.zip" />
<include name="event-organiser.latest-stable.zip" />
<include name="oa-social-login.4.6.zip" />
</fileset>

<delete>
Expand Down
Binary file added oneall-api-credentials.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added oneall-wp-api-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added register-app-github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.