vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What exactly are 'bits'? (https://vborg.vbsupport.ru/showthread.php?t=202152)

Pedro! 01-17-2009 05:49 PM

What exactly are 'bits'?
 
Aright folks, I'm in the process of moving all my template modifications into a purdy product to make updating easier. Consequently I've been getting a bit more down and dirty with vB's templating system and one word or should I say suffix that keeps popping up is 'bit', postbit, threadbit, groupinvitebit, etc. So my question is what the hell does 'bit' mean in the context of templating??

I hope I'm not massively retarded, lol.

Sweeks 01-17-2009 05:49 PM

Parts maybe?
________
Teen ++++ Tube

Pedro! 01-17-2009 05:50 PM

'maybe'?

Guest190829 01-17-2009 05:54 PM

Bits is just a naming convention used in regards to templates they are used to displays "bits" of a larger template.

If you need the same html numerous times to display consistent data [like posts in a thread], you would use a template bit [postbit].

Sweeks 01-17-2009 05:55 PM

I am not sure on their exact definition. Just what I perceive them to be. Like postbit meaning post part or post section.
________
Buy cannabis seeds

Pedro! 01-17-2009 06:20 PM

Quote:

Originally Posted by Sweeks (Post 1715996)
I am not sure on their exact definition. Just what I perceive them to be. Like postbit meaning post part or post section.

Yeah, I thought this but then couldn't really understand the need for the bit suffix because any parent template is denoted using the underscore notation which is why...

Quote:

Originally Posted by Danny.VBT (Post 1715995)
If you need the same html numerous times to display consistent data [like posts in a thread], you would use a template bit [postbit].

...seems to make more sense. So, if it's gonna be used over and over on the same page it would be good practice to call it parenttemplate_customtemplatebit but if it was just a one-off insertion you'd just call it parenttemplate_customtemplate?

I like to do things properly haha, thanks for your help so far :)

Dismounted 01-18-2009 03:58 AM

Quote:

Originally Posted by Pedro! (Post 1716020)
...seems to make more sense. So, if it's gonna be used over and over on the same page it would be good practice to call it parenttemplate_customtemplatebit but if it was just a one-off insertion you'd just call it parenttemplate_customtemplate?

Pretty much.


All times are GMT. The time now is 01:34 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.01138 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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