<?xml-stylesheet type="text/xsl" href="http://eduspaces.net/edavis/weblog/rss/rssstyles.xsl"?>
<rss version='2.0'   xmlns:dc='http://purl.org/dc/elements/1.1/'>
    <channel xml:base='http://eduspaces.net/edavis/weblog/'>
        <title><![CDATA[ellen davis : Weblog]]></title>
        <description><![CDATA[The weblog for ellen davis, hosted on EduSpaces.]]></description>
        <generator>Elgg</generator>
        <link>http://eduspaces.net/edavis/weblog/</link>        
        <item>
            <title><![CDATA[Calendar Plugin for Elgg 0.7]]></title>
            <link>http://eduspaces.net/edavis/weblog/157475.html</link>
            <guid isPermaLink="true">http://eduspaces.net/edavis/weblog/157475.html</guid>
            <pubDate>Tue, 06 Mar 2007 15:36:24 GMT</pubDate>
		<dc:subject><![CDATA[calendar]]></dc:subject>
		<dc:subject><![CDATA[plugin]]></dc:subject>
		<dc:subject><![CDATA[elgg0.7]]></dc:subject>
            <description><![CDATA[<p>I have uploaded the calendar plugin.&nbsp; It should work on elgg 0.7.&nbsp; Note that this plugin needs lots of testing yet.&nbsp; I would not recommend it for a production site.&nbsp; Any commments, problems, suggestions for improvements would be most welcome.</p><p>&nbsp;</p><p>&nbsp;</p>]]></description>
        </item>
                
        <item>
            <title><![CDATA[Calendar - Add an Entry (add.php)]]></title>
            <link>http://eduspaces.net/edavis/weblog/145430.html</link>
            <guid isPermaLink="true">http://eduspaces.net/edavis/weblog/145430.html</guid>
            <pubDate>Fri, 29 Dec 2006 14:18:35 GMT</pubDate>
		<dc:subject><![CDATA[calendar]]></dc:subject>
            <description><![CDATA[<p>From looking at dashboard (mod/adash/add.php), I found add.php displays the form to add data, and when the user clicks submit it is also used to save the data to SQL database.</p><p>I used most of the code from the old calendar to display the form.&nbsp; I did change the way that the date is requested.&nbsp; Instead of a text field, I now use drop down lists for day, month, year, hour, minute.&nbsp; This makes it easier for me to code (the textfield data had to be parsed). &nbsp;</p><p>I also found that Active Calendar does not use hour/minutes in its events.&nbsp; I may have to use something else.&nbsp; We&#39;ll see.</p><p>So, the form is now displayed when you are logged on and click Add an Event.&nbsp;&nbsp; And the data is saved to SQL when hitting submit.</p><p>Some error checking is done.&nbsp; A title is required.&nbsp; The dates are chekced to be valid (can&#39;t choose Feb 31, or date end before date start).&nbsp; If an error arises, the form is displayed again (with the user&#39;s input), with an error message.</p><p>&nbsp;</p><p>SQL changes:</p><p>&nbsp; I have dropped use of the CALcalendar table. It had ident and owner fields.&nbsp; owner matched owner from elggusers.&nbsp; ident was used a calendar-owner (it matched owner in CALevents).&nbsp; I am simply using elggusers.owner for owner in events table now.&nbsp; I&#39;m not sure why it was done this way in the orginial code (written by someone else). &nbsp;&nbsp;</p><p>&nbsp;The CALevents table has been renamed to calendar_events.&nbsp; The layout of this table stays the same.</p><p>&nbsp;</p><p>Permissions Testing:</p><p>&nbsp;</p><p class="MsoNormal">I wasn&#39;t exactly sure how the permissions worked.&nbsp; So I did a little testing by going to the calendar add page&nbsp; &quot;<a href="http://myhost/elgg-0.672/mod/calendar/add.php?owner=2">http://myhost/elgg-0.672/mod/calendar/add.php?owner=2</a>&quot; when: </p>  <ul><li>Not logged in:&nbsp; Says &ldquo;You do not have permission to events to this calendar.&rdquo;</li><li>Logged in as news: Lets me add a record. (owner=2 access=user1) Should news be able to add this event?&nbsp; This seems wrong to me.&nbsp; With access=user1, does this mean that only news would be able to view this event?&nbsp; <br /></li><li>Logged in as another user (not news):&nbsp; Says &ldquo;You do not have permission to events to this calendar.&rdquo;</li><li>Logged in as user2 (owner of calendar):&nbsp; Lets me add event, as expected.<br /> </li></ul><p>&nbsp;</p>]]></description>
        </item>
                
        <item>
            <title><![CDATA[Calendar - How to Setup SQL tables]]></title>
            <link>http://eduspaces.net/edavis/weblog/144981.html</link>
            <guid isPermaLink="true">http://eduspaces.net/edavis/weblog/144981.html</guid>
            <pubDate>Fri, 22 Dec 2006 18:20:20 GMT</pubDate>
		<dc:subject><![CDATA[elgg calendar sql]]></dc:subject>
            <description><![CDATA[<p>After I read Nathan&#39;s comment to my initial Calendar Rwewite posting, it got me to thinking about how I coded the SQL table setup for calendar.</p><p>I used the code from dashboard.&nbsp; It worked great and created the calendar tables when I went to my elgg site.&nbsp; But, then I got to thinking.&nbsp; If I had a busy site, and just installed the elgg calendar plugin, then the next person who went to the site would get the Success messages.&nbsp; This probably would confuse the user.&nbsp; And the system administrator would miss the chance to see those messages (or error messages).</p><p>So I thought, make sure the SQL table code is only run if logged on as news.</p><p>if (isloggedin() &amp;&amp; user_info(&quot;username&quot;,$_SESSION[&#39;userid&#39;]) == &#39;news&#39;) {<br /></p><p>This works OK. The tables are created the next time news logs in.</p><p>But, there would be a period of time when the Your Calendar tab would show for logged in users, but the tables would not be created yet.&nbsp; (Your Calendar is defined in calendar_pagesetup in lib.php and the calendar tables are created in calendar_init which also lives in lib.php.&nbsp; The core elgg runs _init and _pagesetup for all plugins in mod.) This could be small, if the administrator logged in as news right after installing the calendar files to mod.&nbsp; But again, it seems messy.&nbsp; The SQL tables should definitely be created first.&nbsp; Then, the Your Calendar tab should show up.</p><p>So, I&#39;m thinking of taking the SQL table creation code out of calendar_init.&nbsp; And maybe create some special first time initialization only routine.&nbsp; Maybe something like Nathan&#39;s folio_foliosetupdb.php.</p><p>So, the process would be to run calendarsetupdb.php first, then place the calendar files in mod. </p><p>Am I on the right track? Or is there a way to turn off elgg, except for news while installing a plugin?</p><p>&nbsp;</p>]]></description>
        </item>
                
        <item>
            <title><![CDATA[Calendar Rewrite]]></title>
            <link>http://eduspaces.net/edavis/weblog/144969.html</link>
            <guid isPermaLink="true">http://eduspaces.net/edavis/weblog/144969.html</guid>
            <pubDate>Fri, 22 Dec 2006 15:48:14 GMT</pubDate>
		<dc:subject><![CDATA[calendar]]></dc:subject>
            <description><![CDATA[<p>I;ve decided to attempt to rewrite the calendar plugin.&nbsp; I&#39;ll put a few days work into it and see how it goes.</p><p>&nbsp;I plan to use the Active Calendar class from <a href="http://www.micronetwork.de/activecalendar/">http://www.micronetwork.de/activecalendar/</a> to produce the calendars.</p><p>&nbsp;Messages from Ben and Sven on the Elgg Developement list have given me some direction.&nbsp; Put all the code in mod, and use adash (dashboard) as an example.&nbsp; Having all the code in one directory should simplify things.</p><p>&nbsp;I&#39;ll post my progress here. <br /></p>]]></description>
        </item>
                
        <item>
            <title><![CDATA[Hello]]></title>
            <link>http://eduspaces.net/edavis/weblog/13575.html</link>
            <guid isPermaLink="true">http://eduspaces.net/edavis/weblog/13575.html</guid>
            <pubDate>Wed, 03 May 2006 13:54:22 GMT</pubDate>
            <description><![CDATA[<p>This is my first entry.</p><p>&nbsp;I will be testing Elgg for possibly deployment at the college where I work.</p><p>&nbsp;</p>]]></description>
        </item>
        
    </channel>
</rss>