The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Small pagination problem
please check this page and perform category search at the bottom with "Chats and Forums".
1. I am limiting 8 records to show on the search results per page. But the categories that have more than 8 records (for ex. Chats and Forums) do show the navigation bar, counts the records BUT on click/navigate, it shows empty. I think its loosing the session somehow. This is what I am doing to construct page nav:- PHP Code:
Please test the above problems here Thank You |
#2
|
||||
|
||||
It seems to be working for me. Did you fix it?
|
#3
|
||||
|
||||
it isn't working fine !! I think you are talking about the main links page. Its fine there.
The problem is at the search results page. Just make a search for "Chats and Forums" category and then try to navigate, you would notice the second page says empty which actually isn't. Thanks |
#4
|
||||
|
||||
Ah, OK. Notice the link when you go to page 2: http://www.vinayaks.com/testvb/links.php?do=search&view&page=2 You are not passing anything for view. I think, though, you need to pass the category id somehow - set it as a hidden input?
|
#5
|
||||
|
||||
ya.. but how do i append the category ID to the URL ??
--------------- Added [DATE]1217696802[/DATE] at [TIME]1217696802[/TIME] --------------- I am sure it has to do something with this PHP Code:
|
#6
|
||||
|
||||
What is the variable name you are using for the category? I think you want to put that instead of the 'view' in your line. Something like "&category=Chats%20and%20Forums" ? You also need to pass the parameter for descending/ascending.
(Sorry veenu, forms aren't my strongpoint. I think I've said before that I code by trial and error. :/ ) |
#7
|
||||
|
||||
even I code by trial and error lol
see variable name is $searchcat that contains the category name that is searched for on links.php?do=search I understand what I wanna do but not able to append category name. When I am putting something like $amp;category=$searchcat , it displays the variable name instead. I then created a hidden field $searched to store the value of $searchcat, and I notice in source code that it does contain the searched value, but still it shows just the variable instead of the value in the URL. Thanks |
#8
|
|||
|
|||
Well in your first post you had this code.
PHP Code:
PHP Code:
|
#9
|
||||
|
||||
thanks for replying.. well I had already gone through that article..
PHP Code:
Thanks --------------- Added [DATE]1217701132[/DATE] at [TIME]1217701132[/TIME] --------------- ahhh... got it !!! DONE :up: Now, last thing:- How do I carry the search data onto the next page ?? say I searched for "Chats and Forums" in "Ascending" , so I want that both should be selected on the next page and should not reset to default. Thanks |
#10
|
||||
|
||||
Are you using searchid at all? If so, that has those variables in it (this is how vb does it). Or, I suppose you can either a)pass them in the url in your "construct_page_nav" call, or b)make them hidden and then make sure you grab them, and spit them out as hidden again, in your search page.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|