New configuration style

11 views
Skip to first unread message

mfairchild365

unread,
Dec 7, 2010, 11:07:09 AM12/7/10
to UNL Event Publisher
I just committed some changes to the standalone/trunk repository that
changes the configuration style. The new configuration is stored in a
file called config.inc.php, rather than index.php. The install script
has also been edited to reflect this change.

I would appreciate it if some people were to test out these changes.

Nathan Kern

unread,
Dec 9, 2010, 1:21:43 PM12/9/10
to UNL Event Publisher
I like the idea of having a single config file, but now I can't do
anything with the calendar. It shows the header twice, and no
calendar:

Admin's Event Publisher!

Event Publishing Manager
Today's Events
This Month
This Week
This Year
Admin's Event Publisher!

Event Publishing Manager
Today's Events
This Month
This Week
This Year
Yeah, It's Open Source

The University Event Publishing System is an open source project built
by the University of Nebraska–Lincoln which implements the UC Berkeley
Calendar specifications.
UNL Event Publisher
Yeah, It's Open Source

The University Event Publishing System is an open source project built
by the University of Nebraska–Lincoln which implements the UC Berkeley
Calendar specifications.
UNL Event Publisher

Brett Bieber

unread,
Dec 9, 2010, 4:52:07 PM12/9/10
to unl-event...@googlegroups.com
Hi,

On Thu, Dec 9, 2010 at 12:21 PM, Nathan Kern <nate...@gmail.com> wrote:
I like the idea of having a single config file, but now I can't do
anything with the calendar.  It shows the header twice, and no
calendar:
 
<snip>

I think this was caused by an include path error. Older versions of the files were being pulled in because they were in your default include path. Try updating your config.inc.php file with what is (now) in the repository and see if that fixes anything.

Thanks for your help testing all this, Nathan.

--
Brett Bieber
University of Nebraska-Lincoln

Nathan Kern

unread,
Dec 9, 2010, 5:04:59 PM12/9/10
to UNL Event Publisher
svn update
performed install/upgrade script again
copied code into config.inc.php . . .

same result

On Dec 9, 3:52 pm, Brett Bieber <brett.bie...@gmail.com> wrote:
> Hi,
>

Nathan Kern

unread,
Dec 9, 2010, 5:08:27 PM12/9/10
to UNL Event Publisher
While I'm at it, here's what config.inc.php says:

<?php
/*Display errors*/
ini_set('display_errors', false);

/*Add a custom include path here if needed....*/
set_include_path(implode(PATH_SEPARATOR, array(
dirname(__FILE__).'/includes/pear',
dirname(__FILE__).'/includes/backend',
dirname(__FILE__).'/includes/frontend',
dirname(__FILE__).'/includes/facebook')));

require_once 'UNL/UCBCN/Autoload.php';

/*Global Settings*/
$dsn = "mysqli://events:events@localhost/
events"; //default = "mysqli://events:events@localhost/events"
$default_calendar_id = 1; //default = 1

/*Front end settings:*/
$frontend_config = array();
$frontend_config['dsn'] = $dsn; //
default = $dsn
$frontend_config['template'] = 'vanilla'; //
default = 'vanilla'
$frontend_config['uri'] = ''; //
default = ''
$frontend_config['uriformat'] = 'querystring'; //
default = 'querystring'
$frontend_config['manageruri'] = 'manager/'; //
default = 'manager/'
$frontend_config['default_calendar_id'] = $default_calendar_id; //
default = $default_calendar_id

/*Auth setup.*/
require_once dirname(__FILE__).'/includes/pear/Auth.php';
$auth = new
Auth('Array',array('users'=>array('admin'=>'admin')),null,false);

/*Manager Settings*/
$manager_config = array();
$manager_config['dsn'] = $dsn; //
default = $dsn
$manager_config['template'] = 'vanilla'; //
default = 'vanilla'
$manager_config['frontenduri'] = '../'; //
default = '../'
$manager_config['a'] = $auth; //
default = $auth
$manager_config['default_calendar_id'] = $default_calendar_id; //
default = $default_calendar_id

/*Facebook Settings.(required for event creation. see
* plugin for details)*/
$fb_appId = null; //default = null
$fb_secret = null; //default = null
require_once 'includes/facebook/src/facebook.php';

Michael Fairchild

unread,
Dec 9, 2010, 5:55:06 PM12/9/10
to unl-event...@googlegroups.com
Nathan,

Are there any errors being reported by PHP?

Thanks,
Michael Fairchild


--
You received this message because you are subscribed to the Google Groups "UNL Event Publisher" group.
To post to this group, send email to unl-event...@googlegroups.com.
To unsubscribe from this group, send email to unl-event-publi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/unl-event-publisher?hl=en.


Nathan Kern

unread,
Jan 24, 2011, 4:23:21 PM1/24/11
to UNL Event Publisher
Well, this is interesting. I started working on this again after
Christmas break and it works differently from how I remembered it.

Here's what's happening. When I load the frontend, it looks normal.
But when I click on a link to change the calendar view to this year,
this month, this week, etc. it appends the new view to the current
one.

When I look at the PHP errors, I see all the normal ones (debug strict
thrown because static calls in non-static context, PHP not liking how
date() is being used, and such things) and another that I don't
remember, but might be normal: Debug Warning: /events/includes/pear/
Savant3.php line 901 - func_get_arg(): Argument 1 not passed to
function.

Also, when I try to go to the manager, I get the following message:

exception 'Exception' with message 'Class UNL_UCBCN_Manager could not
be loaded from UNL/UCBCN/Manager.php, file does not exist
(include_path="/home/nathan/unl-event-publisher/includes/pear:/home/
nathan/unl-event-publisher/includes/backend:/home/nathan/unl-event-
publisher/includes/frontend:/home/nathan/unl-event-publisher/includes/
facebook:/home/nathan/unl-event-publisher/includes/backend/UNL")
[UNL_Autoload version 1.0]' in /home/nathan/unl-event-publisher/
includes/backend/UNL/UCBCN/Autoload.php:19 Stack trace: #0 [internal
function]: UNL_UCBCN_Autoload('UNL_UCBCN_Manag...') #1 /home/nathan/
unl-event-publisher/manager/index.php(27):
spl_autoload_call('UNL_UCBCN_Manag...') #2 {main}

On Dec 9 2010, 4:55 pm, Michael Fairchild <mfairchild...@gmail.com>
wrote:
> > unl-event-publi...@googlegroups.com<unl-event-publisher%2Bunsu bsc...@googlegroups.com>
> > .

Michael Fairchild

unread,
Jan 25, 2011, 1:21:58 PM1/25/11
to unl-event...@googlegroups.com
Nathan,

I updated the manager config.sample.inc.php file.  You should no longer get the exception when trying to view the manager once you update to the new version of that file.

As for the other issues, would you mind posting the contents of your main config.inc.php file?

Thanks,
Michael Fairchild

To unsubscribe from this group, send email to unl-event-publi...@googlegroups.com.

Nathan Kern

unread,
Jan 25, 2011, 4:47:25 PM1/25/11
to UNL Event Publisher
After svn update and reinstalling the calendar:

<?php
/*Display errors*/
ini_set('display_errors', false);

/*Add a custom include path here if needed....*/
set_include_path(implode(PATH_SEPARATOR, array(
dirname(__FILE__).'/includes/backend',
dirname(__FILE__).'/includes/manager',
dirname(__FILE__).'/includes/frontend',
dirname(__FILE__).'/includes/xml2json',
dirname(__FILE__).'/includes/pear')));

require_once 'UNL/UCBCN/Autoload.php';

/*Global Settings*/
$dsn = "mysqli://events:events@events/events"; //
default = "mysqli://events:events@events/events"
$default_calendar_id = 1; //default = 1

/*Front end settings:*/
$frontend_config = array();
$frontend_config['dsn'] = $dsn; //
default = $dsn
$frontend_config['template'] = 'vanilla'; //
default = 'vanilla'
$frontend_config['uri'] = ''; //
default = ''
$frontend_config['uriformat'] = 'querystring'; //
default = 'querystring'
$frontend_config['manageruri'] = 'manager/'; //
default = 'manager/'
$frontend_config['default_calendar_id'] = $default_calendar_id; //
default = $default_calendar_id

/*Auth setup.*/
require_once 'Auth.php';
$auth = new
Auth('Array',array('users'=>array('admin'=>'admin')),null,false);

/*Manager Settings*/
$manager_config = array();
$manager_config['dsn'] = $dsn; //
default = $dsn
$manager_config['template'] = 'vanilla'; //
default = 'vanilla'
$manager_config['frontenduri'] = '../'; //
default = '../'
$manager_config['a'] = $auth; //
default = $auth
$manager_config['default_calendar_id'] = $default_calendar_id; //
default = $default_calendar_id

/*Facebook Settings.(required for event creation. see
* plugin for details)*/
$fb_appId = null; //default = null
$fb_secret = null; //default = null
require_once dirname(__FILE__).'/includes/facebook/src/facebook.php';



On Jan 25, 12:21 pm, Michael Fairchild <mfairchild...@gmail.com>
wrote:
> Nathan,
>
> > > > unl-event-publi...@googlegroups.com<unl-event-publisher%2Bunsu bsc...@googlegroups.com><unl-event-publisher%2Bunsu

Nathan Kern

unread,
Feb 7, 2011, 4:41:37 PM2/7/11
to UNL Event Publisher
Has there been any progress in this? Is this an issue that is only
affecting me?

Nathan

Michael Fairchild

unread,
Feb 8, 2011, 1:22:13 PM2/8/11
to unl-event...@googlegroups.com
Nathan,

I just committed some code that I think should fix your problem.

Each calendar can have its own theme now.  To change your calendar's theme go to the admin interface and click on "calendar info" and from there change the theme to whatever you want.

The code that I just committed will set your theme to a default of "base" if you have not yet selected a theme.  This should remedy the problems that you are having, if not please let me know and I will look into it further.

Regards,
Michael Fairchild


--
You received this message because you are subscribed to the Google Groups "UNL Event Publisher" group.
To post to this group, send email to unl-event...@googlegroups.com.
To unsubscribe from this group, send email to unl-event-publi...@googlegroups.com.

Nathan Kern

unread,
Feb 14, 2011, 3:56:24 PM2/14/11
to UNL Event Publisher
Great! That problem now seems to be taken care of.

There's another issue I brought up a while back, I don't think any of
you had this problem, but I still do. When I post events, I can see
them in the year view, but not in the week, month, or day views,
unless the event happens to be today's event. And I only see it in
div class="day_cal" not in the ui-widget. If I click the link to the
event in the day's event summary, it takes me back to the day's
summary, so I can't actually view the event. If I click the "next"
link in the day's event summary, it takes me back to today's event
summary.

Essentially, I cannot see any events in the calendar widget, and I
cannot navigate to any other days except through the event widget
(from which I cannot see any events). The only exception is that the
"This Year" tab does show me what days have events, but when I click
on the links to those events, it points me back to today's summary,
even if the event was not today's event.

On Feb 8, 12:22 pm, Michael Fairchild <mfairchild...@gmail.com> wrote:
> Nathan,
>
> I just committed some code that I think should fix your problem.
>
> Each calendar can have its own theme now.  To change your calendar's theme
> go to the admin interface and click on "calendar info" and from there change
> the theme to whatever you want.
>
> The code that I just committed will set your theme to a default of "base" if
> you have not yet selected a theme.  This should remedy the problems that you
> are having, if not please let me know and I will look into it further.
>
> Regards,
> Michael Fairchild
>
> On Mon, Feb 7, 2011 at 3:41 PM, Nathan Kern <natek5...@gmail.com> wrote:
> > Has there been any progress in this?  Is this an issue that is only
> > affecting me?
>
> > Nathan
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "UNL Event Publisher" group.
> > To post to this group, send email to unl-event...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > unl-event-publi...@googlegroups.com<unl-event-publisher%2Bunsu...@googlegroups.com>
> > .

Michael Fairchild

unread,
Feb 16, 2011, 12:34:32 PM2/16/11
to unl-event...@googlegroups.com
I see that issue too.  I will do what I can to fix it.

To unsubscribe from this group, send email to unl-event-publi...@googlegroups.com.

Michael Fairchild

unread,
Feb 23, 2011, 11:52:47 AM2/23/11
to unl-event...@googlegroups.com
Nathan,

I committed some code over the last few days that should fix this issue.  When you have a moment, check it out and let me know what you think.

Thanks,
Michael Fairchild

Nathan Kern

unread,
Mar 7, 2011, 6:24:42 PM3/7/11
to UNL Event Publisher
Whew, sorry for the delay.

I can now navigate days as I should expect, but the calendar widget
still doesn't seem to show events.

On Feb 23, 10:52 am, Michael Fairchild <mfairchild...@gmail.com>
wrote:
> Nathan,
>
> I committed some code over the last few days that should fix this issue.
> When you have a moment, check it out and let me know what you think.
>
> Thanks,
> Michael Fairchild
>
> On Wed, Feb 16, 2011 at 11:34 AM, Michael Fairchild <mfairchild...@gmail.com

Nathan Kern

unread,
Apr 4, 2011, 5:41:28 PM4/4/11
to UNL Event Publisher
Does anyone know why, when I change $frontend_config['template'] in
config.inc.php, it only seems to take effect on some pages? For
example, for some reason when I go to the front page, it is showing up
with the 'default' template. If I click on the link to view events
for 'This Year', it shows up with the 'ucollege' template that my
school uses, and if I click on the link for 'Upcoming' events, it
shows up with the 'vanilla' template.

If it makes any difference, the order in which I was testing out
template options in the config.inc.php file was: vanilla, ucollege,
default, vanilla (current).

Nathan Kern

Michael Fairchild

unread,
Apr 5, 2011, 4:38:02 PM4/5/11
to unl-event...@googlegroups.com
Nathan,

We made some changes that should fix some of the issues that you are having.  The calendar widget in the vanilla template should now show all the events properly.

If you are still having the $frontend_config['template'] problem, please try to remove all of the cache files in your /tmp/ directory.  If that does not work, let me know. 

Regards,
Michael Fairchild


--

Nathan Kern

unread,
Apr 5, 2011, 5:02:26 PM4/5/11
to UNL Event Publisher
Yep. Both of those work.

Thanks Michael.

On Apr 5, 3:38 pm, Michael Fairchild <mfairchild...@gmail.com> wrote:
> Nathan,
>
> We made some changes that should fix some of the issues that you are
> having.  The calendar widget in the vanilla template should now show all the
> events properly.
>
> If you are still having the $frontend_config['template'] problem, please try
> to remove all of the cache files in your /tmp/ directory.  If that does not
> work, let me know.
>
> Regards,
> Michael Fairchild
>
Reply all
Reply to author
Forward
0 new messages