vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

Lynne 10-29-2010 10:40 PM

Quote:

Originally Posted by Dusty Miller (Post 2115755)
I've coded the form within the php page, not the template. Should the form be coded within the template page instead?

It doesn't matter how it's coded as long as you include the securitytoken into the form. Usually it's an input field of type hidden.

Lostboyfan 11-10-2010 07:37 PM

Thank you Lynne for showing me how to do this. Now I can make a cutom home page with using VB templates.

------added--------

i wanted to make a page out of my vbulletin forum root. I keep getting this error and I have been stuck ever since.

Fatal error: Call to undefined function construct_navbits()

Anyone can PM me too if they want more details

hihello 11-17-2010 05:12 AM

I tried as instructed. Everytime I click on the the new navigation, it takes me to the new page but the tab jumps over to the forum nav. What am I doing wrong?

Lynne 11-17-2010 01:53 PM

Quote:

Originally Posted by hihello (Post 2122698)
I tried as instructed. Everytime I click on the the new navigation, it takes me to the new page but the tab jumps over to the forum nav. What am I doing wrong?

What new navigation? There is no navigation created in this page.

hihello 11-17-2010 03:58 PM

Quote:

Originally Posted by Lynne (Post 2122796)
What new navigation? There is no navigation created in this page.

I created a new navigation link to link to the new page. When I click the link, it goes to the page but highlights the forum link instead. I figured it may be the template problem since I tried two different ways and the outcome was the same. I tried adding my own script in navbar and then I tried the tab mod I found on this forum.

Lynne 11-17-2010 05:46 PM

Quote:

Originally Posted by hihello (Post 2122843)
I created a new navigation link to link to the new page. When I click the link, it goes to the page but highlights the forum link instead. I figured it may be the template problem since I tried two different ways and the outcome was the same. I tried adding my own script in navbar and then I tried the tab mod I found on this forum.

It would have to do with the condition you wrote for your new tab to show as active.

hihello 11-17-2010 09:42 PM

Yes. It's not the template. It's working now that I installed a new nav hack. It's very easy. Btw, I found your article on removing various navtab very help. I couldn't figure out how to remove the What's new. Thanks!!!

TheInsaneManiac 11-29-2010 10:36 PM

How do I allow my pages to use the do action like my old one?
Code:

eval('$navbar = "' . fetch_template('navbar') . '";');
if ($_REQUEST['do'] == 'support')
{
    eval('print_output("' . fetch_template('impostersupport') . '");');
}
if ($_REQUEST['do'] == 'port')
{
    eval('print_output("' . fetch_template('porthelper') . '");');
}
eval('print_output("' . fetch_template('impostergenerators') . '");');


Lynne 11-29-2010 11:16 PM

Quote:

Originally Posted by TheInsaneManiac (Post 2127353)
How do I allow my pages to use the do action like my old one?
Code:

eval('$navbar = "' . fetch_template('navbar') . '";');
if ($_REQUEST['do'] == 'support')
{
    eval('print_output("' . fetch_template('impostersupport') . '");');
}
if ($_REQUEST['do'] == 'port')
{
    eval('print_output("' . fetch_template('porthelper') . '");');
}
eval('print_output("' . fetch_template('impostergenerators') . '");');


Basically the same except you need to change all your eval/fetch_template statements to use the new syntax (the new syntax is covered in other articles, although shown in the code for this one).

TheInsaneManiac 12-02-2010 02:26 PM

Why does this show at the top of every page?
$stylevar[htmldoctype]


All times are GMT. The time now is 11:06 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
  • Page Generation 0.01487 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete