Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 15 Mar 2021, 04:21
TheLastBatman's Avatar
TheLastBatman TheLastBatman is offline
Join Date: Apr 2016
Real name: Batman
Adding a request to pagenav?

I am trying hook into the pagenav to add a request within showthread.

I have been able to achieve this using the pagenav_page hook and defining $address .= '&test' but this is causing a weird error with multiple pages.

It is adding 1 request for each page that exist. so if I have 2 pages in a thread, the page 2 link becomes showthread.php?t=6&test&test&page=2 and page 4 becomes showthread.php?t=6&test&test&test&test&page=4

I am trying to get it showthread.php?t=6&test&page=4 no matter how many pages there are.

I have looked through the functions and noted address is defined as
$address = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$thread[threadid]";

I have tried re defining address as
$address = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$thread[threadid]&test";
within pagenav_page but it will not detect the threadid when I do it this way. Is there a way I can get this to work properly?

end goal
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
pagenav dropdown menu treszoks vBulletin 2.x Full Releases 5 10 Jul 2003 14:37

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 09:02.

Layout Options | Width: Wide Color: