Как можна поставит коде Adsense в Pages?
<script type="text/javascript"><!--
google_ad_client = "pub-0322625382905131";
/ 468x60, /
google_ad_slot = "0430674377";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Открыть
Ответить
Ставит Google Adsense в Pages
SLAED CMS 4.2 Pro
PHP 5
Сервер в интернете
Проще простого!
Сделайте пользовательский BB тег и пихайте куда угодно свою рекламку
типа [googads] a тут пошел вызов кода [/gooads].
Тут где то были темы про создания своих кнопок - полистайте
так открой модуль pages/index.php
В функции
function pages() {
После if ($db->sql_numrows($result) > 0) {
поставь
$i=1;
Далее
После basic($cid, $cimg, $ctitle, $pid, $title, $hometext, $link, $read, $post, $ndate, $reads, $comm, $arating, $print, $admin);
поставь
if($i==1 || $i=5){
echo <<<HTML
<script type="text/javascript"><!--
google_ad_client = "pub-0322625382905131";
/* 468x60, */
google_ad_slot = "0430674377";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
HTML;
}
$i++;
Будет окрываться после 1 и 5 новости
так открой модуль pages/index.php
В функции
function pages() {
..........
..........
Будет окрываться после 1 и 5 новости
А как то-же самое, но для Slaed 2.6 Lite ??
SLAED CMS 2.6 Lite
PHP 5
Сервер в интернете
Открыть
Ответить