Log in

View Full Version : Custom content while retaining vb header and footer


ctrlbrk
06-25-2009, 02:30 AM
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
you want logicians web templates

Awesome thanks. Found this:
https://vborg.vbsupport.ru/showthread.php?t=62164&highlight=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
$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
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
$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
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