hazem_aliraqi
02-11-2016, 05:34 PM
Get User Id in Media Gallery
the next page like page 2
media.php?do=main&type=2&userid=$userid&page=2
the mod in this thread
https://vborg.vbsupport.ru/showthread.php?threadid=319444
the query in media.php
if ($type == 2 && $userid > 0)
{
$pagenav = construct_page_nav($pagenumber, $perpage, $records, 'media.php?' . $vbulletin->session->vars['sessionurl'] . 'do=main&type=2&userid=$userid');
$items = $vbulletin->db->query_read("
SELECT *
FROM `" . TABLE_PREFIX . "mediagallery_items`
WHERE userid=$userid AND approved=1 AND hidden=0
ORDER BY postdate DESC
LIMIT " . ($limitlower-1) . ", $perpage");
}
where is the problem ?
the next page like page 2
media.php?do=main&type=2&userid=$userid&page=2
the mod in this thread
https://vborg.vbsupport.ru/showthread.php?threadid=319444
the query in media.php
if ($type == 2 && $userid > 0)
{
$pagenav = construct_page_nav($pagenumber, $perpage, $records, 'media.php?' . $vbulletin->session->vars['sessionurl'] . 'do=main&type=2&userid=$userid');
$items = $vbulletin->db->query_read("
SELECT *
FROM `" . TABLE_PREFIX . "mediagallery_items`
WHERE userid=$userid AND approved=1 AND hidden=0
ORDER BY postdate DESC
LIMIT " . ($limitlower-1) . ", $perpage");
}
where is the problem ?