| Topic: | Help Needed to Open Gallery Template in Popup Window without Postnuke Frames from Thumbnail Gallery |
|---|---|
|
Converted
12 Posts: 0 Posted: |
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: Quotefunction getThumbnailHTML($title, $id, $pos, $folderID, $templateHelper) to: Quotefunction getThumbnailHTML($title, $id, $pos, $folderID, $templateHelper) 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: Quoteif ($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! |
|
Converted
12 Posts: 0 Posted: |
Anyone? Pretty Please? |
|
Converted
12 Posts: 0 Posted: |
I'd be glad to pay for someone's time if they can get this done ASAP? Takers? |
|
Converted
12 Posts: 0 Posted: |
RESOLVED!!! I was able to fix this with a simple tweak of the code, associating the 'hidepnframe' variable to a template rather than a folder, by an if statement in the "function photoshare_user_showimages()" function at about line 2864, just above this line: Quote$templateData['initialImageID'] = $imageID; And here is the code I inserted: Quoteif ($templateName === 'gallery') Thanks Jorn for the great module! |