channel->item as $item ) { $currentLink = $item->link; $currentTitle = $item->title; $currentBlurb = $item->description; $dc = $item->children('http://purl.org/dc/elements/1.1/'); $currentAuthor = $dc->creator; } //edit out "go to last post" in link $currentLink = str_replace("&goto=newpost", "", $currentLink); //TODO limit description character limit $newBlurb = substr($currentBlurb, 0, 400); //Find forum author userid and hence finds their avatar. if ($currentAuthor == "") { print "

Oops!

Fatal Error: RSS Feed parsing error. Could not determine author of event announcements. Please email us at max@swgemu.com if this message is not resolved by refreshing this page.

Sorry for this mishap!"; exit; } elseif ($currentAuthor == "El'layn") { $currentAvatar = 4438; } elseif ($currentAuthor == "Tow'lin") { $currentAvatar = 17300; } elseif ($currentAuthor == "Belgarion") { $currentAvatar = 61489; } elseif ($currentAuthor == "Lunatec") { $currentAvatar = 13418; } elseif ($currentAuthor == "Learningdisease") { $currentAvatar = 40206; } ?> SWGEmu - Events Minisite
Current Time (EST):
NEXT / CURRENT EVENT

" width="60px" height="60px" />

...


RECENT EVENTS
    channel->item as $item ) { $newLink = str_replace("&goto=newpost", "", $item->link); print '
  • '.$item->title.'
  • '; } ?>
THE EVENTS TEAM