PDA

View Full Version : Need PHP-Help


Kars10
03-03-2003, 08:19 AM
Hallo Hackers!!
Can someone please help me here?

The output should look like (1 Benutzer).
But when i place a ( on the beginning i get a Parse - Error.

Here is the code:


global $forumbrowsers;
$browsers = " ".$forumbrowsers[$forum['forumid']]." Benutzer)";
if (intval($browsers) < 1) {
$browsers = "";
}

Thanks ;)

Boofo
03-03-2003, 09:31 AM
Why don't you just put "Benutzer" in the forumhome_count template and just get the count from that code?

Kars10
03-03-2003, 09:40 AM
Hi Boofo!
I dont have a forumhome_count-template.
I wanna make it look like on vB3 where the Users browsing only showing when someone is in the forum... ( examble - www.vbulletintemplates.com ) . I have the variable $browsers in my forumhome_forumbit_level2_post -template and all works perfect. But i want the ( bevor the Benutzer...currently it looks like:
1 Benutzer) .

Boofo
03-03-2003, 09:49 AM
Hello. ;)

That's the way I have it running on my site and have been doing it for the last 6 months. I have it set up like they do here at vb.org (same location), but mine says (1 Member is Browsing) or (2 Members are Browsing). And it only shows up in the forums members are browsing. Is that how you want it?

Kars10
03-03-2003, 09:56 AM
Yes i want it only appears on forums where someone browsing this forums. In forums without someone in, i want nothing... (like on vBT).

Sorry for my bad english! :(

Boofo
03-03-2003, 10:10 AM
Here you go. Let me know if this is what you wanted. ;)

Kars10
03-03-2003, 10:13 AM
Man, thanks so much!!
Thats exactly what i was looking for!! :)

* Kars10 gives Boofo a hug!! ;)

Boofo
03-03-2003, 10:19 AM
You're very welcome. ;)

* Boofo accepts hug.