Quote:
--------------- Added [DATE]1261126003[/DATE] at [TIME]1261126003[/TIME] --------------- Quote:
It's all picked up of your template name e.g if template is called custom_AboutUs it will appear like this - AboutUs, so if it's called custom_aboutus it will appear like aboutus. Pretty sure you cannot use spaces though. |
Quote:
|
Quote:
|
I want to make a new page for my home page which would be index.html/php. I made the template and named it custom_homepage.
What shoud I use to call the template? If I make a file, index.php, what should go in it? Thanks |
Quote:
|
This needs an extra div class so that the now default vb css browser resetting will render HTML correctly. Using a default class from 4 and wrapping it around all custom entered HTML, then renders lists, paragraphs and so forth correctly.
<div class="article cms_clear restore"> |
Thanks Allan, it works just fine on my board.
|
Sorry if this has been asked, but how can i set it to be viewable by only certain usergroups?
tia |
Quote:
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, x,y,z)"> |
Your a star,
thank you Lynne |
Please can some one help ive been trying to long im using ragteks addon create a tab in navbar and Allans addon HERE im trying to link the two so here are the codes what do i need to change.
Heres the plug in code if (THIS_SCRIPT == 'arcade') // also defined('ragtekarcade') possible { //set selected tab $vbulletin->options['selectednavtab'] = 'ragtekarcade'; } // add the "subtemplate" to the navbartemplate $template_hook['navtab_middle'] .= vB_Template::create('ragtek_arcade_navbar')->render(); Heres the template...ragtek_arcade_navbar <vb:if condition="$vboptions['selectednavtab'] == 'ragtekarcade'"> <li class="selected"> <a class="navtab" href="arcade.php{vb:raw session.sessionurl_q}">{vb:rawphrase ragtek_arcade}</a> <ul class="floatcontainer"> <li><a href="http://www.4ums.com">misc.php?do=page&template=arcades</a></li> </ul> </li> <vb:else /> <li><a class="navtab" href="arcade.php{vb:raw session.sessionurl_q}">{vb:rawphrase ragtek_arcade}</a></li> </vb:if> Heres the addon from this thread...custom_arcades {vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> <title>{vb:raw vboptions.bbtitle} arcades</title> {vb:raw headinclude} {vb:raw template_hook.headinclude} </head> <body> {vb:raw header} {vb:raw navbar} <div id="pagetitle"> <h1>{vb:raw pagetitle}</h1> </div> <!--arcades--> {vb:raw footer} </body> </html> Please if any one can shed any light on how i get this to work in HARMONY i would be so gratefull been trying nearly 20hrs so must sleep now!! Thanks Bren.:eek::up: |
Quote:
was nice chatting to you, take care and have a good night at the movies :) |
Thanks, this is great tutorial. Could someone tell me please how I would incorporate code with php in. I have some dynamic php driven pages which I'd like to include as additional pages in the forum. How do I call the php code? I'm struggling to be honest so some help would be great.
|
Very easy to get working, thanks Allan! Working great in vB4 gold.
Quote:
Quote:
That's great, but how and where exactly should the code you put up go Lynne? I want the top tab in the Navbar called "COTM" to be the one that is highlighted (and obviously I need to make the COTM tab/button go to the correct URL, when it's ready). There is no .php file associated with the template. And the variables I'd need to replace are only THIS_SCRIPT right? Or do I have to do something with the 'misc' as well? |
Nevermind on this one. I'm using the other HOW TO now. Thanks anyway guys.
|
this does not work for me
i created a custom template call wm_index when i type in misc.php?do=page&template=wm_index i get a blank page can anyoneelp on this however the php file i created for it shows up the template why does the template need to be names custom_ please explain |
I am trying to create a new page for google search, I have created a new template named custom_gsearch and I have posted my google search code into it and can open the link manually with no problems, however when I enter in a search term it opens a page with a list of smileys.
How can I fix this? Thanks |
Any ideas how to remove the navbar highlighting of "forum"?
|
Noone?
|
Remove it when? If you don't want it highlighted when this page is displayed, then what navtab do you want highlighted when you are on this page? Whatever tab that is, add in a condition for that tab to make it highlighted when you are on this page. The default, when no other tab is highlighted, is to highlight the forum tab. So, if you don't want that, you need to make sure another tab meets the conditions to be highlighted.
|
How can I make this work and look half decent with a fixed style? when I go to the custom page it stretches it all out and distorts it.
|
Btw this dont work for me im on VB4.0.7
|
Works for me on 4.0.7 but I want to know how or what do I need to add to be able to use <ul> <ol> <li> tags!?
Thanks! |
Quote:
|
Fantastic thanks!!
|
Quote:
I had the same problem and it turned out to be the url. Quote:
|
I'm using doubleclick for publishers and have my ad header code in a different include...so something everyone might consider including would be:
Code:
{vb:raw headinclude_bottom} Also in order to address those that want spaces in the title...you don't have to use the vb page title variable...here's the code I'm using for information on advertising on my site. Code:
{vb:stylevar htmldoctype} |
Im on vb 4.2 can I use this? If so can I have this in the root while the forum is in a folder in root?
|
how do you load the additional.css into your custom pages
--- edit : found solutions, forgot to add {vb:cssfile additional.css} |
All times are GMT. The time now is 10:54 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|