PDA

View Full Version : XOOPS block/showCat problem


decontructor
09-29-2005, 02:14 PM
Here is the code I put in a XOOPS custom block. The calendar comes up fine. I can't get the showCat varaible to work though.
I have latest version of the calendar.



*** Block below ****
// used this in my PHPNUKE site
$CSS=1;

require("/home/content/x/k/a/xkanex/html/cal/calendar.php");
ob_start();

$OL=1;
require ("/home/content/x/k/a/xkanex/html/cal/calendar.php"); //required if you're going to use overLib

//This is what i got from find/filter yellow bar
$showCat="[Any] | Rampage -5";
require ("/home/content/x/k/a/xkanex/html/cal/calendar.php"); //the line that shows the calendar

// What's following is the section required for the listing
// Uncomment if you want the listing to appear.
// You will have to modify the /cal/templates/monthly.php file accordingly
// so that it fits in your site.

//$LIST=1;
//$DF = "D - M d";
//$template="monthly.php"; //just specify the name of the template - no path!
//require ("/cal/showCalendar.php"); //display the list of events

$content = ob_get_clean();

//added this for XOOPS
return $content;

decontructor
09-29-2005, 03:25 PM
changed to $showCat="|5"
It now works

ve9gra
09-30-2005, 06:51 AM
Just as a quick FYI, what it shows there is actually like

human format - calendar list

so having "[Any] | Rampage - 5" actually means, look in any main category but match "Rampage as the secondary category, and if you're to use $showCat, it's "5".

The "|" is a seperator for if you have more than one value, so if you see "- 5", you only need to put $showCat="5"

But glad you got it working.