vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Can't find this hack (https://vborg.vbsupport.ru/showthread.php?t=52752)

RDX1 05-10-2003 04:44 AM

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 05: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> ?

RDX1 05-11-2003 02:56 AM

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

RDX1 05-14-2003 10:49 PM

Anyone?

gengar003 05-15-2003 12: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 12: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)

RDX1 05-15-2003 04:18 AM

Found it! It was in my old vb backup files..

Code:

<?php
error_reporting(7);

require('./global.php');


eval("dooutput(\"".gettemplate('cams')."\");");

?>

Then cams template is:

Code:

{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>



All times are GMT. The time now is 09:09 PM.

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