NickyDee
09-02-2008, 01:47 PM
Im trying to make a frontpage for my website that uses elements like the navbar, header, headerinclude and footer. The file layout is
/index.php
-- /forum
I've got it sort of working but the problem is my navbar links are going to /root when they should be redirected to /forum/... Heres the page that I'm talking about: http://www.study-medicine.co.uk/index.php
I'm using this code in my php to change directory:
$cwd = getcwd();
chdir('/kunden/homepages/44/d254237426/htdocs/forum');
require_once('global.php');
chdir($cwd);
And I've put the code below in front of the relative links for the FAQ to test it:
$vbulletin->options['homeurl']
But when it generates the page I get the link "http://www.study-medicine.co.uk/Array['homeurl']/faq.php"
So its not converting that homeurl into the homeurl. Its probably quite apparent my knowledge of php is on the slim side, really struggling to see what the next step is here.
Thanks for your help, much appreciated. Been working on this for the last 12 hours solid.
--------------- Added 1220367731 at 1220367731 ---------------
I notice the page is also showing the "Loaded but with errors" icon in the bottom left of IE7.
/index.php
-- /forum
I've got it sort of working but the problem is my navbar links are going to /root when they should be redirected to /forum/... Heres the page that I'm talking about: http://www.study-medicine.co.uk/index.php
I'm using this code in my php to change directory:
$cwd = getcwd();
chdir('/kunden/homepages/44/d254237426/htdocs/forum');
require_once('global.php');
chdir($cwd);
And I've put the code below in front of the relative links for the FAQ to test it:
$vbulletin->options['homeurl']
But when it generates the page I get the link "http://www.study-medicine.co.uk/Array['homeurl']/faq.php"
So its not converting that homeurl into the homeurl. Its probably quite apparent my knowledge of php is on the slim side, really struggling to see what the next step is here.
Thanks for your help, much appreciated. Been working on this for the last 12 hours solid.
--------------- Added 1220367731 at 1220367731 ---------------
I notice the page is also showing the "Loaded but with errors" icon in the bottom left of IE7.