vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   including forum info in misc php file (https://vborg.vbsupport.ru/showthread.php?t=70374)

Wordplay 10-09-2004 11:49 AM

including forum info in misc php file
 
okey, so i've got this php file which is supposed to open up in an iframe that i would like to include the following info in:

Code:

Members:  $numbermembers
Total Posts: $totalposts  |  Total Threads: $totalthreads
Welcome to our newest member, $newusername
You Last Visited: $pmbox[lastvisitdate] $pmbox[lastvisittime]

how do i make it look up all that stuff? meaning how do i link that iframe to the board?

Dean C 10-09-2004 12:04 PM

Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you :)

Thanks,
- Dean

Wordplay 10-09-2004 12:11 PM

thanks! sorry about the trouble... but because it wasn't directly a vbulletinboard question but rather a mere coding question, i figured it had to go there.

Colin F 10-09-2004 01:40 PM

You'll have to querie the database for some information. Check out the index.php file, I think most of what you want is in there already.

Wordplay 10-09-2004 01:51 PM

sorry but i'm clueless. how do i querie the database?

Dean C 10-09-2004 02:03 PM

Take a look at Zachery's tutorial in modification hints and tips to create a vBulletin powered page. Then just put the code you have above in your template and you should be good to go as all that information is made available on all pages IIRC :)


All times are GMT. The time now is 11:24 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.01021 seconds
  • Memory Usage 1,712KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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