vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I make a page similar to my forums theme? (https://vborg.vbsupport.ru/showthread.php?t=295355)

SwalyAaron 02-21-2013 05:46 AM

How do I make a page similar to my forums theme?
 
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 [DATE]1361453968[/DATE] at [TIME]1361453968[/TIME] ---------------

:love:

--------------- Added [DATE]1361467167[/DATE] at [TIME]1361467167[/TIME] ---------------

;: 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:

Code:

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.


All times are GMT. The time now is 01:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01105 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete