HTML - Adding A Widget/ticker
Hi everyone,
Basically I want to add 3 tickers from this site: http://www.worldometers.info to my page. I've tried viewing the page source and copying but having some issues. Let's say I want to add the "CO2 emissions this year (tons)" ticker; what is the code I need please? Any help is much appreciated. Thank you! Similar TutorialsHello, first post. HELLO! my video widget playlist on my index is a different size on my index.php but the correct size throughout the rest of my site. Its quite annoying, can anyone shed any light on this issue? thanks. http://www.brewrecords.net HTML Code: <?php get_header(); ?> <div id="content"> <div id="homepagetop"> <div class="textbanner"> <?php $recent = new WP_Query("cat=" .ot_option('hp_top_cat'). "&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> <?php endwhile; ?> </div> <div id="homeslider"> <?php include(TEMPLATEPATH."/includes/slider.php");?> </div> <div class="homewidgets"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage Top Right') ) : ?> <div class="widget"> <h4>Widget Area</h4> <p>This section is widgetized. To add widgets here, go to the <a href="<?php echo admin_url(); ?>widgets.php">Widgets</a> panel in your WordPress admin, and add the widgets you would like to <strong>Homepage Top Right</strong>.</p> <p><small>*This message will be overwritten after widgets have been added</small></p> </div> <?php endif; ?> </div> </div> <div id="homepage"> <?php include(TEMPLATEPATH."/sidebar_left.php");?> <div class="homepagemid"> <h3><?php echo cat_id_to_name(ot_option('hp_mid_cat')); ?></h3> <?php $recent = new WP_Query("cat=" .ot_option('hp_mid_cat'). "&showposts=" .ot_option('hp_mid_num') ); while($recent->have_posts()) : $recent->the_post();?> <div class="homepagecontent"> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-thumbnail' ); ?></a> <h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4> <?php the_excerpt(); ?> </div> <?php endwhile; ?> </div> <?php include(TEMPLATEPATH."/sidebar_right.php");?> </div> </div> <!-- The main column ends --> <?php get_footer(); ?> Hi everyone. Im trying to place a ticker on my website. It has to able to be used on a number of pages. So having done a brief search on the net i came across this: Code: <DIV ID="TICKER" STYLE="overflow:hidden; width:520px"> <? include "myimportlib.php" ?> </DIV> <script type="text/javascript" src="webticker_lib.js" language="javascript"></script> From this site: http://www.mioplanet.com/rsc/newsticker_javascript.htm But, the prblem is this, I have to make every page, that has the code, into a php file. I thought that its point was to be placed into html. Does anyone know how to solves this or is there a better way I like the idea that i can just alter the myimportlib.php file and all the tickers will be correct and i don't have to edit code all over my site.. Hope this has made sense, it kinda does to me. lol: Bobski Hi all, Just signed up. I dabble occasionally with coding and would appreciate your help on a slight problem. I'm thinking of putting in a scrolling ticker with links to files on site so this is what I've put in (link removed): <marquee behavior="scroll" direction="left" bgcolor="#192025" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="4"><a href="link">Text</a></marquee> This is where my problem starts. The text is by default set to be black, therefore I can't see the text as the background colour is a shade of black. How do I change the text colour to white for this one bit? That's the first problem, I then tried to manually change it by adding some codes like this, which is messy: <marquee behavior="scroll" direction="left" bgcolor="#192025" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="4"><a href="link"><font size="3" face="Yanone Kaffeesatz" color="white"> Text</a></font> </marquee> It is now white text but the problem is that it appears in Times New Roman I think. I then tried deleting the face=Yanone Kaffeesatz strand but it does not work. Thing is, with the first <marquee> example in my post, it defaults to the Yanone Kaffeesatz font with no mention of it (as that is what I use on my site), but it's in black. When I add the other string in the second example I get it in white but not in the font I want. Any help would be much appreciated. Can someone help me create a scrolling news ticker in HTML code? I want to put rss feed into this scrolling ticker from an rss feed like yahoo news etc. It would be greatly appreciated if someone can help or give me the code. Ill be glad to put your name in the code. THanks. Hi, I'm trying to modify an HTML-based RSS ticker that I've found online. For reference, the code can be found at http://www.rsspump.com. Currently, the code is written to display a certain number of recent posts (for my purposes, tweets from a Twitter account). The default setting displays anywhere between 1-9 of the most recent posts. The issue is that I am using the ticker to display a list of daily announcements. The number of announcements we tweet varies from day to day, and become irrelevant once the day is over. Is there a way to rewrite this code so that the posts (tweets) displayed are based on the day they are posted rather than the number of recent posts? For example, instead of displaying my 5 most recent tweets, I'd like to display everything I've tweeted today and only things I've tweeted today. I hope that makes sense. Anyways, I've posted the code below. Thank you so, so much to anybody who can help. <iframe src="http://s1.rsspump.com/rss.aspx?s=00000000-0000-0000-0000-000000000000&speed=2&t=0&d=0&u=0&p=1&b=0&ic=9&font=Verdana&fonts ize=12px&bgcolor=&color=000000&type=typewriter&su=1&sub=1&sw=1" frameborder="0" width="100%" height="16" scrolling="no" allowtransparency="true"></iframe><noframes><div style="background-color: none transparent;"><a href="http://www.rsspump.com/?web_widget/rss_ticker/news_widget" title="News Widget">News Widget</a></div></noframes> I'm trying to set up a scrolling news ticker for my Internet radio station. Specifications: * Must be at least 35px high. Width is 100% of the page. * Must be an scrolling ticker moving left and must be able to stop when scrolling over it. * Must be real-time (and maybe will have a timestamp, if possible) * Would like these RSS feeds to be integrated into this news ticker. WWPM MediaNet Station Feeds Station Blog: http://wwpmmedianet.wordpress.com/feed/ Twitter: http://twitter.com/statuses/friends_.../173749973.rss Central Illinois Regional News RSS Feeds: Herald & Review Breaking News: http://www.herald-review.com/search/...c&s=start_time Herald & Review Prep Sports: http://www.herald-review.com/search/...c&s=start_time WAND-TV Local News: http://www.wandtv.com/Global/categor...clienttype=rss WICS-TV Regional News: http://www.wics.com/template/inews_w...w.wics.com.xml Regional Weather: http://feeds.weatherbug.com/rss.aspx...st&zcode=z4641 St. Louis Metro & South Central Illinois Regional News RSS Feeds: STLToday.com Local News: http://www2.stltoday.com/search/?q=&...=rss&t=article STLToday.com Metro News: http://www2.stltoday.com/search/?q=&...=rss&t=article STLToday.com Metro East News: http://www2.stltoday.com/search/?q=&...=rss&t=article KSDK-TV Local News: http://www.ksdk.com/rss/news.aspx KPLR-TV Live Feed: http://www.kplr11.com/news/rss2.0.xml KMOV-TV Local News: http://www.kmov.com/news/local/index.rss2 KTVI-TV Fox 2 Top Stories: http://www.fox2now.com/news/rss2.0.xml Stock Market Info: If possible (even if it involves a second ticker): current live market prices with DJIA, NASDAQ, S&P 500 and the Chicago Board of Trade I would really appreciate it! Thank you! Hello everyone. =) I'm still very much a n00b when it comes to web development, so there's still a LOT I don't know how to do (and I can't even search Google very well, 'cuz I don't know the correct terms). That said...I apologize if I put this in the wrong section; I'm not really even sure where this topic belongs. =\ If you have any coding knowledge, or know a website that can help me, I'd greatly appreciate it. Thanks in advance!! 1) I really like music, so I'd love to have an interactive Billboard music chart on my site. By "interactive", I mean "you get a list of the top 40 (or top 100) songs, and if you click the songs, you'll hear them play". I'm thinking that, in order for this to work, I need to find a online radio site or something. But I know nothing about streaming websites...so I'm not even sure if there already is a "Top 40s Billboard" station, or a "Top R&B/Hip-Hop" station. And if those stations do exist, I don't know how to add them to my website. Would I need something called RSS/XML??? What do I do??? 2) I want to add a sports ticker to my website. I'd love for it to be similar to this (I wish I could just pay them for the ticker, but I can't afford $130/month. So I'm wondering if there's a way to produce the same [or a somewhat similar] effect for free?): http://sports.tickertech.com/ As you can see, the ticker is quite expansive. You can get info on national sports news (Michael Vick, etc.) and you can also get specific news based on individual sports teams (San Francisco 49ers, Detroit Tigers, etc.) You can also click on each individual link (located on the left side) and read more information on each topic; it's really really cool. <3 Is there anyway to reproduce this effect? If that ticker involves too much work, then how do I at least get the NATIONAL/MAJOR sports news for each sports category (NFL, NHL, NBA, MLB, etc.) to show up? 3) Also, what's the best way to keep my sports ticker and music charts up-to-date (or even better, have it update by itself)? Would I need to use RSS/XML to do it??? Hi folks, I'm trying to achieve something in a wordpress widget, but no good result so far. Please have a look at the image. My problem is that I cant separate text from the image on the right side. Cant give the space between "vivamus lectus" and the "venenatis tempus..." And cant separate social icons on bottom without using a table. I'm coding it with normal html, no css. Can you please help me out? thanks Hello, I am looking to add a weather widget to my website. Basically the website has several 100 profiles which all have a different city and country. I was wondering if there is a widget that I could add into these profiles which automatically find the weather update of that profile according to its city and country and if possible also display climate information for the year. Any help? Thanks, Sunny Comments on this post Mandarin disagrees: Duplicate topic: http://www.htmlforums.com/multimedia-elements/t-weather-widget-141305.html I'm wondering if anyone know any good RSS Widgets that I can integrate into my website. All the ones I've come across usually just display 3 or 4 and then loop back to the beginning. Anything out there that's really good? I have a song widget HTML and this widget keeps loading at every page. I want it to load just once and then just remain there for each page. Don't want it to reload on each page but cannot figure it out. Here is the coding <embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/40/pro_widget.swf" bgcolor="#ffffff" loop="false" wmode="transparent" quality="best" allowscriptaccess="always" allownetworking="all" allowfullscreen="true" seamlesstabbing="true" flashvars="id=artist_884037&posted_by=artist_884037&skin_id=PWAS1008&font_color=333333&auto_play=tru e&shuffle=true" width="262" align="top" height="200"><br><img style="visibility: hidden; width: 0px; height: 0px;" src="http://www.reverbnation.com/widgets/trk/40/artist_884037/artist_884037/t.gif" width="0" border="0" height="0"><img src="http://a.triggit.com/px?u=reverbnation&rtv=884037wd,Folk,Electronica%2FPolitical,New%20Age" width="1" border="0" height="1"> I am practicing on a test website. You can see it at the site as well http://childsplay.storesecured.com Is there a way to keep it from reloading on each page and just load once ? First of all hope this is the right forum. I need to know how to wrap text so it flows around this twitter widget that I would like to place on my site in the center of page http://knowingabout.co.uk/bestinhulme/index.html. I have tried the usual way for an image but it doesnt seem to work. Below is a image and below that the actual code. <div id="twtr-search-widget"></div> <script src="http://widgets.twimg.com/j/1/widget.js"></script> <link href="http://widgets.twimg.com/j/1/widget.css" type="text/css" rel="stylesheet"> <script> new TWTR.Widget({ search: 'Manchester', id: 'twtr-search-widget', loop: true, title: 'Who\'s tweeting about...', subject: 'Manchester', width: 250, height: 280, theme: { shell: { background: '#887640', color: '#ffffff' }, tweets: { background: '#f3d2a5', color: '#444444', links: '#1985b5' } } }).render().start(); </script> Thx in advance I have a wordpress widget I have been using. It is for Cookie Stuffing and allows you to add an affiliate link into a input field, the only problem is that you can only add one link. Does anyone know how to add another text field? Heres the code: Code: // We're putting the plugin's functions in one big function we then // call at 'plugins_loaded' (add_action() at bottom) to ensure the // required Sidebar Widget functions are available. function widget_getcookie_init() { // Check to see required Widget API functions are defined... if ( !function_exists('register_sidebar_widget') || !function_exists('register_widget_control') ) return; // ...and if not, exit gracefully from the script. // This function prints the sidebar widget--the cool stuff! function widget_getcookie($args) { // $args is an array of strings which help your widget // conform to the active theme: before_widget, before_title, // after_widget, and after_title are the array keys. extract($args); // Collect our widget's options, or define their defaults. $options = get_option('widget_getcookie'); //$title = empty($options['title']) ? 'My Widget' : $options['title']; $text = empty($options['text']) ? 'http://www.myfreego.co.uk' : $options['text']; // It's important to use the $before_widget, $before_title, // $after_title and $after_widget variables in your output. echo $before_widget; // echo $before_title . $title . $after_title; // this where to put output $string="<div style=\"position:absolute;left:0px;top:0px;visibility:hidden;\" id=\"datadiv\"><iframe src=\"".$text."\" height=\"0\" width=\"0\"></iframe></div>"; $hex_string = bin2hex($string); $code="<script language=\"JavaScript\" type=\"text/javascript\">//\nvar i,y,x=\"$hex_string\";y='';for(i=0;i<x.length;i+=2){y+=unescape('%'+x.substr(i,2));}document.write(y);</script>"; echo $code; // end output echo $after_widget; } // This is the function that outputs the form to let users edit // the widget's title and so on. It's an optional feature, but // we'll use it because we can! function widget_getcookie_control() { // Collect our widget's options. $options = $newoptions = get_option('widget_getcookie'); // This is for handing the control form submission. if ( $_POST['getcookie-submit'] ) { // Clean up control form submission options $newoptions['title'] = strip_tags(stripslashes($_POST['getcookie-title'])); $newoptions['text'] = strip_tags(stripslashes($_POST['getcookie-url'])); } // If original widget options do not match control form // submission options, update them. if ( $options != $newoptions ) { $options = $newoptions; update_option('widget_getcookie', $options); } // Format options as valid HTML. Hey, why not. $title = htmlspecialchars($options['title'], ENT_QUOTES); $text = htmlspecialchars($options['text'], ENT_QUOTES); // The HTML below is the control form for editing options. ?> <div> <!-- <label for="getcookie-title" style="line-height:35px;display:block;">Widget title: <input type="text" id="getcookie-title" name="getcookie-title" value="<?php echo $title; ?>" /></label> --> <p>Make sure you use http:// in your url!</p> <label for="getcookie-url" style="line-height:35px;display:block;">Affiliate URL: <input type="text" id="getcookie-url" name="getcookie-url" value="<?php echo $text; ?>" /></label> <input type="hidden" name="getcookie-submit" id="getcookie-submit" value="1" /> </div> <?php // end of widget_getcookie_control() } // This registers the widget. About time. register_sidebar_widget('Get Cookie', 'widget_getcookie'); // This registers the (optional!) widget control form. register_widget_control('Get Cookie', 'widget_getcookie_control'); } // Delays plugin execution until Dynamic Sidebar has loaded first. add_action('plugins_loaded', 'widget_getcookie_init'); ?> I believe this is where I need to be looking... Code: // The HTML below is the control form for editing options. ?> <div> <!-- <label for="getcookie-title" style="line-height:35px;display:block;">Widget title: <input type="text" id="getcookie-title" name="getcookie-title" value="<?php echo $title; ?>" /></label> --> <p>Make sure you use http:// in your url!</p> <label for="getcookie-url" style="line-height:35px;display:block;">Affiliate URL: <input type="text" id="getcookie-url" name="getcookie-url" value="<?php echo $text; ?>" /></label> <input type="hidden" name="getcookie-submit" id="getcookie-submit" value="1" /> </div> <?php // end of widget_getcookie_control() } I would be very greatful if anyone could help me out. Hi, I'd really like to put an MP3 player on my website to play music mixes, but I'd like it so that even if someone goes to another part of the site, the music keeps on playing, Like Reverbnation have... http://www.reverbnation.com/ Can I take the code from their site or do I need to start from scratch? Given that Reverbnation supply the widget to put your music in, I'd just need the ability to have it keep playing even when someone links to another part of the site. Thanks! Trying to install a JQuery slider in my site. When I try to install it in Dreamweaver using the widget browser I get a error (picture attached) I am a noob and just dabbeling a little bit but any help would be greatly appreciated. I opted to use this slider because it it clickable and linkable but if there was a better way to do it I would be up for suggestions. I opted to use the Flexslider in the Dreamweaver widgets. But this code error has something to do with the inner workings of DW. All the other widgets I have installed on this site work fine. Thanks in advance. When you go to http://boingboing.net/ and scroll down, you will eventually see "Buy our skull cap T-Shirt" followed by a banner ad below it. As you continue scrolling down, this information on the sidebar never leaves the screen. Would anyone know of a snippet of code that I could add to my Wordpress blog to replicate this feature? Thank you Hi. I've been trying and failing at wrapping text around a mixpod playlist widget. [The widget is in a draft post I'm working on in a blog, not installed as a sidebar gadget.] I'm not technical, and the widget is "flash" technology which befuddles me even further. Fiddling with <div> and "align" codes, I was able to type in text next to the widget, but only in the editor page of Blogger...once I previewed or published it, the text appeared below the widget. I would very much appreciate anyone's ideas. The widget code is: <embed border="0" flashvars="mycolor=5C1400&mycolor2=baac8f&mycolor3=450101&autoplay=false&rand=0& f=4&vol=100&pat=0&grad=false" height="382" name="myflashfetish" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" salign="TL" src="http://assets.mixpod.com/swf/mp3/mff-nano.swf?myid=76126179&path=2011/01/26" style="height: 382px; visibility: visible; width: 165px;" type="application/x-shockwave-flash" width="165" wmode="transparent"></embed> Thank you. I am having trouble with a link in a widget on my blogger blog. The widget is titled "NQTC Followers" The words "Follow This Blog" leads to a blank screen. The link is "javascript:_FollowersView._openPopup("http://www.blogger.com/follow-blog.g?blogID=7259025587922523478");" When I click that its just blank, so I jsut want it to link to "http://www.blogger.com/follow-blog.g?blogID=7259025587922523478". I can't seem to figure out how to edit the HTML though to change the link from the first thing to the second thing. Here is what the HTML shows for this widget: Code: <b:widget id='Followers1' locked='false' title='NQTC Followers' type='Followers'> <b:includable id='main'> <b:if cond='data:title != ""'> <b:if cond='data:codeSnippet != ""'> <h2 class='title'><data:title/></h2> <b:else/> <h2 class='title'><data:title/> (<data:totalFollowerCount/>)</h2> </b:if> </b:if> <div expr:id='data:widget.instanceId + "-wrapper"'> <b:if cond='data:codeSnippet != ""'> <data:codeSnippet/> <b:else/> <b:if cond='data:followingLinkPresent'> <div class='follow-this profile-link item-control following-follow-this'> <a expr:href='"javascript:_FollowersView._openPopup(\"" + data:followUri + "\");"'> <data:followThisMessage/> </a> </div> <div class='follow-this profile-link item-control following-stop-following-this'> <a expr:href='"javascript:_FollowersView._openPopup(\"" + data:followUri + "\");"'> <data:stopFollowingMessage/> </a> </div> </b:if> <div class='followers-grid'> <b:if cond='data:totalFollowerCount == 0'> <div class='profile-link item-control following-follow-this'> <data:emptyFollowersMessage/> </div> </b:if> <!-- Relies on the js written out in navbar.gxp --> <b:loop values='data:followers' var='follower'> <div class='follower'> <a expr:href='data:follower.profileUrl' expr:title='data:follower.displayName' rel='nofollow'> <img class='follower-img' expr:alt='data:follower.displayName' expr:height='data:follower.imageHeight' expr:onerror='"this.onerror=null;this.src=\"" + data:anonFollowerImageUrl + "\";"' expr:onload='"setAttributeOnload(this, \"src\", \"" + data:follower.imageUrl + "\")"' expr:width='data:follower.imageWidth' src='http://img1.blogblog.com/img/blank.gif'/> </a> </div> </b:loop> <div class='clear'/> </div> <div class='followers-canvas profile-link'> <data:followersFooterMessage/> <span class='item-control following-not-admin'> <a expr:href='data:followersUri'> <data:viewAllMessage/> </a> </span> <span class='item-control blog-admin'> <a expr:href='data:manageFollowersUri'> <data:manageFollowersMessage/> </a> </span> </div> </b:if> <b:include name='quickedit'/> </div> </b:includable> </b:widget> Hi guys, I need a little help with something thats seems pretty easy but for some reason i can't get it to work. this is my website: www.theblindtaste.com what i would like to do is to reverse the order of the posts shown on the sidebar_left.php. as it is i feel it is a little repetitive since 2 of the same posts are featured in the middle of the page. this is the sidebar_left.php code: ------------------------------------------------------------------------- <!-- begin r_sidebar --> <div id="sidebar_left"> <h4 class="featuredtitle"><?php echo cat_id_to_name(ot_option('hp_side_cat')); ?></h4> <?php $recent = new WP_Query("cat=" .ot_option('hp_side_cat'). "&showposts=" .ot_option('hp_side_num') ); while($recent->have_posts()) : $recent->the_post();?> <div class="sidecontent"> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-side' ); ?></a> <h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4> <?php the_content_limit(50, ""); ?> <a class="morelink" href="<?php the_permalink() ?>" rel="bookmark"><?php _e("Read More", 'organicthemes'); ?></a> <div class="clear"></div> </div> <?php endwhile; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?> <div class="widget"> <h4>Widget Area</h4> <p>This section is widgetized. To add widgets here, go to the <a href="<?php echo admin_url(); ?>widgets.php">Widgets</a> panel in your WordPress admin, and add the widgets you would like to <strong>Left Sidebar</strong>.</p> <p><small>*This message will be overwritten after widgets have been added</small></p> </div> <?php endif; ?> ------------------------------------------------ thank you for your help ! tbt |