Can't imagine a use-case for showing the Olark widget on admin pages. Plus, it causes JavaScript errors when trying to configure/add panes to a mini panel (and maybe when adding panes to normal panels, too, not sure).
Patch forthcoming.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | don_t_show_olark_widget-2035919-8.patch | 2.31 KB | joelpittet |
| #4 | interdiff.txt | 1.32 KB | joelpittet |
| #4 | don_t_show_olark_widget-2035919-4.patch | 2.56 KB | joelpittet |
| #1 | olark_2035919-1_no-widget-on-admin-pages.patch | 1.69 KB | adamdicarlo |
Comments
Comment #1
adamdicarlo commentedHere's a patch.
Refactors the hook_page_alter() a bit besides adding the new functionality -- Boy Scout code and all.
Comment #2
bao truong commentedHey Adam, thanks for providing this patch, I can see that it is much needed. Still having trouble applying this patch cuase it doesn't seem to take, is this definitely for the 7.x-1.0-beta1 version?
Comment #3
adamdicarlo commentedIt should apply just fine to beta1 though I rolled it off of 7.x-1.x (which is just one completely unrelated commit ahead of beta1).
Are you using `git am <patch>` after checking out this module's git repo (7.x-1.x branch)?
Comment #4
joelpittetAdded the variable removal on uninstall for all the variables including the new one, and a form option to toggle that.
Thanks for the original patch @adamdicarlo
Another way you can apply it without git:
Go to the olark folder from the command line:
Long hand with wget:
Also marking this as RTBC because the original code does the trick, my code (see interdiff) just adds fluff and polish;)
Comment #5
derekahmedzai commentedFirst patch (olark_2035919-1_no-widget-on-admin-pages.patch) works for me.
Comment #6
joelpittet@DerekAhmedzai does #4 not work for you?
Comment #7
derekahmedzai commentedNo, it failed because of the paths in the patch (html/sites/all/modules/contrib/olark etc)
Comment #8
joelpittetOh how embarrassing;) It also needed a re-roll because there's been a commit since then.
Comment #9
joelpittetThis is fixed and committed to -dev thanks for your help:)