Anyone Speak PHP That's Willing To Translate

3 replies
Can you tell me if this is a block that is not allowing this theme/template to display this on the home page?

<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );$iso = split( '=', _ISO );echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

I installed Joomla and it works fine with the templates that the install came with, but I found one that I want to use and uploaded it via ftp and everytime I try to make it my default template I get this message on my homepage

Direct Access to this location is not allowed.

What gives?
#php #speak #translate
  • Profile picture of the author SEO_BOS
    There is a chance the template is not compatible with the version of Joomla you are running. Check versions. Some templates only work for older 1.0 Joomla.
    {{ DiscussionBoard.errors[672392].message }}
  • Profile picture of the author mywebwork
    <?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." ); = split( '=', _ISO );echo '<?xml version="1.0" encoding="'. .'"?' .'>';?>
    This is a pretty standard PHP header for a Joomla component or module, it's a security feature to only enable Joomla pages when called directly from Joomla. It isn't likely the source of your template problem.

    Can you let us know what template (if it's open source) that you are trying to run, and which version of Joomla you're using?

    Bill
    {{ DiscussionBoard.errors[673854].message }}
    • Profile picture of the author Web Dummie
      HA!

      I got it!

      I was trying initially running Joomla 1.5. So I tried what SEO_Bos said and that was the exact problem.

      Removed 1.5 and installed 1.0 loaded up the template and Wallah!

      Now here's my next problem......

      I was trying to fix this issue all night last night and accidentally added the code from this template that I thougt was corrupt to my new scripts index.php install!

      Now I'm getting that Access Denied on my first project that was already to go. DoH!

      This is fun though.... love that feeling you get when something works.

      Thanks again for the help.

      Bill, thanks for popping up again, take a look at that url I pmed you and you will see what I'm talking about.

      I'm hoping the developer doesn't ding me to correct my mistake!
      {{ DiscussionBoard.errors[673896].message }}

Trending Topics