Embed Meeting List in an PHP site

The following approach was used with the "fake" Alabama Section Site:


Rename your "index.html" file to "index.php".

Add the following code to the front of the page after the </head> tag:

<?php

$handle = fopen('http://meetings.vtools.ieee.org/meetings/R30001/-0/365','r');
$data = ' ';

if ( $handle == FALSE )
{
  $data = "OU Management Feed is unavailable at this time.";
} else {
  while( ! feof($handle) )
  {
    $line = fgets($handle, 1024);
    $line = preg_replace('/href="\//','href="http://meetings.vtools.ieee.org/', $line);
    $data .= $line;
  }
  fclose($handle);
}
?>

Note that the URL http://meetings.vtools.ieee.org/meetings/R30001/-0/365 requests information about the Section corresponding to the GeoCode R30001 (Alabama Section) from -0 days ago to 365 days in the future. This will return all qualifying Section/Chapter/Affinity Group meetings in this range that have been marked as published by the section volunteer using the meetings.vtools.ieee.org interface.

In the header section of the HTML file put in the following additional style information and adjust as appropriate. Some example formatting is shown but it is strictly up to the hosting site to format as appropriate.

   <style type="text/css" media="screen">
<!--
    /* Styles from meetings feed */
    .meetingTable { }
    .meetingTable td,th { padding:8px;}
    .meetingHeaderRow { background-color: #8BB1B1;}
    .meetingRow {}
    .meetingDate {}
    .meetingLinkedName {}
    .meetingDescription {}  /* unused */
-->
   </style>

Then, where you want the table of information of about the meetings to occur put

<?php echo $data; ?>

When the web page is loaded, it will make an inquiry of the meetings.vtools.ieee.org server at IEEE and substitute information from that server. It will look something like:

<div id="meetings">
<table class="meetingTable" border cellpadding="2" width="100%" col>
<tr class="meetingHeaderRow"><th>Date</th><th>Event Title</th><th>Speaker(s)</th></tr>
<tr class="meetingRow">
<td class="meetingDate">
  
  10 September 2007 05:10PM
</td>
<td class="meetingLinkedName">
<a href="http://meetings.vtools.ieee.org/meeting_view/list_meeting/12" target="_blank">September Section Meeting: F-117 Stealth Fighter Project</a>
</td>
<!-- <td class="meetingDescription">
<b>Come and meet the Control System Team Leader for the F-117 Stealth Fighter Project</b>
</td> -->
<td>
  Eldred "Don" Merkl  
</td>
</tr>
    
</table>
</div>  

or (without the style sheet impact):


DateEvent TitleSpeaker(s)

10 September 2007 05:10PM

September Section Meeting: F-117 Stealth Fighter Project Eldred "Don" Merkl

Note the (sic) span tag over the whole range is inserted by Microsoft and is probably a misuse of the control chosen. In this example, only one meeting is in the system. More would be rows would be present if more information was available in meetings.vtools.ieee.org.

-- DavidGreen - 02 Sep 2007
-- DavidGreen - 04 May 2008
-- DavidGreen - 04 Aug 2008
-- DavidGreen - 12 Sep 2009

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r12 < r11 < r10 < r9 < r8 | More topic actions
Topic revision: r12 - 12 Sep 2009 - 17:03:34 - DavidGreen
Main/OUMeetings.PhpEmbedMeetings moved from Oumgt.PhpEmbedMeetings on 31 Oct 2007 - 22:07 by DavidGreen
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback