![]() |
vb3 new php file
So on my older version board i had a few extra php files added on such as rules.php and inside rules.php i had this:
PHP Code:
Quote:
|
Because vb3 uses a new function to get templates :)
fetch_template? It's something like that. But practicly all the functions have been renamed :) - miSt |
Indeed the core ideas have changed from vB2 to vB3. I suggest looking at index.php (or whatever you have the forumhome script defined as) and modelling yours after that.
|
I got it :)
PHP Code:
|
It's very different, isn't it. :)
|
But so much better ;) ^^
|
Quote:
not when you only know a little bit of php and your used to vb2. and dont have the time to learn because your to busy working or going out :( |
The vB3 way is much better...it has good PHP programming practices (and general programming practices) as compared to vB2. Now you know what error_reporting(7) actually means, for example :)
|
I cannot wait til Teck rewrites the microstats hack :) It will be great for vB3. Also does anyone know the query loads, or know how to view the query loads for vb3? I know in vb3 they had the showqueries variable which allows you to see. Not sure for vb3
|
You don't need microstats for vb3 :)! Turn on debug mode whilst your testing and you'll get loads more info :)
- miSt |
Quote:
Look around in DB_mysql.php, it should be maintaining a counter there. |
I agree vb3 is much better in the coding i might say. Its just going to take a little getting used to thats all :)
|
Quote:
For Just Queries: PHP Code:
|
Add $debug = 1; into your config.php file :) ^^
|
Someone should set that up so only the admin can see it.
|
Quote:
However, for those who need microstats for VB3, I release it about a month ago... and is better then the VB2 version. https://vborg.vbsupport.ru/showthread.php?t=62173 |
yikes 7 months later, Well if anyone needs this i would recommend this hack: https://vborg.vbsupport.ru/showthread.php?t=62164 :)
|
Can you post how our final script looks like? I can't seem to get mine working.
Thanks grandma |
All times are GMT. The time now is 02:00 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:
|