Page 1 of 2

Blog Plugin for WonderCMS 3.0.0

Posted: Thu Aug 15, 2019 2:58 pm
by StephanStanisic
Hi all!

This is a alpha version of the blog plugin that I've been working on today.

It does things a lot different that the previous attempts on creating a blog plugin (by the community).
This plugin has it's own database (not sure if that is the best solution yet), and with this you can keep the pages.

Take a look: https://www.blog.wonder.stanisic.nl/

Only for WonderCMS 3.0.0 (make sure to have a new copy of dev-3.0.0, see viewtopic.php?f=17&t=1255)

Image
Image
Image

Todo:
- Remove blog posts
- More? Open github issue.

Github: https://github.com/StephanStanisic/plugin-simpleblog

Re: Blog Plugin for WonderCMS 3.0.0

Posted: Sat Aug 24, 2019 8:53 am
by wiz
Good work Stephan, really glad to see an apha of something being wanted for so long by the community.

1. I think I've managed to find a bug, when trying to create a new post (with WonderCMS installed in a subfolder), the incorrect path is called, returning in a 404 post:
Request URL:https://www.example.com/plugins/simpleblog/new.php
should be
Request URL:https://www.example.com/wcms-installed- ... og/new.php
Similar thing when trying to save content inside a blog post. Possibly a slug function issue?

2. Currently (security wise), you only check if the user is logged in. I would add the token check as an additional measure, to prevent phishing an admin by clicking on a shortened url that would take him to domain.com?new.php&page=something
Code snippet to help you out.

Code: Select all

$this->hashVerify($_POST['token'])
I would include the above anywhere there's a post.

Other than the above and the things you mentioned (deleting). I'm guessing the next most searched thing for this would be "search" for the blog section. I'll see if there's anything valuable I can produce. :)

I'll post the issues on GitHub.

Awesome work Stephan!

Re: Blog Plugin for WonderCMS 3.0.0

Posted: Fri Nov 08, 2019 12:19 pm
by turboblack
where exactly can I download the repository for which it all works? because I have version 3.00 and it doesn’t work for both local and hosting (I check on several at once). the plugin installs but nothing happens.

Re: Blog Plugin for WonderCMS 3.0.0

Posted: Fri Nov 08, 2019 10:18 pm
by wiz
You can download the latest 3.0.0 version from: https://github.com/robiso/wondercms/arc ... l3.0.0.zip

After you download and unzip - login to your website and open Settings->Plugins.
From the list select "simple blog".

If the above doesn't work for you, please let me know what version of PHP you are using.

Re: Blog Plugin for WonderCMS 3.0.0

Posted: Sat Nov 09, 2019 9:49 am
by turboblack
I had the version that you threw off to me in the summer. I thought it was her. it was also called 3.0.0)))

Re: Blog Plugin for WonderCMS 3.0.0

Posted: Sat Nov 09, 2019 10:48 pm
by wiz
It's about time we start increasing the number. :D

Re: Blog Plugin for WonderCMS 3.0.0

Posted: Mon Nov 11, 2019 8:42 am
by turboblack
such corrections are needed:
the editor does not see the editing area on the blog.
when updating the plugin, the blog base is reset, the data must be re-entered

Re: Blog Plugin for WonderCMS 3.0.0

Posted: Fri Nov 15, 2019 7:53 am
by wiz
Thanks for the report turbo.

We already know about the editor, however the database being reset is something new. Will report and thanks again.

Re: Blog Plugin for WonderCMS 3.0.0

Posted: Sun Nov 17, 2019 1:47 pm
by wiz
The bug with the blog database being reset is now fixed.

Login to your WonderCMS website and click "Check for updates" to see the new plugin update.

Re: Blog Plugin for WonderCMS 3.0.0

Posted: Tue Nov 19, 2019 10:14 am
by turboblack
Fatal error: Uncaught Error: Cannot access protected property Wcms::$dataPath in C:\xampp1\htdocs\3\plugins\simple-blog\class.SimpleBlog.php:25 Stack trace: #0 C:\xampp1\htdocs\3\plugins\simple-blog\simple-blog.php(7): SimpleBlog->__construct(true) #1 C:\xampp1\htdocs\3\index.php(1022): include('C:\\xampp1\\htdoc...') #2 C:\xampp1\htdocs\3\index.php(120): Wcms->loadPlugins() #3 C:\xampp1\htdocs\3\index.php(15): Wcms->init() #4 {main} thrown in C:\xampp1\htdocs\3\plugins\simple-blog\class.SimpleBlog.php on line 25