vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need PHP-Help (https://vborg.vbsupport.ru/showthread.php?t=49580)

Kars10 03-03-2003 08:19 AM

Need PHP-Help
 
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:


PHP 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

1 Attachment(s)
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!! :)

[high]* Kars10 gives Boofo a hug!! ;)[/high]

Boofo 03-03-2003 10:19 AM

You're very welcome. ;)

[high]* Boofo accepts hug.[/high]


All times are GMT. The time now is 01:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01041 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete