dynamic pagination
-
Hi,
Your plugin is awesome. But I have question.
Is it possible that: when i change page of reviews page didn´t refresh and link are still same. Now is link https://www.orin.sk/bioquant/ and after https://www.orin.sk/bioquant/page/2.Thanks
The page I need help with: [log in to see the link]
-
H @kmoty
If I understand correctly, you are referring to Ajax pagination (using javascript to control pagination without a page refresh).
This feature is next on the roadmap to be added.
Thanks
-
This reply was modified 8 years, 7 months ago by
Gemini Labs.
I saw that ajax pagination was added. How i activate it? I have updates but pagination is still same.
Thanks 🙂
The feature is being tested and will be released with v2.8.0
v2.8.0 is released. To enable dynamic (ajax) pagination, modify your shortcode as shown below:
[site_reviews pagination="ajax" id="some-random-text"]-
This reply was modified 8 years, 7 months ago by
Gemini Labs.
I tried it, but when i want to shift on next page of reviews all disappear.
Check on it https://www.orin.sk/bioquant/
same for me, I get this message into the inspector:
Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': 'div.glsr-reviews.' is not a valid selector. at [domain]/wp-content/plugins/site-reviews/assets/js/site-reviews.js?ver=2.8.0:1:8930 at XMLHttpRequest.r.onreadystatechange ([domain]/wp-content/plugins/site-reviews/assets/js/site-reviews.js?ver=2.8.0:1:5001)thank you!
Thank you @vertigofactory, that tells me exactly what is wrong. Sorry for the inconvenience, I’ll have that fixed shortly.
If you would like a quick solution until then, you can simply add
class="temp"to the [site_reviews] shortcode to fix it.you’re welcome 🙂 thanks for your suggestion 🙂
I have released Site Review v2.8.1 which should fix ajax pagination. Please let me know if it works now for you, and thank for helping me catch this quickly!
it works for me 🙂
may I suggest you to add a “scrollToTop” feature after requesting for a new page through AJAX? maybe with something like an animated spinner to indicate that something is loading, how about this idea?I have just released v2.8.2 which adds scroll and loading animations on ajax pagination.
@geminilabs perfect, great job. Thanks a lot 🙂
Hello there,
Happy new year to everyone!
I am having some problems with the “ajax” pagination.
The page I need help for is this:
https://www.worldvespa.net/%CF%81%CF%8D%CE%B6%CE%B9-%CE%BA%CE%B1%CE%B9-%CF%87%CF%8E%CE%BC%CE%B1/
Sorry it’s in Greek, but somewhere near the end of the page you’ll be able to see the link towards “page 2” of the people’s reviews.
Here’s a screenshot of how the link looks like (to help you cause it’s in Greek)
https://1drv.ms/i/s!As5qMg1lt6uvlmIaUiBYL5ZUe9Y-I tried the “true” pagination and works fine, but when I switched to “ajax” and then shift on next page of reviews, they all disappear and it keeps on loading forever.
Thanks in advance,
StergiosPS I am using – WordPress Version 4.9.1
– Site Reviews Version 2.9.5
and browsing with Google Chrome Version 63.0.3239.84 on a Windows 7 64 PC-
This reply was modified 8 years, 5 months ago by
stgogos. Reason: wordpress version
If it keeps on loading forever then it sounds like a JavaScript problem. Have you passed an “id” attribute to the shortcode? (i.e. [site_reviews id=“randomtext”])
It could also be a conflict with another plugin. I’ll have a look at it later today.Yes, I have passed an “id” attribute to the shortcode.
-
This reply was modified 8 years, 7 months ago by
The topic ‘dynamic pagination’ is closed to new replies.