Fork me on GitHub

EZComments and pnRender  Bottom

  • Does anyone else see a strange string (apparently generated by Smarty) on top of the article page, when pnRender is enabled?
    The string looks like this (example):
    f8d698aea36fcbead2b9d5359ffca76f{insert_cache a:1:{s:4:"name";s:12:"getstatusmsg";}}f8d698aea36fcbead2b9d5359ffca76f

    It disappears when I deactivate EZComments.
    Any idea how to fix it?

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • I think I found what the problem was, but as to why it was a problem, I'm still oblivious.
    The line:

    Code

    <!--[insert name="getstatusmsg"]-->

    in my template was causing the strange message to pop up, when I removed it, the message stopped appearing. I'm still testing to see if there were no side effects to removing this line and I'm hoping someone will be kind enough to share with me why did this cause a problem only when pnRender was enabled?

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • Mmmmm
    I guess that it get solved with the reference invoking the pnRender instance:

    Code

    $render = & pnRender::getInstance('ModName');
    I guess it doesn't happen in Zikula 1.2 because that...

    --
    - Mateo T. -
    Mis principios... son mis fines
  • damn, some bug took me out for few days icon_frown

    thanks for your help Mateo, I get it, I need to upgrade. icon_smile

    can you help me with one more thing?
    I'm making a custom adjustment for the code (I know! I know! can't help it!) and I'm kind of stuck.
    I want to change the avatar details that are retrieved by EZComments. I don't want it to use the core avatar, but the one user has defined in phpBB.

    now I got to the stage where I kind of see where all the comment data is gathered, but I'm scared of looking into pnModAPIFunc to see what it actually does icon_razz

    from what I understand the data is retrieved here:

    Code

    $items = pnModAPIFunc('EZComments',
                              'user',
                              'getall',
                               compact('mod', 'objectid','sortorder','status','numitems','startnum'));


    and this $items table is passed to the function that does the value assigning.
    how do I make it take the avatar details from a different place? icon_rolleyes

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • Ok,

    Please guide me, cause I have the same issue, running ZK 1.1.2. Once I have EZComments enabled, anywhere there is a :

    Code

    <!--[nocache]-->


    I get that weird string all over my output.

    I was hopeful you found the bug. I have been looking for months now. Can't believe ZK is at 1.2 and these caching issues have not bee ironed out as yet.

    On another note, these forums have been acting up as well. Every page I have to refresh cause I get this error:

    Code

    Fatal error: function name must be a string in /home/zcomm/public_html/includes/classes/Smarty/internals/core.process_cached_inserts.php on line 49


    supa

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • Daddysupa, you need to add a news_user_menu.htm template in your theme (copy the news_user_menu.htm you have in your modules/News directory) and remove the line:

    Code

    <!--[insert name="getstatusmsg"]-->


    I don't know if you're experiencing the same issue though.
    If I disable the pnRender I don't see any message.

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • Didn't help me, so I guess I am still one of the unlucky ones with the Smarty

    Code

    <!--[nocache]-->
    issue.

    In my news_user_main.htm the only tag similar to above is:

    Code

    <!--[insert name='getstatusmsg' class='pn-informationmsg']-->


    which i commented out and still nada. every nocache tag is wrapped with thos criptic tags and no content in them.

    do you have theme caching enabled as well?

    supa

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • Don't mean/want to hijack your thread, but i spent a couple weeks well trying to get to the bottom of this.

    if you search for: Smarty nocache problem in google TADA!

    http://www.google.ca…al&client=firefox-a

    even a return from a ZK user in Oct. 2009: http://www.smarty.ne…ewtopic.php?p=32662

    Most results even from the Smarty site recommends/fixes the issue by hacking core code, which i am hesitant to do.

    But it is a major bother that I can't cache pretty much static news articles.

    supa



    edited by: daddysupa, datetimebrief

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • AragornSG,
    your EZComments customization seems proper to do in the templates level. Find THERE where the avatar is displayed, and build a plugin to extract the PNphpBB2 avatar of each user.

    I guess it's the better way icon_wink

    And about the pnRender cache, it's true, dirty stuff, fortunately Drak is rewriting the Template Engine for 1.3, also to introduce Dwoo, and I guess we won't have this issues again.

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Quote

    do you have theme caching enabled as well?

    nope.
    theme cashing makes my site act funny. icon_frown

    Quote

    your EZComments customization seems proper to do in the templates level.

    on the template level?
    how would you do that Mateo?
    the templates for each user need to be retrieved from the database, how do you want to do that on template level?

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • Quote

    the templates for each user need to be retrieved from the database, how do you want to do that on template level?

    I've read your post again and understood what you were saying.
    Wouldn't that be a very resource consuming thing to do as opposed to just retrieving proper avatar in the original query?

    --
    I'll have it up in no time. It's an official term of BloodElf engineers union. It should not be interpreted as a reasonable estimation of the actual time it will take to complete a task in any way, shape or form.
  • Well, what I know is that EZComments already does it in the unefficient way, adding the UserVars in sepparated queries. I guess that we will fix this for 1.3 with the EventManager and Doctrine introduction. Ideally, we will be able to hook a module and insert stuff to the original query. Doctrine Query object rocks!

    In the other hand, if PNphpBB2 handles them as user properties it would be better, because that means that the info already there... as the usual Avatar.

    --
    - Mateo T. -
    Mis principios... son mis fines

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