2009-03-22, 09:08 PM
Hi everyone!
I'm new to PHP and I need some help to put ads on my MyBB forum.
The advertising company, eXponsor, gives me the ads with PHP code:
I want to put those ads on every page of my forum, if it's possible.
The ideal place will be under the welcome block. I have edited the header template and added a <div> for the ads, but PHP code doesn't work on templates.
This is how the forum looks with the <div>.
http://www.clanwtf.co.cc/foro/
My question is obvious: How can I fill the <div> with the PHP code?
I also have tried some ads plugins from this page, but none worked.
Thank you.
I'm new to PHP and I need some help to put ads on my MyBB forum.
The advertising company, eXponsor, gives me the ads with PHP code:
// Request ads
$cod_soporte = "XXXXX";
$cod_web = "XXXXX";
$pagina = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$inicio = 0;
$cantidad = 10;
$formato = "HTML";
require_once("eXponsor.class.inc.php");
$exponsor = new eXponsor();
$exponsor->set_modo_prueba();
$exponsor->dame_enlaces($cod_soporte, $cod_web, $pagina, $inicio, $cantidad, $formato);
// Show the ads
echo $exponsor->pinta_enlaces_horizontal();
I want to put those ads on every page of my forum, if it's possible.
The ideal place will be under the welcome block. I have edited the header template and added a <div> for the ads, but PHP code doesn't work on templates.
This is how the forum looks with the <div>.
http://www.clanwtf.co.cc/foro/
My question is obvious: How can I fill the <div> with the PHP code?
I also have tried some ads plugins from this page, but none worked.
Thank you.