Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2007, 03:33 PM
bluecat's Avatar
bluecat bluecat is offline
 
Join Date: Apr 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 07-30-2007, 06:01 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Modify the header/navbar/footer templates. They are like the buns of a burger.
Reply With Quote
  #3  
Old 07-30-2007, 03:56 PM
bluecat's Avatar
bluecat bluecat is offline
 
Join Date: Apr 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-31-2007, 06:03 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How is your template structured?
Reply With Quote
  #5  
Old 07-31-2007, 01:27 PM
bluecat's Avatar
bluecat bluecat is offline
 
Join Date: Apr 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-01-2007, 06:04 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How is it sliced? Does it have the side bits and the like?
Reply With Quote
  #7  
Old 08-01-2007, 01:50 PM
bluecat's Avatar
bluecat bluecat is offline
 
Join Date: Apr 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Reply With Quote
  #8  
Old 08-02-2007, 06:20 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That should be able to be done via having the side in one table cell, and the rest in the other.
Reply With Quote
  #9  
Old 08-02-2007, 03:51 PM
bluecat's Avatar
bluecat bluecat is offline
 
Join Date: Apr 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I apologize, but what do you mean exactly? Which files would go where? Thank you again.
Reply With Quote
  #10  
Old 08-02-2007, 04:49 PM
markbolyard's Avatar
markbolyard markbolyard is offline
 
Join Date: Apr 2005
Location: Maryland
Posts: 629
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:30 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
  • Page Generation 0.04164 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete