@phenomlab it seems like it kind of works, but the ads are intermittently showing and only on the front page, although I put the widget in the global header. My guess as it's something related to the google adsense code not being inside the head tag. I will keep exploring the option of using custom header and try to figure out how to detect the guest users in javascript.
rspk
Posts
-
Help Needed: Execute javascript for not logged in users -
Help Needed: Execute javascript for not logged in users@phenomlab Thanks, do you use HTML widget? ! I will try that and see if Google adsense does not mind not being inside the head tag.
-
Help Needed: Execute javascript for not logged in usersI would like to add/execute ad serving javascript (google adsense) only for users who are not logged in.
I installed the nodebb adsense plugin, but it is not configurable to detect whether users are logged in or not. So I am thinking about just adding the code block for google adsense via custom header and wrapping it in some javascript, so it's not executed when a user is loggedin. Help is appreciated.
-
Error installing nodebb-widget-ns-statsHi,
I am getting an error installing nodebb-widget-ns-stats 1.01 on hosted NodeBB v0.9.3. @Nicolas
"error: TypeError: Cannot read property 'uid' of undefined
at /path/to/nodebb/node_modules/nodebb-widget-ns-stats/widget/users.js:111:41"