PDA

View Full Version : Javascript working on home page but not forum posts


CouponWCents
04-21-2012, 09:35 PM
I am adding a javascript widget to one of my posts and it doesn't show up. I added it to our home page and it works fine.

Anyone know what could be happening?

--------------- Added 1335055156 at 1335055156 ---------------

Here is an example of what it is but the image/widget will not show up.

<script id="raflin-6d7ac518" type="text/javascript">/*{literal}<![CDATA[*/
window.RAFLIN = window.RAFLIN || {};
window.RAFLIN['6d7ac518'] = {id: 'ZTYxZDQ3MWFhMmMxZTNjNDQ2ZWM4NTk3NDc1MzkyOjE4'};
var url='//d12vno17mo87cx.cloudfront.net/static/js/raflcptr/build/raflcptr.min.js', head=(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]);
(function(d,n,h){if(!!d.getElementById(n))return;v ar j=d.createElement('script');j.id=n;j.type='text/javascript';j.async=true;j.src=url;h.appendChild(j );}(document,'rsoijs',head));
/*]]>{/literal}*/</script>
<a class="rafl-powered" href="http://www.rafflecopter.com" target="_blank" style="font:10px sans-serif;color:#999;width:100%;text-align:center;display:block;" id="rpow-6d7ac518">a <i>Rafflecopter</i> giveaway</a>
<noscript><a href="http://rafl.es/enable-js">You need javascript enabled to see this giveaway</a>.</noscript>

Lynne
04-22-2012, 01:18 AM
widgets only go in the CMS. There are forum blocks, but they only go on the forum.php page.

CouponWCents
04-22-2012, 02:02 PM
Thanks Lynne.

CouponWCents
04-23-2012, 02:11 PM
Is there anything I can add to make this work?

Lynne
04-23-2012, 05:15 PM
To make what work? As I stated, I don't know what you are talking about. You say a widget isn't working in a post and I replied that widgets are part of the CMS. And, furthermore, if you are talking about a forum block instead, those only go on the forum main page. So, I'm a bit clueless about what you are actually doing here.