vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBExternal v1.6 (https://vborg.vbsupport.ru/showthread.php?t=83005)

nokturno 10-27-2005 01:36 PM

cool!!

subnet_rx 10-29-2005 06:18 PM

I would still like to see a calendar function added to this :)

Daniel 10-29-2005 06:21 PM

Code:

Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/nikzad0/public_html/forum/vBExternal.php on line 67

Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nikzad0/public_html/forum/vBExternal.php on line 67

Any idea what I did wrong?

Simms 10-29-2005 10:37 PM

Quote:

Originally Posted by jugo
Change this line (towards the end of the file):

Code:

        $Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
to

Code:

//        $Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);

Delayed response, but wanted to let you know this worked perfectly. Thanks!

Xtrm2Matt 11-04-2005 09:40 PM

Quote:

Originally Posted by jugo
@Xtrm2matt does it still give you an error if so, please post your vBExternal here so I can hae a look.

People...if you want to pull threads from another site's vBulletin install use EXTERNAL.PHP

I seem to have gotten it fixed now :)

Thanks for all the help,

Matt

apdcanari 11-05-2005 03:52 PM

Hello,

How to post the total number members and posts on a page of its site?

For example : The forum had 55.000 posts and 2.000 members

My code with Vbulletin 3.0.7

Count member
PHP Code:

<?php
$countposts
=$DB_site->query_first('SELECT COUNT(*) AS posts FROM vb3_post');
$totalposts=number_format($countposts['posts']);
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM vb3_user');
$numbermembers=number_format($numbersmembers['users']);
echo 
"$numbermembers";
?>

Count Posts
PHP Code:

<?php
$countposts
=$DB_site->query_first('SELECT COUNT(*) AS posts FROM vb3_post');
$totalposts=number_format($countposts['posts']);
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM vb3_user');
$numbermembers=number_format($numbersmembers['users']);
echo 
"$totalposts";
?>

Thank you very much,

Good evening

C?dric

PS : I'm french and i don't speak English very well... :ermm:

Xtrm2Matt 11-05-2005 04:36 PM

Quote:

Originally Posted by apdcanari
Hello,

How to post the total number members and posts on a page of its site?

For example : The forum had 55.000 posts and 2.000 members

My code with Vbulletin 3.0.7

Count member
PHP Code:

.. 

Count Posts
PHP Code:

.. 

Thank you very much,

Good evening

C?dric

PS : I'm french and i don't speak English very well... :ermm:

I fixed your script for you -> http://www.opticalgaming.com/forums/test2.php

Code changes:

PHP Code:

<?php 
$countposts
=$vbulletin->db->query_first('SELECT COUNT(*) AS posts FROM prefix_post'); 
$totalposts=number_format($countposts['posts']); 
$numbersmembers=$vbulletin->db->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM prefix_user'); 
$numbermembers=number_format($numbersmembers['users']); 
echo 
"Total Posts: $totalposts";
echo 
"<br>";
echo 
"Total Members: $numbermembers";
?>

I made a small change - didn't see the need for 2 scripts where 1 could be used.

Hope this helps :)

Matt

apdcanari 11-05-2005 04:48 PM

Thanks a lot !!!

It's ok

Cédric :nervous:

gopherhockey 11-07-2005 01:34 PM

Nice!

Xtrm2Matt 11-07-2005 02:03 PM

Lovely edit there, gopher!! :P Was about to reply!!

Back on topic..

Will there be any further extensions to this? I love it and would like to see a bit more :) Possible following on from the news.. how about a Poll-pulling function?

Hard to explain, but: I have a "dedicated poll forum" on my forum where polls are (and can only be) created. Would it be possible to pull the latest poll made by -->AN ADMIN<-- (would work by specifying the Admin usergroup or a group that could display polls on the front page?) and have it put it on the front page?

Hope it's clear :)

Matt


All times are GMT. The time now is 01:56 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.01385 seconds
  • Memory Usage 1,758KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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