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

طلب دمج بين كودين

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


موضوع مغلق

الصفحة 2 من 2 < 1 2 > الأخيرة


16-11-2013 11:24 مساءً
معلومات الكاتب ▼
انضم في : 07-10-2013
رقم العضوية : 4,390
المشاركات : 41
الجنس :
قوة السمعة : 0
موقعي : زيارة موقعي
السلام عليكم
ممكن دمج الكودين التالين بحيث الكود الاول هو كود
مشاركة ارباح ادسنس

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;?>";
		
		   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>
		
		
		


وهو موجود في هذا الموضوع لتوضيح اكثر
https://pbboard.info/forums/index.php?page=post&show=1&id=36751&num=1

مع الكود لاضافة اعلانات في منتصف الموضوع
CODE
<div class="text">
		
		<?php
		
		$inserts = 'ضع الكود هنا';
		
		           $_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>
		
		


وهو لتوضيح اكثر في الرد التلي
https://pbboard.info/forums/index.php?page=post&show=1&id=44316&num=3

بحيث عند اضافة الكود يختفي الموضوع
وقد قام الاخ Mr King بارك الله فيه بتجريب لكن
لم يتم قرائة المعرف وهو موضح في الرد التالي
https://pbboard.info/forums/t14737&password=&count=18#742

ارجو من الاخوة المختصين المساعدة

look/images/icons/i1.gif طلب دمج بين كودين
  17-11-2013 01:20 صباحاً   [1]
معلومات الكاتب ▼
انضم في : 07-10-2013
رقم العضوية : 4,390
المشاركات : 41
الجنس :
قوة السمعة : 0
موقعي : زيارة موقعي
المشكله التي صادفتنا (عدم ظهور الاعلان) خلال التجربه سببها هذا الكود

CODE
google_ad_client = "pub-<?php echo $pub_no;?>";
		

look/images/icons/i1.gif طلب دمج بين كودين
  18-11-2013 10:36 صباحاً   [2]
معلومات الكاتب ▼
انضم في : 09-11-2013
رقم العضوية : 4,535
المشاركات : 41
الدولة : مصر
الجنس :
تاريخ الميلاد : 19-5-1993
قوة السمعة : 0
موقعي : زيارة موقعي
المشاركة الأصلية كتبت بواسطة: imaddine1986 المشكله التي صادفتنا (عدم ظهور الاعلان) خلال التجربه سببها هذا الكود

CODE
google_ad_client = "pub-<?php echo $pub_no;?>";
		
اخى الكريم على حسب علمى بان اكواد php لا تعمل اذا تمت الاضافة فى اعلانات جوجل ادسنس الموجودة فى لوحة التحكم

مع العلم انك اذا اخذت الكود ووضعته فى القالب بشكل يدوى سوف يعمل بشكل جيد

اتمنى من الاخر سلميان توضيح كيف تقبل اعلانات ادسنس فى لوحة التحكم اكواد php

look/images/icons/i1.gif طلب دمج بين كودين
  18-11-2013 05:47 مساءً   [3]
معلومات الكاتب ▼
انضم في : 07-10-2013
رقم العضوية : 4,390
المشاركات : 41
الجنس :
قوة السمعة : 0
موقعي : زيارة موقعي
المشاركة الأصلية كتبت بواسطة: فرج القذافى
المشاركة الأصلية كتبت بواسطة: imaddine1986 المشكله التي صادفتنا (عدم ظهور الاعلان) خلال التجربه سببها هذا الكود

CODE
google_ad_client = "pub-<?php echo $pub_no;?>";
		
اخى الكريم على حسب علمى بان اكواد php لا تعمل اذا تمت الاضافة فى اعلانات جوجل ادسنس الموجودة فى لوحة التحكم

مع العلم انك اذا اخذت الكود ووضعته فى القالب بشكل يدوى سوف يعمل بشكل جيد

اتمنى من الاخر سلميان توضيح كيف تقبل اعلانات ادسنس فى لوحة التحكم اكواد php
المشكلة هي في دمج الكودين معنا كود مشاركة الارباح
وكود وسط الموضوع
ان شاء الاخ سليمان يساعدني في هذه المشكلة

look/images/icons/i1.gif طلب دمج بين كودين
  18-11-2013 06:55 مساءً   [4]
معلومات الكاتب ▼
انضم في : 18-07-2009
رقم العضوية : 1
المشاركات : 12,565
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 74,196
موقعي : زيارة موقعي
إذا كنت تستخدم الجيل الثالث فعدل على الكود الأول فقط
بالبحث عن Info واستبدله بـ ReplierInfo

look/images/icons/i1.gif طلب دمج بين كودين
  18-11-2013 07:27 مساءً   [5]
معلومات الكاتب ▼
انضم في : 07-10-2013
رقم العضوية : 4,390
المشاركات : 41
الجنس :
قوة السمعة : 0
موقعي : زيارة موقعي
اهلا بيك استاذ سليمان
بالنسبة للنسخة انا استعمل النسخة 2.1.4 فانا من عشاق هذه النسخة

look/images/icons/i1.gif طلب دمج بين كودين
  18-11-2013 10:44 مساءً   [6]
معلومات الكاتب ▼
انضم في : 07-10-2013
رقم العضوية : 4,390
المشاركات : 41
الجنس :
قوة السمعة : 0
موقعي : زيارة موقعي
استاذ سليمان عند تجريب التعديل على النسخة الثانية
يختفي قالب الموضوع مثلما موضح في الصورة
21ybr

look/images/icons/i1.gif طلب دمج بين كودين
  19-11-2013 04:44 مساءً   [7]
معلومات الكاتب ▼
انضم في : 07-10-2013
رقم العضوية : 4,390
المشاركات : 41
الجنس :
قوة السمعة : 0
موقعي : زيارة موقعي
في انتظار مساعدة احد الاخوة

look/images/icons/i1.gif طلب دمج بين كودين
  19-11-2013 07:26 مساءً   [8]
معلومات الكاتب ▼
انضم في : 18-07-2009
رقم العضوية : 1
المشاركات : 12,565
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 74,196
موقعي : زيارة موقعي
أخي كلا الكودين يعملان بدون دمج لا مشكلة بهما

تفضل قالب : show_subject.tpl للجيل الثاني مضاف اليه كلا الكودين

CODE
<!-- action_find_addons_1 -->
{template}show_subject_information{/template}
<table align="center" border="0" cellspacing="1" class="border" width="98%" onclick="switchBlock('Options_mods')">
    <tr align="center">
        <td class="tcat" width="18%">
                {$lang['information_writer']}
        </td>
        <td class="tcat" width="82%" align="right">
        <div class="r-right">
        <img src="{$Info['icon']}" />
<span dir="{$_CONF['info_row']['content_dir']}">
{$Info['prefix_subject']}
</span>
        {if {$_CONF['info_row']['rewriterule']} == '1'}
<a href="t{$subject_id}.html">
{else}
<a href="index.php?page=topic&show=1&id={$subject_id}">
{/if}
{$subject_title}</a>
</div>
<div class="l-left">
{$Info['native_write_time']}
</div>
        </td>
    </tr>
    <tr align="center">
        <td class="tbar_writer_info" width="18%" valign="top">
             {if {$Info['username']}}
        <!-- Code switch Menu start -->
                <ul class="writer_controls">
                 <li>
                  <a href="javascript:switchMenuNone('{$subject_id}subjectswitch')" class="Button_secondary">
                 <?php echo $PowerBB->functions->GetwriterGroupStyle($PowerBB->_CONF['template']['Info']['username'],$PowerBB->_CONF['template']['Info']['usergroup']);?>
                 <img border="0" alt="" src="{$image_path}/menu_open.gif" /></a>
                 </li>
                 </ul>
               <div style="display:none;" class="drop_menu" id="{$subject_id}subjectswitch">
                    <div class="thead">
                     <a href="javascript:switchMenuNone('{$subject_id}subjectswitch')">
                    {if {$_CONF['info_row']['rewriterule']} == '1'}
                    <a href="u{$Info['id']}.html">
                    {else}
                    <a href="index.php?page=profile&show=1&id={$Info['id']}">
                    {/if}
                    {$Info['display_username']}</a>
                    </a>
                    </div>
                    <div class="menu_popup">
                    {if {$_CONF['info_row']['rewriterule']} == '1'}
                    <a href="u{$Info['id']}.html">
                    {else}
                    <a href="index.php?page=profile&show=1&id={$Info['id']}">
                    {/if}
                    {$lang['view_profile']}
                    </a>
                    </div>
                    <div class="menu_popup">
                        <a href="index.php?page=search&option=3&username={$Info['username']}&starteronly=0§ion=all&exactname=1&sort_order=DESC">
{$lang['search_for_all_posts']}
{$Info['username']}</a>
</div>
                    <div class="menu_popup">
                        <a href="index.php?page=search&option=4&username={$Info['username']}&starteronly=0§ion=all&exactname=1&sort_order=DESC">
{$lang['search_for_all_replys']}
{$Info['username']}</a>
</div>

                    {if {$_CONF['member_permission']}}
                    <div class="menu_popup">
                    <a href="index.php?page=pm_send&send=1&index=1&username={$Info['username']}">
                  {$lang['send_a_private_message_to']}
                             {$Info['username']} </a>
                             </div>
                             {/if}
                    {if {$_CONF['member_permission']}}
                    <div class="menu_popup">
                    <a href="index.php?page=send&member=1&index=1&id={$Info['id']}">
{$lang['send_a_message_to_the_mailing']}
                            {$Info['username']} </a>
                             </div>
                             {/if}
{if {$mod_edit_member}}
                {if {$_CONF['member_permission']}}
                <div class="menu_popup">
                <a target="_blank" href="admin.php?page=member&edit=1&main=1&id={$Info['id']}">
{$lang['edit_member_data']}
                       {$Info['username']} </a>
                        </div>
                        {/if}
{/if}
            </div>
            <!-- Code switch Menu End -->
            {template}writer_info{/template}
            
            {if {$Awards_nm} > '0'}
            {template}awards{/template}
            {/if}
            
            {if {$_CONF['info_row']['show_list_last_5_posts_member']} == 1}
            {template}last_subject_writer{/template}
            {/if}
            {else}
            {template}guest_info{/template}
            {/if}
        </td>
        <td
        {if {$Info['special']} == '1'}
        id="layerspecial" class="td_special" width="82%" valign="top" align="right"
        {else}
        class="tbar_writer_info" width="82%" valign="top" align="right"
        {/if}
        onclick="switchBlock('subject_rating');">
               {template}add_this{/template}
               {if !{$STOP_ADSENSES_TEMPLATE}}
            {template}adsense_topic{/template}
            {/if}
            <div class="text">
            <?php
  $pub_no = "1111111111111111";
  $member_pub = $PowerBB->_CONF['template']['Info']['extrafield_1'];
  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=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text_image";
google_ad_channel="forum";
google_color_border="FFFFFF";
google_color_bg="FFFFFF";
google_color_link="0000FF";
google_color_text="000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


<div class="text">
<?php
$inserts = 'ضع الكود هنا';
            $_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>


            </div>
            {if {$Info['close_reason']} != '' and {$Info['close']} }
            
            
            
            
        <i><font color="#FF0000">
{$lang['reason_for_closure']}
        {$Info['close_reason']}</font></i>
             {/if}

            {if {$Info['attach_subject']}}
                {template}attach_show{/template}
            {/if}
           {if {$_CONF['group_info']['view_action_edit']}}
                 {if {$Info['action_by']} != ''}
                 
                 
                 <div align="center">
                 <i>
                {$lang['action_by_subject']}
                {$Info['action_by']}
                {$lang['last_date']}
                {$Info['actiondate']}
                </i>
                </div>
                
              {/if}
            {/if}
               {if {$Info['reason_edit']} != ''}
                 <div align="center">
                <b>{$lang['reason_edit']}
                {$Info['reason_edit']}</b>
                </div>
                
            {/if}
            {if {$Info['user_sig']} != ''}
                {template}signature_show{/template}
            {/if}
        </td>
    </tr>
    <tr align="center">
        <td class="row1" width="18%">
        {if {$Info['username']}}
{if {$_CONF['member_row']['username']} != {$Info['username']}}
        {if {$_CONF['info_row']['reputationallw']} == 1}
             <a href="javascript:switchMenuNone('{$subject_id}reputation')"
             title="{$lang['add_reputation_to']}
{$Info['username']}">
            <img border="0" src="{$image_path}/reputation.gif" />
            </a>
{template}subject_reputation{/template}
{/if}
{/if}
  {/if}
            <a title="{$lang['reporting_for_post']}"
             href="index.php?page=report&index=1&subject_id={$subject_id}">
            <img alt="{$lang['reporting_for_post']}"
            border="0" alt="" src="{$image_path}/report.gif" /></a>
        </td>
        <td  colspan="2" class="row1" width="82%">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
    <tr>
    <td>
    <div class="r-right">
<!-- like facebook -->
{if {$_CONF['info_row']['active_like_facebook']} == '1'}
<div class="addthis_toolbox addthis_default_style">
<a style="border-bottom:none" class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a style="border-bottom:none" class="addthis_button_tweet"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="includes/js/addthis_widget.js#username={$_CONF['info_row']['use_list']}"></script>
{/if}
<!-- / like facebook -->
<!-- action_find_addons_2 -->
</div>
<div class="l-left">
<!-- action_find_addons_3 -->
<ul class="post_controls">
{if {$_CONF['member_permission']}}
        {if !{$mod_toolbar}}
<li>
<a title="{$lang['edit_subject']}"
href="index.php?page=management&subject=1&section={$Info['section']}&subject_id={$subject_id}&operator=edit"
title="{$lang['edit_subject']}" class="Button_secondary">
{$lang['edit_subject']}</a>
</li>
<li>
<a href="javascript:delete_post('index.php?page=management&subject=1&section={$Info['section']}&subject_id={$subject_id}&operator=delete')"
title="{$lang['delete_subject']}" class="Button_secondary">
{$lang['delete_subject']}</a>
</li>
{else}
{if {$Info['close']} == '0'}
{if {$timeout}}
{if {$_CONF['member_row']['username']} == {$Info['username']}}
{if {$_CONF['group_info']['edit_own_subject']}}
<li>
<a title="{$lang['edit_subject']}"
href="index.php?page=management&subject=1&section={$Info['section']}&subject_id={$subject_id}&operator=edit" class="Button_secondary">
{$lang['edit_subject']}</a>
</li>
{/if}
{if {$_CONF['group_info']['del_own_subject']}}
<li>
<a href="javascript:delete_post('index.php?page=management&subject=1&section={$Info['section']}&subject_id={$subject_id}&operator=delete')"
title="{$lang['delete_subject']}" class="Button_secondary">
{$lang['delete_subject']}</a>
</li>
   {/if}
{/if}
{/if}
{/if}
{/if}
{/if}
<li>
<a href="index.php?page=new_reply&index=1&id={$subject_id}{$password}
&qu_Subject={$subject_id}&
user={$Info['username']}" title="{$lang['qu_subject']}" class="Button_secondary">
{$lang['quote']}</a>
</li>
<li>
<?php $post_id = $PowerBB->_CONF['template']['subject_id']; ?>
<a class="img-submit" id="mad_<?php echo "$post_id"; ?>" name="mad_<?php echo "$post_id"; ?>" onclick="multiquote_add(<?php echo "$post_id"; ?>); return false;" href="#">{$lang['multiquote']}</a>
</li>
<!-- action_find_addons_4 -->
</ul>
</div>

</td>
    </tr>
</table>
        </td>
    </tr>
</table>

<!-- action_find_addons_5 -->




look/images/icons/i1.gif طلب دمج بين كودين
  19-11-2013 07:29 مساءً   [9]
معلومات الكاتب ▼
انضم في : 07-10-2013
رقم العضوية : 4,390
المشاركات : 41
الجنس :
قوة السمعة : 0
موقعي : زيارة موقعي
بارك الله فيك استاذ سليمان
وجاري التجريب

look/images/icons/i1.gif طلب دمج بين كودين
  19-11-2013 07:57 مساءً   [10]
معلومات الكاتب ▼
انضم في : 07-10-2013
رقم العضوية : 4,390
المشاركات : 41
الجنس :
قوة السمعة : 0
موقعي : زيارة موقعي
استاذ سليمان لم تفهم قصدي جيدا
فعند وضع الكود الخاص بمشاركة ارباح ادسنس
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;?>";
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>


في مكان ضع الكود هنا داخل الكود الذي وضعته انت
CODE
<div class="text">        
	        <?php        
	        $inserts = 'ضع الكود هنا';
	                           $_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>
	
ليظهر الاعلان وسط الموضوع يختفي قالب الموضوع ولا يظهر


تم تحرير المشاركة بواسطة :imaddine1986 بتاريخ:19-11-2013 08:02 مساءً


look/images/icons/i1.gif طلب دمج بين كودين
  19-11-2013 09:50 مساءً   [11]
معلومات الكاتب ▼
انضم في : 18-07-2009
رقم العضوية : 1
المشاركات : 12,565
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 74,196
موقعي : زيارة موقعي
تفضل :
CODE
<!-- action_find_addons_1 -->
{template}show_subject_information{/template}
<table align="center" border="0" cellspacing="1" class="border" width="98%" onclick="switchBlock('Options_mods')">
    <tr align="center">
        <td class="tcat" width="18%">
                {$lang['information_writer']}
        </td>
        <td class="tcat" width="82%" align="right">
        <div class="r-right">
        <img src="{$Info['icon']}" />
<span dir="{$_CONF['info_row']['content_dir']}">
{$Info['prefix_subject']}
</span>
        {if {$_CONF['info_row']['rewriterule']} == '1'}
<a href="t{$subject_id}.html">
{else}
<a href="index.php?page=topic&show=1&id={$subject_id}">
{/if}
{$subject_title}</a>
</div>
<div class="l-left">
{$Info['native_write_time']}
</div>
        </td>
    </tr>
    <tr align="center">
        <td class="tbar_writer_info" width="18%" valign="top">
             {if {$Info['username']}}
        <!-- Code switch Menu start -->
                <ul class="writer_controls">
                 <li>
                  <a href="javascript:switchMenuNone('{$subject_id}subjectswitch')" class="Button_secondary">
                 <?php echo $PowerBB->functions->GetwriterGroupStyle($PowerBB->_CONF['template']['Info']['username'],$PowerBB->_CONF['template']['Info']['usergroup']);?>
                 <img border="0" alt="" src="{$image_path}/menu_open.gif" /></a>
                 </li>
                 </ul>
               <div style="display:none;" class="drop_menu" id="{$subject_id}subjectswitch">
                    <div class="thead">
                     <a href="javascript:switchMenuNone('{$subject_id}subjectswitch')">
                    {if {$_CONF['info_row']['rewriterule']} == '1'}
                    <a href="u{$Info['id']}.html">
                    {else}
                    <a href="index.php?page=profile&show=1&id={$Info['id']}">
                    {/if}
                    {$Info['display_username']}</a>
                    </a>
                    </div>
                    <div class="menu_popup">
                    {if {$_CONF['info_row']['rewriterule']} == '1'}
                    <a href="u{$Info['id']}.html">
                    {else}
                    <a href="index.php?page=profile&show=1&id={$Info['id']}">
                    {/if}
                    {$lang['view_profile']}
                    </a>
                    </div>
                    <div class="menu_popup">
                        <a href="index.php?page=search&option=3&username={$Info['username']}&starteronly=0§ion=all&exactname=1&sort_order=DESC">
{$lang['search_for_all_posts']}
{$Info['username']}</a>
</div>
                    <div class="menu_popup">
                        <a href="index.php?page=search&option=4&username={$Info['username']}&starteronly=0§ion=all&exactname=1&sort_order=DESC">
{$lang['search_for_all_replys']}
{$Info['username']}</a>
</div>

                    {if {$_CONF['member_permission']}}
                    <div class="menu_popup">
                    <a href="index.php?page=pm_send&send=1&index=1&username={$Info['username']}">
                  {$lang['send_a_private_message_to']}
                             {$Info['username']} </a>
                             </div>
                             {/if}
                    {if {$_CONF['member_permission']}}
                    <div class="menu_popup">
                    <a href="index.php?page=send&member=1&index=1&id={$Info['id']}">
{$lang['send_a_message_to_the_mailing']}
                            {$Info['username']} </a>
                             </div>
                             {/if}
{if {$mod_edit_member}}
                {if {$_CONF['member_permission']}}
                <div class="menu_popup">
                <a target="_blank" href="admin.php?page=member&edit=1&main=1&id={$Info['id']}">
{$lang['edit_member_data']}
                       {$Info['username']} </a>
                        </div>
                        {/if}
{/if}
            </div>
            <!-- Code switch Menu End -->
            {template}writer_info{/template}
            
            {if {$Awards_nm} > '0'}
            {template}awards{/template}
            {/if}
            
            {if {$_CONF['info_row']['show_list_last_5_posts_member']} == 1}
            {template}last_subject_writer{/template}
            {/if}
            {else}
            {template}guest_info{/template}
            {/if}
        </td>
        <td
        {if {$Info['special']} == '1'}
        id="layerspecial" class="td_special" width="82%" valign="top" align="right"
        {else}
        class="tbar_writer_info" width="82%" valign="top" align="right"
        {/if}
        onclick="switchBlock('subject_rating');">
               {template}add_this{/template}
               {if !{$STOP_ADSENSES_TEMPLATE}}
            {template}adsense_topic{/template}
            {/if}
<?php
$pub_no = "1111111111111111";
$member_pub = $PowerBB->_CONF['template']['Info']['extrafield_1'];
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;
}
?>
<div class="text">
<?php
$inserts = '
<script type="text/javascript">
google_ad_client = "pub-<?php echo $pub_no;?>";
google_ad_width=300;
google_ad_height=250;
google_ad_format="300x250_as";
google_ad_type="text_image";
google_ad_channel="forum";
google_color_border="FFFFFF";
google_color_bg="FFFFFF";
google_color_link="0000FF";
google_color_text="000000";
google_color_url = "008000";
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
';
$_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>


            {if {$Info['close_reason']} != '' and {$Info['close']} }
            
            
            
            
        <i><font color="#FF0000">
{$lang['reason_for_closure']}
        {$Info['close_reason']}</font></i>
             {/if}

            {if {$Info['attach_subject']}}
                {template}attach_show{/template}
            {/if}
           {if {$_CONF['group_info']['view_action_edit']}}
                 {if {$Info['action_by']} != ''}
                 
                 
                 <div align="center">
                 <i>
                {$lang['action_by_subject']}
                {$Info['action_by']}
                {$lang['last_date']}
                {$Info['actiondate']}
                </i>
                </div>
                
              {/if}
            {/if}
               {if {$Info['reason_edit']} != ''}
                 <div align="center">
                <b>{$lang['reason_edit']}
                {$Info['reason_edit']}</b>
                </div>
                
            {/if}
            {if {$Info['user_sig']} != ''}
                {template}signature_show{/template}
            {/if}
        </td>
    </tr>
    <tr align="center">
        <td class="row1" width="18%">
        {if {$Info['username']}}
{if {$_CONF['member_row']['username']} != {$Info['username']}}
        {if {$_CONF['info_row']['reputationallw']} == 1}
             <a href="javascript:switchMenuNone('{$subject_id}reputation')"
             title="{$lang['add_reputation_to']}
{$Info['username']}">
            <img border="0" src="{$image_path}/reputation.gif" />
            </a>
{template}subject_reputation{/template}
{/if}
{/if}
  {/if}
            <a title="{$lang['reporting_for_post']}"
             href="index.php?page=report&index=1&subject_id={$subject_id}">
            <img alt="{$lang['reporting_for_post']}"
            border="0" alt="" src="{$image_path}/report.gif" /></a>
        </td>
        <td  colspan="2" class="row1" width="82%">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
    <tr>
    <td>
    <div class="r-right">
<!-- like facebook -->
{if {$_CONF['info_row']['active_like_facebook']} == '1'}
<div class="addthis_toolbox addthis_default_style">
<a style="border-bottom:none" class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a style="border-bottom:none" class="addthis_button_tweet"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="includes/js/addthis_widget.js#username={$_CONF['info_row']['use_list']}"></script>
{/if}
<!-- / like facebook -->
<!-- action_find_addons_2 -->
</div>
<div class="l-left">
<!-- action_find_addons_3 -->
<ul class="post_controls">
{if {$_CONF['member_permission']}}
        {if !{$mod_toolbar}}
<li>
<a title="{$lang['edit_subject']}"
href="index.php?page=management&subject=1&section={$Info['section']}&subject_id={$subject_id}&operator=edit"
title="{$lang['edit_subject']}" class="Button_secondary">
{$lang['edit_subject']}</a>
</li>
<li>
<a href="javascript:delete_post('index.php?page=management&subject=1&section={$Info['section']}&subject_id={$subject_id}&operator=delete')"
title="{$lang['delete_subject']}" class="Button_secondary">
{$lang['delete_subject']}</a>
</li>
{else}
{if {$Info['close']} == '0'}
{if {$timeout}}
{if {$_CONF['member_row']['username']} == {$Info['username']}}
{if {$_CONF['group_info']['edit_own_subject']}}
<li>
<a title="{$lang['edit_subject']}"
href="index.php?page=management&subject=1&section={$Info['section']}&subject_id={$subject_id}&operator=edit" class="Button_secondary">
{$lang['edit_subject']}</a>
</li>
{/if}
{if {$_CONF['group_info']['del_own_subject']}}
<li>
<a href="javascript:delete_post('index.php?page=management&subject=1&section={$Info['section']}&subject_id={$subject_id}&operator=delete')"
title="{$lang['delete_subject']}" class="Button_secondary">
{$lang['delete_subject']}</a>
</li>
   {/if}
{/if}
{/if}
{/if}
{/if}
{/if}
<li>
<a href="index.php?page=new_reply&index=1&id={$subject_id}{$password}
&qu_Subject={$subject_id}&
user={$Info['username']}" title="{$lang['qu_subject']}" class="Button_secondary">
{$lang['quote']}</a>
</li>
<li>
<?php $post_id = $PowerBB->_CONF['template']['subject_id']; ?>
<a class="img-submit" id="mad_<?php echo "$post_id"; ?>" name="mad_<?php echo "$post_id"; ?>" onclick="multiquote_add(<?php echo "$post_id"; ?>); return false;" href="#">{$lang['multiquote']}</a>
</li>
<!-- action_find_addons_4 -->
</ul>
</div>

</td>
    </tr>
</table>
        </td>
    </tr>
</table>

<!-- action_find_addons_5 -->


look/images/icons/i1.gif طلب دمج بين كودين
  19-11-2013 10:18 مساءً   [12]
معلومات الكاتب ▼
انضم في : 07-10-2013
رقم العضوية : 4,390
المشاركات : 41
الجنس :
قوة السمعة : 0
موقعي : زيارة موقعي
نفس المشكلة استاذ سليمان التي ظهرت مع
الاخ Mr King
بحيث يظهر مكان الاعلان عادي جدا لكن
لم يتم قرائة المعرف
1UvY8

look/images/icons/i1.gif طلب دمج بين كودين
  20-11-2013 09:13 صباحاً   [13]
معلومات الكاتب ▼
انضم في : 18-07-2009
رقم العضوية : 1
المشاركات : 12,565
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 74,196
موقعي : زيارة موقعي
اقتبـاس ،، حيث يظهر مكان الاعلان عادي جدا لكن
لم يتم قرائة المعرف
لم افهم وضح أكثر ماذا تقصد بمكان الاعلان عادي جداً هل تقصد انه لايظهر بالوسط أم ماذا
وماذا تقصد لم يتم قراءة المعرف وعن اي معرف تتحدث هل هو معلومات الكاتب التي تظهر يمين الموضوع ام معرف اعلانات ادسنس قوقل وضع رابط الموضوع لنتبين المشكلة ويفضل ان تجرب على السيرفر الشخصي ايضاً

look/images/icons/i1.gif طلب دمج بين كودين
  20-11-2013 04:15 مساءً   [14]
معلومات الكاتب ▼
انضم في : 27-11-2012
رقم العضوية : 2,642
المشاركات : 3,231
الدولة : morocco
الجنس :
تاريخ الميلاد : 1-1-1987
الدعوات : 6
قوة السمعة : 18,750
المعذره على المداخله
ربما أستطيع التوضيح أكثر

في الكود الأخير يظهر مكان الإعلان في الوسط mf

ولكن الكود
CODE
<?php echo $pub_no;?>

لايتمّ استبداله برقم معرّف جوجل ادسنس في السطر
CODE
google_ad_client = pub-<?php echo $pub_no;?>;

يعني من خلال سورس الصفحه ستجد بأنّ هذا السطر لم يتغيّر

في حين أنه من المفترض أن يظهر عى هذا الشكل
CODE
google_ad_client = "pub-1111111111111111";

في الحاله الافتراضيه (في جميع المواضيع باستثناء مواضيع الأعضاء المشاركون في خدمة مشاركة الأرباح)

upset


تم تحرير المشاركة بواسطة :Mr King بتاريخ:20-11-2013 04:18 مساءً


الصفحة 2 من 2 < 1 2 > الأخيرة



المواضيع المتشابهه
عنوان الموضوع الكاتب الردود الزوار آخر رد
[مجابه] محتاج كودين مثال مصور ashraf
4 1237 AHMED
كودين أريدهما Mr.Php
4 867 Mr.Php

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









الساعة الآن 12:24 PM