Thanks for the response. I tried your code and it looks like it's working fine.
Can you explain what this part is doing?
PHP Code:
$vbulletin->input->clean_gpc('r', 'page', TYPE_UINT);
$page = (empty($vbulletin->GPC['page'])) ? 1 : $vbulletin->GPC['page'];
I don't understand those lines, is that what I have to use with vbulletin? Or is this just for testing purposes?
Thanks again!