- 
	
	
	
		
PHP Includes?
	
	
		I am upgrading from an older version where I had a php include in the right.tpl. I see that place is now in index.tpl and I am wondering how to get an include to fit on top of the advertising on the home page right column?
What I had was:
<center>{php}
include "filename.php";
{/php}<br></center>
 
I can't make it work and when I put it over the advertising block in index.tpl it then blocks out eveything and nothing appears in the right block.
	 
 - 
	
	
	
	
		Open index.tpl, search for
	Quote:
	
		
		
			<div id="sidebar">
			
		
	
 This is the sidebar, add your code inside sidebar div.
	 
 - 
	
	
	
	
		Hi,
If you are using latest version of vShare,
you must set  allow_php_tag = true to enable php tags in template files.
Open include/vshare.php file and add
	Code:
	
$smarty->allow_php_tag = true;
 After 
	Code:
	
$smarty = new Smarty();
 Thanks,
Buyscripts Team.
	 
 - 
	
	
	
		
perfect