vojtasvoboda / oc-reviews-plugin Goto Github PK
View Code? Open in Web Editor NEWReviews plugin for OctoberCMS
License: MIT License
Reviews plugin for OctoberCMS
License: MIT License
Hello! When i try to create new review in /backend/vojtasvoboda/reviews/reviews/create
there is SystemException in /modules/system/traits/ViewMaker.php line 65 with message
"The partial '_field_starrating.htm' is not found.".
If i comment this lines:
if (!File::exists($partialPath)) {
if ($throwException) {
throw new SystemException(Lang::get('backend::lang.partial.not_found_name', ['name' => $partialPath]));
}
else {
return false;
}
}
than new review is opened but without stars area. System build is 365.
Did you have such problem?
Also review is saved in DB, but not render in frontend. The piece of code is the same as plugin documentation.
Thanks for reply and mary Christmas!
Hi, vojtasvoboda.
Please help with the form, I can not even take it from the reservation plugin.
I do not know how plugins are made.
And with this complexity.
Thanks.
Hello, I have a problem with start a plugin. I added a code into my post page. I only see this: [reviews]
https://diabetyk.online/blog/post/jadlospis-dla-diabetyka-jak-drogowskaz
Hi I have just installed your plugin and so far its seems to have installed correctly and I am able to create a review and add the component to the page correctly, however, I am getting the error page when loading the /reviews page.
I looked in the logs and I am getting this error exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'syntax error, unexpected '<', expecting function (T_FUNCTION)' in /home/account/mydomain.org/mydomain/storage/cms/cache/54/34/reviews.htm.php:4
Please advise. Thanks
I'm still using version 473 of OctoberCMS and I'm using the Review plugin version 1.0.5.
Now I have seen that there is an update available to version 1.0.6.
When I try to update the plugin in the backend > System > Updates everything runs as expected at first.
A progress indicator shows that data is being downloaded. Also the message "Update successful" appears.
Unfortunately, however, I see that when I click on "Check updates" the same update is available over and over again.
Trying to insert data using a form. The following works in the sense that I can see the inserted variables after the form is submitted, but I'm getting an error upon submitting (which I cannot see with my current setup) unless I comment out the line with $reviews->storeReview
:
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
function onStart() {
$reviews = App::make('vojtasvoboda.reviews.facade');
$this["reviews"] = $reviews->getApprovedReviews();
if (isset($_POST["rating"]) && $_POST["rating"] != ""){
$rating = (int)$_POST["rating"];
if (is_int($rating) && $rating >= 0 && $rating <= 5)
$this["rating"] = $rating;
}
if (isset($_POST["name"]) && $_POST["name"] != ""){
$this["name"] = $_POST["name"];
}
if (isset($_POST["title"]) && $_POST["title"] != ""){
$this["title"] = $_POST["title"];
}
if (isset($_POST["content"]) && $_POST["content"] != ""){
$this["content"] = $_POST["content"];
}
if (isset($_POST["email"])){
$email = $this->test_input($_POST["email"]);
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$emailErr = "Invalid email format";
}
if (!isset($emailErr)) $this['email'] = $email;
}
if (!isset($emailErr) && isset($this["email"]) && isset($this["name"]) && isset($this["title"]) && isset($this["rating"]) && isset($this["content"])){
$reviews->storeReview(["name" => $this["name"], "email" => $this["email"], "rating" => $this["rating"], "title" => $this["title"], "content" => $this["content"]]);
}
}
The plugin uses .icon, .star-icon, and .star-icon-empty classes but I don't have these in my theme. Can you tell me where to get these icons?
If you can have a component to collect reviews from the visitors of the website and let the review appear after approval. If this facility is provided this review system will be flawless and will be a big hit.
We can even make or add an option of reviews collected from different pages. Just an value addition to this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.