vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Custom content while retaining vb header and footer (https://vborg.vbsupport.ru/showthread.php?t=217075)

ctrlbrk 06-25-2009 02:30 AM

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

mmoore5553 06-25-2009 02:37 AM

you want logicians web templates

ctrlbrk 06-25-2009 02:49 AM

Quote:

Originally Posted by mmoore5553 (Post 1836843)
you want logicians web templates

Awesome thanks. Found this:
https://vborg.vbsupport.ru/showthrea...ight=logicians

I'll check it out!

Mike

Outbackmark 06-25-2009 06:28 AM

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.

ctrlbrk 06-25-2009 04:32 PM

Quote:

Originally Posted by Outbackmark (Post 1836913)
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

ctrlbrk 06-27-2009 06:20 AM

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

ctrlbrk 06-27-2009 09:23 PM

1 Attachment(s)
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. ??

https://vborg.vbsupport.ru/external/2009/06/8.png

Mike


All times are GMT. The time now is 04:43 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.01237 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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