Login  Register

Re: Forum showing on local system but not on live site

Posted by GregChapman on Jun 21, 2024; 9:56am
URL: https://support.nabble.com/Forum-showing-on-local-system-but-not-on-live-site-tp7613758p7613766.html

ajac63 wrote
Sorry I don't understand.  I did already post-up the customisation code with the embedding code in a previous post in this thread, so why do you say code is missing?
Apologies! I was replying hurriedly on my phone and my previous post was meant to be a reply to the post that included this:
<script type="text/javascript"> nabble_width = "1470px"; nabble_scroll_top = true; nabble_ignore_title = true; /script> <a id="nabblelink" href="http://talk-it-forum.549.s1.nabble.com/">talk-IT forum</a <script src="http://talk-it-forum.549.s1.nabble.com/embed/f1"></script>
However, I didn't read the code properly and, in effect, told you to do what you thought you had already done.

What I missed was your "beginner's error". We all do it from time to time, as is evidenced by my own beginner's error of failing to read your code properly.

The problem is that in the code above there is an incomplete closing tag. The code is:
<a id="nabblelink" href="http://talk-it-forum.549.s1.nabble.com/">talk-IT forum</a
not
<a id="nabblelink" href="http://talk-it-forum.549.s1.nabble.com/">talk-IT forum</a>
As to the width of 1470px, I chose this to make the forum as full-width as possible, but I can of course reduce this to say 900px.
My mistake again! I really shouldn't have made such a suggestion without solving your initial problem first and without knowing much more about the page where your forum is embedded.

It does so depend on where your forum is embedded and whether it has features such as a side-bar that runs past the embedded forum and whether that displays below or above the main content on a mobile device and whether the code for your page includes a line such as
<meta name="viewport" content="width=device-width, initial-scale=1">
However, I can say if your intention was to make it "as full width as possible" it would be a mistake to include that code. The default for any block of code in HTML is to fill the full width available. If you have a page of text and shrink the width of a window you will see how the text will automatically wrap at the new window width. Images and video behave a little differently. By setting a width you say saying do not allow your content to fill a wider window.

In general I would say ignore the setting. It's somewhat old school from the days before mobile devices and touch screens were the norm and the trend was for ever larger screens.

Your reason for adding the code sounds as if you are only considering how you look at your site on your device and not how others might view your site who may have bigger or smaller screens.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.