Page 1 of 1

How do I integrate external content...

Posted: Thu 24. Feb 2005, 17:49
by marcus@localhorst
...which is shared over two sites?

there is a public event database which lists events, restaurants etc. and from each event there is a link to more informations about the event.

(like this http://www.fvv-am-scheibenberg.de/Scheibenberg/ )

i think i need the data as XML (like a Newsfeed) thats should be easy to integrate, but what is with the extended informations of each headline? is it possible to get this in phpwcms? and how?
or is it easier to get the headlines as xml and open a popup window with the extended information, from the external website?

do you know what i mean? i hope so...
best wishes
marcus

Posted: Thu 24. Feb 2005, 17:57
by pico
do you know what i mean? i hope so...
not realy :oops: :?:

Posted: Thu 24. Feb 2005, 18:27
by marcus@localhorst
my english is too bad ;-(

diese seite z.B.
http://www.fvv-am-scheibenberg.de/Schei ... ungsreport soll in phpwcms integriert werden (der content für die neue seite kommt einmal aus der phpwcms datenbank und aus dieser externen "event"datenbank.

nun wäre es einfach, wenn ich die daten als xml bekomme, diese in phpwcms darzustellen (wie einen externen newsfeed) aber kann ich auch die erweiterten informationen, die hinter den veranstaltungsüberschriften stehen in phpwcms bekommen?

ich denke möglich ist das aber ich bin mir noch nicht im klaren wie...
any idea?

Posted: Thu 24. Feb 2005, 19:54
by brans
{URL:deineurl}

Posted: Thu 24. Feb 2005, 20:06
by pico
und das ganze evtl in einen iframe

Posted: Fri 25. Feb 2005, 08:03
by brans
hmm also nicht {URL:} in einem Iframe, da dieser Tag den gesamten Bereich einer Seite zwischen <body> und </body> darstellt.

Posted: Fri 25. Feb 2005, 08:18
by marcus@localhorst
bloß keine frames :-), obwohl, wenns schnell gehen soll.
aber den iframes kann man doch keine 100% höhe geben, lag mir so entfernt im gedächtniss?!

Posted: Fri 25. Feb 2005, 09:31
by brans
dann verwendest du einfach ein per javascript eingepasstes iframe, dass immer automatisch die Grösser der Inhaltsseite annimmt => die Seite sieht nahtlos eingegliedert aus. Durchsuche mal das Forum nach diesem Thema, wirst da einiges finden.

http://www.phpwcms.de/forum/viewtopic.php?t=1116#6076

Posted: Fri 25. Feb 2005, 10:35
by marcus@localhorst
ne, das ist mir zu wacklig ;-)
ich denke die xml lösung ist einzig sinnvoll (technisch gesehen).
ich sollte mir vielleicht mal XML4PHPWCMS ansehen?!

Posted: Fri 25. Feb 2005, 12:15
by brans
--...--/index.php/topic,49.0.html
TriP wrote:Description:
With this modification you can include XML data on your website. The data can be local on your server or from another HTTP source (RSS).
Ich denke das ist genau das richtige für dich, der Export wird ja bereits geregelt. Ich denke es geht dir hauptsächlich darum den Style anzupassen ?!?

Ich könnte dir sonst noch snoopy empfehlen.
http://snoopy.sourceforge.net/

Posted: Fri 25. Feb 2005, 12:23
by marcus@localhorst
yeah,

kann man snoopy irgendwo in action sehen?
weil so ganz kann ich mir noch nicht vorstellen, was das macht...

Posted: Wed 27. Apr 2005, 17:48
by brans
hmm snoopy extrahiert dir jeden beliebigen Teil aus einer Webseite
Beispiel:
Im Quelltext der Seite befinden sich HTML-Kommentare (Anfang und Ende), alles zwischen diesen Kommentaren möchtest du gerne in deine Seite integrieren:

Anfang = <!-- Anfang -->

Ende = <!-- Ende -->

natürlich könnten diese HTML-Kommentare irgendwelche beliebigen Strings sein.

Posted: Wed 27. Apr 2005, 18:28
by marcus@localhorst
yeah, i've integrate snoopy to phpwcms with a RT {GRAB:http://www.xyz.de/bla.php?var=doof} and it works very well. i rewrite all links and so i've integrate a whole site

here the original:
htt-p://www.fvv-am-scheibenberg.de/Scheibenberg ... ft/Ausgabe

and here the included one:
http://idk.lw-s13.sserv.de/wirtschaft.phtml

4 days of hard work and fights with regEx - the programming could be better but it works - if the output is valid...
used this tutorial:
(http://www.jjwdesign.com/data_mining_functions.html)

Posted: Thu 28. Apr 2005, 11:22
by brans
couldn`t you post this cool reptag to --...-- ??

Posted: Thu 28. Apr 2005, 11:48
by marcus@localhorst
yeah, i would, but the code is lousy and it should be a little bit reworked from a regEx/php Guru ;-)

it's not very comfortable to cusomize.
Could you (or maybe you know someone) rewrite it a little bit? so i will send the stuff to your mail adress...
(i try to comment out the code as good as possible ;-)

greetings
marcus