vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Deluxe vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=173698)

steveheinsch 03-31-2009 11:48 PM

Hi Bill, thanks for the great hack. Ive managed to get vb working from within the codeigniter framework, so the possibilities are endless :)

Just thought I'd throw a little simpler code for you to get threadcount/postcount.

This:
PHP Code:

$getstats $db->query_read('SELECT threadcount, replycount FROM ' TABLE_PREFIX 'forum');
while (
$forum $db->fetch_array($getstats))
{
    
$totthreads += $forum['threadcount'];
    
$totposts += $forum['replycount'];
}
$totthreads vb_number_format($totthreads);
$totposts vb_number_format($totposts); 

Can be replaced with:
PHP Code:

$getstats $db->query_read('SELECT SUM(replycount) AS replies, SUM(threadcount) as threads FROM ' TABLE_PREFIX 'forum');
$forum $db->fetch_array($getstats);
$totthreads vb_number_format($forum['threads']);
$totposts vb_number_format($forum['replies']); 

and let mysql do the calculations instead of php.

larabagguley 06-17-2009 10:28 AM

Hi, is it possible to add the forgotten password link in here?

Many thanks,
Lara

nicooo 07-11-2009 06:43 AM

Hi, is there a way to show also how total members are online like in the picture example?
Thanks

Davey-UK 07-11-2009 08:28 AM

Quote:

Originally Posted by nicooo (Post 1846804)
Hi, is there a way to show also how total members are online like in the picture example?
Thanks

That just shows the total forum members, not who is actually online.

nicooo 07-13-2009 02:49 AM

but online the number, like in the picture

NinjaKiwi 04-05-2011 08:42 PM

Hi Bill,
Thx so much for your work on this.
Just wondering if there is any chance you will be making this compatible with VB4?
I've tried to integrate your script with our VB4 forum:
http://ninjakiwi.com/index-login-test.php
It almost works, but is not pulling the user info.
Cheers

wraggster 06-06-2011 08:44 PM

just like to say this works fine with the latest VB3 :)


All times are GMT. The time now is 07:43 AM.

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.01159 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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