Hello Vuud and thanks again for the assist. The code you suggested does call the specific theme, but it seems to "override(?)" the link that CPMFetch generated. It just takes me to the homepage of my coppermine gallery. Right now it seems that I can either use the link that CPMFetch generates without the theme, or I can get the theme but lose the specific link information.
CPMFetch is displaying thumbnails of the last added images in the gallery. I want visitors to click on the individual thumbnail generated and see the intermediate size of that specific image in a new window using the wordpaccess theme.
For example - a click on the current thumbnail 1 using the linktemplate code added to gallery.php goes to the home page of coppermine gallery instead of linking to the intermediate image of the thumbnail:
http://www.backgroundlibrary.com/GALcpg1410/index.php?theme=wordpaccessI can see why this is happening when I look in the html generated for it by gallery.php:
<td><a target="_blank" href="
http://www.backgroundlibrary.com/GALcpg1410/index.php?theme=wordpaccess" ><img src="
http://www.backgroundlibrary.com/GALcpg1410/albums/Paid%20Members%20Premium/thumb_0010.jpg" alt="0010.jpg" title="0010.jpg" /></a><br /></td>
Without the linktemplate code in gallery.php, a click on this same thumbnail goes directly to the intermediate size image (which is what I want), but the theme displayed is usually Igames, not wordpaccess. (It seems to depend on the cookie in your browser). This is the URL it goes to:
http://www.backgroundlibrary.com/GALcpg1410/displayimage.php?pos=-103This is the html generated by gallery.php:
<td><a target="_blank" href="
http://www.backgroundlibrary.com/GALcpg1410/displayimage.php?pos=-103" ><img src="
http://www.backgroundlibrary.com/GALcpg1410/albums/Paid%20Members%20Premium/thumb_0010.jpg" alt="0010.jpg" title="0010.jpg" /></a><br /></td>
Since it seems that the position is what changes for each thumbnail in the html generated by CPMFetch, is there something I can insert that allows the link to find the theme, but doesn't redirect the image link to the home page? I've tried substituting displayimage.php along with other source info (album, cat, etc.) but no luck.
I see in your format tags doc that there are tags called "apos" and "cpos" (could those have something to do with this problem I'm having)?
-------------------------------I hope this isn't considered 2 questions, but since I described this option for the problem in a previous post on this topic, here goes-----------------------
If you don't think I can get there from here using linktemplate, is there a possible solution with multiple config files? As I mentioned in earlier posts, I did try using the instructions from your docs:
When you start CpmFetch and you want to use this other file, you simply pass that as the cpm call parameter. For example, lets say you named it cpmfetch_site1config.php. In this case, your startup code would look like this.
<?php
include_once "./cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpg/cpmfetch/cpmfetch_site1config.php");
?>
I made a second cpmfetch_config where the theme=wordpaccess and I tried changing the line in my gallery.php to reflect that, but it didn't work either:
$objCpm = new cpm("../../../../GALcpg1410/cpmfetch/cpmfetch_configWP.php");
If it is possible to do this with a second config file, I'm guessing that I didn't make the right changes to the file. I saw the section in help where you reference overriding defaults, but I couldn't guess what the syntax might be or if changing the theme in that section was even possible.
Is this a direction I should go? If so, can you tell me specifically what line to change in the second cpmfetch_config file?
Thank you again for helping me track this down.