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

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

موضوع مغلق

الصفحة 2 من 3
2

look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  13-11-2013 11:47 مساءً   [13]
imaddine1986
معلومات الكاتب
ارجوا المساعدة من احد الاخوة

فيبدو ان هناك مشكلة عند اضافة كود المشاركة

للكود المقدم فهل هناك تغير حتى ينجح دمج

كلى الكودين

look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 12:38 صباحاً   [14]
Mr King
معلومات الكاتب


مرحبا أخي، يبدو أنّك لم تفهم جيّدا



فإجابتي في الرد�https://pbboard.info/forums/t14737&password=&count=6#74172 تجيب على كلّ أسئلتك باستثناء دمج الإعلان وسط الموضوع



المهم، هذا هو كود مشاركة الأرباح

CODE

	    
	        <div align="center" style="background: transparent; color: #000000; font: 11px tahoma; width:100%;">
	        <span style="margin: 0;">
	        <?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;?>";
	    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>
	    
	




إذا أردت أن يظهر الإعلان قبل نصّ الموضوع ضع كود مشاركة الأرباح قبل الكود التالي : كود نصّ الموضوع الموجود في القالب show_subject.tpl

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


وإذا أردت أن يظهر الإعلان أسفل نص الموضوع ضع كود مشاركة الأرباح بعد كود نصّ الموضوع










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


look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 12:51 صباحاً   [15]
imaddine1986
معلومات الكاتب
المشاركة الأصلية كتبت بواسطة: Mr King مرحبا أخي، يبدو أنّك لم تفهم جيّدا



فإجابتي في الردّhttps://pbboard.info/forums/t14737&password=&count=6#74172 تجيب على كلّ أسئلتك باستثناء دمج الإعلان وسط الموضوع



المهم، هذا هو كود مشاركة الأرباح

CODE

	    
	        <div align="center" style="background: none repeat scroll 0 0 #FFFFFF; color: #000000; font: 11px tahoma; width:100%;">
	        <span style="margin: 0;">
	        <?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;?>";
	    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>
	    
	




إذا أردت أن يظهر الإعلان قبل نصّ الموضوع ضع كود مشاركة الأرباح قبل الكود التالي : كود نصّ الموضوع

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


وإذا أردت أن يظهر الإعلان أسفل نص الموضوع ضع كود مشاركة الأرباح بعد كود نصّ الموضوع







لا والله فهمت جوابك 10/10 وبارك الله فيك

بقية نقطة واحدة فقط وهي وضع الكود داخل

او وسط الموضوع وليس في اعلى او اسفل الموضوع

ولقية بالصدفة طريقة الاضافة من قبل الاستاذ سليمان

وهذا هو الموضوع

https://pbboard.info/forums/post-44316&num=3



لكن عند اضافة كود مشاركة الارباح داخل كود الاستاذ

سليمان يختفي الموضوع ولو اضفت اعلان عادي يظهر

الاعلان وسط الموضوع كود مشاركة الارباح ادسنس | الصفحة  2

look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 12:58 صباحاً   [16]
imaddine1986
معلومات الكاتب
وايضا انا لا امتلك حساب ادسنس لذلك ولتشجيع

الاعضاء قمت بوضع ثلاث اعلانات واحد كما شرحة

لي ثابت على جنب الايمن وواحد اسفل الموضوع

واريد اخر يظهر وسط الموضوع



كود مشاركة الارباح ادسنس | الصفحة  2



وبهذا يكون ثلاث اعلانات في موضوع واحد كود مشاركة الارباح ادسنس | الصفحة  2

look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 01:02 صباحاً   [17]
Mr King
معلومات الكاتب


عندك حقّ تمّت تجربته ونفس المشكله كود مشاركة الارباح ادسنس | الصفحة  2

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


look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 01:08 صباحاً   [18]
imaddine1986
معلومات الكاتب
المشاركة الأصلية كتبت بواسطة: Mr King عندك حقّ تمّت تجربته ونفس المشكله كود مشاركة الارباح ادسنس | الصفحة  2



والله غريب فعلا

look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 01:10 صباحاً   [19]
Mr King
معلومات الكاتب
جرّب هذا الكود

CODE

	<div class="text">
	<?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;
	        }
	$inserts = '
	            <div align="center" style="background: transparent; color: #000000; font: 11px tahoma; width:100%;">
	            <span style="margin: 0;">
	        <script type="text/javascript"><!--
	        google_ad_client = "pub-<?php echo $pub_no;?>";
	        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 01:20 صباحاً


look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 01:20 صباحاً   [20]
imaddine1986
معلومات الكاتب
ظهر مكان الاعلان ولم يختف الموضوع

لكن للاسف لم يظهر الاعلان

كود مشاركة الارباح ادسنس | الصفحة  2

look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 01:32 صباحاً   [21]
Mr King
معلومات الكاتب
وبالنسبه للقيمه
CODE
extrafield_2<br />
عدّلت عليها حسب رقم الحقل ؟؟



إذا كان ذلك هو رقم الحقل الصحيح والكود السابق لايشتغل

فجرّب هذا الكود

CODE

	<div class="text">
	<?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;
	        } ?>
	<?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_client = "pub-<?php echo $pub_no;?>";
	        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 01:34 صباحاً


look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 01:38 صباحاً   [22]
imaddine1986
معلومات الكاتب
المشاركة الأصلية كتبت بواسطة: Mr King وبالنسبه للقيمه
CODE
extrafield_2<br />
عدّلت عليها حسب رقم الحقل ؟؟



إذا كان ذلك هو رقم الحقل الصحيح والكود السابق لايشتغل

فجرّب هذا الكود

CODE

	<div class="text">
	<?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;
	        } ?>
	<?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_client = "pub-<?php echo $pub_no;?>";
	        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>
	




وإذا لم يشتغل فعليك انتظار دخول أحد الاخوه المبرمجين لحلّ مشكلتك

نعم هي نفس القيمة

ونفس شيء لم يظهر اي شيء في خانة الاعلانات كود مشاركة الارباح ادسنس | الصفحة  2

والله اخي بارك الله فيك وجعله في ميزان حسناتك كود مشاركة الارباح ادسنس | الصفحة  2

وسانتظر احد الاخوة ممكن يساعدني



look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 04:51 صباحاً   [23]
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 صباحاً


look/images/icons/i1.gif كود مشاركة الارباح ادسنس
  14-11-2013 04:02 مساءً   [24]
imaddine1986
معلومات الكاتب
للاسف نفس الشيء يظهر مكان الكود لكن الكود لا يظهر كود مشاركة الارباح ادسنس | الصفحة  2



كود مشاركة الارباح ادسنس | الصفحة  2

الصفحة 2 من 3
2

المواضيع المتشابهه
عنوان الموضوع الكاتب الردود الزوار آخر رد
طلب ملحق مشاركة الارباح anas2808
1 978 anas2808
ممكن برمجة شبية ل ain_adsens لتحكم اكثر باعلانات ادسنس ومشاركة الارباح lionhmada
2 1518 akroum

الكلمات الدلالية
لا يوجد كلمات دلالية ..






الساعة الآن 06:38 PM