Log in | Register | Lost password

  • Start :: 
  • Photoshare :: 
  • Templates :: 
  • Help Needed to Open Gallery Template in Popup Window without Postnuke Frames from Thumbnail Gallery
Bottom
Help Needed to Open Gallery Template in Popup Window without Postnuke Frames from Thumbnail Gallery
  • Posted: 02.03.2007, 04:28
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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:


    Quote

    function getThumbnailHTML($title, $id, $pos, $folderID, $templateHelper)
    {
    $imageURL = $templateHelper->thumbnailURL($folderID, $id);
    $largerURL = $templateHelper->folderURL($folderID, 'slideshow') . "&iid=$id";



    to:


    Quote

    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:

    Quote

    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!
  • Posted: 04.03.2007, 04:38
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Anyone? Pretty Please?
  • Posted: 04.03.2007, 23:40
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I'd be glad to pay for someone's time if they can get this done ASAP? Takers?
  • Posted: 07.03.2007, 10:16
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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:

    Quote

    if ($templateName === 'gallery')
    $templateData['folder']['hidepnframe'] = 1;


    Thanks Jorn for the great module!

Template courtesy of Designs By Darren.