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 10-06-2013, 09:01 PM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do you get a script to run in CMS?????

This is the script I would like to use:


<!-- START Worden Top Gainers and Losers Ticker Widget -->
<script src="http://widgets.freestockcharts.com/js/jquery-1.3.1.min.js" type="text/javascript"></script> <script src="http://widgets.freestockcharts.com/script/WBIHorizontalTicker2.js?ver=12334" type="text/javascript"></script> <link href="http://widgets.freestockcharts.com/WidgetServer/WBITickerblue.css" rel="stylesheet" type="text/css" />
<script>
var gainerTicker = new WBIHorizontalTicker('gainers');
var lossTicker = new WBIHorizontalTicker('losers');
gainerTicker.animate = false;
gainerTicker.animationHost = lossTicker;
gainerTicker.start();
lossTicker.alsoMove = gainerTicker;
lossTicker.start();
</script> <!-- End Scrolling Ticker Widget -->


If someone could walk me through the process I would appreciate it. New to vbulletin. Thanks.

--------------- Added [DATE]1381097424[/DATE] at [TIME]1381097424[/TIME] ---------------

I noticed on the default cms page (installed at time of vbulletin) that has video games the three youtube boxes on the right side are NOT working???
Reply With Quote
  #2  
Old 10-06-2013, 09:13 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ACP --> vBulletin CMS --> Widgets --> Create New Widget

Widget Type
: Static HTML
Title: What ever you want to call it
Description: What ever you want
Then click on Save.

On the screen you are directed to, find the new widget, and click on Configure.

In the popup box add the code you provided, then click on Save.

Now you need to add the widget to your layout.

Go to Layout Manager, choose your layout and click on Edit.
Find the widget name in the scroll container named, Widgets and highlight it, then click on the arrow to add it to your page. You can drag it to different columns if you want, then click on Save.
Reply With Quote
  #3  
Old 10-06-2013, 09:23 PM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
ACP --> vBulletin CMS --> Widgets --> Create New Widget

Widget Type
: Static HTML
Title: What ever you want to call it
Description: What ever you want
Then click on Save.

On the screen you are directed to, find the new widget, and click on Configure.

In the popup box add the code you provided, then click on Save.

Now you need to add the widget to your layout.

Go to Layout Manager, choose your layout and click on Edit.
Find the widget name in the scroll container named, Widgets and highlight it, then click on the arrow to add it to your page. You can drag it to different columns if you want, then click on Save.

I did all that and it does not work...

--------------- Added [DATE]1381098290[/DATE] at [TIME]1381098290[/TIME] ---------------

I had a friend help me set up permissions on the forums, could that be causing an issue? Hell, I don't even see anything in the tool bar to embed a youtube video. All that shows is a link...
Reply With Quote
  #4  
Old 10-06-2013, 09:26 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just did it on my site and it showed up no problem, you may have not added it to the correct layout.
Attached Images
File Type: jpg stock widget.jpg (33.2 KB, 0 views)
Reply With Quote
  #5  
Old 10-06-2013, 09:36 PM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I redid it again and still a blank box. Youtube videos don't show, etc.. help...

--------------- Added [DATE]1381099249[/DATE] at [TIME]1381099249[/TIME] ---------------

Even default widgets are not working...
Reply With Quote
  #6  
Old 10-06-2013, 09:44 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Youtube videos???? The code you posted was for a stock ticker.
Reply With Quote
  #7  
Old 10-06-2013, 09:47 PM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Youtube videos???? The code you posted was for a stock ticker.
Yes, all of the above is not working. The code for the widget I posted does not work, default widgets do not work - blank boxes. Even youtube videos are not working...
Reply With Quote
  #8  
Old 10-06-2013, 09:51 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this a fresh install of vBulletin, or is this a existing install?
Reply With Quote
  #9  
Old 10-06-2013, 09:52 PM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Is this a fresh install of vBulletin, or is this a existing install?
fresh install. I do have a custom template.
Reply With Quote
  #10  
Old 10-06-2013, 09:56 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since it is new, I would re install the site like you did from the beginning, and see if the widgets work then. I have installed the vB4 series about 100 times and have never seen the widgets not work at all.

And test everything out before you start adding mods / styles to the site to ensure it is working right first.
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 10:21 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.04695 seconds
  • Memory Usage 2,282KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete