vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

CarlosC 08-25-2002 10:16 PM

What to do if i want to display the number of members registered in my board in the vbindex page as use to be with the original index from vbulletin?
also is there any way to show the number of new PM (private message) if you get one?

Thanks..

NTLDR 08-25-2002 10:22 PM

Add in the stats section:

PHP Code:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers"); 

And place $newpm and $numbermembers in your templates where you want the numbers to appear.

CarlosC 08-25-2002 10:29 PM

thanks NTLDR...

I am also having a little problem with the windows that show the Latest Threads. They are not being actualized when there is a new thread..

NTLDR 08-25-2002 10:37 PM

Quote:

Originally posted by CarlosC
They are not being actualized when there is a new thread..
You mean they are not appearing? Note the polls and news forums are automatically excluded from this block.

CarlosC 08-25-2002 10:43 PM

I can see the poll and the latest threads windows.. The thing is that when there is a new thread the windows whith the latest threads don't show it.. it keeps the same threads that were alrady there. It is not like with the news were the oldest news disappear when there is a new one so you always see the new ones.. i hope you understand me..

i don't see the stats section in the vbindex file.. :(

NTLDR 08-25-2002 10:52 PM

Quote:

Originally posted by CarlosC
It is not like with the news were the oldest news disappear when there is a new one so you always see the new ones.. i hope you understand me..
Provided you havent changed the origional code in the latest threads section, they are forums which are visible for users and the home_threadsbit template is the origional it should work fine.

Quote:

i don't see the stats section in the vbindex file.. :(
Sorry I changed the comment in v2, put it just before:

PHP Code:

// posts info
// ------------------------- 


CarlosC 08-25-2002 11:01 PM

This is what i have in my latest thread section:

inetd 08-26-2002 10:18 AM

In my forum of news all users can write, but I want, that in news threads created by admins, by super-moderators and moderators were displayed only. How it to make?

NTLDR 08-26-2002 05:22 PM

Quote:

Originally posted by inetd
In my forum of news all users can write, but I want, that in news threads created by admins, by super-moderators and moderators were displayed only. How it to make?
Set the forum permissions so that only certain usergroups can post new threads.

inetd 08-26-2002 05:38 PM

NTLDR, no! I speak: im my forum of news all users can write. And i don't change permession.


All times are GMT. The time now is 03:16 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.02145 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete