vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - UKBL ~ Newsticker IFrame in Navbar (https://vborg.vbsupport.ru/showthread.php?t=208313)

hoopsta 03-14-2009 05:33 PM

Quote:

Originally Posted by ArnyVee (Post 1768041)
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?

would you mind telling me which hack you use for the Top 5 Stats ?

UKBusinessLive 03-14-2009 05:43 PM

Quote:

Originally Posted by ArnyVee (Post 1768041)
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?


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
and change to

Code:

frameborder=0
Just going to get my demo done on my site ;) bear with me for a sec....

Jon Tolzien 03-14-2009 05:46 PM

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

//IFRAME TICKER- By Dynamic Drive (http://www.dynamicdrive.com)

//configure delay between changing messages (3000=3 seconds)
var delay=3000

var ie4=document.all

var curindex=0
var totalcontent=0

function get_total(){
if (ie4){
while (eval("document.all.content"+totalcontent))
totalcontent++
}
else{
while (document.getElementById("content"+totalcontent))
totalcontent++
}
}

function contract_all(){
for (y=0;y<totalcontent;y++){
if (ie4)
eval("document.all.content"+y).style.display="none"
else
document.getElementById("content"+y).style.display="none"
}
}

function expand_one(which){
contract_all()
if (ie4)
eval("document.all.content"+which).style.display=""
else
document.getElementById("content"+which).style.display=""
}

function rotate_content(){
get_total()
contract_all()
expand_one(curindex)
curindex=(curindex<totalcontent-1)? curindex+1: 0
setTimeout("rotate_content()",delay)
}

window.onload=rotate_content

</script>

<BODY bgColor=#333333>

<div align="center">
  <!--ADD YOUR TICKER CONTENT BELOW, by wrapping each one inside a <DIV> as shown below.-->
  <!--For each DIV, increment its ID attribute for each additional content (ie: "content1", "content2" etc)-->
  <strong><font color="#FFFFFF" face="Verdana">Welcome to Diversified Online Gamers!!!</font></strong>
</div>
<div id="content1" style="display:none">

  <div align="center"><font color="#FFFFFF">
  <!-- ADD TICKER's CONTENT #2 HERE--------------------->
   
<strong>  <<strong><font face="Verdana">Welcome to Diversified Online Gamers!!!</font></strong></small></font>
    </p></strong>
   
    <!-- END CONTENT #2----------------->
    </font></div>
</div>

<div id="content2" style="display:none">

  <div align="center"><font color="#FFFFFF">
  <!-- ADD TICKER's CONTENT #3 HERE--------------------->
   
    <strong><font color="#FFFFFF" face="Verdana">Welcome to Diversified Online Gamers!!!</font></strong>
</div>
  <!-- END CONTENT #3----------------->
  </font></div>
</div>
<div id="content3" style="display:none">


ArnyVee 03-14-2009 05:48 PM

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

ArnyVee 03-14-2009 05:53 PM

Quote:

Originally Posted by hoopsta (Post 1768049)
would you mind telling me which hack you use for the Top 5 Stats ?

No problem sir! :)

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

hoopsta 03-14-2009 06:04 PM

thanks Arny... I just uploaded the stat hack. I like this newsticker thing to....

ArnyVee 03-14-2009 06:07 PM

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

hoopsta 03-14-2009 06:11 PM

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?

UKBusinessLive 03-14-2009 06:14 PM

Quote:

Originally Posted by Jon Tolzien (Post 1768065)
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

Hi Jon, To answer your Questions

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
Just change the attribute to=yes

You can see how this works on my demo: www.ukbusinesslive.co.uk/forum

UKBusinessLive 03-14-2009 06:16 PM

Quote:

Originally Posted by hoopsta (Post 1768087)
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?

Thats right, edit the exfile.htm file and upload the file to your forum root directory ;)

I've addd a demo on my forum www.ukbusinesslive.co.uk/forum :D


All times are GMT. The time now is 03:51 PM.

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.01109 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete