The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
you want logicians web templates
|
#3
|
|||
|
|||
Awesome thanks. Found this:
https://vborg.vbsupport.ru/showthrea...ight=logicians I'll check it out! Mike |
#4
|
||||
|
||||
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> 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. |
#5
|
|||
|
|||
Quote:
Mike |
#6
|
|||
|
|||
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 |
#7
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|