Pagination Conflict

Discussion forum for MOD Writers regarding MOD Development.
TheTechGame
Registered User
Posts: 45
Joined: Wed Oct 31, 2012 3:08 am

Pagination Conflict

Post by TheTechGame »

I'm using https://www.phpbb.com/customise/db/mod/ ... iend_list/ and viewtopic.php?f=70&t=2173936.

Each of these mods have pagination on the profile.
So, going to memberlist.php?mode=viewprofile&u=2&start=5
Would load page 2 of the profile comments, and page 5 of the profile friends list.

I tried changing the $start variable for the friends list to:
memberlist.php?mode=viewprofile&u=2&friendsstart=5
and that works, without changing the page of the profile comments, BUT, only if you go DIRECTLY to that URL. The pagination links still appear with "start=" and not "friendsstart=". Where can I replace the "start=" for the pagination in the profile comments?

Thanks
TheTechGame
Registered User
Posts: 45
Joined: Wed Oct 31, 2012 3:08 am

Re: Pagination Conflict

Post by TheTechGame »

I found the spot, it's in functions.php. Line 2209 for me:

Code: Select all

$page_string .= ($i == $on_page) ? '<span class="pagecurrent">' . $i . '</span>' : '<span class="pagenum"><a href="' . $base_url . "{$url_delim}start=" . (($i - 1) * $per_page) . '">' . $i . '</a></span>';
So how can I use a php IF statement or something so instead of "{$url_delim}start=" it can be "{$url_delim}friendsstart=" for the profile friends list ONLY? Else, stay how it originally was for everything else.

Return to “[3.0.x] MOD Writers Discussion”