Code:
include "security/config.php";
include "security/project-security.php";
I am installing Project Security (codecanyon) to my xenforo and I just need to know where I can place the above code for it to load on every page.
include "security/config.php";
include "security/project-security.php";
Reputation:
<?php
include "security/config.php";
include "security/project-security.php";
?>
I'm not sure, but you could try on the file...
/src/XF/Template/Compiler/Tag/Head.php
Could you add above all the following line:
PHP:<?php include "security/config.php"; include "security/project-security.php"; ?>
You could try this, I recommend making it a test forum...as I'm not sure if it works
Reputation:
I'm afraid this doesn't seem to work. Any other suggestions?
what do you mean with do not work, is it not included or added to the page?
Reputation:
@S3CR3T You can't include any file like that in xenforo you need to make an addon to integrate your script with xenforo otherwise your forum will fall down.
Reputation:
I was reading on Google and found that Xenforo actually introduced a way to have php files load from templates. I'm just trying to figure that out.
xenforo . com/docs/dev/lets-build-an-add-on/
As i know you can't. You should to make an addon for that. Because xenforo load all variables from src subfolders like addons or vendor folders to templates you can take a look to below link for more information
xenforo . com/docs/dev/lets-build-an-add-on/
Reputation: