Log in | Register | Lost password

Bottom
ezcomments
  • Posted: 02.09.2004, 08:28
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have tried the slideserg template from sergis, and now want to implement the hook for ezcomments in other templates, specialy in the gallery template.
    I cant figure out where to change the code, I want a hint or maybe you can show me where to find a tutorial.
  • Posted: 02.09.2004, 11:03
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    die line looks good for reusing it:


    $output->Text(pnModCallHooks('item', 'display', $initialImageID, $sk_url ));
  • Posted: 02.09.2004, 12:21
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I cant still figure out how to make it work.
    The variable $initialImageID bothers me, how do i get that?

    [Edited on 2/9/2004 by henning]
  • Posted: 02.09.2004, 18:02
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    oki. here is what i did exactly....it's not perfekt but it works.

    i modified /modules/photoshare/templates/slideshow/template.php

    i added after $output->Text("\n"; ( line 184 ? )

    $myURL = pnModUrl('photoshare', 'user', 'showimages', array( 'fid' => $folderID , 'iid' => $initialImageID , 'template' => 'slideshow' ));

    $output->Text(pnModCallHooks('item', 'display', $initialImageID, $myURL ));


    activated the ezcomments hook for photoshare and it worx.

    if the variable $initialImageID bothers you, just fill it in the function show.
    $initialImageID = $templateData['initialImageID'];


    (slideshow with comments? hmmmm :casstet: )
  • Posted: 02.09.2004, 22:37
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Thank you it nearly works...
    In the gallery template i can't make it show the comments?
    But the slideshow and of curse the thuimbnails works fine and show the commnts too.

    Btw how do i reduce the picturesize in pictures which are too large - in the template from sergis

    [Edited on 2/9/2004 by henning]

Template courtesy of Designs By Darren.