vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How can I embed our forums into my .shtml template? (https://vborg.vbsupport.ru/showthread.php?t=153731)

bluecat 07-29-2007 03:33 PM

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

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 ;)


All times are GMT. The time now is 10:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00921 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete