Quote:
Originally Posted by Umberto
Works great!
I want to add two things, I don't know if they are discussed allready...
First thing, is that the 2nd index page doesn't work
and the 2nd is that if you go to the 2nd page (after fixing it) the id count starts with 1 again...
Here some fixes
open vbgarage.php and replace
PHP Code:
$pagenav = construct_page_nav(
$pagenumber, $perpage, $garagecount[garages],
'vbgarage.php?' . $vbulletin->session->vars['sessionurl'] . 'do=$_REQUEST[do]', ''
. (!empty($vbulletin->GPC['perpage']) ? "&perpage=$perpage" : "")
);
with
PHP Code:
$pagenav = construct_page_nav(
$pagenumber, $perpage, $garagecount[garages],
'vbgarage.php?' . $vbulletin->session->vars['sessionurl'] . 'do=list', ''
. (!empty($vbulletin->GPC['perpage']) ? "&perpage=$perpage" : "")
);
for the ID fix:
Search for
PHP Code:
$user = fetch_userinfo($list[userid]);
add below:
PHP Code:
$list['number']=$pos+$counter;
then open
vbgarage_listbits in your style manager
replace:
PHP Code:
<td class="alt2" align="center">$count</td>
with
PHP Code:
<td class="alt2" align="center">$list[number]</td>
done....
|
You don't know how long I have been wanting to fix the id count on each page. I thought it was somewhere in the php file where it was calling the garage list and have searched over and over again trying to find how to fix it. Not a major issue, but kind of annoying when viewing the different pages of the garage.
Anyway, thanks for posting the fix!