I just wanted to show where I had -tried- to get this to work inside HEADER.PHP
<body>
<div id=”container”>
<?php if($_SERVER[‘HTTP_REFERER’] == “http://jchmusic.com/”)
{
//this throws an error no matter what permutations I tried.
virtual (“http://jchmusic.com/sidemenu.shtml”);
virtual (“http://jchmusic.com/top.shtml”);
}
else{
echo “<div id=’header’ class=’clearboth’>”;
echo “<table><tr><td width=’50%’>”;
In php you would…
<?php include ‘http://jchmusic.com/sidemenu.shtml’; ?>
However, WordPress theming is so flexible you can easily make it reproduce your existing site. Watch this screencast:
http://css-tricks.com/video-screencasts/73-wordpress-theme/
If you are already familiar with html and css, you won’t have any trouble making your blog look exactly like your existing site.
…and here is an example of the error if I try to use require_once()
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in /home/suntower/www/www/wordpress/wp-content/themes/stripped-mc/header.php on line 38
Warning: require_once(http://www.suntowermusic.com/sidemenu.shtml) [function.require-once]: failed to open stream: no suitable wrapper could be found in /home/suntower/www/www/wordpress/wp-content/themes/stripped-mc/header.php on line 38
Help?
OK the problem was that my isp had not enabled php includes. That’s sorted. But I’m still at a loss.
What I want to know is how to integrate the -directories- of my main site into the wordpress posts. IOW: my blog is in a /wordpress directory beneath the main www site.
Now… if I ‘include’ the menu code into the blog, then the hrefs are invalid because the blog ‘lives’ in the wordpress directory. So… how does one set the ‘path’ (to borrow from OS programming) so that when I click on a menu item, I move to the main site for all hrefs but then I properly go back to the /wordpress folder when the link goes to a blog post?
Does any of that make sense?
TIA,
—JC
…I want to add that what I’m trying to do is be able to refer to images and hrefs from the main site while still in the wordpress blog pages. Is there a way to ‘add a path’ to the blog so that I don’t have to recode every href or src with an explicit path?
TIA,
—JC