vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   [How to] Add custompages to your forum (https://vborg.vbsupport.ru/showthread.php?t=124749)

Jeordie015 08-25-2006 04:27 AM

Okay, let me be more specific. If I wanted the page to be for a Top 10 List, how would I be able to call it that with the spaces? In the header, you have the directory structure break down, and if you called the template "top10list," that's how it would look in the header thing, and that doesn't look right.

Onur 08-25-2006 05:29 AM

Hello, to check more than 1 or 2 Usergroups i think
Code:

<if condition="is_member_of($bbuserinfo, 2,3,4,5,6)">
is more clear ;)

utw-Mephisto 08-25-2006 07:24 AM

Quote:

Originally Posted by Jeordie015
Okay, let me be more specific. If I wanted the page to be for a Top 10 List, how would I be able to call it that with the spaces? In the header, you have the directory structure break down, and if you called the template "top10list," that's how it would look in the header thing, and that doesn't look right.

This works with the file I gave you ...

Check out what I mean :

http://www.ut2007world.com/top10.php

utw-Mephisto 08-25-2006 07:25 AM

Quote:

Originally Posted by Onur
Hello, to check more than 1 or 2 Usergroups i think
Code:

<if condition="is_member_of($bbuserinfo, 2,3,4,5,6)">
is more clear ;)

Thanks, I was also thinking using in_array yesterday.... :) But yet again - my knowledge is limited - therefore thanks a lot for the tip ..

Ninth Dimension 08-26-2006 01:00 AM

Great tutorial, thank you very much. I'm not using it just yet, but I will be shortly :D

Jeordie015 08-26-2006 01:42 AM

Either I'm missing something or you didn't explain how to do what I'm wanting to do. All I'm able to figure out is to make a template called custom_whatever and I'll be able to view that by going to boardurl.com/misc.php?do=page&template=whatever

How exactly would I be able to create something like your top10.php?

Kirk Y 08-26-2006 01:52 AM

That'd require creating a new PHP file. Psionic Vision has posted a tutorial on doing this in the Articles forum.

utw-Mephisto 08-26-2006 12:21 PM

Quote:

Originally Posted by Jeordie015
Either I'm missing something or you didn't explain how to do what I'm wanting to do. All I'm able to figure out is to make a template called custom_whatever and I'll be able to view that by going to boardurl.com/misc.php?do=page&template=whatever

How exactly would I be able to create something like your top10.php?

Just a few posts up :)

https://vborg.vbsupport.ru/showpost....5&postcount=20

VBUsers 08-26-2006 06:17 PM

i added this hack and it works great but i wanted to know if there was a way to do it as a hard file. like test.php and have the content you need in there.

i tried it your way but i have 2 js scripts i need to be pulled into the page and its not working. what can i do?

utw-Mephisto 08-26-2006 06:28 PM

You mean no templates at all ?

Unfortunately my knowledge is a bit limited in how to pull header and footer in a custom file. Maybe this helps:

http://www.vbulletin.com/forum/showp...18&postcount=1

I can search myself too - but so far no idea tbh ...


All times are GMT. The time now is 02:10 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
  • Page Generation 0.01418 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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