Helpful Information
 
 
Category: vB3 Programming Discussions
Insert php-code into a template..

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

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.

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.

FireFly, can you please elaborate on how I use this to include files? Thanks in advance. :)

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.

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?










privacy (GDPR)