This content was deleted by the author. You can see it from Blockchain History logs.

Steempress developer update #1

First of all I'd like to thank you all for your feedback on the introduction post. It has helped us a lot to

As we are nearing the official release of the v1 for SteemPress I thought I'd post a small update on what features have already been done and show you the code for them.

banner.png

This is a new format that I'm trying out. If you don't code you can just sit back and read the features added without going all the way down to github to read the code that goes along with it.

Overhaul of the namespaces

In order to be compliant with the official worpdress guidelines I changed all the namespaces from "sp" to "steempress_sp".

You can see all the changes on this commit : https://github.com/drov0/steempress/commit/6c1420a7655e93d35e826e80d81f7e5549ad309e

I changed most of the function and class names to fit to this new standard.

Connection tester

We don't want the plugin to fail silently, and some people had issues connecting to the backend steem server, so I added a small tester to the settings page so that people can see if it fails or not, it's achieved by trying to do a post request to the backend steem server.

The code for this feature is here : https://github.com/drov0/steempress/blob/7246c4049587d023659e13ee6dd59436140b75df/admin/partials/steempress_sp-admin-display.php#L80

New domain name, port and SSL

In the continuity of the connection test, I changed the backend server's domain to use ssl and I now use the port 80 instead of 81. This should improve security drastically as well as let more people connect to the server without an issue.

Changes can be seen in this commit : https://github.com/drov0/steempress/commit/21a41f5ed17a67311d9fce13d5a69bc9dfca0426#diff-2167dcde665fe066922fee8791936e5fL54

Line 54 of admin/partials/steempress_sp-admin-display.php

Original link option

This is an optional feature that allows people to add a link to their blog at the bottom of the published article. This was done by getting the url of the wordpress article via the plugin and then sending it to the steem backend so he can append it at the end of the article.

Code can be seen here : https://github.com/drov0/steempress/blob/7246c4049587d023659e13ee6dd59436140b75df/admin/class-steempress_sp-admin.php#L195

Auto vote option

Another optional feature : When publishing an article you can automatically upvote it as it goes on steem. This is done by adding a checkbox to the setting pages and then sending to the backend server that we want to upvote the article that has been posted just now.

The code for the checkbox is here :
https://github.com/drov0/steempress/blob/7246c4049587d023659e13ee6dd59436140b75df/admin/partials/steempress_sp-admin-display.php#L71

And we send it to the main server here :
https://github.com/drov0/steempress/blob/7246c4049587d023659e13ee6dd59436140b75df/admin/class-steempress_sp-admin.php#L200



Posted on Utopian.io - Rewarding Open Source Contributors