Osclass forums

Support forums => General help => Topic started by: moinuddin on July 26, 2019, 09:50:45 pm

Title: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: moinuddin on July 26, 2019, 09:50:45 pm
I have a website and on the profile page the pagination is not working.

Here is the link.

https://footwearwholesale.in/index.php?page=user&action=pub_profile&id=10

Does anyone knows about the solution to this problem ?

Thanks in advance
Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: moinuddin on July 27, 2019, 09:24:38 am
Even if i click on 2nd page then again it gets to first page.

Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: moinuddin on July 27, 2019, 02:52:21 pm
here are my 2 files attached one is the user public profile page and another is header.and also made changes in loop.php for putting ads between listings.

made changes according to this link ..here is the link https://forums.osclass.org/tips-and-tricks/(tip)-ads-between-listings/


let me know if you want some more details / files to see the codes.

hope it gets solved as facing problem only in user public profile page and rest all other pages are working fine as search result getting clicked on pages and showing it ..the only problem is with user public profile where the 2nd and other pages getting clicked but it shows only first page.

my website is https://footwearwholesale.in/

and user public profile page link is https://footwearwholesale.in/index.php?page=user&action=pub_profile&id=10?iPage=2


please does anyone has solution to this problem?

thanks in advance.



Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: cartagena68 on July 27, 2019, 05:30:30 pm
Looks like you have an error in the pagination function, the link should be https://footwearwholesale.in/index.php?page=user&action=pub_profile&id=10&iPage=2
Not https://footwearwholesale.in/index.php?page=user&action=pub_profile&id=10?iPage=2
Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: moinuddin on July 27, 2019, 05:48:19 pm
Thanks for the reply cartagena68,

But still the link which you sent is showing the first page.

All other pages are showing correctly except profile page so i don't think that there should have been a problem with the function.
Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: cartagena68 on July 27, 2019, 05:52:00 pm
no, the link show second page if you copy the full link, not click on it.
or click on this
https://footwearwholesale.in/index.php?page=user&action=pub_profile&id=10&iPage=2
Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: moinuddin on July 27, 2019, 05:52:48 pm
Yes, you are right instead of '?'... '&' should be there ...but i don't know how it has changed.
Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: cartagena68 on July 27, 2019, 06:03:47 pm
This is just a workaround that should work. Try the modified file attached
Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: moinuddin on July 27, 2019, 06:05:06 pm
Sure,

Will upload it and will let you know the result.
Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: moinuddin on July 28, 2019, 09:58:51 am
hi cartagena68,

you are a genius ..it worked ..i am still wondering that how this error happened in website...but once again thank you very much.

Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: cartagena68 on July 28, 2019, 05:31:52 pm
I'm glad it works, but remember that this is just a workaround, you should check why you have the problem in the first place.
Title: Re: 2nd and more pages not displayed .only first page of ads displayed on page.
Post by: moinuddin on July 28, 2019, 05:52:27 pm
I think some Java script  codes (for Fb comments and likes button on the public profile page must have created the problem)..i'll let you know once i find the error..thanks again for the solution.