Topic: Multihook error...bizarre
remmingtonshowdown
avatar
Helper
Helper
Posts: 285

Posted:
26.Aug 2006 - 09:54

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
gerkynet
avatar
Helper
Helper
Posts: 257

Posted:
26.Aug 2006 - 18:05

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

--
_00_

Hispa-PN.net - Desarrollos PostNuke
remmingtonshowdown
avatar
Helper
Helper
Posts: 285

Posted:
26.Aug 2006 - 19:40

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
Teb
avatar
Professional
Professional
Posts: 501

Posted:
28.Aug 2006 - 00:45

Does it work on other browsers? IE, FireFox, ... ?

--
-- Teb
-- Dutch Zikula Community


Support questions in a Personal Message will be ignored. Use the forums at all times!
Landseer
avatar
Developer
Developer
Posts: 852

Posted:
28.Aug 2006 - 03:25

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...."
remmingtonshowdown
avatar
Helper
Helper
Posts: 285

Posted:
28.Aug 2006 - 07:05

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!!