Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2014-03-20 00:26:46

Eri
Member
Registered: 2011-03-18
Posts: 977

Video search pagination porblem

When i try to search a video for example with word "mom"
It shows pagination     
    1
    2
    3
     ...
    23
    24
    NEXT

But when i click on page 24,23,22,20 i am getting this message only
--------
We're sorry, but no videos found while searching for 'MOM'!
------


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2014-03-21 07:13:07

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video search pagination porblem

Hmmm...checking!


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2014-03-21 07:25:14

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video search pagination porblem

I cannot connect with ssh. Please edit /etc/sphinx/sphinx.conf and find max_matches and set it to 10000. If you dont have that setting, add max_matches = 10000 in searchd {}


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#4 2014-03-21 12:26:41

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Video search pagination porblem

I have changed this, Now when i search "mom" from 24 pages now i am getting 90 pages. Also from page 65-90 there is no video and have this message again

It was browse_per_page not  search_per_page at $offset so i have changed                 

$offset			= ($page >= 2) ? (($page - 1) * $this->vcfg['browse_per_page']) : 0;

with

$offset			= ($page >= 2) ? (($page - 1) * $this->vcfg['search_per_page']) : 0;

And works now smile

Last edited by Eri (2014-03-21 12:40:54)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#5 2014-04-04 11:22:02

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

Re: Video search pagination porblem

Hello Eri, I have the same problem, but I haven't the line "$offset" in the sphinx.conf file, is this an addition?

I have different results from different page, for exemple, search "mom" -->

page 1 = 19 results
page 2 = 1
page 3 = 0
page 4 = 1
page 5 = 2
page 6 = 30 ...

Last edited by MrPulse (2014-04-04 11:32:46)

Offline

#6 2014-04-04 13:49:46

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video search pagination porblem

This is in modules/video/components/search.php


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#7 2014-04-04 15:02:48

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

Re: Video search pagination porblem

I have tried to replace the line but nothing changed. I noticed there are also a lot of duplicate videos in the search results (all kind of search like teen or milf, not only short search)

... Adrian I reloaded original files (sphinx.conf and search.php) and now search return only a "restricted access" page both with sphinx and simple search...

I asked to my hosting to replace these files with a recent backup (one week ago, sphinx was installed one month ago), but all "search.php" backup file contain only a little part of file (without sphinx code), instead the original file has 113 lines of code, I suppose my hosting is kidding me:

<?php
defined('_VALID') or die('Restricted Access!');
define('_SEARCH', TRUE);
class VModule_search
{
    public function __construct()
    {
    }
   
    public function render()
    {
        $type    = VUri::request(1);
        if (VModule::enabled($type)) {
            VComponent::load('search', $type);
        } else {
            VModule::load('404', TRUE);
        }
    }
}
?>

Last edited by MrPulse (2014-04-05 09:37:48)

Offline

#8 2014-04-06 07:54:02

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video search pagination porblem

They replaced modules/search/search.php and it should be modules/video/components/search.php


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#9 2014-04-06 18:26:16

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

Re: Video search pagination porblem

ok .. I'm a mess, error is mine. Now search works but there is still the page problem, with different video results from different page.. (I tried to change 1000 to 10000 in sphinx.conf and to replace "browse_per_page with search_per_page), any idea?

Offline

#10 2014-04-07 06:11:50

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Video search pagination porblem

Email me ssh and i will check.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#11 2014-04-07 08:43:39

MrPulse
Member
Registered: 2013-03-05
Posts: 107
Website

Re: Video search pagination porblem

Hi Adrian, ssh sent

Offline

Board footer

Powered by FluxBB