vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I make a Custom Page (https://vborg.vbsupport.ru/showthread.php?t=139794)

interfx 02-19-2007 12:25 AM

How do I make a Custom Page
 
I created a new template called "page_privacy", and entered my information (privacy statement), then when I go to the page:

http://www.domain.com/forums/index.php?page=privacy

It does not show up... What am I doing wrong? I thought this should be very simple way to make a custom page...

Thanks for any advice...

Brandon Sheley 02-19-2007 12:45 AM

if you gave us the actual link it may help ;)

interfx 02-19-2007 01:21 AM

<a href="http://www.oled.info/forums/index.php?page=privacy" target="_blank">http://www.oled.info/forums/index.php?page=privacy</a>

There you go... Not much to see, it defaults to the std. forums page... I have a template template defined as "page_privacy", and it looks just fine.

HMBeaty 02-19-2007 01:23 AM

So I take it you didn't make the PHP file that should go with your template?

ConqSoft 02-19-2007 01:25 AM

That's not how you create a custom page in vBulletin. This is:

Create a template called "custom_somename" ( it must be prefixed with custom_ ) and put something like this in it:

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        $headinclude
        <title>Some Page Title</title>
</head>
<body>
$header
$navbar

Some Page Content

$footer
</body>
</html>


Then you can call it using:

Code:

http://www.yourdomain.com/forum/misc.php?do=page&template=somename

HMBeaty 02-19-2007 01:30 AM

Or you could add the php file so it looks much cleaner. For example, instead of looking like:

http://www.yourdomain.com/forum/misc...plate=somename

It will look more like:

http://www.yourdomain.com/forum/somename.php

interfx 02-19-2007 01:32 AM

Thanks, figured it out...

ConqSoft 02-19-2007 01:33 AM

I use vBSEO to rewrite them to friendly URLs. ;)

Couple of examples:

http://www.cbrxx.com/merchandise.html
http://www.cbrxx.com/misc.php?do=pag...te=merchandise

http://www.cbrxx.com/rules.html
http://www.cbrxx.com/misc.php?do=page&template=rules

http://www.cbrxx.com/privacy.html
http://www.cbrxx.com/misc.php?do=page&template=privacy

http://www.cbrxx.com/link.html
http://www.cbrxx.com/misc.php?do=page&template=link


All times are GMT. The time now is 01:22 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.01052 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete