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

MogKnight 04-16-2004 01:40 AM

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?

Zachery 04-16-2004 01:42 AM

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.

MogKnight 04-16-2004 01:48 AM

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

Zachery 04-16-2004 01:50 AM

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

MogKnight 04-16-2004 01:59 AM

how would "hardcoding" it in work, as opposed to the first method?

Zachery 04-16-2004 02:07 AM

Quote:

Originally Posted by MogKnight
how would "hardcoding" it in work, as opposed to the first method?

Youd put it into a file, depending on where you wanted to show this, then pout the $varbiel into a template

MogKnight 04-16-2004 03:15 AM

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
  • Page Generation 0.01053 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete