PDA

View Full Version : List Script with Category Filter Not Working


babychaser1999
04-07-2008, 02:50 PM
:ugh: I am trying to use the list script, with a filter to display only the birthdays. For whatever reason, all I get is a blank white page. Could you look at my template as well as my php page to see where my problem is? I have double-checked to make sure everything is there and I cannot find the problem. The only other thing that I can think of may have to do the a css file - but I am not sure.

ve9gra
04-07-2008, 05:08 PM
On your third <?php (where the $LIST is) you are missing a space. It should be <?php $LIST. Or better off, a new line. Also after $showCat="a|2" you're missing a semi-colon.

babychaser1999
04-07-2008, 10:48 PM
Thanks. That definitely solved the problem.

2 Quick Questions- If I wanted to list all the events for next month, is the only way to do that by using the list month script and inside of it placing a 2? I didn't know if there was any way to tell the script to go forward one month.

Also, say I want to list two categories side by side. One is in a table for birthdays and the other is in a table for anniversaries. Can I do this? I know I would have to change the filter code but I am wondering is there anything else I would have to change. For example, would one be List1 and the other List2?

ve9gra
04-08-2008, 07:41 AM
There is no option to list the next month only. What I suggest is you use $noOld=1; to hide past events (yesterday and older), and then use $listMonths=2; to list events from today up to the end of next month.

Using two lists on the same page is tricky. You need to unset a few variables, but it is doable. Do a search in the forums and you'll find many posts to regarding this.

unset($mo, $yr, $displayedEvents, $showDateS, $showCat);