This topic is locked

Joomla integration and correct URLs

8/29/2012 7:50:00 AM
PHPRunner General questions
M
mmponline author

I've read the Joom la integration topics and even implimented them with 2 ways:

  1. Iframe

    2.Using the headers and footers of the Joomla design in PHPRUNNER as header and footer.
    Both of these have drawbacks however.
  2. When using an Iframe, the URL on top never changes to the actual url of the page. This means that if someone picks up the URL on a Search Engine (Eg. Google) the page would open without a header and footer. (The same as older Frames page websites. This means that navigation to other places would not work at all. Not Ideal.
  3. When using Headers and footers, one can get close to the real Monty and the pages looks very simialr to the rest of the Joomla design (See eg. http://splitseconds.co.za/ssdb/Clubs_list.php?a=showall) Unfortunately, there are some CSS clashes that effects the design (See for instance what happens when searching in the search box. ) The search dropdown results appear in the left corner iso underneath the search bar. Other design elements also don't always show up correctly as well. Finding the css elements is impossible (with my knowledge at least.
    Question:
    Do anyone know of some Joomla plugin of Module that can include the specific url of hte dtabase files but also display the correct url in the addressbar. Something like this must be possible as I know for Iinstance that JoomGallery integrates like this and displays the correct adress in the adresbar. This would make the integration into Jomla very effective and compatible with search engines.
    Any help or ideas would be appreciated.

Sergey Kornilov admin 8/29/2012

You can in fact use both methods to achieve what you looking for.

  1. Add your code to PHPRunner application that check the current URL and redirects user to iframed version if required. This will solve the issue with visitors coming from Google.
  2. Resolve CSS incompatibility issue. There is something in your header/footer file CSS that conflicts with PHPRunner' CSS. Removing portions of header CSS you find what exactly causes this trouble and adjust it accordingly.

M
mmponline author 8/29/2012

I'll check 2.

Any guidance on where to find code that will redirect user to Framed version? This will save a lot of headaches, custom header and footer creations, etc.

Sergey Kornilov admin 8/29/2012

Here it is (pseudo-code)

  1. Find current page URL
  2. Check if current page URL is the framed one
  3. If not - build correct URL and redirect user there
    This code can be added to AfterAppInit event.

M
mmponline author 8/30/2012

Thanks Sergey

I understand the code, but have no idea of an actual example. Can you (or anyone reading this) please assist witha practical code example. I'm sure I'll be able to customise a code with the actual correct urls.

Sergey Kornilov admin 8/30/2012

I cannot provide sample code as it all depends on your application URL structure and logic behind it. It doesn't have any PHPRunner specifics either. Just check the URL and change it to what it needs to be.