portalogy.myfabforum.org

It is currently Tue Sep 07, 2010 5:48 am

News Fader
Current Time

Login

Login  •  Register


Top posters
admin 23
test 1

Search
Welcome
Font bb code test
Dual Portal on subSilver2 based themes
Dual Portal on proSilver based themes
cms_latest.tpl
Portalogy Ruling!
cms_login.tpl
cms_fader.tpl *updated*
ProSilver Modules READ ME!
cms_search.tpl

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: News Fader
PostPosted: Thu Jun 19, 2008 3:12 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Sun Jan 27, 2008 2:04 pm
Posts: 23
W00t News Fader for PHPBB3

Right just had a fiddle with this, there is no cms_fader.tpl, So goto portal settings and click MAINMENU and change the MAINMENU name to FADER and click create new portal at the bottom.

Now when editing your template you should now see a cms_fader.tpl file open it up and replace what is there with:
Code:
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_fader_title -->
   <tr>
        <th height="25" class="cat" nowrap="nowrap">{FADER_TITLE}</th>
     </tr>
<!--END switch_categories_title -->     

<tr>
<td class="row1" align="center">


<div id="fscroller" style="font-size: 12; font-family: Verdana,Arial; font-weight: bold; width: 100%; height: 15px; padding: 2px; filter: alpha(opacity=0); -moz-opacity: 0.0;"></div><script language="JavaScript1.2" type="text/javascript">
<!--
var iDelay = 2000;var txtColor = "000000";var fContent = [];
<!-- BEGIN fader_row -->
fContent[{fader_row.MENU_NUMBER}-1] = "<a href='{fader_row.U_VIEW}'>{fader_row.MENU_NAME}</a>"
  <!-- END fader_row -->
var isIE = (document.all)? true : false;var frame = 60;var st = 1;var wait = iCur = 1;var index = iCurMoz = 0;var iDir = false;var frameHalf = frame / 2;var iTimer;var frame_m = frame;var wait_m = wait;document.getElementById("fscroller").style.color = txtColor;function fade(){   if(index >= fContent.length){      index = 0;   }   document.getElementById("fscroller").innerHTML = fContent[index];   index ++;   opacityFade();}function opacityFade(){   var fScroll = document.getElementById("fscroller");   if(frame > 0){      if(frame == frameHalf && wait > 0){         if(isIE){            fScroll.style.filter = "alpha(opacity=" + iCur + ")";         } else {            fScroll.style.MozOpacity = iCurMoz;         }         wait --;         setTimeout("opacityFade()", iDelay);      } else {         if(iDir){            iCur -= 3;            iCurMoz -= 0.03;         } else {            iCur += 3;            iCurMoz += 0.03;         }         if(isIE){            fScroll.style.filter = "alpha(opacity=" + iCur + ")";         } else {            fScroll.style.MozOpacity = iCurMoz;         }         if(frame == (frameHalf + 1)){            if(isIE){               fScroll.style.filter = "alpha(opacity=" + iCur + ")";            } else {               fScroll.style.MozOpacity = iCurMoz;            }            iDir = true;         }         frame --;         setTimeout("opacityFade()", st);      }   } else {      fScroll.innerHTML = " ";      frame = frame_m;      wait = wait_m;      iDir = false;      setTimeout("fade()", st);   }}// -->
</script>
</td></tr>
</table>


<script language="JavaScript" type="text/javascript"><!--
fade();
// -->
</script>


click submit to save, now depending on where you want it to appear you'll need to place {MYFF.FADER} somewhere on your template.

To edit the text that fades in and out, go back to portal settings and find fader(should be the last icon) and change each items text, having links was broken for some odd reason, but I've had a rather detailed fiddle and having links on the fader is now possible again due to this fix.




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
Forum Articles
Welcome
http://news.bbc.co.uk/1/hi/world/europe/8375326.stm
Font bb code test
Hello to you all, enjoy the bb code font replacement

Code:
[size=150][comic_sans_ms][color=#0080FF]Hello to you all, enjoy the bb code font replacement[/color][/comic_sans_ms][/size]
Dual Portal on subSilver2 based themes
Open overall_footer.html and find this: <!-- We request you retain the full copyright notice below including the link to www.phpbb.com. This not only gives respect to the large amount of time given freely by the developers but also helps build interest, traffic and use of phpBB3. If you (honestly) c...