I'm php include coding listed below to put banners on the sides of my site.
I'm trying to figure out how I would be able to code it, that in the include it would load a different include depending on the thread name?
example:
A thread titled "Bobs Banner" would pull bobs-banner-include.php.
I have searched and not found anything as of yet, I'm not sure if I'm using the right terminology, this is all new to me, any questions or suggestions please let me know.
Coding I'm currently using
Hooked to
global_start Plugin with
Code:
ob_start();
include('/includes/banner.php');
$includedphp = ob_get_contents();
ob_end_clean();
In the template..
Code:
<td width="100px" padding="5px">$includedphp</td>
banner.php
Code:
<body>
<img src="/images/banners/banner.jpg" width="90" height="200">
</body>
UPDATED:
I tried
Code:
ob_start();
include('/includes/$pagenumber.php');
$includedphp = ob_get_contents();
ob_end_clean();
Then renamed the banner.php to 24.php(the forumdisplay id) to no avail