PDA

View Full Version : Unable to accesss userinfo['calendarpermissions'] from forumdisplay.php


Farcaster
08-15-2006, 03:37 AM
I am attempting to add the upcoming events section to the forumdisplay page. What I have found is that the calendar permissions don't seem to be loaded into the userinfo array. When I look at the value of the blow expression, it is null. Can anyone help me figure out how to get the calendar permissions loaded into the array from there?

$vbulletin->userinfo['calendarpermissions']["$eventinfo[calendarid]"]

Paul M
08-15-2006, 03:57 AM
I doubt that $eventinfo exists on a forum display page - I think that will be your problem, the userinfo (calendarpermissions) will exist on any page when you are logged in.

Farcaster
08-15-2006, 04:57 AM
Actually, I put the "TODAY'S EVENTS" section into a hook in the forumdisplay_start. I confirmed that $eventinfo[calendarid] is bringing up the calendar ID of the event.