The other post was marked solved so I had start another topic. Sorry about that.
Just out of curiosity:As I said earlier, I had all kinds of problems getting coppermine to include my wordpress header.php and footer.php files.
I dropped that idea on the advice of donnoman.
Late last night
I tried the reverse. Yes, I got the dumb idea to try to get
wordpress to include coppermine using a wordpress template to avoid all the function calling issues using the other method. Yes, I sure am a sucker for punishment I guess.
Anyways, I made this wordpress template:<?php /*
Template Name: Photo
*/
?>
<?php include "header.php"; ?>
<div id="content">
<h2>Coppermine Test Page</h2>
<?php include ("http://www.rvadventure.ca/photos/index.php"); ?>
</div>
<?php include('footer.php'); ?>
The results were:The wordpress template loaded ok, my header and footer files were both intact, as was the overall layout structure of my webpage,
and the hardwired theme was included inside of my content div along with all the empty boxes for my thumbnails etc. (although hardwired's width would have to be adjusted later using css along with other things).
When I first saw it on the screen, I thought I finally had it, and almost knocked my coffee off the table - but I soon discovered that
the links did not work.
Clicking on
"user galleries" brought me to
http://rvadventure.ca/index.php?cat=1 which was a category archive inside wordpress.
Clicking on "
most viewed" brought me to a
not found page.
So it appears that
wordpress can include coppermine but once it is included,
coppermine looks for its files within the wordpress structure. When I looked inside of the hardwired theme file, I checked out the links and noticed a lot of href= tags.
I understand wordpress ok, but you guys understand how coppermine works.
So now my question is:
Is there some kind of code in the hardwired theme.php that can be added, removed, or changed that would allow coppermine, when included into the wordpress template,
to look for files back in its own directory - in other words, all href= tags would link back to the coppermine directory.
I'm going to try over the next couple of days to change all href tags manually to see what happens.
It would be nice however, if there was one piece of code that you could add at the beginning of a theme.php
that would redirect all link paths back to the coppermine directory.
This is closer than I got trying the other method, and now I'm hooked again on trying to resolve the problem.
If I'm lucky enough to get this working, I'm sure there would be some other wordpress users that I have talked to in the forums there,
who would move to coppermine if this were possible to do. I could even post a "how to" on my website regarding wordpress and coppermine - again, as a way to return a favour and pass on the help that I got.
Any help would be appreciated
Thank you.
Also:I'm not done coding a theme for my site yet, but I'll turn it on for a while so you can see first hand how far I have gone with this - by looking at the problem visually, it may give someone an idea of how to fix it.
The site is here :
http://www.rvadventure.ca/photoAgain, thanks