xoops forums

jlz113

Just popping in
Posted on: 2005/10/29 6:33
jlz113
jlz113 (Show more)
Just popping in
Posts: 17
Since: 2005/7/30
#1

php script and XOOPS

I have written a quick php script that searches a member database (not the XOOPS member DB) and would like to include it in my XOOPS site. Is there any module that will allow me to input php code? I know you can make your own block, but that does not seem like the ideal solution. (I do not want to tie the visibility of the membership search script I wrote with the other modules I am using. I would like the membership search to be as stand alone as possible.
Thanks in advance.
PS, great job getting the site back up and secured!

Will_H

Friend of XOOPS
Posted on: 2005/10/29 8:11
Will_H
Will_H (Show more)
Friend of XOOPS
Posts: 1786
Since: 2004/10/10
#2

Re: php script and XOOPS

so you want it to be on its own page? ok you can install like tinycontent and do a pagewrap. basically it will throw your script up inside the framework of your site.

jlz113

Just popping in
Posted on: 2005/10/31 14:52
jlz113
jlz113 (Show more)
Just popping in
Posts: 17
Since: 2005/7/30
#3

Re: php script and XOOPS

Thanks for the suggestion, but Tiny Content and Content (and the other page wrap able modules) wrap HTML, not php. Has anyone found a module that will wrap PHP?
Posted on: 2005/10/31 15:36
ackbarr
ackbarr (Show more)
Posts: 1449
Since: 2002/10/2
#4

Re: php script and XOOPS

use option #1 in the FAQ article below: https://xoops.org/modules/smartfaq/faq.php?faqid=253

the key is including the following scripts before your php code:
mainfile.php
header.php

and the following after:
footer.php
Site Hosting - PlanetXoops