so im trying to add the block. i copied the text in the downloaded zip file, pasted to the new html block, and all i get is code, i put it in the php block, i get syntax error... which areas need editing so this works on my site?
<?xml version="1.0"?>
<!DOCTYPE block-info SYSTEM "
http://www.ezportal.com/xml/block-info">
<block-info xmlns="
http://www.ezportal.com/xml/block-info" xmlns:ezportal="
http://www.ezportal.com/">
<id>chadon:mediagallery</id>
<title>Media Gallery randon photos</title>
<version>1.1</version>
<blocktype>php</blocktype>
<forumversion>SMF 1.1x 2.x</forumversion>
<author>Chadon</author>
<website>
http://www.ozinart.com/index.php?action=contact</website>
<editable>1</editable>
<can_cache>1</can_cache>
<parameter1>
<type>string</type>
<required>1</required>
<default>4</default>
<title>Number of images</title>
<order>1</order>
</parameter1>
<blockdata><![CDATA[global $sourcedir, $context, $txt, $galurl, $scripturl, $settings;
require_once($sourcedir . '/Subs-MGallery.php');
loadMGal_Settings();
if (loadlanguage('MGallery') == false)
loadLanguage('MGallery', 'english');
$items = getMediaItems(0, $parameter1, 'RAND()');
foreach ($items as $item)
echo '
<div class="smalltext" style="text-align: center; line-height: 1.4em; border: 1px
#000000 solid; padding: 5px;">
<a href="',$galurl,'sa=item;id=',$item['id'],'"><img
src="',$galurl,'sa=media;id=',$item['id'],';thumb" alt="',$item['title'],'" /></a>
</div>
';]]></blockdata>
</block-info>