vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   PHP Parse Error (https://vborg.vbsupport.ru/showthread.php?t=188162)

Chewy954 08-14-2008 09:44 PM

PHP Parse Error
 
Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <!-- end no cache headers -->
        $headinclude
        <title>$vboptions[CustomPage_title] - $vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
<tr>
        <td class="tcat">$vboptions[CustomPage_title]</td>
</tr>
<tr>
<td class="panelsurround" align="center"><form action="math.php?=submit" method="post">
Ticket Amount: <input type="text" name="tickets" />
<input type="submit" name="Submit" />
</form>


<?php
$total = 0.000983428571428571428571428571428 * $_POST["tickets"];
echo($total);
?></td>
</tr>
</table>
$footer

Code:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web Server\htdocs\includes\adminfunctions_template.php(3716) : eval()'d code on line 28

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Any ideas why it won't work? :X

bobster65 08-14-2008 09:49 PM

you can't put PHP into a template..

Chewy954 08-14-2008 09:52 PM

then how would I accomplish having PHP with my vbulletin theme? :X

Opserty 08-14-2008 10:00 PM

Look in articles section, its a treasure chest of vbulletin information.

[How-To] vBulletin API Basics: Creating Custom Pages & Misc.

Chewy954 08-14-2008 10:13 PM

Quote:

Originally Posted by Opserty (Post 1598824)
Look in articles section, its a treasure chest of vbulletin information.

[How-To] vBulletin API Basics: Creating Custom Pages & Misc.

i don't see where I can put my own PHP in it :X

Opserty 08-14-2008 10:18 PM

The PHP file maybe?...

After it says START MAIN SCRIPT...

Else: Including External Files


All times are GMT. The time now is 11:13 AM.

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.01952 seconds
  • Memory Usage 1,723KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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