View Single Post
Old November 30th, 2005, 09:48 PM   #15 (permalink)
mclare
Junior Member
Verified Customer
 
Join Date: Aug 2004
Location: Lancaster, CA
Posts: 24
Send a message via Yahoo to mclare
Okay, I forgot and put it in the wrong place and now put it in the vb2templates and now I get this error:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/mclare/artists-exchange.com/covers/templates/vb3enhanced/showphoto.tmpl on line 277

I did put in the opening and closing braces and now the code reads:


{
echo<<<PPPRINT
<tr>
<td class="{$Style['tddetails']}" align="left" valign="top">
Download Link
</td>
<td class="{$Style['tddetails']}" align="left" valign="top">
<a href="{$imgurl}">Download this file</a>
</td>
</tr>
PPPRINT;
}

if ( $Globals['showubb'] == "yes" && $imgurl != "" ) {
echo<<<PPPRINT
<tr>
<td class="{$Style['tddetails']}" colspan="2" align="left" valign="top">
<script language="javascript" type="text/javascript">
<!--
function copy_to_clipboard()
{
window.clipboardData.setData("Text", "{$showcode}");
};
//-->
</script>
<span class="{$Style['small']}"><b>{$Globals['pp_lang']['ubbcode']}:</b> <input type="text" name="ubb" value="$showcode" size="80" onclick="this.focus();this.select()"> &nbsp;&nbsp;&nbsp;&nbsp;
<script language="javascipt" type="text/javascript">
<!--
if((typeof clipboardData != 'undefined') && (clipboardData.setData) && (document.write)){
document.write('<input type="button" style="font-size:7pt;" value="{$Globals['pp_lang']['copyto']}" onclick="copy_to_clipboard()" />');
}
//-->
</script></span>
</td>
</tr>
PPPRINT;
}

Thanks
mclare is offline   Reply With Quote