Author Topic: Problem including external script  (Read 2662 times)

0 Members and 1 Guest are viewing this topic.

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Problem including external script
« on: August 23, 2005, 10:51:17 PM »
Hi, sorry for my bad english but i try to explain for my best.

As you can see on my url below, i want to include a external script for a marketplace.
This script works perfect if i call the script like a webpage in the browser.
you can see this at http://www.industrie-gravuren.de/galerie/kleinanzeiger/index.php and test it.

My problem is that i want to have this in my main template in the middle if i push the link "Kleinanzeiger" of my nav bar.
Unfortunately the script main file is also called index.php . i don´t know if this is a problem for including in 4images.

i tried to put the script with
<?php
include("/galerie/kleinanzeiger/index.php");
?>

into my kleinanzeiger.html file, but it does not work as you can see if you use my kleinanzeiger link of the nav bar.
it is always leading me to the setup.php file. but i already got message of perfect installation.

i put the main (i think) files in attachement.
in hoping to receive help.
Thanks for spending time.

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Problem including external script
« Reply #1 on: August 23, 2005, 11:07:53 PM »
hi bibabobu,

das gesamte Script "Kleinanzeiger" kannst du nicht einfach "includen", da es ja nicht nur aus einer Seite, sondern aus mehreren Seiten besteht, zumal mit den Anzeigen weitere dazukommen. Das ganze in die php-Struktur von 4images zu integrieren erfordert einen enormen Prog-Aufwand. Ich würde dir empfehlen das Script in einem iFrame ablaufen zu lassen (analog meinem Link-Direktory). So kannst du auch deine Navigationsbar problemlos weiterverwenden und zumal du das Script schon installiert hast dürfte dann auch die Einbindung schnell erledigt sein.

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: Problem including external script
« Reply #2 on: August 23, 2005, 11:20:05 PM »
Hallo mawenzi,

vielen Dank für Deinen Tipp. Werde mir mal Dein Link-Directory ansehen.
I-Frame habe ich glaub ich schon mal gehört. Leider habe ich keinen Schimmer was das ist, wie der Code aussieht noch wie ich das in mein
kleinanzeiger.html einbinde.

Vielleicht hast Du mir noch genauere Infos bezgl. i-frames


Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: Problem including external script
« Reply #3 on: August 23, 2005, 11:40:27 PM »
Danke mawenzi,

ich hab es gerade gebacken bekommen.
Nur so ne kleine Zeile und davor Stunden lang rumprobiert.
 :D :D :D
 :mrgreen: