Log in

View Full Version : How do I make a page similar to my forums theme?


SwalyAaron
02-21-2013, 05:46 AM
I tried and did make this www.ps-restoration.com/forums/status.php

But I'd like to move that OUT of the forums directory and make it /status/index.php



How do I go at this? I used this guide and someone said use chdir but that didn't work:
guide useD: https://vborg.vbsupport.ru/showthread.php?t=62164

Really I just need a page with my theme don't even need the used to be logged in or run permissions


What can I do?

--------------- Added 1361453968 at 1361453968 ---------------

:love:

--------------- Added 1361467167 at 1361467167 ---------------

;: anticipation:;

SwalyAaron
02-22-2013, 10:49 AM
=]]

kh99
02-22-2013, 02:49 PM
Are you saying you have a custom script that includes global.php, but it doesn't work outside the forum directory? Then yes, you should be able to use chdir() to change to the forum directory before including global.php, like:

chdir('./forum');
require('global.php');


You may need to chdir() back to the original directory, depending on what else you script does.

SwalyAaron
02-22-2013, 04:21 PM
I'm not sure I just followed the guide step by step, saw another post saying use chdir() but it didn't work.

kh99
02-22-2013, 04:25 PM
Ah, OK, then I guess you'd have to describe more about what you're doing, and maybe post some of the code if you can.

SwalyAaron
02-22-2013, 04:43 PM
Well right now its the same as his code except above
require('global.php');
I've added
chdir('./forums');

and when I visit the page outside of the directory I get a can't load this page error

My question is this: How can I copy my forums design with out having them logged in (don't care aboout that)

kh99
02-22-2013, 07:01 PM
Sorry, but there's still not enough information to know what to tell you. You'd have to say exactly what the error is and maybe show your code.

The only other thing I can think to mention is that if it's an issue with the user not being logged in, then it's probably that you need to set the "Cookie Path" to '/' (under "Cookies and HTTP Header Options" in the admincp).

Jo_RHU
03-23-2013, 11:35 PM
If I'm understanding correctly, I think you can just go File > Save page as - save the page as a HTML file, edit it by hand or in an editor, then upload it manually. Then it should include all the images and CSS from your design but won't use the forum to load them.