![]() |
Bit templates :S
How do i insert a bit template into a page using another template?
|
they generally have a variable set such as $templatename_bit.
You just insert that variable into your main template. If this is for a custom script, you'll need to evaluate the template in the script. |
Like this?
PHP Code:
|
Yes, add that code to the file which will call for the main template, then you can use $newsbit.
Are you wanting to actually make it display bits, like when displaying posts? Because that's something completely different. |
I did, it didn't work.
Yes thats what i'm trying to do. I made a table in the bit template which contains the news. Then i want it shown in the news page, templates confuse me. How do i do it? |
So, you want to create a newsbit, kinda like posts?
If so, do you want the news to be read from posts, or do you want to be able to add/edit news without adding/editing posts? |
I've made a simple php script that takes news from a database.
But it won't display more than one row of the database, so i thought a bit template would do the job. |
All times are GMT. The time now is 07:26 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|