1
joejoe
Have blocks appear on an external page?
  • 2005/12/14 6:25

  • joejoe

  • Just popping in

  • Posts: 4

  • Since: 2005/11/25


Ok, odd question... and I haven't found an answer after some extensive searching.

I want to have XOOPs running in a sub-directory (ie. /xoops) rather than in the root of my website.

However, I'm wanting to be able to extract content (or perhaps, whole blocks) for insertion in an index.php in the root of my web.

Basically, I'm after a nice little bit of php code where I can pull out content from the block that I want from a sub folder.

Anyone done it? Any ideas??

Greatly appreciated!!

2
joejoe
Re: Have blocks appear on an external page?
  • 2005/12/14 22:51

  • joejoe

  • Just popping in

  • Posts: 4

  • Since: 2005/11/25


Ok... I've tried to move the code from the xoops/index.php into my custom index.php in the root, and changing some of the paths. I've then tried calling a block of content, but it has come up with this message:

XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.

Does this mean it's a no-goer??

3
joejoe
Re: Have blocks appear on an external page?
  • 2005/12/14 23:06

  • joejoe

  • Just popping in

  • Posts: 4

  • Since: 2005/11/25


Looks like I'm solving my own problem here

I then just removed these lines that refer to XOOPS_CHECK_PATH from the mainfile.php and all works fine!!

4
davidl2
Re: Have blocks appear on an external page?
  • 2005/12/15 1:30

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Glad you worked it out...

5
NeoFenix
Re: Have blocks appear on an external page?
  • 2005/12/15 20:26

  • NeoFenix

  • Just popping in

  • Posts: 31

  • Since: 2005/7/8 3


DANGER! by removing those lines you are open wide for a large variety of script atacks! i'm not an expert but this allow for any lammer to do a simple cross site attack to your site.

Those line prevent to run any script that are outside your XOOPS main directory.

I recommend to look for another solution less dangerous, like search for those include files ....

6
Will_H
Re: Have blocks appear on an external page?
  • 2005/12/15 21:43

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


I think instead of using XOOPS_ROOT_PATH you would you use

http:www.yoursite.com/xoops/

The reason I say this is because if the call is above the XOOPS root, its certainly not going to know where to go.

Perhaps you could set it as a variable.

i.e. xoops_root_path = http://www.yoursite.com/xoops/

I am just shooting in the dark here, but its definitely a neat idea.

Login

Who's Online

140 user(s) are online (43 user(s) are browsing Support Forums)


Members: 0


Guests: 140


more...

Donat-O-Meter

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

Latest GitHub Commits