View Single Post
  #4 (permalink)  
Old 01-17-2008, 04:13 AM
animas animas is offline
Casual Pligger
 
Join Date: Oct 2007
Posts: 81
Thanks: 16
Thanked 8 Times in 4 Posts
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?
Reply With Quote