Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 5th Apr 2009, 11:30 PM   #1
Active Warrior
 
Web Dummie's Avatar
 
Join Date: 2007
Location: Las Vegas, NV
Posts: 76
Thanks: 5
Thanked 2 Times in 2 Posts
Default
Anyone Speak PHP That's Willing To Translate
Share on: 
fb share twitter share gplus share more share

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?
Web Dummie is offline  
Unread 6th Apr 2009, 12:38 PM   #2
HSpin Design
 
Join Date: 2009
Location: Boston, MA
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Anyone Speak PHP That's Willing To Translate
Share on: 
fb share twitter share gplus share more share

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.

HSpin Design - Unique Web Development / Design for the Internet Marketing Entrepreneur.

Coming Soon - IM Web Apps
SEO_BOS is offline  
Unread 6th Apr 2009, 11:11 PM   #3
VIP Warrior
War Room Member
 
ereadergold's Avatar
 
Join Date: 2008
Location: Montreal Canada
Posts: 2,390
Thanks: 1,017
Thanked 836 Times in 572 Posts
Blog Entries: 1
Default
Re: Anyone Speak PHP That's Willing To Translate
Share on: 
fb share twitter share gplus share more share

<?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
ereadergold is offline  
Unread 6th Apr 2009, 11:36 PM   #4
Active Warrior
 
Web Dummie's Avatar
 
Join Date: 2007
Location: Las Vegas, NV
Posts: 76
Thanks: 5
Thanked 2 Times in 2 Posts
Default
Re: Anyone Speak PHP That's Willing To Translate
Share on: 
fb share twitter share gplus share more share

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!
Web Dummie is offline  
Closed Thread


Bookmarks

Tags
php, speak, translate


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:07 PM.