View Full Version : Insert php-code into a template..
nordic_blue
11-09-2001, 10:58 PM
hi.
is there any possibility to insert a php code into a vbulletin-template? something like that?
<?php
include ("foo.php");
echo($lnx);
?>
I tried so but without success. Perhaps somebody can help.
thanks.
cu, nordic_blue
Admin
11-10-2001, 05:23 AM
Use the phpinclude template.
Please show you are a licensed user by going to this (http://www.vbulletin.com/members/vbulletin.org.php) page. Thank you.
nordic_blue
11-10-2001, 12:07 PM
the phpinclude-template? don't know that.. :confused:
okay..I will show that I'm a licensed user but I haven't my login-data here at the moment. monday, when work starts ;), and I'm able to get my login-data, I will visit that page.
FleaBag
12-06-2001, 01:49 PM
FireFly, can you please elaborate on how I use this to include files? Thanks in advance. :)
Admin
12-06-2001, 02:10 PM
Put this code in your phpinclude template:
ob_start();
require("http://www.path.com/to/file.html");
$variableToUseInTemplates = ob_get_contents();
ob_end_clean();
Change the red parts.
Martin CX
12-15-2001, 02:29 PM
I'm a complete newbie regarding programming, but I'm working on an alternate quote system similar to the one in legacy BBS/e-mails:
> dslgjdsfglfdskgj
> dfdsf gdsfgfdgs
> dsfdfgfdh dfgdfgk
I have made a very rough working version of this by editing the .php-files themselves, but what I really want is to just include the relevant php-code in the quotereply-template. How would I go about doing that?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.