![]() |
php in templates?
why can't php be used the templates? and how do you go about getting around that?
|
Because of how the template system works, and you dont ^^
you can use the phpinclude_Start and end templates to include php coding. Or you can hardcode it into the files. |
sorry, I am just a bit new to this...
I know it's a lot to ask, but could you walk me through one of these (or both, even)? I need number_format($newuserid); to work in a template :) |
$trueusers = number_format($newuserid);
in phpinclude start :) add $trueusers If somthigns wong vB wont let you save, if it doesnt let me know :) |
thank you for the quick reply.
I've looked around (maybe I'm just missing things), but is there any place that explains the basic of vb hacking? |
Theres a link in my sig that will explain some of the very basic things in vB3 :)
|
hm it doesn't seem to be working.
I'm getting "Total Members: 0" this is vb2, actually. I saw your sig, I figured that was just changes from vb2 to vb3 hacking :\ |
Quote:
why are we in vB2?! |
so you don't know how to do this in vb2?
I just prefer vb2 over 3. x_X |
Id need to find my vB2 files and work on them ;)
Any reason? vBulletin 3 is highly optmized for larger boards, runs smoother and has tons and tons of standard features that vB2 didnt have, and 99% of them can be turned off |
I'm comfortable with it- so are all my members, and I can't justify all the time and effort it'd take to change.
there's no vb2-hacking-tutorial-intro anywhere? no one knows how I would get this to work, then? |
Not that im aware of.
What do you have now, that would be so hard to move into vB3? the only long process of an upgrade is rebuilding the search index. |
some custom hacks that users that're long-gone did for us.
that and I just like the idea of having a stable release that we can customize more than moving to something new that's going to require us to update all the time. you don't have any advice for learning how to do vb2 hacks? :\ |
Nope, i never even touched a vBulletin 2 board code wise more than 3 times, and i refuse to do vB2 work unless nessary (vBulletin 2 support at vB.com ;))
vBulletin 3 is at a stable release. and i highly doubt we will be seeing the same type of updates we saw with the Beta's RC's :) |
how would "hardcoding" it in work, as opposed to the first method?
|
Quote:
|
sorry, like I said, I'm rather new to this...
could you walk me through it, or even send me in the direction of a script that works in a similar way? |
All times are GMT. The time now is 08:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|