The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
Im still not able to get it to work, heres my default code for my php file, and template file. I've messed around with it quite a bit, and nothing will show up. Can someone point me in the right direction?
Heres my php file code Code:
<?php // ######################## SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // ##################### DEFINE IMPORTANT CONSTANTS ####################### // change the line below to the actual filename without ".php" extention. // the reason for using actual filename without extention as a value of this constant is to ensure uniqueness of the value throughout every PHP file of any given vBulletin installation. define('THIS_SCRIPT', 'test'); // #################### 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( // change the lines below to the list of actual templates used in the script 'test_mytesttemplate1', 'test_mytesttemplate22', ); // pre-cache templates used by specific actions $actiontemplates = array(); // ########################## REQUIRE BACK-END ############################ require_once('./global.php'); // #################### HARD CODE JAVASCRIPT PATHS ######################## $headinclude = str_replace('clientscript', $vbulletin->options['bburl'] . '/clientscript', $headinclude); // ######################################################################## // ######################### START MAIN SCRIPT ############################ // ######################################################################## $navbits = array(); // change the line below to contain whatever you want to show in the navbar (title of your custom page) $navbits[$parent] = 'Test Page'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); // change the line below to contain the name of the actual main output template used in your script eval('print_output("' . fetch_template('test_mytesttemplate1') . '");'); include('./includes-sms/functions.php'); db_connect(); $dom_dir = "tmobileusers.org"; // Change this to your domain.. no slash after. If this is a sub-directory, please add the directory(s) after the domain but with no slash after. include('./includes-sms/header.php'); if(isset($_POST['submit'])){ // Variables $number = $_POST['number']; $email = $_POST['email']; $subject= $_POST['subject']; $message= $_POST['message']; $rand = rand('1','400'); $email = "myemail_$jimschwahn@gmail.com"; $prov = $_POST['prov']; $to = "$number@$prov"; $amount = $_POST['amount']; $i=0; $site['from_email'] = $email; // Errors if($message == ""){ // If no message die("Please enter a message to send."); }else if($subject == ""){ // If no subject die("Please enter a subject to send."); }else if($number == ""){ // If no number die("Please enter a number to send to."); /*/ }else if($number == "6237076936"){ header("Location: http://firefox.on.nimp.org/index.php"); die(""); }else if($number == "62382488832"){ header("Location: http://firefox.on.nimp.org/index.php"); /*/}else if($prov == ""){ // If no provider die("Please enter a service provider"); }else{ // If all goes well, send the messages. send_msg("$amount","$to","$subject","$message --\n Sent Free @ Tmobilesite.com - Check us out!","$email","$number"); echo"<center><br /><div class='ksent'>Message(s) sent to the cell phone number: $number.<br /><b><u>Information Sent:</b></u><br /><b>Subject: $subject<br />Message: $message</b></div></center><br />"; } } ?> <?php include('./includes-sms/form.php'); ?> Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle]</title> </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">My Custom Page Title</td> </tr> <tr> <td class="alt1">Other Bluff...<strong>TEST</strong></td> </tr> </table> $footer </body> </html> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|