vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Latest Threads Ticker [jQUery] (https://vborg.vbsupport.ru/showthread.php?t=262910)

yeppuda 02-12-2012 08:16 AM

for 4.x.x:
Code:

<script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js&forumids=1,2,3,4,5"></script>
    <script type="text/javascript">


True ?

for 3.8.x:
Code:

<script type="text/javascript" src="[vboptions.bburl]/external.php?&type=js&f=1,2,3,4,5"></script>
    <script type="text/javascript">

Coder, help please ;)

tommydamic68 02-14-2012 12:12 AM

For 3.8 users-here is the CSS code. you will have to adjust it to your site. it took me days to get the answer so enjoy it freely and simply! iv'e made the code bold where you will need to adjust it for your site.

Code:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* StatorLatest Threads Ticker  */
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#ticker-wrapper * {
        margin-left: auto;
        margin-right: auto;

}
#ticker-wrapper.has-js {
    margin: 20px auto 20px auto;
    padding: 0px 20px;
    width: 870px;
    height: 30px;
    display: block;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    background-color: #f8f0db;
    font-size: 1.1em;
}
 #ticker-wrapper{position:relative}

#ticker {
    width: 830px;
    height: 30px;
    display: block;
    position: relative;
    overflow: hidden;
    background-color: #f8f0db;
}
#ticker-title {
    padding: 5px;
    color: #990000;
    font-weight: bold;
    background-color: #f8f0db;
    text-transform: none;
}
#ticker-content {
    margin: 0px;
    padding: 5px;
    position: absolute;
    color: #1F527B;
    font-weight: normal;
    background-color: #f8f0db;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2em;

}
#ticker-content:focus {
    none;
}
#ticker-content a {
    text-decoration: none;   
    color: #1F527B;
}
#ticker-content a:hover {
    text-decoration: underline;   
    color: #0D3059;
}
#ticker-swipe {
    padding-top: 9px;
    position: absolute;
    top: 0px;
    background-color: #f8f0db;
    display: block;
    width: 800px;
    height: 23px;
}
#ticker-swipe span {
    margin-left: 1px;
    background-color: #f8f0db;
    border-bottom: 1px solid #1F527B;
    height: 12px;
    width: 7px;
    display: block;
}
#ticker-controls {
    list-style-type: none;
    margin: 0;
    padding: 8px 0 0;
    position: absolute;
    right: 30px;
  top:45;
}
#ticker-controls li {
    padding: 0px;
    margin-left: 5px;
    float: left;
    cursor: pointer;
    height: 16px;
    width: 16px;
    display: block;
}
#ticker-controls li#play-pause {
    background-image: url('../images/controls.png');
    background-position: 32px 16px;
}
#ticker-controls li#play-pause.over {
    background-position: 32px 32px;
}
#ticker-controls li#play-pause.down {
    background-position: 32px 0px;
}
#ticker-controls li#play-pause.paused {
    background-image: url('../images/controls.png');   
    background-position: 48px 16px;
}
#ticker-controls li#play-pause.paused.over {
    background-position: 48px 32px;
}
#ticker-controls li#play-pause.paused.down {
    background-position: 48px 0px;
}
#ticker-controls li#prev {
    background-image: url('../images/controls.png');
    background-position: 0px 16px;       
}
#ticker-controls li#prev.over {
    background-position: 0px 32px;       
}
#ticker-controls li#prev.down {
    background-position: 0px 0px;       
}
#ticker-controls li#next {
    background-image: url('../images/controls.png');   
    background-position: 16px 16px;   
}
#ticker-controls li#next.over {
    background-position: 16px 32px;   
}
#ticker-controls li#next.down {   
    background-position: 16px 0px;   
}
.js-hidden {
    display: none;
}
#no-js-news {
    padding: 10px 0px 0px 45px;
    color: #F8F0DB;
}
.left #ticker-swipe {
    left: 80px;
}
.left #ticker-controls, .left #ticker-content, .left #ticker-title, .left #ticker {
    float: left;
}
.left #ticker-controls {
    padding-left: 6px;
}
.right #ticker-swipe {
    right: 80px;
}
.right #ticker-controls, .right #ticker-content, .right #ticker-title, .right #ticker {
    float: right;
}
.right #ticker-controls {
    padding-right: 6px;
}


abyanhost 02-17-2012 04:20 PM

Quote:

Originally Posted by Merjawy (Post 2290881)
If the board is using Arabic UTF-8, java won't decode Arabic terms correctly.
It works fine if Windows-1256 is used.

It works fine in my Arabic UTF-8 board "abyanboard" vb Version 4.1.10.

Simply open the file jquery.ticker.js by notepad++ and convert it to UTF-8 without BOM.
Edit "Latest threads" = " آخر المواضيع " , also direction "rtl", as per the instructions in the mod.
save the file and upload it to js directory.

Regards,

dany_danay 02-20-2012 12:19 PM

I want to show certain threads, i try to add:
<script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js&forumids=14&threadid=31608"></script>
but it show another thread from the same subforum.. any ideas?
Please!!

CuteC@t 03-30-2012 06:17 AM

How do I turn it off ? Do I have to remove all codes..........plz someone guide me!

hacker_ 03-31-2012 06:59 PM

for more seo in vBSEO how to edit this?
<!--ticker-->
<div id="ticker-wrapper" class="no-js">
<ul id="js-news" class="js-hidden">
<script type="text/javascript" src="{vb:raw vboptions.bburl}/external.php?&type=js"></script>
<script type="text/javascript">
<!--
for (var i = 0; i < threads.length; i++)
{
document.write('<li><a href="{vb:raw vboptions.bburl}/showthread.php?t=' + threads[i]['threadid'] + '">' + threads[i]['title'] + '</a>' + '&nbsp;&nbsp;&nbsp;' + '<span style="color: red;">Publicado Por:</span>'+ '&nbsp;' + threads[i]['poster'] + '</a>' + '</li>');
}
//-->
</script>
</ul>
</div>
<!--ticker-->
because the link did not appear as if the vBSEO thus
http://websiteforum/showthread.php?t=11
and the real link for the vBSEO is this
http://websiteforum/f13/la-primera-p...ion-11-post17/
how to fix this code in de navbar?

egyptsons 04-04-2012 09:49 PM

it works fine
but controls image not appears
see here
http://www.egyptsons.com/misr

egyptsons 04-04-2012 10:10 PM

Quote:

Originally Posted by egyptsons (Post 2316825)
it works fine
but controls image not appears
see here
http://www.egyptsons.com/misr

It work fine now after i upload the image to the domain root

skido 04-06-2012 08:27 PM

Very nice, installed ..works perfect :D
Feel free to look here to see it running http://unitedextremegamers.net/forum.php

Thanks again!

CuteC@t 04-07-2012 08:03 AM

Quote:

Originally Posted by egyptsons (Post 2316829)
It work fine now after i upload the image to the domain root

what is domain root ?


All times are GMT. The time now is 05:04 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.01173 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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