1
mschot
Modules & Subdirectories
  • 2007/6/9 23:21

  • mschot

  • Just popping in

  • Posts: 23

  • Since: 2004/10/20


I am trying to integrate a PHP script into my profile module.
So far I have copied the script into a subdirectory of the profile module (ie \modules\profile\scriptdirectory)

Then added an include to the mainfile, header and footer. So far so good...

Now when I open the \modules\profile\scriptdirectory\index.php in my browser it show me (as an admin) the admin theme instead of my page theme (and as an user I have no permissions). I assume this has to do with the fact that the script resides in a subdirectory, but what would be the solution?

thanks,

Marc

EDIT:

Solved the problem. In /kernel/module.php in the function checkAccess() there is a check wether a directory has the file './xoops_version.php' ... so a simple creation of an empty xoops_version.php in my script subdirectory did the trick

Login

Who's Online

226 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 226


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