Git Product home page Git Product logo

zeroblog's People

Contributors

acelewis avatar cxgreat2014 avatar eduardoaddad avatar hellozeronet avatar martijndeb avatar mymage avatar obv-mikhail avatar shortcutme avatar tangdou1 avatar tossp avatar unz3r0 avatar ysc3839 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zeroblog's Issues

Always show pencil icon (suggestion)

There are always new users popping up, who seem to have problems figuring out how to edit and delete posts in ZeroTalk and ZeroBlog. Many people probably don't even know they have the ability to do that. So, maybe it would be a good idea, to always show the pencil icon (not only on mouse hover).

Time BUG Report

edit post time, save, edit the same post time again, now, you can find it change to Date

Allow following particular post comments

Hello,

i am missing ability to follow certain blog post comments.
If i understand right, i can follow comments to all posts and or follow only if someone mention me in comment.

But this seems not to be enough, because following all posts comments is too broad and mentions only is too risky to miss the reactions on ones coment, because some people do not use @username in their responses.

Please consider
A) implementing follow/subscribe button to particular blog posts.
B) auto subscribe the user to the post comments when he comment the post

License

Put under a Free Software license / State a license

add more summary views, e.g. mini TOC, top5 commented list

Currently only "Latest comments" is shown.

I'd like a TOC (mini list of articles I wrote already) displayed in my blog (1).
I don't want readers to first scroll through everything, they should be at first guided by selecting the article title which sounds interesting for them.

I could create manually a TOC, but that just costs me time

(1) also a top5 commented posts view would be nice.
Let's imagine those 3 views exist (lastest comments, toc, top5): then they could be shown at first just with 1 line, and - on click - enlarged, showing their content.

Lose article content when trying to edit two articles at the same time

Open two articles in two tabs. Edit the first article, switch to markdown mode, then also edit the second article and switch to markdown mode. Return to the first article and save, then go to the second article and hit the save button. The save process will get stuck and the content of the second article gets lost. Also the home page of ZeroBlog misfunctions and can't scroll down, and it shows that the second article has 3 comments from post 23.
Quite dangerous, reproducible with new clone of ZeroBlog.
I check the data/data.json and find that body column is missing, if I add it back and sign the blog, the home page becomes normal again.
Tested with Tor browser.

Pluralization of “Comment”

Currently ZeroBlog pluralizes the word “Comment” no matter what the number of comments for a given blog entry actually is. IMHO, it would look much neater if ZeroBlog took the trouble and used the word “Comment” for when there is exactly 1 comment, and “Comments” for all other cases.

language/de.json

I wrote a "de.json" that works well. Some arguments can not translated, because the script doesn't find, although it exists.

Also i have merged index.html, dbschema.json, js/all.js, css/all.css from the "Enhanced ZeroBlog" to the normal. So i added the tags-arguments too.

Hope it helps.

{
    "Add new post": "Einen Beitrag hinzufügen",
    "Follow in Newsfeed": "Abonniere diesen Blog",
    "Username mentions": "Erwähnungen",
    "Posts": "Beiträge",
    "Post": "Beitrag",
    " post(s)": " Beiträg(e)",
    "0 Comments:": "0 Kommentare:",
    "Comments": "Kommentare",
    "Following": "Abonniert",

    "Like this post": "Gefällt mir",
    "Latest comments:": "Neueste Kommentare:",
    "Reply": "Antworten",

    "Bold": "Fett",
    "Italic": "Kursiv",
    "Strikethrough": "Durchgestrichen",
    "Code": "Code",
    "Link": "Link",
    "Type or paste link here": "Tippe oder füge einen Link hier ein",

    "**bold**": "**fett**",
    "_italic_": "_kursiv_",
    "strikethrough": "durchgestrichen",
    "- Lists": "- Listen",
    "1. Numbered lists": "Erste Liste",
    "[Links](http://www.zeronet.io)": "[Links](http://www.zeronet.io)",
    "[References][1]<br>[1]: Can be used": "[Referenz][1]<br>[1]: Kann benutzt werden",
    "&gt; Quotes": "&gt; Ziate",
    "--- Horizontal rule": "--- Horizontale Linie",

    "More comments": "Mehr Kommentare...",
    "Sign in as...": "Anmelden als...",
    "Submit comment": "Kommentieren",
    "Please sign in": "Bitte anmelden",
    "new comment": "Neuer Kommentar",
    "used: ": "Benutzt: ",

    " minutes ago": " Minuten vergangen",
    " hours ago": " Stunden vergangen",
    " days ago": " Tage vergangen",
    "on ": "den ",
    "Just now": "Gerade",
    "less than 1 min read": "Unter einer Minute zu lesen",
    " min read": " Minuten zu lesen",

    "tag:": "Stichwort:",
    "tagged:": "Stichworte:",
    "not tagged": "nicht markiert",
    "TOC by date": "Sortieren nach Datum",
    "TOC by tag": "Sortieren nach Stichwort",
    "index by date": "Sortierung nach Datum",
    "index by tag": "Sortierung nach Stichwort",
    "posts of tag:": "Beiträge nach dem Stichwort: ",
    "all untagged": "alle Unmarkierte",
    "untagged:": "unmarkiert",
    
    "Content changed": "Inhalt wurde verändert",
    "Sign &amp; Publish new content": "Anmelden und veröffentliche neuen Inhalt",

    " Editing: ": " Bearbeiten: ",
    "Save": "Speichern",
    "Cancel": "Abbrechen",
    "Delete ": "Lösche ",

    "Prev page": "Vorherige Seite",
    "Next page": "Nächste Seite",

    "Not found": "Nicht gefunden",
    "Content changed": "Inhalt wurde verändert",
    "Are you sure you sure to delete this Post?": "Bist du sicher, diesen Beitrag zu löschen?"
}

Imageboardmorphing

Is it possible to add some feauters to make zeroblog engine looks like imageboard (with some deal with config maybe, to hold other main functionality):

  • Comments with formating and images (or even blog-post functionality)
  • Hide nicknames (optional)

MathJax (external JS library) not being loaded

Following my recent issue with the nonce error, I tried loading MathJax from a CDN instead of having it in the directory locally. Good news: I do not get that "forbidden nonce" error anymore: Bad news: I have to refresh the site about a dozen times to occasionally see the effects of MathJax. Most of the time the blog displays the ugly commands instead of transforming them into mathematical symbols.

I get "\frac{dx}{dt}" instead of the symbols.

Furthermore it seems that the blog likes to eat the markdown signs. Instead of ##Headline2 I will sometimes have #Headline2 but sometimes the Headline2 is still in its original size as it should be, not as Headline1 as one would expect.

Could those two issues be related? The engines eats format commands and MathJax then finds nothing to layout correctly?

If site desc have not ascii code, when edit post fileWite will show a error.

all.js:2242 Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
at Object. (http://127.0.0.1:43110/1D6Tq62hPwnbKFEuwugGXCmsma4u9DDqKJ/js/all.js:2242:58)
at ZeroBlog.ZeroFrame.onMessage (http://127.0.0.1:43110/1D6Tq62hPwnbKFEuwugGXCmsma4u9DDqKJ/js/all.js:1273:45)
at http://127.0.0.1:43110/1D6Tq62hPwnbKFEuwugGXCmsma4u9DDqKJ/js/all.js:1237:61

Space used by user isn't precise

For some reason, the same count shows differently on different peers/browers:
USED: 3.0K/15K
USED: 2.5k/15k
USED: 2.9k/15k

Messages are displayed exactly the same way, but sizes differ, which is weird.

Content signing failed Include too large 20302B > 10000B

This happens on all the posts already created for which I try to comment on.
Any idea why that happens?

Not happening on new posts... Which are under the Include too large 10000B limit.
How to raise it?

Upgraded ZeroBlog code. Still not working
127.0.0.1:43110/1DMb3CV66qZPwJqkgm4z12nu8BrAwDoD4g/

Need an easier method of fighting "spam"

There needs to be an easier way to combat spam from the perspective of the site owner. The possibility of a site owner being able to hover over a link (next to the "reply" link) that only shows up to the site owner that says "Moderate" that either deletes the comment or hides the comment from displaying.

Import popular CMS like Wordpress database into ZeroBlog

Hello, i was thinking if this feature can be created.

Zeroblog will parse the export file like Wordpress (most popular clearnet blogging content management system) .xml or .sql database file itself to import the clearnet blog contents into zeroblog

Here also is the feature described in detail. Thank you

I can't upload blog on mac

My router using UPnP,over the same WIFI, I can write blog and upload successfully,but it doesn't work on Mac

Idea] Edit the icon

Hi,

Is it possible to add a function to easily edit the main icon/picture of a ZeroBlog (in top left of the screen) ?

comment in own blog is not distributed to peers (File invalid)

SEVERITY:
I can see my comment (0) being published in UI, and I would then normally do nothing anymore,
while the guy to whom I replied would think I don't reply.

DETAILS:
noticed this here (1) first (but later I saw this also happened at other blog posts of mine):
I. I got at first a "content publish error" while posting a comment
II. but later on I retried and the UI told me publishing my comment worked
III. BUT: in the command line I see (2)

see here (3) what else I tried
This issue is ongoing since at least 15h
using ZeroNet v0.3.6 (rev1038)

(0) e.g. I see it in the comments section, the "Latest comments" section, in the newsfeed on Home
(1) http://127.0.0.1:43110/zeroblog.bit/?Post:15
(2)
07:18:55] Site:1HR2mJ..XZKV Opening site data directory: data/1HR2mJHeC1vs3XTTcX2X6BDcdRZZDNXZKV/data/users/1H8oKiRa7fGgUqS1hpUtaSYLvAqkaknbkf/...
[07:18:55] Site:1HR2mJ..XZKV - [SKIPPED] content.json
[07:18:55] Site:1HR2mJ..XZKV - data.json (SHA512: 5c2fb55a09d323bed5f18fe099dc04f8c5d15f5a06fe88e390d29d97a19e0a61)
[07:18:55] Site:1HR2mJ..XZKV Adding timestamp and sha512sums to new content.json...
[07:18:55] Site:1HR2mJ..XZKV Verifying private key...
[07:18:55] Site:1HR2mJ..XZKV Correct 1H8oKiRa7fGgUqS1hpUtaSYLvAqkaknbkf in valid signers: [u'1H8oKiRa7fGgUqS1hpUtaSYLvAqkaknbkf', u'1HR2mJHeC1vs3XTTcX2X6BDcdRZZDNXZKV']
[07:18:55] Site:1HR2mJ..XZKV Signing data/users/1H8oKiRa7fGgUqS1hpUtaSYLvAqkaknbkf/content.json...
[07:18:55] Site:1HR2mJ..XZKV Saving to data/users/1H8oKiRa7fGgUqS1hpUtaSYLvAqkaknbkf/content.json...
[07:18:55] Site:1HR2mJ..XZKV File data/users/1H8oKiRa7fGgUqS1hpUtaSYLvAqkaknbkf/content.json signed!
[07:18:55] Site:1HR2mJ..XZKV Publishing data/users/1H8oKiRa7fGgUqS1hpUtaSYLvAqkaknbkf/content.json to 5/34 peers (connected: 16)...
[07:18:55] Site:1HR2mJ..XZKV [FAILED] 213.239.217.18:15441: {'to': 48, 'cmd': 'response', 'error': 'File invalid'}
[07:18:55] Site:1HR2mJ..XZKV [FAILED] 37.228.132.110:15441: {'to': 18, 'cmd': 'response', 'error': 'File invalid'}
[07:18:55] Site:1HR2mJ..XZKV [FAILED] 24.2.184.216:15441: {'to': 62, 'cmd': 'response', 'error': 'File invalid'}
[07:18:55] Site:1HR2mJ..XZKV [FAILED] 217.157.137.157:15441: {'to': 29, 'cmd': 'response', 'error': 'File invalid'}
[07:18:56] Site:1HR2mJ..XZKV [FAILED] 45.55.182.168:15441: {'to': 38, 'cmd': 'response', 'error': 'File invalid'}
[07:18:56] Site:1HR2mJ..XZKV [FAILED] 212.83.179.85:15441: {'to': 9, 'cmd': 'response', 'error': 'File invalid'}
[07:18:56] Site:1HR2mJ..XZKV [FAILED] 181.29.187.76:15441: {'to': 23, 'cmd': 'response', 'error': 'File invalid'}
[07:18:56] Site:1HR2mJ..XZKV [FAILED] 5.101.103.222:15441: {'to': 31, 'cmd': 'response', 'error': 'File invalid'}
[07:18:56] Site:1HR2mJ..XZKV [FAILED] 5.135.85.130:15441: {'to': 61, 'cmd': 'response', 'error': 'File invalid'}
[07:18:56] Site:1HR2mJ..XZKV [FAILED] 91.121.223.191:15441: {'to': 16, 'cmd': 'response', 'error': 'File invalid'}
[07:18:56] Site:1HR2mJ..XZKV [FAILED] 188.166.24.142:15441: {'to': 15, 'cmd': 'response', 'error': 'File invalid'}
[07:18:56] Site:1HR2mJ..XZKV [FAILED] 122.128.96.4:15441: {'to': 12, 'cmd': 'response', 'error': 'File invalid'}
[07:18:57] Site:1HR2mJ..XZKV [FAILED] 74.96.117.180:15441: {'to': 17, 'cmd': 'response', 'error': 'File invalid'}
[07:18:57] Site:1HR2mJ..XZKV [OK] 5.135.85.130:15441: File update queued 1/5
[07:18:57] Site:1HR2mJ..XZKV [FAILED] 190.225.207.216:15441: {'to': 20, 'cmd': 'response', 'error': 'File invalid'}
[07:18:57] Site:1HR2mJ..XZKV [FAILED] 83.162.192.96:15441: {'to': 2, 'cmd': 'response', 'error': 'File invalid'}
[07:18:57] Site:1HR2mJ..XZKV [FAILED] 88.126.60.75:15441: {'to': 2, 'cmd': 'response', 'error': 'File invalid'}
[07:18:58] Site:1HR2mJ..XZKV [FAILED] 94.23.219.229:15441: {'to': 1, 'cmd': 'response', 'error': 'File invalid'}
[07:19:00] Site:1HR2mJ..XZKV [FAILED] 45.55.157.230:15441: {'exception': 'Timeout'}
[07:19:01] Site:1HR2mJ..XZKV [FAILED] 82.119.233.36:15441: {'exception': 'Timeout'}
[07:19:01] Site:1HR2mJ..XZKV [FAILED] 95.37.53.27:15441: {'to': 15, 'cmd': 'response', 'error': 'File invalid'}
[07:19:02] Site:1HR2mJ..XZKV [OK] 74.96.117.180:15441: File update queued 2/5
[07:19:02] Site:1HR2mJ..XZKV Successfuly data/users/1H8oKiRa7fGgUqS1hpUtaSYLvAqkaknbkf/content.json published to 2 peers, publishing to 5 more peers in the background

(3) http://127.0.0.1:43110/zeroblog.bit/?Post:33

Maquette?

Should this be converted to use maquette like ZeroMail?

Serve Site-Specific Favicon

Was hoping to get dynamic favicon files served by the UiServer. I've created a tentative commit but am not sure I'm using the right approach.

I've removed the lines where UiRequest blindly serves the standard ZeroNet favicon and added an attempt to retrieve the favicon from content.json.

I've also changed the wrapper template to take a favicon variable and add the appropriate header link tag.

I would appreciate it if you could look it over, critique it, and (if acceptable) I'll create the PR for it.

File write error: [object Object]

v. 0.6.0 rev3177
Windows 10
Latest FIrefox

i tried to publish comment at http://127.0.0.1:43110/zeroblog.bit, but getting errors "File write error: [object Object]". Already tried to delete site and revisit, reload page.
At other blog commenting works good.

The console shows these errors:

[17:57:35] Site:1ZeroA..D7YH data/users/1L4dZcD***/data.json fileGet error: [Errno 2] No such file or directory: u'data/1ZeroABd9***/data/users/1L4d***/data.json'
[17:57:35] Site:1ZeroA..D7YH FileWrite forbidden 1L4dZcD*** not in valid_signers [u'1ZeroABd9***']

Need help on how to decrease my website Load time

hello guys

need suggestions on how to speed up website load time. on google speed test we have following results for my wesbite

https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fpropliners.in%2F

Reduce initial server response time
1.88 s
Remove unused JavaScript
0.75 s
Remove unused CSS
0.45 s
Defer offscreen images
0.3 s

the above mentioned are the main factor.
i am using wordpress, using autoptimize plugin but load time is still high.

Can't edit comments in Chrome

If I submit a comment then click edit button, the page becomes that.
edit
Platform: Windows 10, 57.0.2979.0 dev
I can edit the comment normally in Firefox. And If I edited the comment in Firefox, the comment will be editable in Chrome.

how to set blog post locale ?

i see that the interface supports few languages but there is no way per blog post to set locale is such a feature planed ?

Make ZeroBlog mobile-friendly.

There are numerous forks of ZeroBlog that are.

You should also add

"viewport": "width=device-width, initial-scale=0.8, user-scalable=0",

to content.json

Need better instructions to install ZeroBlog. Currently ZeroBlog doesn't install from git.

Your instructions ask to clone the 1BLog... site. But users should be able to install from git too, because that's how software is usually installed. There are also problems in instructions like there is no file default.json-default that instructions mention.

I am trying to write a script to clone from git, but it fails for unclear reason. zeronet siteSign skips data/users/content.json for some reason.

cd data/{your-new-site}
git clone https://github.com/HelloZeroNet/ZeroBlog.git &&
mv ZeroBlog/* . &&
rm -rf ZeroBlog &&
mv data-default data &&
mv data/users/content-default.json data/users/content.json
perl -pi -e "s/1BLogC9LN4oPDcruNz3qo1ysa133E9AGg8/`pwd | sed -e 's/.*\///g'`/g" content.json &&
perl -pi -e "s/\"domain.*//g" content.json &&
perl -pi -e "s/\"files\": \{\},/\"files\": {}, \"inner_path\": \"data\/users\/content.json\",/g" data/users/content.json

I think you need to make instructions to create a new blog easier, and they should start from "git clone". It is best to have a script cloning the github repository. You probably also want to remove "domain": "Blog.ZeroNetwork.bit" from contents.json because only you own it, and most people probably will not register a domain.

Zoomed Image is in poor quality in both Firefox and Chrome

Solution:
remove the related css code of .zoom-img inside ZeroBlog.css

.zoom-img {
	filter: none; -webkit-filter: blur(0px); -moz-filter: blur(0px); -ms-filter: blur(0px); filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='0');
	backface-visibility: hidden; transform: translateZ(0); image-rendering: optimizeSpeed;
}

Reference: https://stackoverflow.com/questions/9945363/image-scaling-causes-poor-quality-in-firefox-internet-explorer-but-not-chrome

Link title in sidebar markup breaks blog

In order to save sidebar estate I put a link title in the markup of the sidebar links:

- [[email protected]](/mail.zeronetwork.bit/?to=example "Drop me a line")

But that rendered the blog almost useless to me: While I could still post comments, I couldn't add new post, nor could I edit existing posts.
The browser's debug console said (I'm paraphrasing here): “all.js: unexpected token: D”

When I removed the link titles, everything went back to normal.

It is worth noticing that using link titles in the body text of blog entries works like expected.

How to use it?

I created the site siteCreate
I saved public and private key => yes
I copied all data of 1Blog... to my new site's data/1vkxtW1mwAKdkZFjQsb1oVmdrqLWJDRQp
I copied data/1vkxtW1mwAKdkZFjQsb1oVmdrqLWJDRQp/data-default.json to data.json
I changed within data.json my site's title and description, edit even the first blog post there
I added the site to data/sites.json as:
"1vkxtW1mwAKdkZFjQsb1oVmdrqLWJDRQp": {
"auth_key": "xxxxxx",
"own": true,
"permissions": [],
"serving": true,
"wrapper_key": "xxxxx"
},

I signed it again
I started ZeroNet and see the newly blog.
I add a new blog entry and edit (click on the special sign) the headline. I save it! (right lower corner of the screen (did not find that before)
The file data.json got the new blog entry!

Hmm, and HOW can I change the Blog post body???

"Forbidden. Wrapper nonce error" when switching to markdown in blog

Got this persistent issue today. I click on the "switch to markdown" button on the right side while editing a blog post and the above mentioned site and error pops up.
Full disclosure: I am currently trying (and failing) to get MathJax to interpret some formulas in the post. Installation is local, however because of the huge size of MathJax I had to set the size limit quite high, maybe this influences this error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.