Previous Thread
Next Thread
Print Thread
Rating: 5
#231021 12/28/2002 5:06 PM
Joined: Apr 2002
Posts: 68
Power User
Power User
Offline
Joined: Apr 2002
Posts: 68
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
Attachments
62769-62NewsFader10.zip (0 Bytes, 80 downloads)

Last edited by caspe7; 12/28/2002 5:39 PM.

"We're sorta like the 7-11. We're not always doin' business, but we're always open"
Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Used to love this in UBB - a great way for getting info to the masses

Ian


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
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

Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
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

Joined: Apr 2002
Posts: 68
Power User
Power User
Offline
Joined: Apr 2002
Posts: 68
find in newsfader.tmpl
Code
<br />FDRboxWid = 700;

And change it to 500 (or smaller if you want)


"We're sorta like the 7-11. We're not always doin' business, but we're always open"
Sponsored Links
Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
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! ", ""

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
would be nice to get it to work with every browser not just internet explorer


Do you believe in love at first sight,
or should I walk by again?
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Thanks Casp!

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

Still a great mod!

-peter

Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
hah, wierd.. works now.. for some reason ...?

Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
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?


Sponsored Links
Joined: Jun 2002
Posts: 61
Power User
Power User
Offline
Joined: Jun 2002
Posts: 61
Works Great, Thanks!!

Joined: Nov 2001
Posts: 126
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 126
[]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?

Joined: Apr 2002
Posts: 68
Power User
Power User
Offline
Joined: Apr 2002
Posts: 68
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.


"We're sorta like the 7-11. We're not always doin' business, but we're always open"
Joined: Mar 2002
Posts: 7
Lurker
Lurker
Offline
Joined: Mar 2002
Posts: 7
I couldn't get the height to change... would like to get it to be only 1 line tall if possible?

#231035 02/14/2003 6:05 AM
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
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...

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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
Attachments
69611-newsfader.tmpl (0 Bytes, 25 downloads)

Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
What controls the colors of the fonts in this mod? I have been everywhere and changed everything and cannot seem to find it.

Joined: Apr 2002
Posts: 68
Power User
Power User
Offline
Joined: Apr 2002
Posts: 68
[]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)


"We're sorta like the 7-11. We're not always doin' business, but we're always open"
#231039 02/21/2003 1:28 PM
Joined: Apr 2002
Posts: 68
Power User
Power User
Offline
Joined: Apr 2002
Posts: 68
[]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


"We're sorta like the 7-11. We're not always doin' business, but we're always open"
Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
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.

#231041 02/21/2003 7:58 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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.

Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
Awww..... Muchos thanks !!!!!

#231043 02/22/2003 5:42 AM
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
What about a new NewsFader version?

edr #231044 02/22/2003 9:14 AM
Joined: Dec 2002
Posts: 67
Power User
Power User
Joined: Dec 2002
Posts: 67
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=

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Dec 2002
Posts: 67
Power User
Power User
Joined: Dec 2002
Posts: 67
Heya,....I am stupid or what!!!!!

Thanks, I was looking to long at it and oversee my own stupidity..............!
Thanks verymuch!!!

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
No problem at all - we all do that - I should know from bitter experience


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
#231048 02/23/2003 2:18 PM
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
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 ?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)