View Full Version : How can I embed our forums into my .shtml template?
bluecat
07-29-2007, 03:33 PM
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
Dismounted
07-30-2007, 06:01 AM
Modify the header/navbar/footer templates. They are like the buns of a burger.
bluecat
07-30-2007, 03:56 PM
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.
Dismounted
07-31-2007, 06:03 AM
How is your template structured?
bluecat
07-31-2007, 01:27 PM
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. :)
Dismounted
08-01-2007, 06:04 AM
How is it sliced? Does it have the side bits and the like?
bluecat
08-01-2007, 01:50 PM
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.
http://www.aisleofdelivery.com/bb2.gif
Dismounted
08-02-2007, 06:20 AM
That should be able to be done via having the side in one table cell, and the rest in the other.
bluecat
08-02-2007, 03:51 PM
I apologize, but what do you mean exactly? Which files would go where? Thank you again.
markbolyard
08-02-2007, 04:49 PM
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.
bluecat
08-03-2007, 02:09 PM
Thank you very much. Makes sense, I'll give it a try! :)
Wow! Worked perfect, thank you very much!
markbolyard
08-03-2007, 02:55 PM
Great, glad to help ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.