Hello all,
I have installed Drupal and am excited about the potential of it for my site. I'll be porting my old site into it. Thing is, I use two scripts with my old static site, one is a flatfile forum UPB, and the other is a mysql driven real estate listing.

How could I insert these into pages, is it possible to use something like php include???
Basically, I nned to have a couple of menu items Property Sales and Forum, but these need to point at my current scripts, ideally inserted into my drupal site.

Any tips or assistance very much appreciated

Comments

kleorn’s picture

Hello randelld,
the simple php script can be inserted in any node by setting its Input type to "php" (afair you should insert script without starting < ?php and ending ? >). Integrating a forum is probably a more difficult task, requiring knowledge of the forum's structure.
Good luck with migration!

randelld’s picture

I tried with an include statement using < ?php and ending ? >
but it just rendered a blank white page. I then tried without < ?php and ending ? >
and it just echod the line of code to the screen.

Any Suggestions?

yelvington’s picture

There will be unexpected side effects if you ask Drupal to execute PHP that you didn't write and don't thoroughly understand, and I would strongly recommend against it.

Better options:

* Integrate your external app with Drupal authentication by implementing a simple XML/cookie interface.
* Modify your external app to work as a Web service and implement a module that talks to it.
* Reimplement in Drupal and port your data.

In the case of an external forum program, the first option may be your best choice. In the case of the real estate listings, I'd definitely go for the third option, especially considering that the reimplementation is already done (see the contributed module list) and your task is pretty much limited to data migration.

randelld’s picture

Cheers for the suggestions guys

http://www.spainserve.com