vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=208314

UKBL ~ Newsticker IFrame in Navbar
by UKBusinessLive
14 Mar 2009 17:23

2 Attachment(s)
UKBL ~ Newsticker IFrame in Navbar


[CENTER]Working Demo: http://www.ukbusinesslive.co.uk/forum

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 ;)


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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace it with yoursite and keep the file exfile.htm at root level (We'll need to edit that file later ;) )

Find


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change this for the size you want, I've kept mine small 200 x 80 pixels but you can edit this for whatever size you want to make the Iframe :up:

Find this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change it to yes if you want the iframe to scroll as opossed to just changing. if no then the content will change ever XX seconds which is adjustable ;)

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and directly below it add your code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Ok Guys thats the first bit done,
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 ;)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and change it for whatever delay you want, remember its in milliseconds so 3 seconds = 3000

next Find this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This changes the color of the iframe background, Use a hex color generator to chose a color which suits your site, I use this http://www.2createawebsite.com/build/hex-colors.html

Find this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

these are the text blocks, Just edit them to suit your content

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......


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thats it, so now we need to save the file, and upload the file (exfile.htm) to our forums root directory.

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%

UKBusinessLive 14 Mar 2009 17:25

:D Reserved ;)


All times are GMT. The time now is 11:46.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.