UBB.Dev
Posted By: caspe7_dup1 [6.2] News Fader 1.0 - 12/29/2002 12:06 AM
Mod Name: News Fader 1.0

Description: Adds a news fader at the top of ubbthreads.php. Show your news with style!

Working Under: 6.2 tested. Should work with at least 6.x

Any pre-requisites: none

Author(s): caspe7

Credits: Imported from ubbdev (javascript)

Demo: http://www.prowrestlingforum.com/threads/ubbthreads.php?Cat=

Files Altered: editincludes.php, menu.php, ubbthreads.php

Database Altered: no

New Files: newsfader.tmpl, fade.gif, newsf.gif, newsfader.php, fader.js

Any other info: Adds a place in the control panel to edit the news. Remember when editing your news that you must include the code around it (go to step 4 for more info in the readme.txt). Also records in the admin log who edits it, if someone should delete it, you'll know who did it (only in 6.2)

Goals for next release:
  • Not to have to add the quotes by hand. Done by a script.
  • Add Graemlins
  • Add the Total posts and threads on the site
  • Integrate with Profile Birthdays, to wish the User a Happy Birthday if It's theirs
  • More


Attached File
62769-62NewsFader10.zip  (80 downloads)
Posted By: Ian_W Re: [6.2] News Fader 1.0 - 12/29/2002 12:50 AM
Used to love this in UBB - a great way for getting info to the masses

Ian
Posted By: Allusivekudos Re: [6.2] News Fader 1.0 - 01/03/2003 2:30 AM
Hey this worked great! It's really really wide though, how can I either anchor it above the forums, or change the width?

Great mod though!

-peter
Posted By: Allusivekudos Re: [6.2] News Fader 1.0 - 01/04/2003 6:36 AM
Anyone have any ideas of how to make this the width of the rest of the board? It's just a tad too big...

-peter
Posted By: caspe7_dup1 Re: [6.2] News Fader 1.0 - 01/10/2003 9:24 PM
find in newsfader.tmpl
Code
<br />FDRboxWid = 700;

And change it to 500 (or smaller if you want)
Posted By: BryanDS Re: [6.2] News Fader 1.0 - 01/11/2003 1:36 AM
For some reason it isnt working on my test board.

http://www.hrdatabase.org//test/ubbthreads.php?Cat=

Login is test2 with password of test

Here is the code Im using

"<b>Welcome To DanceSafe.org</b>","",
"<b>Please Make Sure To Read The Rules, Located <a href="blank">Here</a></b> ","",
"<b>01.10.03</b> New GHB Cards Introduced!","",
"<b>01.11.03</b> Racine Rave Courts Drop Charges! For More Info see blah blah blah <img src=/images/graemlins/smile.gif> ","",

"<b>12.02.02</b> This is some cool Stuff ","",
"Have a good day! ", ""
Posted By: Charles Re: [6.2] News Fader 1.0 - 01/11/2003 2:16 AM
would be nice to get it to work with every browser not just internet explorer
Posted By: Allusivekudos Re: [6.2] News Fader 1.0 - 01/11/2003 2:27 AM
Thanks Casp!

Yeah, I noticed that too Charles.....

Still a great mod!

-peter
Posted By: BryanDS Re: [6.2] News Fader 1.0 - 01/11/2003 3:18 AM
hah, wierd.. works now.. for some reason ...?
Posted By: BryanDS Re: [6.2] News Fader 1.0 - 01/11/2003 3:25 AM
Ive got a REALLY cool idea.

Could we make it so it writes every news item added to an html file, and then link it.. ie: news archives?

Posted By: armyocs Re: [6.2] News Fader 1.0 - 01/13/2003 10:02 AM
Works Great, Thanks!!
Posted By: BryanDS Re: [6.2] News Fader 1.0 - 01/17/2003 9:18 AM
[]would be nice to get it to work with every browser not just internet explorer [/]

I just had my mac users complaing about the fact that it doesnt work on their IE either..

Any thoughts on mac IE and netscape?
Posted By: caspe7_dup1 Re: [6.2] News Fader 1.0 - 01/18/2003 3:34 AM
theres a new version of the news fader 3.x which works with more browsers: http://www.webreference.com/dhtml/dynomat/fader/compatibility.html
I have not yet had time to change it. It does say it works with mac, I have mac os x and it doesn't work; It may just be os 9. Pc browser, it does work with Netscape, however it doesn't work with mozila. I'm also working on having two different places where the newsfader can shows up on the forum (up to you where you put it), first place is where it is now, the 2nd place (i'm working on) is smaller and goes right in the table it self were your categorys are.

Sunday or Monday I might have time to do it.
Posted By: ffbmc_dup1 Re: [6.2] News Fader 1.0 - 02/11/2003 7:20 PM
I couldn't get the height to change... would like to get it to be only 1 line tall if possible?
Posted By: jluerken Re: [6.2] News Fader 1.0 - 02/14/2003 1:05 PM
I am waiting for the next version. I am sure this will be great if caspe7 can really include all feature he wants to be in...
Posted By: Dalantech Re: [6.2] News Fader 1.0 - 02/18/2003 6:08 PM
If you are using one of the table wrapper mods then you'll need the template attached to this post.

Caspe7: You might want to update your zip file with the template that I've done. Your template does not use the $tbopen and $tbclose vatiables that are standard with UBB Threads 6.2 and it should, even if the people who use it are not using the table wrappers


Attached File
69611-newsfader.tmpl  (25 downloads)
Posted By: dman_dup1 Re: [6.2] News Fader 1.0 - 02/21/2003 12:57 AM
What controls the colors of the fonts in this mod? I have been everywhere and changed everything and cannot seem to find it.
Posted By: caspe7_dup1 Re: [6.2] News Fader 1.0 - 02/21/2003 8:23 PM
[]Dalantech said:
If you are using one of the table wrapper mods then you'll need the template attached to this post.

Caspe7: You might want to update your zip file with the template that I've done. Your template does not use the $tbopen and $tbclose vatiables that are standard with UBB Threads 6.2 and it should, even if the people who use it are not using the table wrappers
[/]

Thanks, I will once I get set up in my new computer 3.06 ghz

dman, the colors are taken from the stylesheet, if you want the colors for the newsfader to be the same on every stylesheet then you'll have to edit the html table and the javascript. In the javascript everyone that ends with Col = "" is a color, but is left blank for stylesheets. (newsfader.tmpl is the only file you would have to edit to do this)
Posted By: caspe7_dup1 Re: [6.2] News Fader 1.0 - 02/21/2003 8:28 PM
[]ffbmc said:
I couldn't get the height to change... would like to get it to be only 1 line tall if possible? [/]

find this "FDRboxHgt = 43;" in the newsfader.tmpl and change the 43 to as small as you want Though, you most likely will have to remove the image or make it smaller, since the image will keep it from the height from getting any smaller
Posted By: dman_dup1 Re: [6.2] News Fader 1.0 - 02/22/2003 2:21 AM
Thanks caspe7, I know that I can make it the same by editing the table but I can't remember which part of the stylesheet will change the color. I've done it before but am overlooking something now.
Posted By: omegatron Re: [6.2] News Fader 1.0 - 02/22/2003 2:58 AM
DMAN,

Lookin newfader.tmpl and match up what part you want.

CSS fields you will see are tdheader,darktable,lighttable.

In the respective CSS stylesheets you will see the variables above defined. If you want the newfader to be one of those specific colors you need to place the right class variable in newfader.
Posted By: dman_dup1 Re: [6.2] News Fader 1.0 - 02/22/2003 3:12 AM
Awww..... Muchos thanks !!!!!
Posted By: jluerken Re: [6.2] News Fader 1.0 - 02/22/2003 12:42 PM
What about a new NewsFader version?
Posted By: foppen Re: [6.2] News Fader 1.0 - 02/22/2003 4:14 PM
Can some one give me a hint why the greamlins does'nt show up in the newsfader?

This is the code I use and I am sure the smile.gif is in the right place.

"<b>WELKOM OP HET VIDEO MONTAGE FORUM</b>","",

"<b>1 Februari</b> <a href=http://80.126.87.6/phplinks/index.php?Cat=<b>blahblah</a> ","",
"<b>Vrijdag 21 Februari</b><b>BlahBlah","",
"<b></b>Vrijdag 21 Februari</b>BlahBlah <img src=/images/graemlins/smile.gif>","",
"<b>Zaterdag 22 Februari</b>BlahBlah","",

thanks in advance,
Pim Foppen
http://80.126.87.6/ubbthreads/ubbthreads.php?Cat=
Posted By: Ian_W Re: [6.2] News Fader 1.0 - 02/22/2003 5:54 PM
Hi Foppen,

You have your graemlin set to http://80.126.87.6/images/graemlins/thumb.gif instead of http://80.126.87.6/ubbthreads/images/graemlins/thumb.gif - so you need to change the path of the graemlins relative to the root - in your case /ubbthreads/images/graemlins/thummb.gif

Hope that helps.

Ian
Posted By: foppen Re: [6.2] News Fader 1.0 - 02/22/2003 6:12 PM
Heya,....I am stupid or what!!!!!

Thanks, I was looking to long at it and oversee my own stupidity..............!
Thanks verymuch!!!
Posted By: Ian_W Re: [6.2] News Fader 1.0 - 02/23/2003 1:25 AM
No problem at all - we all do that - I should know from bitter experience
Posted By: jluerken Re: [6.2] News Fader 1.0 - 02/23/2003 9:18 PM
I have a little design question.

In the left TD area the newspaper gif is shown and on the right side the fader is included. I don't know why but I do not get this fader centered.

In the template there is a width of 700 given. I tried to put in 100% but then the script is not working anymore.

How can I center the newsfader within the right TD ?
© UBB.Developers