How can I set the browser title for my map page to "Map | NodeBB"? Pl. guide.
Best posts made by cool
-
RE: Adding a new page
-
Conditional inclusion of HTML content in the plugin's template file
I am writing a plugin. I want that certain HTML included to be displayed only when a user clicks a particular URL (one among the several URLs). How can I achieve this?
-
Using a module written in ES6
I am using a third-party library named leaflet in my custom-plugin's front end JS code.
Now I need to use a leaflet plugin named leaflet-geosearch which is written in ES6 and it is dependent on a number of other packages like Babel precompiler (that compiles ES6 to ES5 code).
https://github.com/smeijer/leaflet-geosearch
Can I use it in my client side JS code? If yes, how? How can I set up the environment. Can anybody help me put on the track?
Thanking you in anticipation.
-
RE: Custom plugin: Which is better jQuery post Or socket.emit and Why?
I am done with this. If somebody needs help for this topic, he/she may send a notification to me.
-
RE: How to get rid of this warning: Unable to read plugin.json for plugin `nodebb-plugin-custom-plugin`
Duke ... Thank you. This command solved the problem:
./nodebb reset -p nodebb-plugin-map
-
RE: Error while including a third party JS module in my plugin
This is how I resolved the error:
requirejs.config({ shim: { jquery: { exports: '$' } } }); requirejs(["jstree"], function(jstree) { ... }
It may help somebody if she needs to integrate the jstree (popular jQuery plugin) with NodeBB in future.
-
How to include the images that are referred from inside a third party css?
I am using a jQuery plugin module named jstree.js which I included in the "modules" section of the plugin.json.
Now the jstree has a css file which I can include under the "css" or "less" section of the plugin.json. And the NodeBB engine will minifiy and include its contents in the stylesheet.css. So far so good!
But this css file refers to certain images (files) and expect that they should reside in the same folder as stylesheet.css. But the build process doesn't copy the images folder at the same level where it copies the stylesheet.css.
How can I overcome this issue. A proper solution from you guys will be highly appreciated.
Thanks and Regards
Latest posts made by cool
-
RE: Bootstrap's Glyphicons not loaded
Thanks Pita. I will try other options.
-
RE: Bootstrap's Glyphicons not loaded
Yes Pita .. I have just checked it. I am looking for the Font Awesome JS files that supports the latest jqGrid version.
-
RE: Bootstrap's Glyphicons not loaded
How can I explicitly load these font files.. can I use the staticDirs property? If yes, can anybody write an example for the same? Thanks
-
RE: Bootstrap's Glyphicons not loaded
What shall I do now? Pl. give an idea.
-
RE: Bootstrap's Glyphicons not loaded
But I am not using the glyphicons explicitly. The third party jqGrid library that I have been using in my plugin is referring to those icons somewhere in its code instead.
-
Bootstrap's Glyphicons not loaded
In the browser I encounter these errors:
GET http://localhost:4567/fonts/glyphicons-halflings-regular.woff2 net::ERR_ABORTED GET http://localhost:4567/fonts/glyphicons-halflings-regular.woff net::ERR_ABORTED GET http://localhost:4567/fonts/glyphicons-halflings-regular.ttf net::ERR_ABORTED
And therefore the NodeBB does not show up the appropriate Paging, Sorting etc. icons properly.. only the weird square boxes are displayed in my custom plugin HTML page.
How can I overcome this error?
In the browser's network tab, it reports the 404 (not found) error.
-
RE: How to include the images that are referred from inside a third party css?
Finally resolved it ...
You should use $('#grid').jqGrid({}); ... with capital 'G' instead -
RE: How to include the images that are referred from inside a third party css?
Could anybody help me resolve this ?