Hi Jorn and others!
I would be very appreciative if someone can help me figure this - what appears to be a simple modification - out. I assure you I searched high and low for this fix here and at postnuke forums, and have spent needless hours hacking at what is an excellent module. Here it goes, and thanks in advance!
I have an album set as a flat thumbnail template (without the hide postnuke frames option checked) working in postnuke 7.2.6 ion linux, but would like to click a thumbnail and pop up a new window (I can do the javascript part), in which I would use the gallery module. I have changed the following code in the /templates/thumbnails/template.php file from:
function getThumbnailHTML($title, $id, $pos, $folderID, $templateHelper)
{
$imageURL = $templateHelper->thumbnailURL($folderID, $id);
$largerURL = $templateHelper->folderURL($folderID, 'slideshow') . "&iid=$id";
to:
function getThumbnailHTML($title, $id, $pos, $folderID, $templateHelper)
{
$imageURL = $templateHelper->thumbnailURL($folderID, $id);
$largerURL = $templateHelper->folderURL($folderID, 'gallery') . "&iid=$id";
The gallery template is perfect for what I need and I can't wait to customize it and add some css image magnification! Here's where I ask for your assistance:
The popup would need to have the Hide Postnuke Frames option checked, so I tried to create an "If Then" statement within the "photoshare_user_showimages" function and was playing with the "allowframeremove" and "hidepnframe" variables, such as:
if ($templateData['folder']['hidepnframe'] | $templateName=='gallery')
but nothing I have tried has worked. I understand that the hidepnframe is associated with each folder and not by template type. Does anyone have any idea how I could accomplish this? Thanks in advance for your help!