![]() |
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 |
It seems to be working for me. Did you fix it?
|
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 |
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?
|
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:
|
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. :/ ) |
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 |
Well in your first post you had this code.
PHP Code:
PHP Code:
|
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 |
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.
|
no.. i am not using searchid at all ! ... will try these methods..:)
one more thing plzz.. How do I search for some text ??? Say, we add a site with all the details.. Now I want to search with keyword "Tech555" and I want that all the sites that has this term in any of their fields should retrieve. Thank you |
You would add another input field to your links.php form to include the keyword. Then, in your query, you would add in the search for that keyword in the correct column.
|
ofcourse we'd be adding a input field..
i was asking for query only ! will it be something like this? PHP Code:
Thanks |
I think you want to do it like:
PHP Code:
|
ahh... thank you so much ! you're so nice..
How does it look now ? I also removed that table border look. http://www.tech555.com/forum/links.php |
It's looking really nice!
|
All times are GMT. The time now is 04:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|