![]() |
AJAX Tabs / Custom Templates
I'd like to setup a custom VB page using ajax tabs, each tab to pull the main home page of a mod.
I created a custom template called custom_Test content: Code:
$stylevar[htmldoctype] https://vborg.vbsupport.ru/showthread.php?t=200819 https://vborg.vbsupport.ru/showthread.php?t=188189 I want each ajax tab to one of the mods' home page for example. What code would I use to pull these? Any help appreciated. |
Which modification are you using for your ajax tabs?
|
I'm not using any yet, but probably will just grab this one:
http://dynamicdrive.com/dynamicindex17/ajaxcontent.htm I need to some mix the ajax tabs and use iframes within each tab so there is no leaving the tab contents/pages. |
Well, I don't think you can come up with the template until you pick the method. I'm sure the method will determine what goes into the template. There are probably instructions with the method you use that outlines what needs to be done.
|
My question is how to actuall pull the vb templates. What is the actual code to pull those templates.
For example: For the video directory remixed mod, the main template is called VIDEO_SHELL (yes, caps) The content is: Code:
$stylevar[htmldoctype] So, say I just want to test it with iframes (forget ajax tabs for a minute), what is the actual code to pull VIDEO_SHELLS? I am already using iframes for another custom template called custom_Chat which has this for example: Code:
<iframe name="I3" id="I3" src="http://www.talkjesus.com/misc.php?do=page&template=chatroom" height="600" border="3" frameborder="0" width="100%" marginwidth="0" marginheight="0" >Your browser does not support inline frames or is currently configured not to display inline frames.</iframe> |
You need to eval a template in order to spit it out in a template. So, somewhere on your page you would have something like:
PHP Code:
|
Sorry, not understanding.
I did this inside custom_Test Code:
$stylevar[htmldoctype] http://www.talkjesus.com/misc.php?do=page&template=Test |
The php, which is what the eval statement is, needs to go inside your php page.
You may want to see this - [How-To] vBulletin API Basics: Creating Custom Pages & Misc. |
I'm still lost.
I created a test.php page in root directory Code:
<?php Code:
$stylevar[htmldoctype] Code:
$stylevar[htmldoctype] Still blank. |
All times are GMT. The time now is 03:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|