Got mad skills on PHP? Get over here! XD
-
@haitch ok that complicates things, since it has to go through the internals of nodeBB :/
-
@LithStud yeah, if it was easy I'd have already done it .... ;-)
-
@haitch do you know if it lets through something like
<script>console.log("testing");</script>basically javascript? we could try then to bypass nodeBB (sorta quick and dirty hack)
EDIT: damn forgeting we need some unique naming for couple of divs for it to work
-
@haitch here's the solution.
Copy & Paste:<script>$(window).on('scroll', function() { $('[widget-area="sidebar"]').css('top', $(this).scrollTop()); });</script>Inside the sidebar (before anything else).
Sorry it took so long I was solving something in burst casino ^_^
-
@LithStud It lets through script statements, the sidebar is just a bunch of script commands - namely:
<a href="https://forums.burst-team.us/topic/2153/forum-advertising-auction">
<img src="https://db.burst-team.us/tower.png"></a><iframe src="//rcm-na.amazon-adsystem.com/e/cm?o=1&p=14&l=ur1&category=primemain&banner=08SJGPXKZR2FNJKHJYG2&f=ifr&linkID=53455721b186aa2eeb8d68e4901f201a&t=burst-haitch-20&tracking_id=burst-haitch-20" width="160" height="600" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>
<a href="https://www.namecheap.com/?aff=105459"><img src="http://files.namecheap.com/graphics/linkus/160x600-1.gif" width="160" height="600" border="0" alt="Namecheap.com"></a>
-
@hatich check out zeus's post. :D
-
@haitch zeus allready did it :D
-
So like this:
<script>$(window).on('scroll', function() { $('[widget-area="sidebar"]').css('top', $(this).scrollTop()); });</script> <a href="https://forums.burst-team.us/topic/2153/forum-advertising-auction"> <img src="https://db.burst-team.us/tower.png"></a> <iframe src="//rcm-na.amazon-adsystem.com/e/cm?o=1&p=14&l=ur1&category=primemain&banner=08SJGPXKZR2FNJKHJYG2&f=ifr&linkID=53455721b186aa2eeb8d68e4901f201a&t=burst-haitch-20&tracking_id=burst-haitch-20" width="160" height="600" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe> <a href="https://www.namecheap.com/?aff=105459"><img src="http://files.namecheap.com/graphics/linkus/160x600-1.gif" width="160" height="600" border="0" alt="Namecheap.com"></a>
-
@Zeus That works - what's you burst address I can send bounty to ?
-
@haitch BURST-M5NK-M24U-8SDM-53TJ2 and thank you ^_^
-
@Zeus said in Got mad skills on PHP? Get over here! XD:
BURST-M5NK-M24U-8SDM-53TJ2
Thank you!! And 30K on it's way.
-
@haitch Thank you!
Updated version to prevent infinte scrolling and also to be able to view all the ads (stops when reached the end of the page):<script>var $sidebar=$('[widget-area="sidebar"'),originalY=$sidebar.offset().top,maxBottom=$("main").height()-$sidebar.height(),topMargin=80;$(window).on("scroll",function(i){var o=$(window).scrollTop();maxBottom>o&&$sidebar.stop(!1,!1).css({top:originalY>o?0:o-originalY+topMargin})});</script>
-
wow! it works with unlimited scroll down though :D the update will do just fine :) Nice job Zeus!
-
@Zeus Very nice job - works perfectly.
-
it's broken again :(
-
@jervis it's solved jervis ^_^ I forgot the page sometimes changes his height to load more content, now it goes with the flow of the page even if there's changes after the ads have loaded :D



