Coinbase

Author Topic: SMF Ads on Black14k theme  (Read 2214 times)

0 Members and 1 Guest are viewing this topic.

Offline smartmouse

  • Newbie
  • *
  • Posts: 3
    • Email
SMF Ads on Black14k theme
« 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:

Code: [Select]
<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:

Code: [Select]
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:

Code: [Select]
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.

Offline smartmouse

  • Newbie
  • *
  • Posts: 3
    • Email
Re: SMF Ads on Black14k theme
« Reply #1 on: July 20, 2007, 06:56:31 am »
Anyone here?

Offline smartmouse

  • Newbie
  • *
  • Posts: 3
    • Email
Re: SMF Ads on Black14k theme
« Reply #2 on: July 30, 2007, 06:23:47 pm »
Is this the support forum for Ad mod? ???

SMF Ads Support Forum

Re: SMF Ads on Black14k theme
« Reply #2 on: July 30, 2007, 06:23:47 pm »
.

 

.