WebsiteBaker Community Forum

WebsiteBaker Support (2.10.x) => Modules => Topic started by: Ruud on June 28, 2017, 04:20:46 PM

Title: New module: Reviews for WebsiteBaker
Post by: Ruud on June 28, 2017, 04:20:46 PM
Just added the new module "Reviews" to my website.
https://dev4me.com/modules-snippets/opensource/reviews/

This WebsiteBaker module allows you to add reviews to any page (Standard pages, News articles, Bakery or OneForAll items).
Also a 5star rating system is available, including automatic "Rich snippet" generation to show the rating in Google.
Visitors can also vote for previous reviews..

(https://dev4me.com/media/reviews/example.jpg)

(https://dev4me.com/media/reviews/bakery.jpg)

Have fun with it.
Title: Re: New module: Reviews for WebsiteBaker
Post by: johnbroeckaert on June 28, 2017, 04:52:45 PM
You are very productive at the moment and.... All these modules are very useful

THANKS AGAIN!!
Title: Re: New module: Reviews for WebsiteBaker
Post by: dbs on June 28, 2017, 05:44:59 PM
Nice idea. Thanks Ruud.  (Y)

In my first test the stars breaks (last star in the next line), because the label ist longer as in your tests.
The span for stars could be have a fixed width.
Title: Re: New module: Reviews for WebsiteBaker
Post by: Hans on June 28, 2017, 09:59:28 PM
Thanks Ruud.
Gonna try this asap!
Title: Re: New module: Reviews for WebsiteBaker
Post by: dbs on September 25, 2017, 11:26:00 AM
Hello, user astricia has a DE.php provided
https://forum.WebsiteBaker.org/index.php/topic,30502.msg212611.html#msg212611
Title: Re: New module: Reviews for WebsiteBaker
Post by: Ruud on September 26, 2017, 05:09:05 PM
Released v1.2 with German and Dutch translations (and some other minor fixes)

Info & download: https://dev4me.com/modules-snippets/opensource/reviews/
Title: Re: New module: Reviews for WebsiteBaker
Post by: zirzy on September 27, 2017, 09:58:56 AM
Gr8 work Ruud, again!

If someone needs a Finnish translation in this module, I can do it for them  :wink:
Title: Re: New module: Reviews for WebsiteBaker
Post by: crnogorac081 on September 27, 2017, 11:08:04 AM
Ruud,

this module is awesome !
Title: Re: New module: Reviews for WebsiteBaker
Post by: dbs on October 19, 2017, 08:53:01 PM
Hi, i copied the template reviews_default_fon tawsome.htt and renamed it to reviews_small.htt, cleared the cache.
But i can't find it in the dropdown.
No comments on the page.

What is the secret?  :-)
Title: Re: New module: Reviews for WebsiteBaker
Post by: Ruud on October 19, 2017, 11:03:39 PM
The template uses two parts.

reviews_*.htt must also have the same container_*.htt
So copy a container_small.htt and it should be in the dropdown.

(I know, I need to work on the help pages :roll:)
Title: Re: New module: Reviews for WebsiteBaker
Post by: dbs on October 20, 2017, 09:22:18 PM
Thanks, that did it.  (Y)
Title: Re: New module: Reviews for WebsiteBaker
Post by: Ruud on February 04, 2018, 11:05:32 PM
Released v.13
Download: https://dev4me.com/modules-snippets/opensource/reviews/

Added the option to allow administrators to reply on comments.
(The user must be logged-in, and be a member of the administrators group.)

(https://dev4me.com/media/reviews/replies.jpg)

Warning: if you modified templates and/or frontend files, make backups first so you can restore/merge them after upgrading.
Title: Re: New module: Reviews for WebsiteBaker
Post by: Ruud on February 08, 2018, 11:06:54 AM
Released v1.3.1 (bugfix)
Download: https://dev4me.com/modules-snippets/opensource/reviews/

Bug (fixed): The administrator comments were automatically deleted after 48 hours because they are never "confirmed" by email.
Title: Re: New module: Reviews for WebsiteBaker
Post by: dbs on February 08, 2018, 11:23:23 AM
Sounds funny  :-)
Thanks for that.
Title: Re: New module: Reviews for WebsiteBaker
Post by: gemnb on February 08, 2018, 11:57:10 AM
I found some bugs in the install.php script - mod_review_types (regarding STRICT mode):

TEXT NOT NULL DEFAULT '',

must be

TEXT NOT NULL,
Title: Re: New module: Reviews for WebsiteBaker
Post by: Gast on February 08, 2018, 01:01:48 PM
and maybe, it's possible to replace the old deprecated double language index like
save.php Ln 34
Code: [Select]
$MESSAGE['PAGES']['SAVED']
with

Code: [Select]
$MESSAGE['PAGES_SAVED']
if i click on the button  "Profil verwalten"
Quote
2018-02-08T12:02:44+00:00 [E_WARNING] \framework\class.database.php:[108] from \modules\reviews\reviews.class.php:[105] database->get_one "mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given"

P.S.: i use PHP 7.2.x
Title: Re: New module: Reviews for WebsiteBaker
Post by: Ruud on February 08, 2018, 01:48:04 PM
@genmb
You are totally right, fixed (also some strict-mode errors in save.php).

@jacobi22
both issues fixed

Thanks both for testing and reporting.

released v1.3.2
https://dev4me.com/modules-snippets/opensource/reviews/
Title: Re: New module: Reviews for WebsiteBaker
Post by: dbs on February 09, 2018, 01:13:34 PM
Works, thanks  (Y)

The reviewers email shows some entities in subject and content (but not in blue title).
http://prntscr.com/icbude
Title: Re: New module: Reviews for WebsiteBaker
Post by: Gast on February 09, 2018, 04:04:16 PM
Charset... there is no Charset in the Mail-Source Text

for the page  "add profile"
i get a mysql-error for every empty field (if i dont use every field), specially in the 5 Question's

tip: if a field has no content, set it in your INSERT as empty content
Title: Re: New module: Reviews for WebsiteBaker
Post by: Ruud on February 13, 2018, 04:12:35 PM
Released v1.4.0

- added email notification to reviewer on administrator comments
- bugfix - Adding a profile failed in Mysql strict mode (thnx jacobi22)
- bugfix - set charset to utf-8 for email with non-latin characters (thnx jacobi22 / dbs)

Download: https://dev4me.com/modules-snippets/opensource/reviews/
Title: Re: New module: Reviews for WebsiteBaker
Post by: astricia on April 11, 2018, 11:40:14 AM
I am using "Reviews" for a website, which also has a blog function - reviews is for the comments to the blog. With the new dataprotection law (DSGVO) coming up in Germany (May 25), comment functions in blogs MUST include a checkbox, where the commenting person actively accepts the privacy policy. How do I set this up with reviews??? Please adivse.

Thanks,
Astricia
Title: Re: New module: Reviews for WebsiteBaker
Post by: Ruud on April 11, 2018, 01:13:26 PM
Just including a checkbox is not that hard..

Just edit the modules form_default.htt template (or any other template you might use as a form) and add a html5-required checkbox. You could also add some javascript logic to prevent (very) old browsers to respect the required tick.

If the given consent must be stored in some way I am afraid it is just not possible in the current version.