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

Dizkus

Bottom
Multihook error...bizarre
  • Posted: 26.08.2006, 09:54
     
    remmingtonshowdown
    rank:
    Helper Helper
    registered:
     May 2004
    Status:
    offline
    last visit:
    06.11.08
    Posts:
    283
    Installed according to the install.txt and everything looked a-ok. Activated, entered a whole bunch of links, still looked ok. Activated the module hook for Pagesetter and broken. When I click a Pagesetter articl I recieve this error:

    Code

    Fatal error: Call to undefined function absolute_url() in /home/binaryov/public_html/teamclifbarmidwest/modules/MultiHook/pnuserapi.php on line 347


    Yikes!

    Lil help...
    thanks
  • Posted: 26.08.2006, 18:05
     
    gerkynet
    rank:
    Helper Helper
    registered:
     February 2006
    Status:
    offline
    last visit:
    21.11.06
    Posts:
    257
    What version of MultiHook do you have installed?

    (3.0 version is prepared for pn.8)

    It seem as isn't loading the modules/MultiHook/common.php library.



    edited by: gerkynet, Aug 26, 2006 - 01:18 PM

    --
  • Posted: 26.08.2006, 19:40
     
    remmingtonshowdown
    rank:
    Helper Helper
    registered:
     May 2004
    Status:
    offline
    last visit:
    06.11.08
    Posts:
    283
    I am using version 2 now and it "works" I had to do alot of editing to force the module to show print the "class" when replacing the links...

    I still cannot get the Ajax working. I see the little square image to the left of the link and I assume it's what should pop up a window to edit the link... yet nothing.

    Perhaps it has something to do with callig the multihookhelper in AutoTheme... I have followed the instructions yet nada....

    ugh



    edited by: remmingtonshowdown, Aug 26, 2006 - 10:35 AM
  • Posted: 28.08.2006, 00:45
     
    Teb
    rank:
    Helper Helper
    registered:
     February 2005
    Status:
    offline
    last visit:
    06.05.08
    Posts:
    492
    Does it work on other browsers? IE, FireFox, ... ?

    --
    -- Teb
    -- Dutch PostNuke Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • Posted: 28.08.2006, 03:25
     
    Landseer
    rank:
    Steering Committee Steering Committee
    registered:
     January 2003
    Status:
    offline
    last visit:
    12.11.08
    Posts:
    848
    I must admit I never used MultiHook in Autothemes.

    Did you add the javascript and stylesheets to the head of your theme?

    Concerning the absolute_url() function: This is defined in modules/MultiHook/common.php. You should re-upload this or better switch to 3.0

    And what changes were necessary to solve the class problem?


    --
    "He is not dangerous, he just wants to play...."
  • Posted: 28.08.2006, 07:05
     
    remmingtonshowdown
    rank:
    Helper Helper
    registered:
     May 2004
    Status:
    offline
    last visit:
    06.11.08
    Posts:
    283
    howdy...

    It neither worked on IE (yuck) or Firefox. And I tried like hell to make it work. I cannot get 3.0 runnig on a .7.6.2 site (and I understand 3.0 was prepared for pn.8) 2.0 works for me.

    My guess is that because AT doesn't use pnRender to create its theme pages I can't use the

    Code

    <!--[multihookhelper]-->
    plugin. And while I've tried followwing the instructions to include the

    Code

    $multihookhelper= ...
    code in my theme.php, and as a custom AT command it just doesn't seem to get called and activated in the theme.

    In the end I don't really care that much- I'm the only one who will be setting multihooks so going into the admin panel is fine... I just really really wanted to play with the Ajax. I'm brainstorming how I would build a site where all the user input is ajaxed. mmm...

    In common.php at lines 93, 95, 99 I had to replace

    Code

    '<a '.$extclass.'

    With

    Code

    '<a class="'.$externallinkclass.'"

    That will get the user defined class printed to the created URL etc...

    I think this code

    Code

    $extclass = (preg_match("/(^http:\/\/)/", $long)==1) ? "class=\"$externallinkclass\"" : "";
    will only work if the user selects to replace the abbreviated link with the full...? wither way the above code didn't print out any classes...

    Great module though...huge selling point!!

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula