Page: [1] [2] |
drattigan
Statusless Send PM Posts:
Threads: Money: £0.00 (D) (+ Friend)
|
Hey everybody... I was wondering if anyone cud help me with a code for my site? I'd like a code like the one here on BTP, where it shows which users are online from the homepage. And any other page for that matter...
If anyone cud help me with the code- I thank you guys so much!
|
15.09.04 17:55 Post #1 | [Hide Sig (0)] [Profile] [Quote] |
Pilki-AKA-Gollum
The power of the Ring Compels j00 Send PM
Posts: 645
Threads: 38 WWP Clan: DNA Mood: Evil - sometimes Money: £1440.47 (D) (+ Friend)
|
Perhaps you should have a look at the source code for one of the pages, maybe that will give you a clue. I give you any other help since I ain't really html literate
________________
The meaning of life is.... Forty-two!
|
15.09.04 18:00 Post #2 | [Free Motorola RAZR V3!] [Hide Sig (11)] [Profile] [Quote] |
drattigan
Statusless Send PM Posts:
Threads: Money: £0.00 (D) (+ Friend)
|
I've looked there... it wasn't much help. Any other ideas?
|
15.09.04 18:08 Post #3 | [Hide Sig (0)] [Profile] [Quote] |
minigunweilder
Acrap spelr Send PM
Posts: 133
Threads: 15 Mood: pissed Money: £137.33 (D) User Tax: 30% (+ Friend)
|
yeah i need help installing phbb
doing that stuff
AND making a website for a project of mine
________________
warning the actions of this person if negative are not representitive of btp |
15.09.04 18:51 Post #4 | [Hide Sig (3)] [Profile] [Quote] |
drattigan
Statusless Send PM Posts:
Threads: Money: £0.00 (D) (+ Friend)
|
Project WormWars? Ah.. well, I cud help. Though my designs aren't ace...
http://www.wormy-wonders.tk
|
15.09.04 19:15 Post #5 | [Hide Sig (0)] [Profile] [Quote] |
C1
Looking For Status Send PM Posts: 0
Threads: 0 Money: £0.18 (D) (+ Friend)
|
I created a useronline thing on my site. It shows their ip, time and name, if they're logged in on a different page. And it displays the number of people online, on the contents menu. Not sure how to get the info, for what page they're viewing tho. It also shows whos online in the last 5 minutes.
|
15.09.04 19:54 Post #6 | [Hide Sig (2)] [Profile] [Quote] |
the candy man
Statusless Send PM Posts:
Threads: Money: £0.00 (D) (+ Friend)
|
yeah maybe you should tell him how to do it...thats kindof what he asked
|
15.09.04 20:35 Post #7 | [Hide Sig (0)] [Profile] [Quote] |
C1
Looking For Status Send PM Posts: 0
Threads: 0 Money: £0.18 (D) (+ Friend)
|
Well, I don't know how to make it work with his forum users. I can only make it work, with random guests viewing the site. So If he wants that type of thing, then I'll give it to him.
|
15.09.04 21:17 Post #8 | [Hide Sig (2)] [Profile] [Quote] |
drattigan
Statusless Send PM Posts:
Threads: Money: £0.00 (D) (+ Friend)
|
Erm... well, I'll be changing forums soon anyway, if that helps! But ok.. if you can get me that thing that says which users are online and the counter, I thank yer!
http://www.wormy-wonders.tk
|
16.09.04 17:33 Post #9 | [Hide Sig (0)] [Profile] [Quote] |
C1
Looking For Status Send PM Posts: 0
Threads: 0 Money: £0.18 (D) (+ Friend)
|
I can't get it to say WHO are online, because those forums are programed so stupidly, that it's impossible to mimic their code. I could probably make it show who's online for my site tho, (since I redid the user system, with just the forum info)
|
16.09.04 21:03 Post #10 | [Hide Sig (2)] [Profile] [Quote] |
drattigan
Statusless Send PM Posts:
Threads: Money: £0.00 (D) (+ Friend)
|
Erm.. well just give me what you've got. The guest thing'll be great.
|
18.09.04 12:23 Post #11 | [Hide Sig (0)] [Profile] [Quote] |
C1
Looking For Status Send PM Posts: 0
Threads: 0 Money: £0.18 (D) (+ Friend)
|
\n $time = @time();
$timer = 5;
$ip = $REMOTE_ADDR;
$timeout = time()-(60*$timer);
include('connect.php');
$sql_client_details = "SELECT * FROM usersonline";
$sql_client_details_result = mysql_db_query("*thedatabasename*",$sql_client_details);
$num_records = mysql_num_rows($sql_client_details_result);
if($num_records=="0"){
$num_records="1";
}else{
$num_records=$num_records;
}
echo " $num_records";
$getuserinfo = mysql_query("SELECT time, ip FROM usersonline");
$userinfo = mysql_fetch_array($getuserinfo);
$newtime = ($userinfo["time"]);
$newip = ($userinfo["ip"]);
mysql_query("delete from usersonline WHERE ip='$ip'");
mysql_query("INSERT INTO usersonline (username, ip, time, page) VALUES ('$cookiename', '$ip', '$time', '$newtitle')") or die("eep, db probs...");
if(($timeout > $newtime) && (!$newtime == "")){
mysql_query("delete from usersonline");
}else{
}
\n
Take out the name field, because you don't have the same user system as I have. But the rest should work with any site.
|
18.09.04 14:08 Post #12 | Last edited: 07.10.04 19:24 (C1 - 2 times) |
[Hide Sig (2)] [Profile] [Quote] |
drattigan
Statusless Send PM Posts:
Threads: Money: £0.00 (D) (+ Friend)
|
Wud u highlight the name field or whatever it is? I'm not entirely sure what is what! Thanx.
|
07.10.04 15:41 Post #13 | [Hide Sig (0)] [Profile] [Quote] |
Pilki-AKA-Gollum
The power of the Ring Compels j00 Send PM
Posts: 645
Threads: 38 WWP Clan: DNA Mood: Evil - sometimes Money: £1440.47 (D) (+ Friend)
|
Does ne1 know the code for changing the font for my post?
________________
The meaning of life is.... Forty-two!
|
08.10.04 10:20 Post #14 | [Free Motorola RAZR V3!] [Hide Sig (11)] [Profile] [Quote] |
drattigan
Statusless Send PM Posts:
Threads: Money: £0.00 (D) (+ Friend)
|
It doesn't work on my site... any ideas?
|
10.10.04 17:59 Post #15 | [Hide Sig (0)] [Profile] [Quote] |
Page: [1] [2] |
Your Comments: