How do I integrate external content...

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
User avatar
marcus@localhorst
Posts: 815
Joined: Fri 28. May 2004, 11:31
Location: localhorst
Contact:

How do I integrate external content...

Post 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
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

do you know what i mean? i hope so...
not realy :oops: :?:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
marcus@localhorst
Posts: 815
Joined: Fri 28. May 2004, 11:31
Location: localhorst
Contact:

Post 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?
brans

Post by brans »

{URL:deineurl}
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

und das ganze evtl in einen iframe
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
brans

Post by brans »

hmm also nicht {URL:} in einem Iframe, da dieser Tag den gesamten Bereich einer Seite zwischen <body> und </body> darstellt.
User avatar
marcus@localhorst
Posts: 815
Joined: Fri 28. May 2004, 11:31
Location: localhorst
Contact:

Post 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?!
brans

Post 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
User avatar
marcus@localhorst
Posts: 815
Joined: Fri 28. May 2004, 11:31
Location: localhorst
Contact:

Post 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?!
brans

Post 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/
User avatar
marcus@localhorst
Posts: 815
Joined: Fri 28. May 2004, 11:31
Location: localhorst
Contact:

Post by marcus@localhorst »

yeah,

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

Post 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.
User avatar
marcus@localhorst
Posts: 815
Joined: Fri 28. May 2004, 11:31
Location: localhorst
Contact:

Post 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)
brans

Post by brans »

couldn`t you post this cool reptag to --...-- ??
User avatar
marcus@localhorst
Posts: 815
Joined: Fri 28. May 2004, 11:31
Location: localhorst
Contact:

Post 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
Post Reply