أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .

كود مشاركة الارباح ادسنس


مشاهدة المشاركة في الموضوع بالعرض العادي
look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 04:51 صباحاً  
Mr King
معلومات الكاتب
هذه آخر محاوله، آمل أن تنجح



خذ نسخة لمحتوى القالب show_subject ثمّ اعمل استراجاع الأصل



بعد ذلك أضف في بدايته هذا الكود

CODE

	<?php
	        $pub_no = "1111111111111111";
	        $member_pub = $PowerBB->_CONF['template']['Info']['extrafield_2'];
	        if(is_numeric($member_pub) && mb_strlen($member_pub)=='16' &&
	        $PowerBB->_CONF['template']['_CONF']['member_row']['username'] <> $PowerBB->_CONF['template']['Info']['username'])
	        {
	        $pub_no = $member_pub;
	        } ?>
	        <script type="text/javascript"><!--
	        google_ad_client = "pub-<?php echo $pub_no;?>";
	        //--></script>
	






ثمّ ابحث عن

CODE

	<div class="text">{$Info['text']}</div>
	


واستبدله بهذا الكود

CODE

	    <div class="text">
	    <?php
	    $inserts = '
	                <div align="center" style="background: transparent; color: #000000; font: 11px tahoma; width:100%;">
	                <span style="margin: 0;">
	        <script type="text/javascript"><!--
	        google_ad_width=728;
	        google_ad_height=90;
	        google_ad_format="728x90_as";
	        google_ad_type="text_image";
	        google_ad_channel="forum";
	        //--></script>
	            <script type="text/javascript"
	            src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	            </script>
	                </span>
	            </div>
	    ';
	                $_text = $PowerBB->_CONF['template']['Info']['text'];
	            $_tmp_lines = explode("", $_text);
	            $_tmp_pos = round(count($_tmp_lines) / 1.4)-1;
	            for ($_i = 0; $i < ($_count = count($_tmp_lines)); $_i++)
	            {
	                if ($_i == $_tmp_pos)
	                {
	                $_text = preg_replace('`' . preg_quote($_tmp_lines[$_i]) . '`', $_tmp_lines[$_i] . $inserts , $_text , 1);
	                echo $_text;
	                    break;
	                }
	            }
	    ?>
	    </div>
	







تم تحرير المشاركة بواسطة :Mr King بتاريخ:14-11-2013 04:57 صباحاً



الساعة الآن 01:38 AM