Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: 1 - 2 [+1]

Bottom
Comments on HTML pages
  • Posted: 08.10.2004, 11:31
     
    adcantu
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    06.06.05
    Posts:
    223
    Im using NukeWrapper to add HTML pages to my site. For example I have a simple HTML page with a picture and some text. Is there a way I can add the PN Comments to that page? like under all of my content, have the ability for users to comment on the page. does this make sence? Ive though of using topics and article, but its not quite what i want. is there some kind of code i could just add to the HTML page? any ideas is greatly appreciated.
  • Posted: 08.10.2004, 22:55
     
    msandersen
    rank:
    Professional Professional
    registered:
     August 2002
    Status:
    offline
    last visit:
    25.11.05
    Posts:
    994
    The core comments module is old and doesn't support 'hooks', ie attaching it to other modules. That will change once it gets overhauled. It is possible to attach hooks to NukeWrapper, like ratings, but there's no suitable Commetns module I know of. There is one called EZForumComments, which uses PNphpBB2 to post comments which then also show up in a specific forum there. It required direct editing of one of its database tables to configure a module, and won't work with NukeWrapper as it requires the module to have certain data in the database. NukeWrapper gets its files directly from the filesystem.
  • Posted: 08.10.2004, 23:23
     
    FrankDeRosa
    rank:
    Professional Professional
    registered:
     March 2002
    Status:
    offline
    last visit:
    15.04.07
    Posts:
    2489
    You could try EZComments: http://lottasophie.sourceforge.net/

    I'm unclear on whether it works as a hook, or what.

    Frank

    --
    Serious hosting - all the features, bandwith and storage you could want without breaking the bank at DreamHost.com


    See what I do with PostNuke - http://surreal-dreams.com
  • Posted: 09.10.2004, 01:18
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    EZComments is the one to look at; This is the module that will provide comments in .8x. EZForumComments is based on EZComments. As long as nukewrapper makes the approapriate hook calls then EZComments will work.

    -Mark
  • Posted: 09.10.2004, 05:10
     
    adcantu
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    06.06.05
    Posts:
    223
    awesome thanks for the help.. ill look nto EZComments... so what do you mean by hook calls? is that something based in the code of nukewrapper or do i have to code that with HTML?
  • Posted: 09.10.2004, 05:57
     
    Wendell
    rank:
    Professional Professional
    registered:
     February 2004
    Status:
    offline
    last visit:
    30.11.08
    Posts:
    1038
    Think of hooks like draperies hang on curtain rods... that is, a module like Sections would be the curtain rod and EZComments would be the drapery. Once EZComments is initialized and activated in the Modules admin of PN, you can then go to the Modules list, click Edit next to the module you want to "hook" EZComments onto, then click the "Enable EZComments" checkbox and save it. I hope my silly analogy makes sense. :)

    --
    DWX Logo
  • Posted: 09.10.2004, 09:25
     
    FrankDeRosa
    rank:
    Professional Professional
    registered:
     March 2002
    Status:
    offline
    last visit:
    15.04.07
    Posts:
    2489
    Or, you could say that a hook is like an add-on for a module - an accessory, if you will. There are hooks for comments, smilies, Wiki, ratings, and other stuff too. You install the hook module, and then you can attach it to many other modules in admin -> modules -> edit (next to a module) and then pick the hook(s) you want.

    So, yeah, what Wendell said.

    Frank

    --
    Serious hosting - all the features, bandwith and storage you could want without breaking the bank at DreamHost.com


    See what I do with PostNuke - http://surreal-dreams.com
  • Posted: 09.10.2004, 11:28
     
    msandersen
    rank:
    Professional Professional
    registered:
     August 2002
    Status:
    offline
    last visit:
    25.11.05
    Posts:
    994
    My local version of NukeWrapper does call hooks, but the current uploaded version doesn't. I have to complete something else first today, then I'll update it. I've only tried EZForumComments, but I'll get EZComments to test. It sounds more appropriate in this case anyway. But it's Smarty-based so wonder if it'll clash with PN0.75. EZForumComments has a native pnRender version.
    For the record, EZComments can be found here:
    Lottasohpie

    Edit: It works with the local version of NW on PN0.726. EZComments is still at version 0.2 Preview and not as polished as EZForumComments with a list of to-dos, and hasn't been updated since August last year, but works fine otherwise.
  • Posted: 10.10.2004, 05:56
     
    adcantu
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    06.06.05
    Posts:
    223
    ok so im still not sure what i would have to do. nukewrapper doesnt show up as a module, so how would i get it to hook EZComments? and also, how would i get the comments to show up on my HTML page?

    thanks so much for the help so far guys.
  • Posted: 10.10.2004, 22:14
     
    graficalicus
    rank:
    Freshman Freshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    14.06.06
    Posts:
    29
    I'm also having trouble getting EZForumComments to hook onto Sections. I have it ticked in the Modules setup, but it's not showing comments.

    PN v750, EzForumComments v0.1b1 - - - any ideas? Thx...

    EDIT: Also looking at this thread:
    http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=33172
  • Posted: 11.10.2004, 00:25
     
    msandersen
    rank:
    Professional Professional
    registered:
     August 2002
    Status:
    offline
    last visit:
    25.11.05
    Posts:
    994
    adcantu
    You need the Alpha module version:
    NukeWrapper test module
    The standalone script version is not a module, so doesn't show up in Modules, and you can't attach Hooks to it.
    The above zip has both script and module, and once installed (hopefully the init file won't complain, had no time to test last version), both will work the same. The script now is called page.php. The module version works fine, but the admin functionality isn't in place, so the configuration is done by editing the file NukeWrapper.conf.php in the module directory. It's the same as in the standalone script.

    You then install
    EZComments if you haven't already. If you want smilie or bbcode support, it requires 2 separate hooks:
    pn_bbsmile and Smilie hook which you get from this German PN site:
    http://www.pnforum.de
    Install and activate, then click Edit for NukeWrapper and activate the hooks for EZComments and the smilie and bbcode hooks.
    EZComments come with several templates in the More_Templates dir, one of them (AllOnOnePageWithSmilies) shows smilies to click.
    I find it's a little slow rendering the Comments here though.

    EZComments works for PN726, not sure about PN75, since it uses Smarty as well, which may clash.
  • Posted: 11.10.2004, 00:40
     
    msandersen
    rank:
    Professional Professional
    registered:
     August 2002
    Status:
    offline
    last visit:
    25.11.05
    Posts:
    994
    graficalicusOffline
    EZForumComments requires you to edit the database table ezcommentsmodinf as described in the documentation. It has a debug mode, enabled in pnuser.php:
    $ezfcdebug=1;
    It needs to know some details about the module's database tables, such as ID table, title table, and part of URL where the item id is found.
  • Posted: 11.10.2004, 00:42
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    It's worth noting that EZComments is written by Jorg Napp whose also the author of pnRender so i'd be fairly sure it works..... The main problem with say postcalender is different versions of Smarty v1.x vs 2.x

    -Mark
  • Posted: 11.10.2004, 05:49
     
    graficalicus
    rank:
    Freshman Freshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    14.06.06
    Posts:
    29

    msandersen

    graficalicusOffline
    EZForumComments requires you to edit the database table ezcommentsmodinf as described in the documentation. It has a debug mode, enabled in pnuser.php:
    $ezfcdebug=1;
    It needs to know some details about the module's database tables, such as ID table, title table, and part of URL where the item id is found.


    thank you - I'll try this out and provide some feedback - looks like the obvious reason, though.

    (duh - I should've read it more carefully icon_redface )
  • Posted: 11.10.2004, 06:25
     
    graficalicus
    rank:
    Freshman Freshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    14.06.06
    Posts:
    29
    using phpMyAdmin, i altered the EZcommentsmodinf table like this :

    • modulname: Sections

    • titletable: seccont

    • titlevar: pn_title

    • pagevar: pn_artid

    • cutfrom: &artid=

    • urlstart: modules.php?op=modload&name=Sections&file=index

    • topid: pn_secid

    • topictable: [left blank]

    • topictable_topid: [left blank]

    • topictable_topictitle: [left blank]


    Be sure to activate EZforumcomments in the Modules panel, and turn on EZComments for the Sections module, and all is working. Hope this helps someone else :D

Goto page: 1 - 2 [+1]

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula