• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Install adverts script (PHP in templates?)

CNK

Active member
#1
How I can add to my xF forum this PHP code:
Code:
  <?php include_once('prolink.php'); ?>
to all forum pages and code:
Code:
  <?php prolink_getLinks(); ?>
in places, when I want show links?
 
#2
What your looking for is a code event listener
Look inside the development tutorials at ones like "how to create an ad on"
Basically the code event listener watches for a specific trigger and then allows you to extend classes or template hooks, etc.