PDA

View Full Version : Creare new page with different path


doraj
05-04-2009, 08:15 PM
Hello,

I need your help because I would like create new pages with vBulletin, with header, footer, and I am using this code (https://vborg.vbsupport.ru/showthread.php?t=62164), it works well

I would like add that pages, not in forum/page.php, but I want add my pages in other path, as:

www.mysite.com/example/page.php

How is possible make this modify?
Is possible apply this modification at the Gary King's hack?

Thank for your help,
Alex

Lynne
05-04-2009, 08:17 PM
Add this at the top right before you require the global.php file:

chdir('/full/path/to/you/forum');

doraj
05-04-2009, 08:29 PM
Hello Lynne!

Thank you for your speed!

I add your code (with the path of my forum), before of :

require_once('./global.php'); The page works, but it doesn't load well my style...as you can see here (http://www.p2psin.it/guida_emule/sommario.php)

Have you some suggest or advice for me please?

Thank you

Lynne
05-04-2009, 08:34 PM
Try adding this into the head of your template:
<base href="http://www.yoursite.com/forum/" />

Or, there is a plugin to change the path for your css:
Prefix url if storing CSS as a files (https://vborg.vbsupport.ru/showthread.php?t=97298)

doraj
05-04-2009, 08:46 PM
The code works perfectly Lynne, great!

Link (http://www.p2psin.it/guida_emule/sommario.php)

Ehehe thank you very much!

Have you a nice day :)