The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Creating vb pages on 3.6.5
I am looking for the best tutorial on how to create custom vb pages for 3.5.6
Many Thanks |
#2
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=62164&highlight=create+another+vb ulletin+page" target="_blank">https://vborg.vbsupport.ru/showt...vbulletin+page</a>
|
#3
|
|||
|
|||
Thankyou. I have now created a page but i want to add some php
I want the page to only show if the member is logged in. If they are not logged in then it will say You are not a member and interviews are for members only please log in or REGISTER for free. I have this code Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <if condition="is_member_of($bbuserinfo, 1)"> you are not a member and interviews are for members only please log in or REGISTER for free. <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Cally Gage Interview</td> </tr> <tr> <td class="alt1">Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview Cally Gage Interview </td> </tr> </table> </if> $footer </body> </html> |
#4
|
||||
|
||||
You wouldn't add that to the template, you would add that to the php file you create for your new page
But what you are talking about, you should add PHP Code:
|
#5
|
|||
|
|||
Hi thanks for the reply I added your cade and when I logged out I could still see the info as if I was logged in.
|
#6
|
||||
|
||||
Did you add the code to the php file or the template? If you added it to the template, you can't do that as the templates don't recognize php
|
#7
|
|||
|
|||
I added it to the php file
|
#8
|
||||
|
||||
Can you post the contents of your file here?
|
#9
|
|||
|
|||
Code:
<?php define('VBA_PORTAL', true); define('VBA_PAGE', 'forumhome'); // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'callygageInterview'); // change this depending on your filename // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array( ); // get special data templates from the datastore $specialtemplates = array( ); // pre-cache templates used by all actions $globaltemplates = array( 'site_callygageInterview', ); // pre-cache templates used by specific actions $actiontemplates = array( ); // Check Perms if ($show['guest']) { print_no_permission(); } // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); // ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### $navbits = array(); $navbits[$parent] = 'Cally Gage Interview'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('site_callygageInterview') . '");'); ?> |
#10
|
||||
|
||||
Ok, try this
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|