Fork me on GitHub

bbsmile bbcode hooking  Bottom

Go to page 1 - 2 [+1]:

  • Hi,

    Just want to know if I am doing anything wrong. I hooked EZComments to News module. I then hooked bbsmile & bbcode to EZComments. I also tried directly hooking to News and other modules with no luck.

    When I go to the bbsmile/bbcode it says "*** bb not hooked for any modules ***

    I tried removing and reinstalling both. No luck. I am running a 764 upgrade to 1.1.1.

    Any ideas?

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • Well
    this is weird but the rename of pn_bbcode and pn_bbsmile to just bb* may cause this kind of problems. Are you usign the bb* ones or the PostNuke copies? and please check the hooks table to see which ones are registered there for EZComments icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • I had some similar problems. I think the upgrade path for bbcode and bbsmile doesn't "unhook" the old pn_* versions. To fix it, I modified the hooks tables in the DB.
  • Ah,

    I will have a look at that....but this should be corrected in upgrade scripts if true...I'll have a look.

    thanks,

    supa

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • nestormateo

    Well
    this is weird but the rename of pn_bbcode and pn_bbsmile to just bb* may cause this kind of problems. Are you usign the bb* ones or the PostNuke copies? and please check the hooks table to see which ones are registered there for EZComments icon_wink


    I am using the 1.1.1 upgrade package which included bbcode & bbsmilie.

    supa

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • craigh

    I had some similar problems. I think the upgrade path for bbcode and bbsmile doesn't "unhook" the old pn_* versions. To fix it, I modified the hooks tables in the DB.


    I beleive you are right, when i check the DB hooks table I see this:

    Code

    item    transform           API     pn_bbcode   user    transform
    item    transform           API     pn_bbsmile  user    transform


    Then for my add on to EZComments it has:

    Code

    item    transform   EZComments          API     pn_bbcode   user    transform


    Why when creating a new hook it still uses pn_bbcode and not bbcode? Is this a bug?

    supa

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • It is listed in module properties after changing pn_bbcode & pn_bbsmile to bbcode & bbsmile. I cleared my compiled templates (no caching used), but they still don't appear in the EZComments box. Hmmm....ideas?

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • Do I need to set permissions for the module bbcode & bbsmile?

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • Mmmmm
    i guess that bbsmile hook is used by each template, it's not automatic and some templates may miss the bb* use... for instance, Dizkus has its own two plugins to include those hooks. I've hooked the bb* stuff to EZComments but handle it "manually" (writing the emoticons by myself and not with point&click) and never missed the "bb* editor".

    Seems that those modules needs an API function to be included in the templates 'automagically'... or use plugins like Dizkus does

    Greetings!

    --
    - Mateo T. -
    Mis principios... son mis fines
  • you have to "enable" the new version of bbsmile as well - it is in the admin area of the bbsmile mod. It is called "Activate auto smilies" and you also have to "read the smilies from the filesystem" before it will work..



    edited by: craigh, Apr 22, 2009 - 07:40 AM
  • now that I look at my OWN site, I see that the bbsmile and bbcode is being interpreted but the options are not present in the post/reply dialog as they should be. How do I get that to show up?



    edited by: craigh, Apr 22, 2009 - 08:04 AM
  • craigh

    now that I look at my OWN site, I see that the bbsmile and bbcode is being interpreted but the options are not present in the post/reply dialog as they should be. How do I get that to show up?edited by: craigh, Apr 22, 2009 - 08:04 AM


    Great to see someone else experiencing this issue....any ideas?

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • my first thought is that it is somehow left out of the template. I can't look right now - I will when I get home.

    (pretend I wrote that twice icon_wink
  • Well I checked EZComments (I use PNForum template), and the calls are there. I have caching fully disabled and it does not appear.

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • OK - I figured it out. icon_biggrin

    The plugins are hardcoded with the pn_* prefix on the module name. Also, there is a problem in the stylesheet for the smilies.

    so:
    1) open /pnForum/pntemplates/plugins/function.bbsmile.php and change all pn_bbsmile to bbsmile
    2) open /pnForum/pntemplates/plugins/function.plainbbcode.php and change all pn_bbcode to bbcode
    3) open /bbsmile/pnstyle/style.css and comment out this line:

    Code

    .bbsmile_smilies {
        /* display: none; */
    }


    for #1 & #2, I used function overrides and put the new functions in /config/plugins/
    for #3, I used a stylesheet override and put it in my theme.
    Now I'll just need to remember to pull them out later when the problems get fixed. icon_smile

    I've also found a problem with the javascript in modules/bbsmile/pnjavascript/dosmilie.js

    Code

    Error: document.getElementsByClassName("bbsmile_smilies").each is not a function
    Source file: http://www.westernbands.net/modules/bbsmile/pnjavascript/dosmilie.js
    Line: 4


    I don't know how to fix this one - anyone know JS well enough?



    edited by: craigh, Apr 22, 2009 - 05:08 PM

Go to page 1 - 2 [+1]:

  • 0 users

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