The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
How do i insert a bit template into a page using another template?
|
#2
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]()
Like this?
PHP Code:
|
#4
|
|||
|
|||
![]()
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. |
#5
|
|||
|
|||
![]()
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? |
#6
|
|||
|
|||
![]()
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? |
#7
|
|||
|
|||
![]()
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. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|