PDA

View Full Version : Header problem


nestoras
07-04-2006, 04:57 PM
Hi!
Dont know if that is the right forum to post it.
I have a little problem with my header.
im using the same header my main site does!
And to put it there i just make a plugin and put the $includedphp
to my forum header.
the problem i have is that now all the links have change.
in my main site its like that
www.mysite.com/contact.php but now in the forums its like www.mysite.com/forum/contact.php
why does this happen?

peterska2
07-04-2006, 05:05 PM
you will need to edit the links in the plugin to be the full URL as the way the whole internet works is that it will always try to open a page within the current directory unless told otherwise.

nestoras
07-04-2006, 05:16 PM
dont really understand what you are saying!
this is the plugin
ob_start();
include('/home/creh6ch6/public_html/head.php');
$includedphp = ob_get_contents();
ob_end_clean();

peterska2
07-04-2006, 05:32 PM
Then in your oginal head.php or the template/html that it uses, you need to change all the links to be the full links (ie yoursite.com/contact.php NOT contact.php) so that they will be correct on all pages where this is used.

nestoras
07-04-2006, 05:51 PM
oh. ok thanks a lot!