![]() |
I will include these vb elements into my site's main page:
-Number of users -Currently online (just number, not the name) -Guests currently online -Total messages -Last registered member. How do you do this ? Do you create separate php file for each of these elements and then include them in your php page ? Of do you set a global value for them all and them include the all the codes right in your page ? Do you know good threads here that will tell me how to include all these elements ? Even if all these existing integration 1.x codes will work with 2.0 (as stated) will there be different more efficient way to do it with 2.0 ? Thanks, |
i just put each of the codes in a .php.inc file and then included them on the page. but included global.php on the page i wanted the info to appear so it wouldnt need to be included in all the .php.inc files.
|
Ok thanks.
Can you tell me here exactly the line you put in your main file to call the global php that will be used for all the little files to include ? Thanks, |
Yes, im really interested in the same think.
|
me too
|
put this code before the <html> tag.
Code:
<?php include("/direct/path/to/global.php") ?> |
Here is the hack for showing the top posters on a page, im positive it can be edtited to show other things, I'll do that later :D , but for now its only top 10 posters: :p
Code:
<?php snyx |
<a href="http://www.vbulletin.com/forum/showthread.php?s=&threadid=8017" target="_blank">http://www.vbulletin.com/forum/showt...&threadid=8017</a>
|
All times are GMT. The time now is 03:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|