FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Who is OnlineWho is Online   Join! (free) Join! (free)  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  • Welcome
  • Guest

  • Open Support Tickets
News Fader Portal Guide (Updated 19 June 2008)
Page Previous  1, 2
 
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Portal components
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertising.






Add Karma

rated by members
Add Comment
Show Comments


online/offline
Posted:     Post subject:

Back to top
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92890

Joined: 22 May 2005
Posts: 32203



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Mon May 04, 2009 1:35 pm    Post subject:  Reply with quote

That guide is unfortunately someones contribution and looking at it, is not only has the error you have copied, but missing out on the main part of how to create a fader. Try reading:

http://forum.myfreeforum.org/about6521.html&highlight=fader
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
roycepsam*
Pupil
Pupil
FLAG

Virtual Cash: 510

Joined: 04 May 2009
Posts: 44



Add Karma

rated by 0 members
Add Comment
Show Comments


online/offline
PostPosted: Mon May 04, 2009 4:05 pm    Post subject: Reply with quote

Dear admin,
Thank you for your patience and the time you have given me so far.
I have tried to follow all instructions to no avail, after 8 hours my head is spinning..!!
I will try to put clearly what i have done so far, perhaps you could point me out my mistake..??

Forum link = http://urhitworldwide.myfreeforum.org/index.php
Fader reads on home page = Template MYFF.FADER does not exist.

I started by putting this on the end of overall_header code =
Code:
 <table width="90%" border="0">
  <tr><td colspan="3">{MYFF.FADER}</td></tr>
</table>


Next I added the below to my cms_myff.fader.tpl
Code:
 <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_fader_title -->
   <tr>
        <th height="25" class="thCornerL" nowrap="nowrap">{FADER_TITLE}</th>
     </tr>
<!--END switch_categories_title -->    
 
<tr>
<td 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 -->
if ("{fader_row.U_VIEW_MENU}"=="")
{
fContent[{fader_row.MENU_NUMBER}-1] = "{fader_row.MENU_NAME}"
}else
{
fContent[{fader_row.MENU_NUMBER}-1] = "<a href=\"{fader_row.U_VIEW_MENU}\">{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>


I have then gone to Portal settings and set up a menu titled :
Component Type MENU
Name MYFF.FADER
Title       News

Links 1
Item  : News Fader

Links 2
Item ; Looking Good



This is what I have done anymore help would be appreciated
Back to top
View user's profile Send private message
Ask Mr. Religion
Craftsman
Craftsman
FLAG

Virtual Cash: 4500

Joined: 01 Aug 2008
Posts: 423



Add Karma

rated by 3 members
Add Comment
Show Comments


online/offline
PostPosted: Mon May 04, 2009 4:23 pm    Post subject: Reply with quote

roycepsam* wrote:
Dear Admin,
Thank you for your prompt reply,
We are not experienced at this but we have basically copied from above Instruction No( 8 )

We deleted the existing Text and replaced with what is in Instruction No ( 8 )

We look forward to your reply and question what you mean :
"CATEGORIES portal and not a MENU portal"
Roycepsam


Find the line in your code that reads

Code:
<!--END switch_categories_title -->


Change it to read
Code:
<!--END switch_fader_title -->


Next follow my directions in my post above to create a Fader Menu portal component into which you will add the actual news titles and any links that will be displayed by the Fader. See my fader in action here:
http://rti.myfineforum.org/index.php

AMR
_________________
Ask Mr. Religion (a.k.a. 'Patrick')
Founder, Reformed Theology Institute
Back to top
View user's profile Send private message
roycepsam*
Pupil
Pupil
FLAG

Virtual Cash: 510

Joined: 04 May 2009
Posts: 44



Add Karma

rated by 0 members
Add Comment
Show Comments


online/offline
PostPosted: Mon May 04, 2009 5:20 pm    Post subject: Reply with quote

OK guys thank you very much for your help that is now working fine..!!

Just wondering if you can help me with 2 other small issues I wish to solve?

1) Our Forum is private, how can I have it where you can only read News Fader once Logged in??
2) The news item only lasts about 2secs on each item...can I slow the fader down??

Regards
roycepsam
Back to top
View user's profile Send private message
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92890

Joined: 22 May 2005
Posts: 32203



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Mon May 04, 2009 5:30 pm    Post subject: Reply with quote

<!-- IF S_USER_LEVEL > -1 -->

<!-- ENDIF -->

can be place around code to make it private. As for speed I cannot believe that anyone can't read 10 lines of code and see what the time value is!
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
Ask Mr. Religion
Craftsman
Craftsman
FLAG

Virtual Cash: 4500

Joined: 01 Aug 2008
Posts: 423



Add Karma

rated by 3 members
Add Comment
Show Comments


online/offline
PostPosted: Mon May 04, 2009 5:51 pm    Post subject: Reply with quote

Set the fader delay by changing the following code. Mine shown below is set for 4 seconds

Code:
var iDelay = 4000


AMR
_________________
Ask Mr. Religion (a.k.a. 'Patrick')
Founder, Reformed Theology Institute
Back to top
View user's profile Send private message
roycepsam*
Pupil
Pupil
FLAG

Virtual Cash: 510

Joined: 04 May 2009
Posts: 44



Add Karma

rated by 0 members
Add Comment
Show Comments


online/offline
PostPosted: Mon May 04, 2009 6:14 pm    Post subject: Reply with quote

admin (no pm's please) wrote:
<!-- IF S_USER_LEVEL > -1 -->

<!-- ENDIF -->

can be place around code to make it private. As for speed I cannot believe that anyone can't read 10 lines of code and see what the time value is!


Thanks again now private...and set each item at 5 secs.........Thanks for all the help
roycepsam
Back to top
View user's profile Send private message
Ask Mr. Religion
Craftsman
Craftsman
FLAG

Virtual Cash: 4500

Joined: 01 Aug 2008
Posts: 423



Add Karma

rated by 3 members
Add Comment
Show Comments


online/offline
PostPosted: Thu Jun 09, 2011 4:15 am    Post subject: Reply with quote

DM613 wrote:
I copied code from various peoples graphics...
I also changed one a little and reposted it (the how much noob are you).
I made some of the code from scratch to get it all together.
Is that all good?
Huh?

AMR

Moderated: 1
DM613 was a spammer, gone now, best thing to do is ignore them, as answering may mean we miss their post.  If it's obvious we missed one (ie it's been a few days) then a report is appreciated, otherwise we'll deal with it as soon as we get on, which is never usually more than a few hours, and sometimes within minutes



_________________
Ask Mr. Religion (a.k.a. 'Patrick')
Founder, Reformed Theology Institute
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Portal components All times are GMT
Page Previous  1, 2
Page 2 of 2
 
 
Jump to:  
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 vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum