View Full Version : moving between TOC and list & stay in category
07-29-2005, 01:48 PM
I had asked a pre-purechase question about being able to have a visitor choose a category from the drop-down in the list calendar and then being able to switch to the TOC and still be in the same category. - The reverse also.
I've now purchased and am ready to do it. Brian had suggested assigning a cookie, then set it as the $showCat variable before requiring the calendar.
I'm new to PHP and don't know how to do this. Could I get some guidance?
07-29-2005, 01:52 PM
Did you try what ve9gra had suggested?
07-29-2005, 02:07 PM
I'm afraid I didn't understand it enough to know how.
07-29-2005, 07:01 PM
What part are you having difficulty with?
07-29-2005, 07:09 PM
ve9gra wrote: "I believe this would be possible to use the filter inside of a form and pass that as a value through a GET."
I have no idea what this means. I can follow instructions, but I don't know PHP.
07-29-2005, 07:17 PM
HTML forms work two ways. One is POST and the other is GET. GET simply means that the options are passed via the URL.
The GET variable in this instance is name and it's value is Brian.
So, ve9gra was just saying to pass the variable in the URL (as his examples how) and you'll be set.
07-29-2005, 09:11 PM
Ok, I understand the theory, but still not familiar enough.
Here is the page:
I want to go back and forth between the list and block view staying in chosen category.
I tried making the link to the other page
calendarlt.php?name=showCat, but it's not working as I want. I tried adding ?name=showCat onto the path to filter.php, but that brought up errors on the page. I tried using doing the same with ?name=FilterForm, but no success.
So in this case, am I passing the value through the link to the other page, or on the path to the plugin. And exactly how should it be coded?
I appreciate your patience.
07-30-2005, 07:18 AM
Have a look at post #8 and copy/paste the exact code in your pages where I've specified... this should be plug & play...
Your links are going to end up looking like this
Where "showCat" is the name of the variable, and 1 is the value you want to pass. Again, if you use the exact code that I've posted, it should work. Start by doing that, and then if you're still having problems, please let us know.
07-31-2005, 10:26 AM
Thank you Gervais. That worked great! I appreciate your taking the time.
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.