Adding ads to iGaming CMS?

Status
Not open for further replies.

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
I have no experience with such a cms, however try looking for a header.php file, or you can ask on their forums, where you are likely to have more relevent answers.
 

the_king_dollars

New Member
Messages
153
Reaction score
0
Points
0
OK. I found this file global_header.inc.php .
The file contains:
<?php

global $right, $top, $bottom, $location, $spconfig;
global $latest_poll;

// Config Settings -> Template Variables
$TITLE = $spconfig["site_title"];
$META_DESCRIPTION = $spconfig["meta_description"];
$META_KEYWORDS = $spconfig["meta_keywords"];

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html>
<head>
<title><?= $TITLE; ?></title>

<META NAME="description" CONTENT="<?= $META_DESCRIPTION; ?>">
<META NAME="keywords" CONTENT="<?= $META_KEYWORDS; ?>">
<style type="text/css">
@import url("templates/template_css.css");
</style>
<script language="javascript">
var ie4 = false; if(document.all) { ie4 = true; }
function getObject(id) { if (ie4) { return document.all[id]; } else { return document.getElementById(id); } }
function toggle(link, divId) { var lText = link.innerHTML; var d = getObject(divId);
if (lText == '+') { link.innerHTML = '−'; d.style.display = 'block'; }
else { link.innerHTML = '+'; d.style.display = 'none'; } }
</script>
</head>

<body>
<br />
<table border="0" cellspacing="0" cellpadding="5" width="90%" align="center">
<tr>

<td width="100%" background="images/gradient_1.jpg" style="color:#FFF;font-size: 12px;">
<b><?= $TITLE; ?></b>
</td>

</tr>
</table>
<table border="0" cellspacing="0" cellpadding="4" width="90%" align="center">
<tr>
<td class="topmenu"><?= $top; ?></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="90%" align="center">
<tr>
<td class="outerborder">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td valign="top" width="150" class="leftmenu">

<?= GenerateLeftMenu(); ?>

<div style="padding: 3px;">

<form method="post" action="poll_vote.php">
<?= GenerateLatestPoll(); ?>
<input type="submit" value="Vote">
</form>

</div>

<br />
<img src="images/pixel.gif" height="1" width="150">
</td>

<td width="100%" valign="top" class="maincontent">
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="navbar">
<tr>
<td><a href="index.php">Home</a> <?= $location; ?></td>
</tr>
</table>

<?php

// 02.21.05 - These functions are outdated and will be moved/removed in a future updated.

// GENERIC TABLE FUNCTION
function do_table_start($width='100%') {
return <<<EOF

<table border="0" cellspacing="0" cellpadding="3" width="$width" class="generictable" align="center">
<tr>
<td>
EOF;
}

function do_table_end() {
return <<<EOF

</td>
</tr>
</table>
EOF;
}

$start_table = do_table_start();
$end_table = do_table_end();
?>

So what should I add and where?
 

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
PHP:
<?php

global $right, $top, $bottom, $location, $spconfig;
global $latest_poll;

// Config Settings -> Template Variables
$TITLE = $spconfig["site_title"];
$META_DESCRIPTION = $spconfig["meta_description"];
$META_KEYWORDS = $spconfig["meta_keywords"];

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html>
<head>
    <title><?= $TITLE; ?></title>

<META NAME="description" CONTENT="<?= $META_DESCRIPTION; ?>">
<META NAME="keywords" CONTENT="<?= $META_KEYWORDS; ?>">
<style type="text/css">
@import url("templates/template_css.css");
</style>
<script language="javascript">
var ie4 = false; if(document.all) { ie4 = true; }
function getObject(id) { if (ie4) { return document.all[id]; } else { return document.getElementById(id); } }
function toggle(link, divId) { var lText = link.innerHTML; var d = getObject(divId);
 if (lText == '+') { link.innerHTML = '−'; d.style.display = 'block'; }
 else { link.innerHTML = '+'; d.style.display = 'none'; } }
</script>
   </head>

   <body>
   <br />
   <table border="0" cellspacing="0" cellpadding="5" width="90%" align="center">
      <tr>
          
         <td width="100%" background="images/gradient_1.jpg" style="color:#FFF;font-size: 12px;">
         <b><?= $TITLE; ?></b>
         </td>
          
      </tr>

<tr>
<td width="100%">AD CODE HERE AD CODE HERE AD CODE HERE</td>
</tr>

   </table>
   <table border="0" cellspacing="0" cellpadding="4" width="90%" align="center">
      <tr>
         <td class="topmenu"><?= $top; ?></td>
      </tr>
   </table>
   <table border="0" cellspacing="0" cellpadding="0" width="90%" align="center">
       <tr>
           <td class="outerborder">
           <table border="0" cellspacing="0" cellpadding="0" width="100%">
              <tr>
                 <td valign="top" width="150" class="leftmenu">
                 
                    <?= GenerateLeftMenu(); ?>
                    
                    <div style="padding: 3px;">
                    
                    <form method="post" action="poll_vote.php">
                    <?= GenerateLatestPoll(); ?>
                    <input type="submit" value="Vote">
                    </form>
                    
                    </div>
                    
                    <br />
                    <img src="images/pixel.gif" height="1" width="150">
                </td>

                <td width="100%" valign="top" class="maincontent">
                    <table border="0" cellspacing="0" cellpadding="0" width="100%" class="navbar">
                        <tr>
                            <td><a href="index.php">Home</a> <?= $location; ?></td>
                        </tr>
                    </table>

<?php

// 02.21.05 - These functions are outdated and will be moved/removed in a future updated.

// GENERIC TABLE FUNCTION
function do_table_start($width='100%') {
return <<<EOF

   <table border="0" cellspacing="0" cellpadding="3" width="$width" class="generictable" align="center">
      <tr>
         <td>
EOF;
}

function do_table_end() {
return <<<EOF

         </td>
      </tr>
   </table>
EOF;
}

$start_table = do_table_start();
$end_table = do_table_end();
?>

I just added a new row just under the title. THat should create the desired effect, but i'm not sure as i've never used this cms before. I'm also assuming you wanted a corporate banner ad. If it doesn't work post a screenie of what it looks like so I can get a better idea of it's system.
 
Last edited:

the_king_dollars

New Member
Messages
153
Reaction score
0
Points
0
Yes, the ads now show up.
Another question, how do you make it appear in the center?
Here is the screenshot:
clip_image002.jpg
 
Last edited:

the_king_dollars

New Member
Messages
153
Reaction score
0
Points
0
put "<center>" in front of the code and "</center>" after the code
I finally figured it out. I did by adding the code align=center . (However, I'm not sure if what you said works.)
Thank you for your help.
 
Last edited:

YamiKaitou

Member
Messages
636
Reaction score
0
Points
16
HTML:
<td width="100%"><center>AD CODE HERE AD CODE HERE AD CODE HERE</center></td>
 
Last edited:

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
Both would work. Seeing as your problem is now solved

:lockd:
 
Status
Not open for further replies.
Top