View Full Version : vb3 new php file
Logikos
18 Jun 2003, 16:07
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:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
But when i try to use that for vb 3.0.0 i get this error
Fatal error: Call to undefined function: gettemplate() in /home/hazelboy/public_html/forums/rules.php on line 4
So how do i get that template to show up?
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
filburt1
18 Jun 2003, 17:38
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.
Logikos
18 Jun 2003, 22:12
I got it :)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
It's very different, isn't it. :)
S.Shady
19 Jun 2003, 17:05
Today at 07:59 AM Mist said this in Post #6 (http://www.vbulletin.org/forum/showthread.php?postid=410679#post410679)
But so much better ;) ^^
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 :(
filburt1
19 Jun 2003, 17:52
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 :)
DrkFusion
19 Jun 2003, 18:34
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
filburt1
19 Jun 2003, 19:13
Today at 02:34 PM Keptic said this in Post #9 (http://www.vbulletin.org/forum/showthread.php?postid=410756#post410756)
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
IIRC the query count is about 9 on forumhome and drastically reduced on other pages as well.
Look around in DB_mysql.php, it should be maintaining a counter there.
Logikos
19 Jun 2003, 22:12
I agree vb3 is much better in the coding i might say. Its just going to take a little getting used to thats all :)
06-19-03 at 02:36 PM Mist said this in Post #10 (http://www.vbulletin.org/forum/showthread.php?postid=410757#post410757)
You don't need microstats for vb3 :)! Turn on debug mode whilst your testing and you'll get loads more info :)
- miSt
Wheres the option for that cause all as I'm doing right now is getting queries.
For Just Queries:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Put that in the footer and you get your queries
Add $debug = 1; into your config.php file :) ^^
Someone should set that up so only the admin can see it.
You don't need microstats for vb3 :)! Turn on debug mode whilst your testing and you'll get loads more info :)
- miSt
I didn't need also microstats in VB2 since it was there the info also...
However, for those who need microstats for VB3, I release it about a month ago... and is better then the VB2 version.
http://www.vbulletin.org/forum/showthread.php?t=62173
Logikos
27 Mar 2004, 23:08
yikes 7 months later, Well if anyone needs this i would recommend this hack: http://www.vbulletin.org/forum/showthread.php?t=62164 :)
grandma
30 Mar 2004, 15:28
Can you post how our final script looks like? I can't seem to get mine working.
Thanks
grandma
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.