PDA

View Full Version : Last Threads In A Fader


MasterDuDe
28 Dec 2002, 23:43
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
28 Dec 2002, 23:54
screen shot?

MasterDuDe
28 Dec 2002, 23:59
on request : screenshot

ULTIMATESSJ
29 Dec 2002, 01:16
pretty good hack, could come in useful for people

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

Chris M
29 Dec 2002, 14:14
Looks nice:)

Satan

partang2
29 Dec 2002, 14:33
Will try it... Thanx m8!

partang2
29 Dec 2002, 15:14
No, it screws up my ravio skin..... Anyone who runs ravioskin knows what to change?

flup
29 Dec 2002, 15:27
LoL what a shame :/

partang2
29 Dec 2002, 15:29
Would have been better if you could give a helping answer...

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

MasterDuDe
30 Dec 2002, 19:11
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
30 Dec 2002, 19:24
Then I can`t use it..... To bad cause it is a nice hack!

xevious
30 Dec 2002, 21:16
Same here.

Okiewan
30 Dec 2002, 21:37
Takes me out .. too bad :(

Smoothie
30 Dec 2002, 22:02
same, should be based on permissions.

TheVoidz
30 Dec 2002, 23:04
MasterDuDe why not just add a check to see if its a private forum or not?

Areku
31 Dec 2002, 04:58
Yeah!!! PLEEEEEEZ!

John
31 Dec 2002, 18:29
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
31 Dec 2002, 18:32
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
03 Jan 2003, 22:23
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
05 Jan 2003, 10:57
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
05 Jan 2003, 20:46
thanks for this hack its great

Delmon
26 Feb 2003, 17:29
Originally posted by Joe Page


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


same question

350Chevy
26 Feb 2003, 21:47
How many queries does it add to the forum home? :)

350Chevy
05 Mar 2003, 05:35
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
10 Mar 2003, 01:27
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
13 May 2003, 17:36
bump.. did this bug ever get fixed? :(