Web sayfamız sadece phpBB 3.0.x sürümlerine destek vermektedir. Konu açmadan, ileti yazmadan önce lütfen site kuralları sayfamıza göz atınız.

[not a bug] memberlist.php pagination and blank ?mode=

[not a bug] memberlist.php pagination and blank ?mode=

İleti ALEXIS 20 May 2008 09:19

http://www.phpbb.com/bugs/phpbb3/ticket ... t_id=27655

First I use fresh a phpBB 3.0.1. And I check "20 May 09.50 GMT+2" SVN branch.

Why memberlist pagination have a blank "?mode=" ?

* memberlist.php?mode=&start=1
* memberlist.php?mode=&first_char=d#memberlist


I open memberlist.php and analyse many lines:

First:

This is memberlist modes:

Kod: Tümünü seç
// Check our mode...
if (!in_array($mode, array('', 'group', 'viewprofile', 'email', 'contact', 'searchuser', 'leaders')))


Second:

line 1222 ( this is foreach for params, params list on line 1188 in "$check_params = array(" )

Kod: Tümünü seç
$params[] = $param;


line 1232 (why add mode in $params array and where use)

Kod: Tümünü seç
$params[] = "mode=$mode";


line 1234 (pagination variable and add params)

Kod: Tümünü seç
$pagination_url = append_sid("{$phpbb_root_path}memberlist.$phpEx", implode('&', $params));



Ok, my problem is line 1232, why add mode in $params array and where use this mode? I can't find any usable area ?

I comment and no more see blank "?mode=", and can't see only problem

Kod: Tümünü seç
//$params[] = "mode=$mode";


small problem is:

find:

Kod: Tümünü seç
<a href="{S_MODE_ACTION}&amp;first_char=a#memberlist">A</a>&nbsp;


replace:

Kod: Tümünü seç
<a href="{S_MODE_ACTION}?first_char=a#memberlist">A</a>&nbsp;
ALEXIS
yönetici
yönetici

Kullanıcı avatarı

İleti: 3628
Kayıt: 03 Arl 2006 08:57
HTML: Çok iyi
CSS: İyi
PHP: İyi
phpBB3: Çok iyi
Sürüm: phpBB 3

Re: [new] memberlist.php pagination and blank ?mode=

İleti ALEXIS 20 May 2008 09:45

I now find a useble mode, in search function

memberlist.php?sk=c&sd=a&username=*&mode=searchuser&start=1

My new changes is memberlist.php

Kod: Tümünü seç
      $params[] = "mode=$mode";


to

Kod: Tümünü seç
      if (!empty($mode))
      {
         $params[] = "mode=$mode";
      }
ALEXIS
yönetici
yönetici

Kullanıcı avatarı

İleti: 3628
Kayıt: 03 Arl 2006 08:57
HTML: Çok iyi
CSS: İyi
PHP: İyi
phpBB3: Çok iyi
Sürüm: phpBB 3


Bug Tracker


Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 1 misafir

cron