The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How can I embed our forums into my .shtml template?
Hi,
I have a template that I've sliced up, and use for our main shtml pages; however, we want to embed our forums inside this template so that it looks exactly like the rest of our site (i.e. the threads inside the middle of the template). I've searched and searched to no avail. Can anyone tell me where to start or if there is a hack to do something like this? Thank you |
#2
|
||||
|
||||
Modify the header/navbar/footer templates. They are like the buns of a burger.
|
#3
|
||||
|
||||
Thanks. I'm simply stuck on getting the actual "forum" inside my template. Can anyone advise what code or variable needs to be added "inside" my template. Just editing the header and footer puts the template up, but then the forum appears in the middle (not inside my template, but between the header and footer), and I'm trying to get it inside my template like an iframe. Thanks again.
For example, I can add the code from say "FORUMHOME" inside the main area of my template, and then paste ALL of the code (including the template) back into the FORUMHOME, and it works perfectly. However, once you click on a thread, it goes back to default. I've even went through multiple templates and repeated the above, and that works as well; however, isn't there an easier way to add it in one file and its good across the board? Thanks. |
#4
|
||||
|
||||
How is your template structured?
|
#5
|
||||
|
||||
I have it sliced up so that I can enter information into specific tables. For our forum, I'm trying to put the main body of the forums into the main area of our template. I have it working by adding a custom template to each one like FORUMHOME, SHOWTHREAD, etc., but there has to be a way to not have to edit like 10 separate files. I hope anyway. Thanks again.
|
#6
|
||||
|
||||
How is it sliced? Does it have the side bits and the like?
|
#7
|
||||
|
||||
Yes it does (both sides). I used vb to make a little example. The template (this is a sample) is sliced up so it wraps around the main area forums, where I want to put the actual forum. Like I said, I have it working perfectly if I edit every template like SHOWTHREAD, FORUMDISPLAY, etc. The problem is there are so many templates, i.e. if a user clicks the "Post Reply," that template has to be edited. Or if they check their Private Messages, that template has to be edited too. I hope this is making sense. I even tried to pull the index.php through a php includes (not sure if that was even possible). Basically I'm trying to simulate an "iframe" look.
Thanks again. |
#8
|
||||
|
||||
That should be able to be done via having the side in one table cell, and the rest in the other.
|
#9
|
||||
|
||||
I apologize, but what do you mean exactly? Which files would go where? Thank you again.
|
#10
|
||||
|
||||
Here is what you should do. In the area where you show the forums in the above example... Type a X there in that table... this X will mark the spot for you to seperate the code you need to put in your header, and the code you put in your footer.
Now, copy and paste everything above the X you just typed, into your header template... Everything below the X, you will paste into your footer. Leave all the content in your existing footer template, and just paste this code at the end. The only thing you will need to check for in the footer template, is that you don't have </body></html> duplicated... Most likely, those tags will be, and you will have to remove the first set from the original, footer template code. Hope that is written simple enough for you to understand. Once that is done, your forum should be "wrapped" by your main page as you have shown in the example picture above. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|