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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2009, 02:30 AM
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom content while retaining vb header and footer

For one particular page of content, I want to retain the VB header, navbar, and footer --- but in the middle of the page instead of showthread/post I want to be able to display my own non-VB generated content (say for instance, an iframe).

I was thinking there has to be a way to call something, like misc.php?do=custom, and then somewhere I can upload a new Style template that has what I want it to display. There is probably even a way to just call a template directly, but I am having trouble...

I am having trouble figuring out how to do this. Would someone be so kind to point me in the right direction?

Mike
Reply With Quote
  #2  
Old 06-25-2009, 02:37 AM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you want logicians web templates
Reply With Quote
  #3  
Old 06-25-2009, 02:49 AM
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mmoore5553 View Post
you want logicians web templates
Awesome thanks. Found this:
https://vborg.vbsupport.ru/showthrea...ight=logicians

I'll check it out!

Mike
Reply With Quote
  #4  
Old 06-25-2009, 06:28 AM
Outbackmark's Avatar
Outbackmark Outbackmark is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can also create a custom template without using any addons, all it does is wrap it in a frame, here is how I do it -
Go to Style Manager/Add new template, call your template custom_templatename add your code in a frame ie
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>

$header
$navbar
<if condition="$bbuserinfo[userid]">
</if>
<!-- Custom Code Start Here -->
<center>
<iframe src="http://www.yourpage.com/etc" width="90%" height="500"></iframe></center>
<!-- / Custom Code Ends here -->
$footer
</body>
</html>
Change the red url to your page you wish to put in the frame, change the width and height to suit the content.
Your link will then look like this http://www.yousite.com/forum/misc.php?do=page&template=templatename
You can whack that in your navbar or dropdown and away you go.

There is an article on it here or at vb.com but I can't find it right now.
Reply With Quote
  #5  
Old 06-25-2009, 04:32 PM
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Outbackmark View Post
You can also create a custom template without using any addons, all it does is wrap it in a frame, here is how I do it -
Go to Style Manager/Add new template, call your template custom_templatename add your code in a frame ie
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>

$header
$navbar
<if condition="$bbuserinfo[userid]">
</if>
<!-- Custom Code Start Here -->
<center>
<iframe src="http://www.yourpage.com/etc" width="90%" height="500"></iframe></center>
<!-- / Custom Code Ends here -->
$footer
</body>
</html>
Change the red url to your page you wish to put in the frame, change the width and height to suit the content.
Your link will then look like this http://www.yousite.com/forum/misc.php?do=page&template=templatename
You can whack that in your navbar or dropdown and away you go.

There is an article on it here or at vb.com but I can't find it right now.
This is perfect, thank you!

Mike
Reply With Quote
  #6  
Old 06-27-2009, 06:20 AM
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I did this but unfortunately the page is just blank. "View source" and it's empty.

I created the new style, I am calling it with misc.php?do=page&template=name... any ideas?

Mike

--------------- Added 27 Jun 2009 at 15:58 ---------------

Ok I fixed it! I wasn't taking the custom_<templatename> literally enough.

When you name your template in Style Manager, you literally need to prefix it with "custom_". So if your template name is bob, you need to call it "custom_bob".

Then, when you call from misc.php?do=page&template=bob it will work (don't put custom_ here).

Thx!
Mike
Reply With Quote
  #7  
Old 06-27-2009, 09:23 PM
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One remaining issue. How can I customize the page name shown here for this custom template? I tried searching google for 30 minutes, I think maybe it is in define() but I couldn't figure it out. ??



Mike
Attached Images
File Type: png 2009-06-27_1719.png (30.9 KB, 0 views)
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 02:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04797 seconds
  • Memory Usage 2,246KB
  • Queries Executed 14 (?)
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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete