vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   php in templates? (https://vborg.vbsupport.ru/showthread.php?t=63933)

MogKnight 04-16-2004 12:05 AM

php in templates?
 
why can't php be used the templates? and how do you go about getting around that?

Zachery 04-16-2004 12:15 AM

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.

MogKnight 04-16-2004 12:51 AM

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 :)

Zachery 04-16-2004 12:53 AM

$trueusers = number_format($newuserid);

in phpinclude start

:) add

$trueusers

If somthigns wong vB wont let you save, if it doesnt let me know :)

MogKnight 04-16-2004 12:54 AM

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?

Zachery 04-16-2004 01:05 AM

Theres a link in my sig that will explain some of the very basic things in vB3 :)

MogKnight 04-16-2004 01:06 AM

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 :\

Zachery 04-16-2004 01:07 AM

Quote:

Originally Posted by MogKnight
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 :\

oh... were in vB2.... lol

why are we in vB2?!

MogKnight 04-16-2004 01:11 AM

so you don't know how to do this in vb2?

I just prefer vb2 over 3. x_X

GeekyDesigns 04-16-2004 01:21 AM

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


All times are GMT. The time now is 12:59 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
  • Page Generation 0.00983 seconds
  • Memory Usage 1,726KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete