Posted by
GregChapman on
Jul 11, 2018; 11:36pm
URL: https://support.nabble.com/How-to-make-this-code-work-in-NAML-tp7600953p7600961.html
My Nabble forums are mostly embedded in hobby sites and I don't worry about search engines finding every Nabble page as users pick up the main sites from the the search results and on visiting the main encounter the forums and can use the internal search if necessary. However, I do understand that it's more important for others.
The obvious place to start is the "Edit this page" link, then click "cog wheel" button and on the menu that appears click on "Search macros".
On the Macro Search page, enter "<body>" without the quotes and check the option "Macro source contains" before clicking the "Search " button.
On Nabble Support (and probably your forum too) it turns up 88 hits. It's then just a matter of looking at each of those macros and working out if you really need your navigation code on everyone one of them or only some! (I suspect relatively few of them as many will be related to specific Apps,)
Your code also had reference to various CSS classes. Installing them should be somewhat easier. Go to:
Options > Application > Change Appearance > CSS
and enter your styling code there. (There are some cases where I found that I needed to provide a conditional ".nabble" selector but I can't remember what those circumstances are at the moment - and having just looked at the code behind one of my forums I realise much has changed under the hood compared to the last time I looked.
Once upon a time one's Custom CSS ended up in a linked stylesheet. Now, it seems, it's loaded via a JavaScript routine!
I repeat, this is definitely not a simple project!
My web hosts include a package called "Softaculous" See:
http://www.softaculous.com/demosMakes it dead easy to install all kinds of site building and embeddable tools including a good number of forum software. I suspect it would be easier to work with one of them because they are designed to be installed by coders and usually have reasonable documentation and support networks.
Trying to reverse engineer Nabble to work out how to make the kind of customisation that was never envisaged by them is always going to be a lot harder.
Sometimes I wish I wasn't so negative! My wife complains I'm a "glass half empty" kind of guy - never half full!
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.