jonathangallo
Forum Replies Created
-
Forum: Plugins
In reply to: [Site Reviews] Dynamically order pages based on ratingMan, you really have a solution to everything, thank you so much! I’ve rated two pages, one with 3 reviews and one with 1 review and what surprised me positively was that it included all the reviews in both languages. And on top of that, it links to the current languages’ page.
The only thing that differs is that in the Swedish page, only the page with 3 reviews is showing up, not the other one. I used the same post grid and also created a new one based on the category name in Swedish, still the same. But this is maybe something in Post Grid I should look up..
Update:
So I submitted the 2nd review (in Swedish) to this page that won’t show up and suddenly it showed up in the Swedish top list page as well. But the strange thing is that they have different order in Swedish and English page. So I’m starting to suspect that the language is related to this behaviour.- This reply was modified 6 years, 8 months ago by jonathangallo.
Forum: Plugins
In reply to: [Site Reviews] Dynamically order pages based on ratingRegarding the these two plugins, which I prefer before WP_Query, is it possible to show the stars and average rating together with the page displayed?
Content Views – can you even get and order pages by ratings? I can’t seem to find this setting anywhere.
Post Grid seems to be the one working best, since I tried both _glsr_average and _glsr_ranking, but when I reset all reviews, the pages that had reviews are still there. Is it because the reviews have not been synced yet? Because I removed all the reviews for all pages and I still got 4 pages showing up. When I add a review to the 5th page, it is now displayed in the grid but together with the 4 other pages without reviews.
- This reply was modified 6 years, 8 months ago by jonathangallo.
Forum: Plugins
In reply to: [Site Reviews] Dynamically order pages based on ratingThanks! I actually looked at those topics that included sorting by rating, but it was so much information and the users had different plugins, and I didn’t really understand where to put the code. That’s why I started a new topic since I have the following scenario:
It should be a page that lists all the pages that have at least one rating, and if possible, I would like to customize these “pages” to show the title, image, and it should also be clickable with an URL. Is this even possible? If not, I am okay with a page that lists all pages based on the highest ratings first.
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not working@jonathangallo If you mean to allow users to change their reviews on your front-facing website, then you will need to add the front-end functionality yourself as Site Reviews does not provide a way to do this.
I suspected that. It is quite a complex function compared to how the submit actually works. But no problems, it was just a low priority function I had.
Regarding the update, I’ll definitely take a look at it!
Forum: Plugins
In reply to: [Site Reviews] Hide custom fields in review widget when emptyWorked perfectly! As always, thank you for the quick response!
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not workingI don’t really know if this is what I’m looking for. I’m thinking like this – for parent pages (I will try to detect this with code), it would be nice if the user who sumbits a review have the opportunity to change stars and review text, basically update the review like in Google. Of course I will have to remove the functionality to hide the form on these parent pages. Do you think this is doable somehow?
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not workingI figured it out regarding language detection and display message, thanks anyway! This will help me incredibly much!
I will look further in the forum if I find any function where you have the chance to change your existing review (stars).
- This reply was modified 6 years, 8 months ago by jonathangallo.
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not workingThe code works perfect, thank you again!
Yes I saw the message in the hook, changed it to Swedish. Now I will try my noob PHP skills (I’m a C#/JavaScript guy) to detect the current language so it will translate the message in the hook into English. Maybe I can use/extend the existing code snippet? 🙂
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not workingThank you!
I updated the code and could submit more than once. But then, I approved one of the reviews and the form was hidden with the message “Thank you for your review” the next time I loaded the page. This is the correct behaviour right?
Sorry if I’m annoying with all my question, but do you think I can have this functionality even if a reviews isn’t approved yet? So now for example I have 5 reviews from this user, where one of them is approved, which means he can’t submit again.
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not workingThank you, but still same as before 🙁 I can submit multiple reviews with a non-admin account
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not workingThank you for the quick feedback! 🙂
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not workingExactly, I used a normal user to try this. Is the code from step 3 preventing multiple reviews from a user? I can’t find such a error message like in the code that looks for email/ip address.
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not workingThat was actually the last thing I tried. I submit a review, the form disappears and the success message is showing up. I refresh the page and submit a review again on the same page and same thing happens and I can see the second review in admin panel. Is there a way I can debug the PHP-code?
Forum: Plugins
In reply to: [Site Reviews] Prevent multiple submissions by email address not workingThank you for the different solutions.
I tried with the last one (3), but I was still able to vote multiple times (normal user). And I am assigning the review to the current page. What I want to accomplish in this website is that every logged in user only can vote once for each page, I guess the code snippet above does this right? It’s just me who doesn’t make it work somehow. Now that I think about it, you can actually change email address, could you somehow look at the user ID instead? I want it to be unique.
Regarding the second one, I like the opportunity to hide the form when you submit, but is there any code snippet to hide it when I refresh or re-visit the page again (in page load)? Instead of displaying the message after I click on Submit button?
@tobifjellner sorry for that, I’m new here and thought it was easier to write in existing post 🙂
@geminilabs thank you, Loco Translate did the trick!!