![]() |
UKBL ~ Newsticker IFrame in Navbar
1 Attachment(s)
UKBL ~ Newsticker IFrame in Navbar Working Demo: http://www.ukbusinesslive.co.uk/forum With Border Working Demo: http://www.waltdisneyboards.com/forums.php Without Border As a request for a friend, i made this simple to add news ticker using a simple html script from Dynamic Drive and added it to the navbar, left of the login box, Now your members will be able to see up to date news everytime they login ;) https://vborg.vbsupport.ru/external/2009/03/21.png So Easy to Install First Download the zip file and open the ticker.txt file in a text editor like notepad To legally use the code from Dynamic Drive please retain their credits within the code Code:
<!--<UKBL Iframe Ticker Start>-----------------------------------------------------------------------> Code:
src="http://yourforum.com/exfile.htm" Find Code:
width=200 height=80 Find this Code:
scrolling=no Now we save that file and we need to copy and paste the entire contents of that file to our Navbar, so... AdminCP > Styles & Templates> Style Manager> Your Chosen Style> All style options> Edit templates> Navigation / Breadcrumb Templates> navbar Find the following Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div> Code:
<!--<UKBL Iframe Ticker Start>-----------------------------------------------------------------------> Grab yourselves a beer, Here comes part two :D In Notpad again open the "exfile.htm" file, as we need to edit and add our content :up: When you open the file in Notepad we see this, remember to keep the Dynamic drive url and copyright in place ;) Code:
<script language="JavaScript1.2"> Code:
var delay=3000 next Find this Code:
<BODY bgColor=#FFFFE1> Find this Code:
<!-- ADD TICKER's CONTENT #1 HERE---------------------> You'll see how easy it is, The first part is the url of your link, Then the text after it, once you've done a couple you'll get the knack ;) if you want to add more, make sure you...... Code:
<!--ADD YOUR TICKER CONTENT BELOW, by wrapping each one inside a <DIV> as shown below.--> Thats it, Now click onto your homepage and suprise your members with your New feature Please click Install if you use and i'll support you 100% |
:D reserved :rolleyes:
|
Thanks Gerry! :up:
Another useful option for those folks looking to do little touches on their sites! Thanks for participating so much and contributing to the community my friend! I'll be installing it shortly! :D |
Quote:
|
Thanks
|
is there a demo site with this working?
|
Quote:
|
I've got it started (still testing), but you can use my site for the demo http://www.waltdisneyboards.com/forums.php
Gerry, I'd like to ask a question. I noticed that the text wasn't aligned towards the top. Where do I put the valign="top" piece? Also, what do I do to change the color (or eliminate, rather) the borders on the iFrame? |
Quote:
|
Quote:
|
Quote:
|
Quote:
Hi Arny, Not sure what you mean about the align= top?? It works OK on my Test Site?? Post me a link when you get it up? To make the Border disappear in the ticker.txt file find Code:
frameborder=1 Code:
frameborder=0 |
Alright i loaded it and everything but a couple of small problems.
1. Can this scroll right to left, like a stock ticker..... Does this automatically scroll? 2. Can this be centered in the navbar 3. I cannot get it to scroll at all, i probably screwed something up:D I love this idea, i have been looking for one that is quality for a long time. Thanks for the help Code:
<script language="JavaScript1.2"> |
Gerry, it's working now. :up:
I forgot that you had the "show 'member'" in there. So, I removed that (and noticed where to put the "0" for the frameborder too ;) ) and it should be good. Now, just working on aligning the text to the top to make it look nicer. :) |
Quote:
I use the Cyb-Advanced Forum Stats. If you're using vB 3.8, go here https://vborg.vbsupport.ru/showthread.php?t=201274 ... if you're using vB 3.7, go here https://vborg.vbsupport.ru/showthread.php?t=177778 Thanks for comments, by the way! :up: The demo on my site is working other than the text being down a bit (almost as if there are some line breaks in there somewhere), so I'm adjusting that now. I have it blending into (no iFrame border or differentiating background color) my site. So, Gerry could use this one as another option in his demos. :D |
thanks Arny... I just uploaded the stat hack. I like this newsticker thing to....
|
No problem Hoopsta! :)
Yes, Gerry does a lot of helpful and fun modifications for our community. :up: I'm happy that others have liked the ideas as well. :D |
this is a dumb question, but once this is set up all we need to do is edit: exfile.htm and that will change newsticker info?
|
Quote:
1. This will scroll from bottom to top if you want, for right to left you'll need something like this, My scrolling marquee hack https://vborg.vbsupport.ru/showthread.php?t=207241 2. if you align this in the centre of the navbar, then it will mess up the forum breadcrumb and make the navbar wider, It need to be in its own "cell" next to the login, if you want an iframe in the centre then you can just add My scrolling Forum news to the header https://vborg.vbsupport.ru/showthread.php?t=207002 demo: http://www.ukbusinesslive.co.uk/forum/scroller.htm 3. To get this hack to scroll bottom to top go to the ticker.txt file and find Code:
scrolling=no You can see how this works on my demo: www.ukbusinesslive.co.uk/forum |
Quote:
I've addd a demo on my forum www.ukbusinesslive.co.uk/forum :D |
Gerry...I think I know why mine is not 'centered'. I adjusted the size (height) and it probably threw it off. How do we make it so that it's "fluid" and maybe centered based on the size and not a set pixel size?
Could that be the problem? |
Quote:
If you look at the exfile.htm file and look at each block Code:
<p align="left"><small><strong><font face="Verdana"><a href="http://www.ukbl.co.uk" target="_top">Business Hosting</a> </font></strong></small><br> Code:
<p align="left"> Code:
<p align="center"> |
Sorry Gerry, I mean to say "centered", but top to bottom as opposed to left to right.
|
Quote:
Ha Ha You love making me work :eek: Hang in there buddy i'll take a look at the code again ;) You need to add the valign="middle" attribute also like this Code:
<p align="center" valign="middle"> |
so I tried to find this in my Navbar
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div> and it only appears in my default style, not my modded ones which I use. LOL! Go figure! |
Didn't work Gerry. So, I just adjusted it back up to "80" on the height and it's centered now. But, there has to be a way to valign="top" or "middle" in there. The "p align" works as far as centering (although I don't want it like that, I like the left align and moved it back to left). But, I can't get the valign to go to "top" or even "middle" when you change the height of the iFrame. Strange.
Well, I'll work with it at 80 for now and see if I need to revisit that in the future :) Now, gonna go and add "real" info and links in the mod :up: |
Quote:
if you keep the opening and closing tags on the code you can quickly cut it out and re paste elsewhere, if the box comes out in the wrong place ;) Code:
<!--<UKBL Iframe Ticker Start>-----------------------------------------------------------------------> |
Quote:
will give it a shot. |
Quote:
Any way Arny i've kept mine central and change the hieght so that it looks good with just 3 lines, The link and 2 lines of text, Thats all i need for my site. :) |
got it working but the contect is pretty lame. Any suggestions on changing content fprovide? Do I replace the www.dynamicdrive.com/dynamicindex9/encrypter.htm" with another content provider i.e. foxnews, or whatever?
|
Quote:
???????????? :confused: I think you must be talking about something else here buddy :eek: |
Quote:
|
never mind, I get it.
|
Quote:
Not sure where you got this from ?? Code:
www.dynamicdrive.com/dynamicindex9/encrypter.htm |
I get it, I thought the feed was coming from another source, you add your own content. Doh!
|
Quote:
|
Gerry, I just noticed that everything in the navbar template is sitting at the same level. So, it must be something that has to be adjusted within the entire template and not just the part of the code only. It seems to be one of those things where the coding is being over-ridden.
|
Quote:
|
Quote:
|
Gerry, I set it back to the 200 x 80 that you originally had and you can see on the site that it's at the same level as the login area and RSS icon, etc. So, something is overriding the code, I assume.
|
All times are GMT. The time now is 05:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|