It is working now! Thanks guys! It was the variable name top. I changed it to _top and it works perfectly
joncodo
Posts
-
How to add a new route -
How to add a new routeSo that kind of works for me. I am now trying to make it look seemless. But the .container class has a margin and padding. I'm trying this hack to get it to work.
<iframe id="iframe-content-bsft" class="iframe-content-bsft" src="http://localhost:1360" style="border: 0;"></iframe>
<script type="text/javascript">var left = $('.container:has(.iframe-content-bsft)').css("margin-left"); //"88px"
var leftNum = Number(left.split('px')[0]);
var top = $('.container:has(.iframe-content-bsft)').css("padding-top"); //"15px"
var topNum = Number(top.split('px')[0]);
var width = $('.container:has(.iframe-content-bsft)').width(); //1170
var widthNum = Number(width.split('px')[0]);var totalWidth = widthNum + leftNum * 2;
$('#iframe-content-bsft').css("margin-left", "-" + left)
$('#iframe-content-bsft').css("margin-top", "-" + top)
$('#iframe-content-bsft').css("width", totalWidth + "px")</script>
If I run it in the chrome dev tools, it works perfect. But when I put it in the admin tool in manage plugins, the script seems to not work.
Am I going about this the wrong way? Is there a better way to do this?
-
How to add a new routeAh, ACP = 'Admin Control Panel'?
-
How to add a new routeWhat is the ACP?
-
How to add a new routeI want to add another page for custom stuff.
I want it to be at localhost:4567/iframe
Where can I add this route so I can navigate to it by visiting that url.
I want it to contain just the menu and an iframe to another site I own.
Thanks in advance!
-
Where can I read up on Architecture and local developmentThanks guys. This solved my problem for now. I guess the main info I was missing was how plugins and themes work for this. Now that I have that, I am good to go for a bit
Thanks so much for your help!
-
Where can I read up on Architecture and local developmentI forked NodeBB and I want to add an item in the header that will link to one of my pages. However, I plan on doing a lot of new things in the future as we use this product at our company.
Currently, I am hosting my fork and making changes but my changes are over ridden most times. I see that the public folder is generated but I can't see where to add a link beside register.
Where are the docs for this that I can read? Any Development tutorials on how to get started?