Known Hook addons not working right July 07, 2015, 08:55:51 pm 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 – July 07, 2015, 09:07:47 pm 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 – July 08, 2015, 02:44:13 am Moar info needed. Quote from: Burke Knight – July 07, 2015, 08:55:51 pmOkay, 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 – July 07, 2015, 08:55:51 pmWe mentioned this in another topic, where someone had a similar issue with an addon.Which topic? Do you remember it?
Re: Known Hook addons not working right Reply #3 – July 08, 2015, 07:06:50 am Addon is my Global Header & Footer. As for the topic, I don't remember, but when get back to my pc, I'll look through my posts to find it.The BBC Move topic... http://www.elkarte.net/community/index.php?topic=1750.msg18572#msg18572
Re: Known Hook addons not working right Reply #4 – July 08, 2015, 06:29:33 pm 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 – July 08, 2015, 06:33:57 pm 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 – July 08, 2015, 07:21:47 pm 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 – July 09, 2015, 02:54:21 am Quote from: Burke Knight – July 08, 2015, 07:06:50 amAddon is my Global Header & Footer. 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?Quote from: Burke Knight – July 08, 2015, 07:06:50 amThe BBC Move topic... http://www.elkarte.net/community/index.php?topic=1750.msg18572#msg18572That one was a "slightly" different issue: http://www.elkarte.net/community/index.php?topic=1750.msg18590#msg18590
Re: Known Hook addons not working right Reply #8 – July 09, 2015, 04:09:18 am Yes, but we had thought it could be the same, at the time... LOLCurrent PHP version: 5.5Funny 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 – July 09, 2015, 08:00:22 am Indeed a bug... of the addon. 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.
Re: Known Hook addons not working right Reply #10 – July 09, 2015, 08:08:19 am 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 – July 09, 2015, 08:37:26 am That's not really about hooks. Don't be afraid of hooks, they do not bite!!
Re: Known Hook addons not working right Reply #12 – July 09, 2015, 08:43:15 am No, but they can very hard to tell what the heck to do.... LOLOne look, and I'm so lost....
Re: Known Hook addons not working right Reply #13 – July 09, 2015, 08:54:29 am 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 – July 09, 2015, 09:00:52 am It was not that, it was the if for each had to be done.Way it was, they all were in the same if.