I put
Code:
<script language="JavaScript">
function setHome()
{
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage(window.location.href);
}
</script>
inside <head></head> of pligg.tpl file and
Code:
<a href="javascript:setHome("http://www.yourdomainname.com")">
Set Home Page</a>
at the beginning of header.tpl file of yget template. I am getting a blank page with the error:
Code:
Fatal error: TPL: [in yget/pligg.tpl line 49]: syntax error: document function does not exist (class.compiler.php, line 485) in E:\apachefriends\xampp\htdocs\pligg\class.template.php on line 923
How to fix it?