PDA

View Full Version : Last Threads In A Fader


MasterDuDe
12-28-2002, 10:00 PM
VB newsfader with the ~ latest threads for all vb versions
(originaly by gogosoft, ztsky and xware) I bored parts of your scripts
Made by : MasterDuDe

This will put an fader (powered by JavaScript) on top of your forums listings on the home page ... It will show the latest member that joined and will show the 10 last posted threads in it (titles are being chopped off after 20 characters and filled in with ...)

Made and tested on vBulletin 2.2.9

Smoothie
12-28-2002, 10:54 PM
screen shot?

MasterDuDe
12-28-2002, 10:59 PM
on request : screenshot

ULTIMATESSJ
12-29-2002, 12:16 AM
pretty good hack, could come in useful for people

obiwan8472
12-29-2002, 12:01 PM
Wow, this is great. Ill install it as soon as I get home on Tuesday.

Chris M
12-29-2002, 01:14 PM
Looks nice:)

Satan

partang2
12-29-2002, 01:33 PM
Will try it... Thanx m8!

partang2
12-29-2002, 02:14 PM
No, it screws up my ravio skin..... Anyone who runs ravioskin knows what to change?

flup
12-29-2002, 02:27 PM
LoL what a shame :/

partang2
12-29-2002, 02:29 PM
Would have been better if you could give a helping answer...

xevious
12-29-2002, 03:14 PM
Will this also show latest threads in private forums to people who dont have access to it? I will install if it dont.

MasterDuDe
12-30-2002, 06:11 PM
Originally posted by xevious
Will this also show latest threads in private forums to people who dont have access to it? I will install if it dont.

It'll show the 10 latest threads from ALL the forums (including amdin / private sections)

partang2
12-30-2002, 06:24 PM
Then I can`t use it..... To bad cause it is a nice hack!

xevious
12-30-2002, 08:16 PM
Same here.

Okiewan
12-30-2002, 08:37 PM
Takes me out .. too bad :(

Smoothie
12-30-2002, 09:02 PM
same, should be based on permissions.

TheVoidz
12-30-2002, 10:04 PM
MasterDuDe why not just add a check to see if its a private forum or not?

Areku
12-31-2002, 03:58 AM
Yeah!!! PLEEEEEEZ!

John
12-31-2002, 05:29 PM
To make the fader ignore posts from certain forums:

In index.php find:

$newsfades=$DB_site->query("SELECT threadid, title, postusername FROM thread ORDER BY threadid DESC LIMIT $ammount");


Replace with

$newsfades=$DB_site->query("SELECT threadid, title, postusername FROM thread WHERE forumid <> [forumid] ORDER BY threadid DESC LIMIT $ammount");


IMPORTANT!!!
Replace [forumid] with the ID number of the forum you want to hide from the fader.

John
12-31-2002, 05:32 PM
Oh - and nice hack btw :)

I decided not to use it in the end, didn't like the fade. (It seemed a bit rough!)

Joe Page
01-03-2003, 09:23 PM
Originally posted by john.eovie
To make the fader ignore posts from certain forums:

In index.php find:

$newsfades=$DB_site->query("SELECT threadid, title, postusername FROM thread ORDER BY threadid DESC LIMIT $ammount");


Replace with

$newsfades=$DB_site->query("SELECT threadid, title, postusername FROM thread WHERE forumid <> [forumid] ORDER BY threadid DESC LIMIT $ammount");


IMPORTANT!!!
Replace [forumid] with the ID number of the forum you want to hide from the fader.

How do you hide multiple forums? It came up with an errors when I tried....

Highlander
01-05-2003, 09:57 AM
its possible to get this news-fader running on an external non forum site?.. i just play with the idea to get the news fader on my main homepage to make guest get interrested when they see the news fader of the latest threads.. ?

what i need to do to integrate it in my non vb site?

SideFX
01-05-2003, 07:46 PM
thanks for this hack its great

Delmon
02-26-2003, 04:29 PM
Originally posted by Joe Page


How do you hide multiple forums? It came up with an errors when I tried....


same question

350Chevy
02-26-2003, 08:47 PM
How many queries does it add to the forum home? :)

350Chevy
03-05-2003, 04:35 AM
Well I didn't notice any added extra queries but I noticed a bug with the fader over lapping if the username is too long...

See attached..

350Chevy
03-10-2003, 12:27 AM
Originally posted by Joe Page


How do you hide multiple forums? It came up with an errors when I tried....

Same as above which was:


$newsfades=$DB_site->query("SELECT threadid, title, postusername FROM thread WHERE forumid <> [forumid] ORDER BY threadid DESC LIMIT $ammount");

But instead do something like this:


$newsfades=$DB_site->query("SELECT threadid, title, postusername FROM thread WHERE forumid <> [forumid] AND forumid <> [forumid#2] ORDER BY threadid DESC LIMIT $ammount");

Replace [forumid] and [forumid#2] to the forum ID #s that you want to hide.

350Chevy
05-13-2003, 04:36 PM
bump.. did this bug ever get fixed? :(