SMF Ads Support Forum
Themes/Language => Theme Support => Topic started by: smartmouse on July 19, 2007, 02:01:31 pm
-
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.
-
Anyone here?
-
Is this the support forum for Ad mod? ???