Problem with widget
-
Hi guys, i set a html global header in the ACP. Then i delete it, the html box is no there anymore but the html code (actually it was a script) is still working. I have restarted/reloaded the forum and uninstalled the widget plugin but when i reinstall it the script works again.
So where can i edit the html files to remove the script by hand?Any other solution?
Thanks and sorry for my english.
-
@a_5mith said:
Chec you've not got it cached. Once removed from widgets. It should be gone completely. Try in a private browser too.
Thanks for answering.
I have done everything you said and still not working, also I tried it on 3 different computers.
I remove the Global Footer too, but it is still there. -
@baris or @julian, you aware of any issues with widgets in 0.7.0? Seems they don't want to delete, been through
./nodebb reset widgets
and all manner of other logical approaches.Output of api/widgets is
[{"location":"sidebar","widgets":[]},{"location":"footer","widgets":[{"html":"<footer id=\"footer\" class=\"container footer\">\r\n\t<div class=\"copyright\">\r\n\t\tfsdfsfsdfsdfsdfsdf14gg <a target=\"_blank\" href=\"https://nodebb.org\">NodeBB Forums</a> | <a target=\"_blank\" href=\"//github.com/NodeBB/NodeBB/graphs/contributors\">Contributors</a>\r\n\t</div>\r\n</footer>"},{"html":"<footer id=\"footer\" class=\"container footer\">\r\n\t<div class=\"copyright\">\r\n\t\tCopyright © 2014gg <a target=\"_blank\" href=\"https://nodebb.org\">NodeBB Forums</a> | <a target=\"_blank\" href=\"//github.com/NodeBB/NodeBB/graphs/contributors\">Contributors</a>\r\n\t</div>\r\n</footer>"}]},{"location":"header","widgets":[{"html":"<script>\r\nif (!app.uid && ajaxify.currentPage !== 'login' && ajaxify.currentPage !== 'register') {\r\n ajaxify.go('login');\r\n}\r\n</script>"}]}]
So his issue is the script at the end is broken, so it's looping him between /login/ and the users profile endlessly. I noticed cachebuster hadn't changed, but I'm not sure how to get Cachebuster to forget and restart everything.