News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

SMF Ads on Black14k theme

Started by smartmouse, July 19, 2007, 03:01:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

smartmouse

Hello, i have to manually install admod on my theme (Black14k) but i do not know how to since the install.xml file says:

<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[<body>';]]></search>

<add><![CDATA[
//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);
}
]]>
</add>
</operation>


and in the index.template.php file there is not <body>';... how to add that code then?


This is default index.template.php file:

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>';



And this is my index.template.php file:

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>
<a name="top"></a>';



Please help me, thank you in advance.


smartmouse

Is this the support forum for Ad mod? ???