Scroll
Drupal 7-ի նոդի մարմնում կոդի ասդենս
Ֆորումներ
Իվան, բարև, կարծես թե արեցի ձեր առաջարկությունների համաձայն, բայց ինչ-որ բան չի երևում, ինչ որ արեցի:
1) տեղադրեցի Adsense և Adsense Injector մոդուլները
2) բացում եմ իմ node.tpl-ը և տեղադրում հետևյալ կոդը
<div class="node-content"<?php print $content_attributes; ?>>
<?php
// Թաքցնել մեկնաբանությունները, պիտակները և հղումները, որպեսզի կարողանանք դրանք հետագայում ցուցադրել.
hide($content['comments']);
hide($content['links']);
hide($content['field_tags']);
print render($content);
?>
</div>
<div class="adsense-body1" style="margin-bottom:1em;">
<!-- START Google AdSense Ad Unit code, provided by Google -->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-3282980833393742";
/* Իմ գովազդային միավորի նկարագրությունը */
google_ad_slot = "1235241790";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- END Google AdSense Ad Unit code, provided by Google -->
</div>
3) մուտքի ձևաչափերում թույլատրում եմ օգտագործել Adsense ՏԵԳ
4) մտնում եմ Adsense Injector մոդուլի կարգավորումներին admin/config/content/adsense_injector
և Inline Insertion դաշտում տեղադրում եմ:
<div id="adsense-body1" style="display:block;float:right;margin: 5px 10px 5px 10px;">[adsense:300x250:235241790]</div>
Արդյունք: http://floomby.ru/s1/Qfwwb/full/ անանունների համար գովազդը չի երևում..... Խնդրում եմ օգնեք...