Solved

Joomla/PHP alternative page to load content getting "restricted access"

Posted on 2010-08-12
2
657 Views
Last Modified: 2012-06-22
I'm trying to get links from articles on my Joomla site to popup in a new window. This part I've done with a POPUP.PHP class.

I can call the page thus:

<a title="The 1980s" class="popup" href="http://www.mysite.org/index.php?option=com_content&view=article&id=54:1980s">1980</a>

The above will successfully pop up the window that I want, showing the article that I am targeting, but it inherits all of the site template, including the menu system. I want to have a cleaner look for the popups, so I copied the index.php file out under a new name, cleanscreen.php and removed some of the module calls.

Therefore, I try calling my slightly modified php file as follows:

<a title="The 1980s" class="popup" href="http://www.mysite.org/cleanscreen.php?option=com_content&view=article&id=54:1980s">1980</a>

No joy, I get a 404 file not found. So, I include the full path thusly:


<a title="The 1980s" class="popup" href="http://www.mysite.org/templates/family_resource/cleanscreen.php?option=com_content&view=article&id=54:1980s">1980</a>

Now, I get a "Restricted access" message instead.

I've checked the file access rights on the server and put them to 644 the same as the index.php script.

My question is two-fold.

1. Where do I tell the application to find my alternative php script (cleanscreen.php) without having to hard code the path?

2. How do I resolve the Restricted access error and have the page display?

Thanks for any assistance!
0
Comment
Question by:AndrewJen
2 Comments
 
LVL 24

Expert Comment

by:lenamtl
ID: 33420990
0
 
LVL 4

Accepted Solution

by:
Jernej Navotnik earned 500 total points
ID: 33670042
Hi!

Just a quick suggestion:
You could try to open the first link like this:
<a title="The 1980s" class="popup" href="http://www.mysite.org/index.php?option=com_content&view=article&id=54:1980s&component">1980</a>
Notice the >&component< added to the end of the link.

Or, you could try to open the link using index2.php.
This resolves your problem with displaying only the component, without the css and the menu.
And afterwards resolves the restricted access issue.

Best regards, Jernej
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Software Development intellectual Property Contract 10 63
How to speed up an ASP/MS SQL web application 6 69
Live mode in DW, need to creae Session 4 75
Error viewing ASP page 12 146
Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now