Unique Calendar IDs?

Help with installation and general calendar setttings

Re: Unique Calendar IDs?

Postby chris » Sun Dec 04, 2011 5:26 pm

Hi,
You need to define this right before you include the cal.inc.php file within your page.

Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Unique Calendar IDs?

Postby chris » Mon Dec 05, 2011 12:03 pm

Just to expand slightly on that, your code should look something like this:
Code: Select all
// define id of item to show
$_REQUEST["id_item"]=3;

//   include the calendar file
$the_file="ac-includes/cal.inc.php";
if(!file_exists($the_file)) die("<b>".$the_file."</b> not found");
else      require_once($the_file);


Chris
User avatar
chris
Site Admin
 
Posts: 1089
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Unique Calendar IDs?

Postby andy-in-spain » Mon Dec 05, 2011 12:51 pm

Ah thank you Chris, this worked a treat.

I had actually tried the other code "$_GET["id_item"]=2;" in this very position but to no avail.

It works great now.

Will be donating soon and buy you a beer or two next time you come up Ronda way! :lol:

Andy
andy-in-spain
 
Posts: 2
Joined: Sun Dec 04, 2011 3:13 pm

Previous

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron