View Full Version : Can't find this hack
What's the hack that allows me to power a non vb .php file with the vb template? I deleted it off y system
assassingod
05-10-2003, 06:23 AM
<a href="https://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=399" target="_blank">http://www.vbulletin.org/hacks/index...ack&hackid=399</a> ?
No, i lookeded at that one, it is where it will look like your template and you can add anything to the center of your template.
The .php file just connects to the db and calls templates
gengar003
05-15-2003, 01:02 AM
sounds like you want vbHome(lite) modified to pull templates from your template list?
Click my "WWW" thing, and what you'll see( and the pages it links to on the left) are made with vbHome(lite)
gengar003
05-15-2003, 01:11 AM
additionally, if you include the correct header in your .php file, to include the vb vars and global.php, I believe you can use the gettemplate command w/out any other fancy stuff, like vbH(l)
Found it! It was in my old vb backup files..
<?php
error_reporting(7);
require('./global.php');
eval("dooutput(\"".gettemplate('cams')."\");");
?>
Then cams template is:
{htmldoctype}
<html>
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
<meta http-equiv="Refresh" content="20; URL="cams.php">
<script language="javascript" src="popup.js"></script>
<title>$bbtitle - WebCams</title>
$headinclude
</head>
<body>
$header
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" width="20%"><smallfont color="{tableheadtextcolor}"><smallfont color="{tableheadtextcolor}"><b>$bbtitle WebCams</b></smallfont></td></tr>
<tr valign="top">
<td bgcolor="{pagebgcolor}" width="100%" valign="top">
<normalfont>
<p align="center"><a href="javascript:cam()"><img src="http://nerdnations.com/img/cam.jpg" border="0" width="240" height="200"></a></p>
</normalfont>
</td>
</tr>
</table>
</td></tr></table><br><br>
$footer
</body>
</html>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.