1
fredski
Wrapping exteral content php into xoops
  • 2004/4/2 12:31

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I have a few websites and would like to combine them using one main site and the others to display the content of the main site. I know I could do this with frames on the other sites but I realy don't like frames. I would like to use XOOPS on all the sites, and need the content to be searchable. is there any module/hack currently available that would do this??

2
Stewdio
Re: Wrapping exteral content php into xoops
  • 2004/4/2 15:46

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Do a search for a few modules namely:
CJay content
freecontent
wfsections
(There are others, I can't remember the names off hand)

These are you best options if you want your old material to be searchable within Xoops. If you don't care about searchablility, do what I do and use:

<?php
include("../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>

The content of your original html file goes here!!

<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>

Save your old files as .php and provide a link on your site. XOOPS will be wrapped around your content nice and clean without frames or <IFrames>.

Once the final release of wfsections comes out I may start outputting my stuff with that because of the extra integration with Xoops. For now, includes work for me as a quick solution.

3
fredski
Re: Wrapping exteral content php into xoops
  • 2004/4/6 8:47

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Ok, what If I didn't want to use XOOPS on my satalite sites, but have XOOPS on my main site. On the satalite sites I would have a different header and then the main site embeded below it. It needs to be embeded as it needs to be crawled by the search engines for that domain. How would I go about that??? Anyone know how???

4
fredski
Re: Wrapping exteral content php into xoops
  • 2004/4/8 8:20

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I know how to get the initial external content page I select to include with
<?php include "website-here";?>
but then all the links contained in the XOOPS page will take me to the main XOOPS site. Is there a way to contain it so the links wont go to the external linked page but will include the linked page within the initial site page. Another possibility maybe would be to have multiple XOOPS sites all sharing the same database, would that work do you think? Problem is I wouldnt know the first thing about putting that in practice. Any help before I lose all my hair would be appreciated.

5
pdaddict
Re: Wrapping exteral content php into xoops
  • 2004/4/8 8:52

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


sharing tables + sticky url's
VirtualHost

To share ALL tables, but use a different url, it's easiest to use define("XOOPS_URL", "http://".$_SERVER['HTTP_HOST']); or define("XOOPS_URL", "http://".$HTTP_SERVER_VARS['HTTP_HOST']); in mainfile.php

Login

Who's Online

206 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 206


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits