Osclass forums

Support forums => General help => Topic started by: euroboris90 on October 12, 2012, 05:12:09 am

Title: ( theme newcorp) bug search result - please how to fix?
Post by: euroboris90 on October 12, 2012, 05:12:09 am
At first I thought it was a problem to me, but then I looked at the demo http://demo.osclass.org/jobboard/index.php?page=search&page=search&iPage=0

If you click on page 2, the search result does not go to page 2. I looked at the problem is probably on the page search.php. The first starts with the id iPage=0, I think that's the problem, someone fix this please?

attach (picture) search.php page, please someone who knows just fix this script, it creates a problem on the site

Title: Re: ( theme newcorp) bug search result - please how to fix?
Post by: euroboris90 on October 12, 2012, 04:35:16 pm
Someone help????
Title: Re: ( theme newcorp) bug search result - please how to fix?
Post by: trains58554 on October 12, 2012, 07:46:33 pm
Can you upload the search.php file?

Thanks

Jay
Title: Re: ( theme newcorp) bug search result - please how to fix?
Post by: euroboris90 on October 12, 2012, 10:20:18 pm
Here, though the problem is not only with me but it is generally a problem in theme newcorp. please help;)
Title: Re: ( theme newcorp) bug search result - please how to fix?
Post by: euroboris90 on October 13, 2012, 11:15:08 pm
Someone fix this bug???? ???
Title: Re: ( theme newcorp) bug search result - please how to fix?
Post by: trains58554 on October 13, 2012, 11:27:08 pm
Hi

In your search.php file look for this code

<?php for($i = 0 ; $i < osc_search_total_pages() ; $i++) {
                                if($i == osc_search_page()) {
                                    printf('<a class="searchPaginationSelected" href="%s">%d</a>', osc_update_search_url(array('iPage' => $i)), ($i + 1)) ;
                                } else {
                                    printf('<a class="searchPaginationNonSelected" href="%s">%d</a>', osc_update_search_url(array('iPage' => $i)), ($i + 1)) ;
                                }
                            } ?>

And replace it with this code.

 <?php echo osc_search_pagination(); ?>


Jay
Title: Re: ( theme newcorp) bug search result - please how to fix?
Post by: euroboris90 on October 14, 2012, 02:00:23 am
Thanks a lot, works great, but now I have a problem because I was such a bad view, see picture, where to fix it? Thanks in advance
Title: Re: ( theme newcorp) bug search result - please how to fix?
Post by: euroboris90 on October 14, 2012, 02:24:42 am
I fixed image in css. Thanks a lot man, I do not know how to repay you