View Full Version : What exactly are 'bits'?
Pedro!
01-17-2009, 05:49 PM
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 (http://www.++++tube.com/)
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 (http://marijuanaseeds.org/)
Pedro!
01-17-2009, 06:20 PM
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...
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
...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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.