Problem with pagination in community builder

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Apr 15, 2016 11:28 pm
Reply with quote
Report this post
Hello, i have issue in pagination of community builder in user list. If i change the template to protostar everything works well. With this template only the first time of pagination works, the second time it goes for example to yoursite.com/#3 and shows you the homepage.
User avatar
Junior Boarder

teitbite
Tue Apr 19, 2016 8:11 am
Reply with quote
Report this post
Hi

Please see if same is happening if You will rename /html/pagination.php to /html/_pagination.php
User avatar
Moderator

GK User
Tue Apr 19, 2016 11:31 am
Reply with quote
Report this post
Hi,
I was find this solution from your forum but it s the same results. The weird is that in protostar it works fine .
User avatar
Junior Boarder

teitbite
Sun Apr 24, 2016 12:09 pm
Reply with quote
Report this post
Hi

It's weird indeed since renaming /html/pagination.php forces site to use the same code that Protostar template is using. Please tell me the exact url to the page where I'll be able to see this problem.
User avatar
Moderator

GK User
Mon Apr 25, 2016 6:01 pm
Reply with quote
Report this post
Hello, i sended you with private message the url to see it, thank you
User avatar
Junior Boarder

teitbite
Tue Apr 26, 2016 12:57 pm
Reply with quote
Report this post
Hi

I think link is being rewritten on click. Pagination links to #2, but page "index.php?option=com_comprofiler&view=userslist&Itemid=125&limitstart=70&searchmode=0&search=&cbsecuritym3=cbm_48dc1773_1c6d7e52_afe85614e0c9031a3582a0a311d71320&listid=4&name=&username=" is opened instead. Please send me an access to FTP.
User avatar
Moderator

GK User
Tue Apr 26, 2016 2:53 pm
Reply with quote
Report this post
Please check your pm first, thank you
User avatar
Junior Boarder

teitbite
Thu Apr 28, 2016 3:25 pm
Reply with quote
Report this post
Hi

You've asked about my IP in PM, but I'm afraid it's dynamic, so it's gonna change before I'll be able to get back to your question. Please contact me via skype "teitbite", so I'll be able to tell You when I'll be free to check this problem.
User avatar
Moderator

GK User
Thu Apr 28, 2016 4:00 pm
Reply with quote
Report this post
i added you
User avatar
Junior Boarder

teitbite
Thu Apr 28, 2016 4:50 pm
Reply with quote
Report this post
Hi

To make community builder pagination I had to remove code:

Code: Select all
if(jQuery(document.body).attr('data-smoothscroll') == '1') {
      // smooth anchor scrolling
      jQuery('a[href*="#"]').on('click', function (e) {
           e.preventDefault();
           if(this.hash !== '') {
               var target = jQuery(this.hash);

               if(this.hash !== '' && this.href.replace(this.hash, '') == window.location.href.replace(window.location.hash, '')) {   
                   if(target.length && this.hash !== '#') {
                       jQuery('html, body').stop().animate({
                           'scrollTop': target.offset().top
                       }, 1000, 'swing', function () {
                           if(this.hash !== '#') {
                               window.location.hash = target.selector;
                           }
                       });
                   } else if(this.hash !== '' && this.href.replace(this.hash, '') !== '') {
                       window.location.href = this.href;
                   }
               } else if(this.hash !== '' && this.href.replace(this.hash, '') !== '') {
                   window.location.href = this.href;
               }
           }
       });
   }


from /js/gk.scripts.js file.
User avatar
Moderator

GK User
Thu Apr 28, 2016 4:58 pm
Reply with quote
Report this post
thank you, is this code for back to top function ?
User avatar
Junior Boarder

teitbite
Fri Apr 29, 2016 8:31 am
Reply with quote
Report this post
Hi

No it's used along with anchors, so if You click anchor link page slowly moves to the position on this anchor, but You do not have it used. Anyway it's the only way to make pagination in Community builder work.
User avatar
Moderator


cron