vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   How Long is your PHP_INCLUDE START template? (https://vborg.vbsupport.ru/showthread.php?t=71088)

Michael Morris 10-28-2004 08:44 AM

How Long is your PHP_INCLUDE START template?
 
The one I maintain for WotC just crossed 800 lines...

Logikos 10-28-2004 09:23 AM

Thats a pretty large amount of extra code to be ran on every single page powered by the vBulletin templates don't you think?

AN-net 10-28-2004 10:13 AM

that is a little outrageous, if you have that many lines i suggest you actually intergrate that into global.php and corresponding files for the purposes of optimizing your site;)

Michael Morris 10-28-2004 12:23 PM

Most of it is setting user options. Part of the reason for the length is I'm not allowed to mod the code (corporate site) and I don't have FTP access to the file base (which is occasionally a pain). So to get the features the users want I've gotten to be very creative.

If I ever finalize it I guess it will be included as a seperate file.

Another reason for the length is the site has 12 seperate headers that are independent of the stylesets (you can match any of the 20 stylesets with the headers)

Johnny 10-28-2004 12:49 PM

right now mine is at about 13 its probably going to grow up to 20 once im done with the site.

filburt1 10-28-2004 02:20 PM

57 in php_include_start, 80 in php_include_end. However, both of those have require() statements in which the required files are hundreds of lines long. I also haven't modified a single line of vB code.

Hialls 10-28-2004 03:03 PM

heh i thought my 42 was alot :D

AN-net 10-28-2004 04:27 PM

Quote:

Originally Posted by Michael Morris
Most of it is setting user options. Part of the reason for the length is I'm not allowed to mod the code (corporate site) and I don't have FTP access to the file base (which is occasionally a pain). So to get the features the users want I've gotten to be very creative.

If I ever finalize it I guess it will be included as a seperate file.

Another reason for the length is the site has 12 seperate headers that are independent of the stylesets (you can match any of the 20 stylesets with the headers)

if your that important to the site i would highly suggest they give u ftp access or say you cant work on the community till they do

Xenon 10-28-2004 06:30 PM

on vb.org we have 106 lines of code :)

without any includes or such, and quite a few are just to change a few settings for important persons like myself ;)

Link14716 10-28-2004 07:40 PM

Quote:

Originally Posted by AN-net
if your that important to the site i would highly suggest they give u ftp access or say you cant work on the community till they do

If you can achieve something with the php_include templates, why edit global.php?


All times are GMT. The time now is 06:54 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.01084 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)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