There is no need to update it. It works perfectly fine in 4.1.2 an 4.1.3. The basic page structure hasn't changed at all in the 4.x series.
|
I have created custom page in vbulletin forum but don't know how to link it from navigation bar.
Please help |
Quote:
|
I have created new page in vbulletin using the following code but is it blank
Please let me know the issue First I prepared new custom page in named we-support.php <?php error_reporting(E_ALL & ~E_NOTICE); define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'we-support'); $phrasegroups = array(); $specialtemplates = array(); $globaltemplates = array( 'test' ); $actiontemplates = array(); require_once('./global.php'); if ($vbulletin->options['ctab_enable']) { $noaccessgids = explode(",", $vbulletin->options['limit_groups']); if (is_member_of($vbulletin->userinfo, $noaccessgids)) { print_no_permission(); }else{ $content = $vbulletin->options['content']; } $pagetitle = $vbulletin->options['custom_title']; $navbits = array(); $navbits[$parent] = $vbphrase['custom_message_title']; $navbits = construct_navbits($navbits); $navbar = render_navbar_template($navbits); $templater = vB_Template::create('test'); $templater->register_page_templates(); $templater->register('content', $content); $templater->register('navbar', $navbar); print_output($templater->render()); } ?> ============================ And Prepared new template named test $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Title</td> </tr> <tr> <td class="alt1">Text</td> </tr> </table> $footer </body> </html> But When I opened it I found blank page http://college-chat-rooms.gradchat.net/we-support.php --------------- Added [DATE]1307024721[/DATE] at [TIME]1307024721[/TIME] --------------- Issue solved After deleting these lines the issue solved if ($vbulletin->options['ctab_enable']) { $noaccessgids = explode(",", $vbulletin->options['limit_groups']); if (is_member_of($vbulletin->userinfo, $noaccessgids)) { print_no_permission(); }else{ $content = $vbulletin->options['content']; } |
Is there any way to have each custom page have its own custom meta tags? I guess I could add about 100 if conditionals in the headinclude, but would this not bog things down?
|
You may add your own meta tags into the pages. Just put it up where the headinclude template gets included.
|
That is half the solution.
The problem then would be the second set of "default" meta tags also served up. To combat this I created a template which copies headinclude minus all the meta info, which is placed into the page templates. This is the first time I have pulled out vb4 since the "not ready for prime time" release. Luckily after my 3rd attempt to locate my old test backups, I finally found them :). Dave |
Quote:
i am a newby. I made step one and uploaded the file to forum root. but how can i create the template? can you tell me the steps i have to follow please? |
Quote:
|
what condition can I use to only have a certain forum shown on a new .php page.
|
All times are GMT. The time now is 06:15 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|