heres a code i use on websites
Code: Select all
<center>
<?php
$fcontents = join ('', file ('banner_ads.txt'));
$s_con = split("~",$fcontents);
$banner_no = rand(0,(count($s_con)-1));
echo $s_con[$banner_no];
?>
</center>
eg
You could integrate so where you imput the ad currently in mf_admin it adds the ads straight to the txt file the php code on the forum can randomly pick a ad. if people only want to use a single ad they would simply ad one adad here
~
ad here
~
Ad here