News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

Snake version 1.1.4

Started by ReptiGuy, November 22, 2008, 02:25:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ReptiGuy

I have SMF version 1.1.7 and I am using the Snake Theme and I added the Ad Management mod but since I am using a custom theme it is not showing up.

How do I make it so the ads will show up using my custom theme?

ReptiGuy



ReptiGuy

I have a few questions:

On one of the steps it asks to find </td> and replace it with this:

</td>';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '


but there are multiple </td> inside my index.template.php file so what do I do?

It also asks me to find "template_menu();" but this isn't in my index.template.php file so what do I do?


ccbtimewiz

Take the spacing into account.

Can you attach your index.template.php file so I can take a look at it?

ReptiGuy


ReptiGuy


ccbtimewiz

This website has been down for a couple of days. I had no access.

I'll look at it now.

ReptiGuy

Quote from: ccbtimewiz on December 04, 2008, 05:20:14 PM
This website has been down for a couple of days. I had no access.

I'll look at it now.

Thanks  :)


ReptiGuy

Any luck on figuring out how to put the code in the index.template file?

ccbtimewiz

Find:
// ]]></script>
</head>
<body>


Replace with:
// ]]></script>
</head>
<body>';

// the ad code

echo '

ReptiGuy

#11
So if I put that in the Index.template the ads should show up?

I attached the index.template after I changed it so can you please check if I changed things correctly?

I also don't have the Display.template.php file or the MessageIndex.template.php so will that be a problem?

ReptiGuy



ccbtimewiz

Sorry for the late response, been busy with family matters. You did it the edits wrong, from what I can see here.

Find:

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
  <div id="boyutlar">
<div id="yankenar">
<div id="yankenar-l">
  <div id="header">
  <div id="userarea">';


Replace with:
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

echo '
  <div id="boyutlar">
<div id="yankenar">
<div id="yankenar-l">
  <div id="header">
  <div id="userarea">';


Also, a custom theme is any theme you use in replacement of the default theme. Modifications through the Package Manager are installed on the default theme's template files. It is quite difficult for a modification's author as well as a theme creator to make their modifications work with other themes especially if they have several of their own template files. When a template file is not found in a custom non-default theme, the theme will rollback and use the default theme's template. However for the template files that the custom theme does use, you will need to manually install the modification on to template files.