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)

ragtek 01-15-2010 08:53 PM

globaltemplates => cached global for the page (allways)

actiontemplates => cached if a special action is called ($_GET['do'] == 'whatever')

you could also make:
PHP Code:

$globaltemplates = array('foo''bar');

if (
$_REQUEST['do'] == 'xy')
{
$globaltemplates[] = 'xyz';
$globaltemplates[] = 'newpost_preview';


with actiontemplates:

PHP Code:

$globaltemplates = array('foo''bar');
$actiontemplates = array(
    
'xy' => array(
        
'xyz''newpost_preview',
    )
); 


Lynne 01-15-2010 09:20 PM

Thank you for that explanation! It makes more sense to me now.

PukkaBen 01-16-2010 10:36 AM

Hey Lynne!! I am wondering, is there a way to get a "tree" on where the links have gone on each page?

For example, I have the main tab heading as "Radio" and then "Schedule" as a drop-down menu with each Day listed below. Just like you get Member List > Username at the top.

Cheers.

Lynne 01-16-2010 03:08 PM

Sorry PukkaBen, I don't understand what you are wanting at all. An image might help.

PukkaBen 01-16-2010 03:52 PM

1 Attachment(s)
Okay, I have the screen shot below to help explain what I'd like to get out of it.

https://vborg.vbsupport.ru/attachmen...1&d=1263664260

But I'd like it to follow my links in the navigation. So on the "Tuesday" schedule page it would be
Radio -> Schedule -> Tuesday

I hope that helps.

Lynne 01-16-2010 04:06 PM

You mean the navbits - what says Member List > PukkaHQ right now? You'd have to look at the API for construct_navbits to find out what to pass to have it listed how you want. I've never really looked at that function, so I don't know exactly what you want to do.

oddmud 01-19-2010 09:35 PM

too complicated for this brain today. :(

chingon 01-21-2010 07:27 PM

Hello Lynne, very nice but any idea why my link is not showing up in the navbar? I did the template exactly as yoiurs but named it news. In the php I named it news.php and changed the 2 red test to news then changed test page to news page.

Lynne 01-21-2010 07:40 PM

Quote:

Originally Posted by chingon (Post 1962678)
Hello Lynne, very nice biu any idea why my link is not showing up in the navbar?

This article has nothing to do with the navbar, so I have no idea what link you are talking about.

ragtek 01-21-2010 07:40 PM

There is no automatic link in the navbar;)


All times are GMT. The time now is 05:50 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
  • Page Generation 0.01825 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)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