Recent Posts

Pages: [1] 2 3 ... 10
1
[BTITeam] Comunications / Re: xbtitFM v1.15 released
« Last post by Rogelioy on August 07, 2018, 06:24:03 am »
It's important that I discover this forum on google because it may be highly reliable.
2
XBTIT Support / Re: XBTIT pager drop down menu error solved
« Last post by Rogelioy on August 07, 2018, 06:23:38 am »
I would like to know why I can get more information and clear enough to introduce me?
3
Post the file that you have issue with... I guess is account.php
4
I have the some problem... Anybody to help?
Thanks!
5
XBTIT Support / XBTIT pager drop down menu error solved
« Last post by Enoch-X on July 21, 2018, 09:18:57 pm »
Hi everybody, good day!

I would like to share the solution to the pager error where the pagination goes off the canvas!

I've searched the entire Internet for and answer but unfortunately couldn't find it, so I started with the old art of trial and error and I found a (the) solution to the problem!

Step 1 Go to your tracker directory/include/functions.php >> step 2 find the pager function on line 772 and select the code from line 772 'till 845

Code: [Select]
function pager($rpp, $count, $href, $opts = array()) {
  global $language;

  $pages=($rpp==0)?1:ceil($count / $rpp);

  if (!isset($opts['lastpagedefault']))
    $pagedefault = 1;
  else {
    $pagedefault = floor(($count - 1) / $rpp);
    if ($pagedefault < 1)
      $pagedefault = 1;
  }

  $pagename='pages';

  if (isset($opts['pagename'])) {
    $pagename=$opts['pagename'];
    if (isset($_GET[$opts['pagename']]))
      $page = max(1 ,((int)$_GET[$opts['pagename']]));
    else
      $page = $pagedefault;
  } elseif (isset($_GET['pages'])) {
    $page = max(1,((int)0 + $_GET['pages']));
    if ($page < 0)
      $page = $pagedefault;
  } else
    $page = $pagedefault;

  $pager = '';

  if ($pages>1) {
    $pager.="\n".'<form name="change_page'.$pagename.'" method="post" action="index.php">'."\n".'<select class="drop_pager" name="pages" onchange="location=document.change_page'.$pagename.'.pages.options[document.change_page'.$pagename.'.pages.selectedIndex].value" size="1">';
    for ($i = 1; $i<=$pages;$i++)
        $pager.="\n<option ".($i==$page?'selected="selected"':'')."value=\"$href$pagename=$i\">$i</option>";
    $pager.="\n</select>";
  }

  $mp = $pages;// - 1;
  $begin=($page > 3?($page<$pages-2?$page-2:$pages-2):1);
  $end=($pages>$begin+2?($begin+2<$pages?$begin+2:$pages):$pages);
  if ($page > 1) {
    $pager .= "\n&nbsp;<span class=\"pager\"><a href=\"{$href}$pagename=1\">&nbsp;&laquo;</a></span>";
    $pager .= "\n<span class=\"pager\"><a href=\"{$href}$pagename=".($page-1)."\">&lt;&nbsp;</a></span>";
  }

  if ($count) {
    for ($i = $begin; $i <= $end; $i++) {
      if ($i != $page)
        $pager .= "\n&nbsp;<span class=\"pager\"><a href=\"{$href}$pagename=$i\">$i</a></span>";
      else
        $pager .= "\n&nbsp;<span class=\"pagercurrent\"><b>$i</b></span>";
    }

    if ($page < $mp && $mp >= 1) {
      $pager .= "\n&nbsp;<span class=\"pager\"><a href=\"{$href}$pagename=".($page+1)."\">&nbsp;&gt;</a></span>";
      $pager .= "\n&nbsp;<span class=\"pager\"><a href=\"{$href}$pagename=$pages\">&nbsp;&raquo;</a></span>";
    }

    $pagertop = "$pager\n</form>";
    $pagerbottom = str_replace("change_page","change_page1",$pagertop)."\n";
  } else {
    $pagertop = "$pager\n</form>";
    $pagerbottom = str_replace("change_page","change_page1",$pagertop)."\n";
  }

  $start = ($page-1) * $rpp;
  if ($pages<2) {
    // only 1 page??? don't need pager ;)
    $pagertop='';
    $pagerbottom='';
  }

  return array($pagertop, $pagerbottom, "LIMIT $start,$rpp");
}

Repalce this code with the code below...

Code: [Select]
function pager($rpp, $count, $href, $opts = array()) {
  global $language;

  $pages=($rpp==0)?1:ceil($count / $rpp);

  if (!isset($opts['lastpagedefault']))
    $pagedefault = 1;
  else {
    $pagedefault = floor(($count - 1) / $rpp);
    if ($pagedefault < 1)
      $pagedefault = 1;
  }

  $pagename='pages';

  if (isset($opts['pagename'])) {
    $pagename=$opts['pagename'];
    if (isset($_GET[$opts['pagename']]))
      $page = max(1 ,((int)$_GET[$opts['pagename']]));
    else
      $page = $pagedefault;
  } elseif (isset($_GET['pages'])) {
    $page = max(1,((int)0 + $_GET['pages']));
    if ($page < 0)
      $page = $pagedefault;
  } else
    $page = $pagedefault;

  $pager = '';

  if ($pages>1) {
    $pager.="\n".'<form name="change_page'.$pagename.'" method="post" action="index.php"><div align="center">'."\n".'<select class="drop_pager" name="pages" onchange="location=document.change_page'.$pagename.'.pages.options[document.change_page'.$pagename.'.pages.selectedIndex].value" size="1">';
    for ($i = 1; $i<=$pages;$i++)
        $pager.="\n<option ".($i==$page?'selected="selected"':'')."value=\"$href$pagename=$i\">$i</option>";
    $pager.="\n</select>";
  }

  $mp = $pages;// - 1;
  $begin=($page > 3?($page<$pages-2?$page-2:$pages-2):1);
  $end=($pages>$begin+2?($begin+2<$pages?$begin+2:$pages):$pages);
  if ($page > 1) {
    $pager .= "\n&nbsp;<a href=\"{$href}$pagename=1\">&nbsp;&laquo;</a></span>";
    $pager .= "\n<a href=\"{$href}$pagename=".($page-1)."\">&lt;&nbsp;</a></span>";
  }

  if ($count) {
    for ($i = $begin; $i <= $end; $i++) {
      if ($i != $page)
        $pager .= "\n&nbsp;<a href=\"{$href}$pagename=$i\">$i</a></span>";
      else
        $pager .= "\n&nbsp;<span class=\"pagercurrent\"><b>$i</b></span>";
    }

    if ($page < $mp && $mp >= 1) {
      $pager .= "\n&nbsp;<a href=\"{$href}$pagename=".($page+1)."\">&nbsp;&gt;</a></span>";
      $pager .= "\n&nbsp;<a href=\"{$href}$pagename=$pages\">&nbsp;&raquo;</a></span>";
    }

    $pagertop = "$pager\n</form>";
    $pagerbottom = str_replace("change_page","change_page1",$pagertop)."\n";
  } else {
    $pagertop = "$pager\n</form>";
    $pagerbottom = str_replace("change_page","change_page1",$pagertop)."\n";
  }

  $start = ($page-1) * $rpp;
  if ($pages<2) {
    // only 1 page??? don't need pager ;)
    $pagertop='';
    $pagerbottom='';
  }

  return array($pagertop, $pagerbottom, "LIMIT $start,$rpp");
}

The error is being caused by the code
Code: [Select]
<span class=\"pager\">!!! All you need to do is remove this code from the pager function and the pager and drop down functions and looks good again!

Succes! ;-)
6
XBTIT Support / Re: Content Encoding Error!! Help
« Last post by zillastate on July 21, 2018, 05:03:23 pm »
it was the language

thank you all

I guess enerything is runngin in English, some one help me to figureout where exactly to look for english language
7
[BTITeam] Comunications / Re: XBTIT 2.5.1 Released
« Last post by jntcargo on July 09, 2018, 02:04:48 pm »
how much XBTIT ?
i am new here this community
working for
best movers in dubai
professional movers dubai
movers in uae
8
XBTIT Support / Re: Search error
« Last post by DopeT on July 06, 2018, 01:40:15 am »
this is what i did in torrents.php and the search seems to work ok.
i changed this line  (115 in my script):
Code: [Select]
$query_select .= " filename LIKE '%" .  mysqli_query($GLOBALS['conn'],$testocercato[$k]) . "%'";
to this:
Code: [Select]
$query_select .= " filename LIKE '%" . $testocercato[$k] . "%'";
make a backup just in case. Looks like $testocercato array already holds the strings you just need to loop trough them.
I just notice this is from February but hey maybe will help someone else.
9
XBTIT Support / Re: Search error
« Last post by Frankiez on July 03, 2018, 06:38:30 am »
What is the most important content within this forum? I want to know the source.
10
XBTIT Support / Re: Question about SMF integration with XBTIT
« Last post by Adriennez on June 19, 2018, 05:33:43 am »
The benefits I get from this forum are very good to study.
Pages: [1] 2 3 ... 10

Powered by EzPortal