The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PHP page with my VB forum style
I want to add some pages to my forum for my VIP members, these pages need to be in php and I want to add the nav and footer etc etc from my forum style so it looks the same as the forum.
Please could some one help me in telling me what I would need to add to the php file page to do this I have tried but just got confused Thank you |
#2
|
|||
|
|||
Okay,
create a new php file (i named it mp3.php) contain the following: PHP Code:
change in the above code the $navbits[$parent] and also the name of the template which named above "mp3". upload the file to the forum folder. create a new template in any style and place in it : HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar WRITE YOUR HTML CODE HEAR !!! $footer </body> </html> call the php file www.yoursite.com/fourm/mp3.php and enjoy |
#3
|
||||
|
||||
wow thanks, and thanks for your time I will give this a go now
|
#4
|
|||
|
|||
You can also add to your file after
Code:
// ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### Code:
// Check for permission if (!is_member_of($vbulletin->userinfo[usergroupid], array(5,6,7)) { print_no_permission(); } |
#5
|
||||
|
||||
wow thanks I was going to add that to the template but this seems better, thank you
ooops sorry I need to add a include in php to the page this is why I wanted to do the page in php, but as we are using this template Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar I need script here $footer </body> </html> sorry |
#6
|
|||
|
|||
You can use the output of the php in the template. From example, in the index.php file which controls forumhome there are php variables defined for
Code:
$onlineusers Code:
// ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### Code:
$navbits = array(); |
#7
|
||||
|
||||
I am lost, I amnot that great at php, all I know how to do is place html in php and include lol sorry
is there no way that i can add all this in the php code some how, so that it doesnt use a template but styles etc etc like: Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar include('filename.php'); $footer </body> </html> I cant do all the vars in php and stuff I have never been any good at them bits |
#8
|
|||
|
|||
in that case, you best bet is probably to create a modification request giving details of exactly what you want it to do and see if someone can make it for you.
|
#9
|
||||
|
||||
ok thank you for your time
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|