View Full Version : how to include a php script in vbulletin
manuelsechi
11-10-2010, 11:42 AM
hello all
is there any way to embedded a php script inside vbulletin? I have some white-label shop i'd like to display to my users inside my vbulletin theme...
thanks all for any suggestion
regards
Manuel
Outbackmark
11-10-2010, 12:12 PM
Put it in an iframe like this as a custom template called custom_templatename, the link would then be http://www.yoursite.com/forum/misc.php?do=page&template=templatename
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<!-- Custom Code Start Here -->
<center>
<iframe src="http://www.linktopage.com" width="90%" height="600"></iframe></center>
<!-- / Custom Code Ends here -->
$footer
To make a template go to Styles & Templates/Template manager and under the style you wish to add to click on Add New Template.
Give it a name as per above, paste the code in and replace url to suit your page and site, save.
Add link to Navbar....done, it will be framed in your VB style with header navbar and footer.
ETA: or...
There's a manual page that shows how to include the output from an external php script: http://www.vbulletin.com/docs/html?manualversion=30806601 search for "Including External Files".
Or if you want to take the opposite approach and make your script a custom vBulletin page there's an article that shows how to do that: https://vborg.vbsupport.ru/showthread.php?t=62164
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.