Skip to main content
Topic: Known Hook addons not working right (Read 3965 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Known Hook addons not working right

Okay, I know my addon works, as I have it installed on a few sites, but it seems whenever I install, it installs and the boxes in settings show up, but they do nothing, when enter anything into them.

After some time, it seems it just starts working, usually.
We mentioned this in another topic, where someone had a similar issue with an addon.
I think this needs to be tracked.

Re: Known Hook addons not working right

Reply #1

Thats very strange indeed.  ... I'll would take a look but I'm pretty much unable to do anything until next week as I'm traveling ATM and will not be home until then :(

Re: Known Hook addons not working right

Reply #2

Moar info needed. :P

Quote from: Burke Knight – Okay, I know my addon works, as I have it installed on a few sites, but it seems whenever I install, it installs and the boxes in settings show up, but they do nothing, when enter anything into them.
Any one of your addons? Or just some in particular? If the latter which?

Quote from: Burke Knight – We mentioned this in another topic, where someone had a similar issue with an addon.
Which topic? Do you remember it?
Bugs creator.
Features destroyer.
Template killer.


Re: Known Hook addons not working right

Reply #4

The hook version or non-hook? If I am not mistaken, you didn't put div or table for your addon position. Can adding that fixes your problem?

Re: Known Hook addons not working right

Reply #5

The hooks version, hence the title.... LOL :)

That should not matter, and did not for the other sites, including the demo site, where it finally started working, after a bit of time.

That's the strange part, and it's not browser cache, either, as even others could not see what was entered, including statcounter, when added the code, it said code was not present.

 

Re: Known Hook addons not working right

Reply #6

Strange indeed. It could be your database problems. Or some files could be missing their contents. They happen sometimes.

Re: Known Hook addons not working right

Reply #7

Installed locally without problem....
It started working immediately after I clicked.
What version of php do you have? Maybe built-in OPcache is playing you tricks?

That one was a "slightly" different issue: http://www.elkarte.net/community/index.php?topic=1750.msg18590#msg18590
Bugs creator.
Features destroyer.
Template killer.

Re: Known Hook addons not working right

Reply #8

Yes, but we had thought it could be the same, at the time... LOL
Current PHP version:  5.5

Funny thing is, it installs and works on some sites, but not others.
DeadMan's site, it would not show any of what entered into the boxes, and the Addon Demo site worked after a while.

Now, doing hooks, will that install into custom themes, the way it's coded?
I just thought of that. DeadMan's site is using Silence theme, and maybe the calls the addon looks for, are not present?

EDIT:

Looks like I may have found the issue,

Install the addon, and enter something into the copyright, but not the below linktree box, and tell me what happens.

Re: Known Hook addons not working right

Reply #9

Indeed a bug... of the addon. :P

You are testing only global_mid, so if that is not inserted, nothing is shown.
You should split the "if" clock and for each one check if the corresponding setting is filled or not and add it to $gfh accordingly. ;)
Bugs creator.
Features destroyer.
Template killer.

Re: Known Hook addons not working right

Reply #10

Don't forget, I do not know hooks... @ahrasis did that part for me. ;)

Fixed, and package replaced. :)

Re: Known Hook addons not working right

Reply #11

That's not really about hooks. ;)

Don't be afraid of hooks, they do not bite!! :P
Bugs creator.
Features destroyer.
Template killer.

Re: Known Hook addons not working right

Reply #12

No, but they can very hard to tell what the heck to do.... LOL
One look, and I'm so lost....

Re: Known Hook addons not working right

Reply #13

Buffer is like that can change BK to BurkeKnight so long BK can be found in that template. If BK is now BN in custom template, then you should change or add that into the subs file accordingly. We try to find unique elements and hook so that in won't disturb others.

Re: Known Hook addons not working right

Reply #14

It was not that, it was the if for each had to be done.
Way it was, they all were in the same if.