Fork me on GitHub

help with ezcomments 1.5  Bottom

  • i am using v1.5 of EZComments. i installed and added hooks to Pagesetter. the comment form appears for the articles, but there is no comments shown when i added numerous comments. where are the comments? am i missing something?

    also, i am using v0.99 of v4bJournal. i also added the hooks but there is no comment form appearing. am i missing out something again?
  • ok.. v4bJournal is working fine :) but not for the Pagesetter...
  • I know that Pagesetter has it's own hook settings that allow hooks to be enabled for specific publication types. However, as I don't use Pagesetter, myself I can't be more specific. A look in the Pagesetter forums should provide some more info.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Indeed, for each publication-setup [or tid if you want] you can tick 'enable hooks'.
    Also make sure in your full-template you have following code:

    Code

    <!--[if $core.useDisplayHooks]-->
    <!--[pnmodurl modname=pagesetter func=viewpub tid=$core.tid pid=$core.pid assign=viewUrl]-->
    <!--[pnmodcallhooks hookobject=item hookaction=display hookid=$core.uniqueId module=pagesetter returnurl=$viewUrl]-->
    <!--[/if]-->

    Especially the hookid, which seems to be not correct in the ones found in the .zip/.tgz file.

    - Igor
  • i do not quite understand. i already got the codes, exactly same as you posted, in the full-template. do you mean i need to change something such as the hookid=$core.uniqueId??
  • ezymum

    do you mean i need to change something such as the hookid=$core.uniqueId??

    yes, that is correct, in the template which comes with pagestter there's
    hookid=$

    - Igor
  • hmmm.. actually i found out that all we need is to have these codes to work. no need to change anything, not even the hookid=$core.uniqueId

    Code

    <!--[if $core.useDisplayHooks]-->
    <!--[pnmodurl modname=pagesetter func=viewpub tid=$core.tid pid=$core.pid assign=viewUrl]-->
    <!--[pnmodcallhooks hookobject=item hookaction=display hookid=$core.uniqueId module=pagesetter returnurl=$viewUrl]-->
    <!--[/if]-->


    because Pagesetter does caching, thats why the comment form doesnt appear. so i had to clear the cache and it works.

    i also noticed that even though the permissions are set correctly, weird behaviour may appear. for example, logged in as user and i can post comment, but when i log out, i am still able to see the form. this is due to caching also. so after some trial and error, all i have to do it to add the 'no cache' like this..

    Code

    <!--[nocache]--><!--[$core.editThis]-->
                        <!--[if $core.useDisplayHooks]-->
                        <!--[pnmodurl modname=pagesetter func=viewpub tid=$core.tid pid=$core.pid assign=viewUrl]-->
                        <!--[pnmodcallhooks hookobject=item hookaction=display hookid=$core.uniqueId module=pagesetter returnurl=$viewUrl]-->
                        <!--[/if]-->
                        <!--[/nocache]-->


    hope it helps :)

This list is based on users active over the last 60 minutes.