vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding a new $code to call (https://vborg.vbsupport.ru/showthread.php?t=86659)

Logikos 03-24-2003 05:11 AM

Adding a new $code to call
 
I need to know how to add a new $callnamehere

Example i would like to make a new template for the "Forum Home Page Templates" So would i just create a new template called forumhome_offtopicbit with my html code inside that, and add $offtopicbit anywhere in the forum homes section?

Just wondering if im right or wrong or even close :P

Tony G 03-24-2003 06:02 AM

Requires hacking/phpinclude mod to get new variables to work in templates.

Logikos 03-24-2003 11:14 AM

Thanks Tony. You better be getting paid for all this :p

Brad 03-24-2003 06:55 PM

Also, adding a new varible via phpinclude to call a template will add one query.

Tony G 03-25-2003 03:29 AM

Does it add anything via file hacking?

Brad 03-25-2003 09:30 AM

Quote:

Originally Posted by Tony
Does it add anything via file hacking?

It can, if hacking is done incorrectly, basicly any template used on a page that is not in the $templateused section of the file will add a query.

Grunt 03-30-2003 10:59 PM

so if you add the new template name to $templateused it wont add a query?

Brad 03-31-2003 12:16 AM

Quote:

Originally Posted by Grunt
so if you add the new template name to $templateused it wont add a query?

yes, but you will have to hack to do so.

filburt1 03-31-2003 12:40 AM

Would be ubercool if you could just have a setting in the admin CP for which files and actions cache which templates.

Tony G 03-31-2003 04:48 AM

We can only dream. :( :p


All times are GMT. The time now is 08:40 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.01298 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
  • (2)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