Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2012, 09:35 PM
CouponWCents CouponWCents is offline
 
Join Date: Jun 2011
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Javascript working on home page but not forum posts

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 [DATE]1335055156[/DATE] at [TIME]1335055156[/TIME] ---------------

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>
Reply With Quote
  #2  
Old 04-22-2012, 01:18 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

widgets only go in the CMS. There are forum blocks, but they only go on the forum.php page.
Reply With Quote
  #3  
Old 04-22-2012, 02:02 PM
CouponWCents CouponWCents is offline
 
Join Date: Jun 2011
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne.
Reply With Quote
  #4  
Old 04-23-2012, 02:11 PM
CouponWCents CouponWCents is offline
 
Join Date: Jun 2011
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anything I can add to make this work?
Reply With Quote
  #5  
Old 04-23-2012, 05:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03247 seconds
  • Memory Usage 2,189KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete